Skip to content

Commit

Permalink
Use cert-manager for CA (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcurtis authored Sep 29, 2024
1 parent aa52dd3 commit 5f94757
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
- id: check-symlinks

- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.95.0
rev: v1.96.1
hooks:
- id: terraform_fmt

Expand All @@ -29,7 +29,7 @@ repos:
- id: terraform_docs

- repo: https://github.com/bridgecrewio/checkov.git
rev: 3.2.253
rev: 3.2.255
hooks:
- id: checkov
verbose: true
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

## Repository Description

Terraform **example** module for the Datadog Kubernetes Operator.
Terraform **example** module for the Datadog Kubernetes Operator on Google Kubernetes Engine (GKE).

> [!NOTE]
> We do not recommend consuming this module like you might a [public module](https://registry.terraform.io/browse/modules). It is a baseline, something you can fork, potentially maintain, and modify to fit your organization's needs. Using public modules vs. writing your own has various [drivers and trade-offs](https://docs.osinfra.io/fundamentals/architecture-decision-records/adr-0003) that your organization should evaluate.
Expand Down
13 changes: 2 additions & 11 deletions regional/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
resource "helm_release" "datadog_operator" {
chart = "datadog-operator"
name = "datadog-operator"
namespace = kubernetes_namespace_v1.datadog.metadata[0].name
namespace = "datadog"
repository = "https://helm.datadoghq.com"

set {
Expand Down Expand Up @@ -71,22 +71,13 @@ resource "helm_release" "datadog_operator" {
version = var.operator_version
}

# Kubernetes Namespace Resource
# https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace_v1

resource "kubernetes_namespace_v1" "datadog" {
metadata {
name = "datadog"
}
}

# Kubernetes Secret Resource
# https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/secret_v1

resource "kubernetes_secret_v1" "datadog_operator_secret" {
metadata {
name = "datadog-operator-secret"
namespace = kubernetes_namespace_v1.datadog.metadata[0].name
namespace = "datadog"
}

data = {
Expand Down

0 comments on commit 5f94757

Please sign in to comment.