diff --git a/charts/gitops-bootstrap/Chart.yaml b/charts/gitops-bootstrap/Chart.yaml new file mode 100644 index 0000000..2f20eda --- /dev/null +++ b/charts/gitops-bootstrap/Chart.yaml @@ -0,0 +1,9 @@ +apiVersion: v2 +name: gitops-bootstrap +description: Helm chart for managing bootstraping GitOps +type: application +version: "0.1.0" +appVersion: "1.0.0" +maintainers: + - name: devpro + email: bertrand@devpro.fr diff --git a/charts/gitops-bootstrap/README.md b/charts/gitops-bootstrap/README.md new file mode 100644 index 0000000..32ee484 --- /dev/null +++ b/charts/gitops-bootstrap/README.md @@ -0,0 +1,4 @@ +# GitOps Bootstrap + +This Helm chart will install the Kubernetes objects to bootstrap GitOps in an infrastructure. +Originally created to bypass issues with Kubernetes Terraform provider with manifests at init. diff --git a/charts/gitops-bootstrap/templates/argocd-application.yaml b/charts/gitops-bootstrap/templates/argocd-application.yaml new file mode 100644 index 0000000..dcafe50 --- /dev/null +++ b/charts/gitops-bootstrap/templates/argocd-application.yaml @@ -0,0 +1,20 @@ +{{ range .Values.argocd.applications }} +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: {{ .name }} + namespace: {{ .namespace }} +spec: + project: {{ .project }} + source: + repoURL: {{ .repository }} + targetRevision: {{ .branch }} + path: {{ .path }} + destination: + server: https://kubernetes.default.svc + namespace: {{ .namespace }} + syncPolicy: + automated: + prune: true + selfHeal: true +{{ end }} diff --git a/charts/gitops-bootstrap/values.yaml b/charts/gitops-bootstrap/values.yaml new file mode 100644 index 0000000..47faee5 --- /dev/null +++ b/charts/gitops-bootstrap/values.yaml @@ -0,0 +1,8 @@ +argocd: + applications: [] + # - name: root-apps + # namespace: argocd + # project: default + # repository: + # branch: + # path: