File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11resource "helm_release" "argocd" {
22 count = var. create_k8s_resources ? 1 : 0
3-
4- name = " argocd"
5- chart = " argo-cd"
6- repository = " https://argoproj.github.io/argo-helm"
7- namespace = kubernetes_namespace. argocd [0 ]. metadata [0 ]. name
8- version = " 9.0.5"
9-
3+
4+ name = " argocd"
5+ chart = " argo-cd"
6+ repository = " https://argoproj.github.io/argo-helm"
7+ namespace = kubernetes_namespace. argocd [0 ]. metadata [0 ]. name
8+ version = " 9.0.5"
9+
1010 values = [
1111 << EOF
1212 server:
1313 service:
1414 type: ClusterIP
1515 EOF
1616 ]
17-
17+
1818 depends_on = [kubernetes_namespace . argocd ]
1919}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ terraform {
2222# Minikube cluster for local development
2323resource "minikube_cluster" "minikube_docker" {
2424 count = var. create_k8s_resources ? 1 : 0
25-
25+
2626 driver = " docker"
2727 cluster_name = " devops-project"
2828 addons = [
Original file line number Diff line number Diff line change @@ -9,17 +9,17 @@ provider "minikube" {
99provider "kubernetes" {
1010 # Use default kubectl config when creating resources
1111 # Skip cluster connection when create_k8s_resources = false for CI/CD validation
12- config_path = var. create_k8s_resources ? " ~/.kube/config" : null
12+ config_path = var. create_k8s_resources ? " ~/.kube/config" : null
1313 config_context = var. create_k8s_resources ? " devops-project" : null
14-
14+
1515 # Ignore missing context during initial plan
1616 ignore_annotations = []
1717}
1818
1919# Helm provider configuration
2020provider "helm" {
2121 kubernetes {
22- config_path = var. create_k8s_resources ? " ~/.kube/config" : null
22+ config_path = var. create_k8s_resources ? " ~/.kube/config" : null
2323 config_context = var. create_k8s_resources ? " devops-project" : null
2424 }
2525}
You can’t perform that action at this time.
0 commit comments