diff --git a/k8s/argocd/templates/app-longhorn.yaml b/k8s/argocd/templates/app-longhorn.yaml deleted file mode 100644 index 2172ce9..0000000 --- a/k8s/argocd/templates/app-longhorn.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# {{- if .Values.selfapp.enabled -}} -# --- -# apiVersion: argoproj.io/v1alpha1 -# kind: Application -# metadata: -# name: longhorn -# namespace: "{{ .Release.Namespace }}" -# spec: -# project: default -# source: -# chart: longhorn -# repoURL: https://charts.longhorn.io -# targetRevision: v1.4.0 -# helm: -# releaseName: longhorn -# destination: -# server: "https://kubernetes.default.svc" -# namespace: longhorn -# syncPolicy: -# syncOptions: -# - CreateNamespace=true -# --- - -# {{- end -}} \ No newline at end of file diff --git a/k8s/argocd/templates/appset-infra.yaml b/k8s/argocd/templates/appset-infra.yaml new file mode 100644 index 0000000..1b222f5 --- /dev/null +++ b/k8s/argocd/templates/appset-infra.yaml @@ -0,0 +1,47 @@ +{{- if .Values.selfapp.enabled -}} +--- +apiVersion: argoproj.io/v1alpha1 +kind: ApplicationSet +metadata: + name: "infra" +spec: + generators: + - git: + repoURL: "git@github.com:{{ .Values.selfapp.repo }}.git" + revision: "{{ .Values.selfapp.commit }}" + directories: + - path: k8s/infra/* + template: + metadata: + name: '{{ `{{path.basename}}` }}' + spec: + project: "infra" + source: + repoURL: "git@github.com:{{ .Values.selfapp.repo }}.git" + targetRevision: "{{ .Values.selfapp.commit }}" + path: '{{ `{{path}}` }}' + destination: + server: https://kubernetes.default.svc + namespace: '{{ `{{path.basename}}` }}' +{{- end -}} + + +# apiVersion: argoproj.io/v1alpha1 +# kind: Application +# metadata: +# name: longhorn +# namespace: "{{ .Release.Namespace }}" +# spec: +# project: default +# source: +# chart: longhorn +# repoURL: https://charts.longhorn.io +# targetRevision: v1.4.0 +# helm: +# releaseName: longhorn +# destination: +# server: "https://kubernetes.default.svc" +# namespace: longhorn +# syncPolicy: +# syncOptions: +# - CreateNamespace=true \ No newline at end of file diff --git a/k8s/argocd/templates/appset-services.yaml b/k8s/argocd/templates/appset-services.yaml deleted file mode 100644 index b7a6cb4..0000000 --- a/k8s/argocd/templates/appset-services.yaml +++ /dev/null @@ -1,30 +0,0 @@ -{{- if .Values.selfapp.enabled -}} -# --- -# apiVersion: argoproj.io/v1alpha1 -# kind: ApplicationSet -# metadata: -# name: "infra" -# namespace: "{{ .Release.Namespace }}" -# spec: -# generators: -# - git: -# repoURL: "git@github.com:{{ .Values.selfapp.repo }}.git" -# revision: "{{ .Values.selfapp.commit }}" -# directories: -# - path: k8s/infra/* -# template: -# metadata: -# name: '{{ `{{path.basename}}` }}' -# spec: -# project: "default" -# source: -# repoURL: "git@github.com:{{ .Values.selfapp.repo }}.git" -# targetRevision: "{{ .Values.selfapp.commit }}" -# path: '{{ `{{path}}` }}' -# destination: -# server: https://kubernetes.default.svc -# namespace: '{{ `{{path.basename}}` }}' -# syncPolicy: -# syncOptions: -# - CreateNamespace=true -{{- end -}} \ No newline at end of file diff --git a/k8s/argocd/templates/project-services.yaml b/k8s/argocd/templates/project-infra.yaml similarity index 100% rename from k8s/argocd/templates/project-services.yaml rename to k8s/argocd/templates/project-infra.yaml