Skip to content

Commit c92551d

Browse files
committed
feat(argocd): add rancher application resource and kustomization configuration
1 parent bf83519 commit c92551d

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

application.tf

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,3 +306,30 @@ resource "argocd_application" "umami" {
306306
}
307307
}
308308
}
309+
310+
resource "argocd_application" "rancher" {
311+
metadata {
312+
name = "rancher"
313+
namespace = "argo"
314+
}
315+
316+
spec {
317+
project = argocd_project.guardian.metadata[0].name
318+
source {
319+
repo_url = var.repo_url
320+
target_revision = "HEAD"
321+
path = "rancher"
322+
323+
kustomize {
324+
common_annotations = {
325+
"github.com/url" = var.repo_url
326+
}
327+
}
328+
}
329+
330+
destination {
331+
name = argocd_cluster.common.name
332+
namespace = "guardian"
333+
}
334+
}
335+
}

rancher/kustomization.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
4+
helmCharts:
5+
- name: rancher
6+
releaseName: rancher
7+
repo: https://releases.rancher.com/server-charts/stable
8+
version: 2.x.x

0 commit comments

Comments
 (0)