Created
July 18, 2021 07:12
-
-
Save bharatmicrosystems/b2004218e0390fd99e01f59cc249160f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
data "kubectl_file_documents" "my-nginx-app" { | |
content = file("../manifests/argocd/my-nginx-app.yaml") | |
} | |
resource "kubectl_manifest" "my-nginx-app" { | |
depends_on = [ | |
kubectl_manifest.argocd, | |
] | |
count = length(data.kubectl_file_documents.my-nginx-app.documents) | |
yaml_body = element(data.kubectl_file_documents.my-nginx-app.documents, count.index) | |
override_namespace = "argocd" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment