Created
July 18, 2021 06:49
-
-
Save bharatmicrosystems/835680efbfbb775395c0b0a132b072ee to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "kubectl" { | |
host = module.gke_auth.host | |
cluster_ca_certificate = module.gke_auth.cluster_ca_certificate | |
token = module.gke_auth.token | |
load_config_file = false | |
} | |
data "kubectl_file_documents" "namespace" { | |
content = file("../manifests/argocd/namespace.yaml") | |
} | |
data "kubectl_file_documents" "argocd" { | |
content = file("../manifests/argocd/install.yaml") | |
} | |
resource "kubectl_manifest" "namespace" { | |
count = length(data.kubectl_file_documents.namespace.documents) | |
yaml_body = element(data.kubectl_file_documents.namespace.documents, count.index) | |
override_namespace = "argocd" | |
} | |
resource "kubectl_manifest" "argocd" { | |
depends_on = [ | |
kubectl_manifest.namespace, | |
] | |
count = length(data.kubectl_file_documents.argocd.documents) | |
yaml_body = element(data.kubectl_file_documents.argocd.documents, count.index) | |
override_namespace = "argocd" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
where is stored file named ../manifests/argocd/install.yaml . it is mentioned but how it look like ?