Compare commits
No commits in common. "helmfile-main" and "argo-applicationset-main" have entirely different histories.
helmfile-m
...
argo-appli
|
@ -0,0 +1,37 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: helm-releases
|
||||
namespace: argo-system
|
||||
spec:
|
||||
syncPolicy:
|
||||
preserveResourcesOnDeletion: true
|
||||
generators:
|
||||
- git:
|
||||
repoURL: https://git.badhouseplants.net/allanger/helmfile-vs-argo.git
|
||||
revision: argo-applicationset-main
|
||||
files:
|
||||
- path: "cluster1/*"
|
||||
- git:
|
||||
repoURL: https://git.badhouseplants.net/allanger/helmfile-vs-argo.git
|
||||
revision: argo-applicationset-main
|
||||
files:
|
||||
- path: "common/*"
|
||||
template:
|
||||
metadata:
|
||||
name: "{{ argo.application }}"
|
||||
namespace: argo-system
|
||||
spec:
|
||||
project: "{{ argo.project }}"
|
||||
source:
|
||||
helm:
|
||||
valueFiles:
|
||||
- values.yaml
|
||||
values: |-
|
||||
{{ values }}
|
||||
repoURL: "{{ chart.repo }}"
|
||||
targetRevision: "{{ chart.version }}"
|
||||
chart: "{{ chart.name }}"
|
||||
destination:
|
||||
server: "{{ argo.cluster }}"
|
||||
namespace: "{{ argo.namespace }}"
|
|
@ -0,0 +1,37 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: helm-releases
|
||||
namespace: argo-system
|
||||
spec:
|
||||
syncPolicy:
|
||||
preserveResourcesOnDeletion: true
|
||||
generators:
|
||||
- git:
|
||||
repoURL: https://git.badhouseplants.net/allanger/helmfile-vs-argo.git
|
||||
revision: argo-applicationset-main
|
||||
files:
|
||||
- path: "cluster2/*"
|
||||
- git:
|
||||
repoURL: https://git.badhouseplants.net/allanger/helmfile-vs-argo.git
|
||||
revision: argo-applicationset-main
|
||||
files:
|
||||
- path: "common/*"
|
||||
template:
|
||||
metadata:
|
||||
name: "{{ argo.application }}"
|
||||
namespace: argo-system
|
||||
spec:
|
||||
project: "{{ argo.project }}"
|
||||
source:
|
||||
helm:
|
||||
valueFiles:
|
||||
- values.yaml
|
||||
values: |-
|
||||
{{ values }}
|
||||
repoURL: "{{ chart.repo }}"
|
||||
targetRevision: "{{ chart.version }}"
|
||||
chart: "{{ chart.name }}"
|
||||
destination:
|
||||
server: "{{ argo.cluster }}"
|
||||
namespace: "{{ argo.namespace }}"
|
|
@ -0,0 +1,37 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: ApplicationSet
|
||||
metadata:
|
||||
name: helm-releases
|
||||
namespace: argo-system
|
||||
spec:
|
||||
syncPolicy:
|
||||
preserveResourcesOnDeletion: true
|
||||
generators:
|
||||
- git:
|
||||
repoURL: https://git.badhouseplants.net/allanger/helmfile-vs-argo.git
|
||||
revision: argo-applicationset-main
|
||||
files:
|
||||
- path: "cluster_test/*"
|
||||
- git:
|
||||
repoURL: https://git.badhouseplants.net/allanger/helmfile-vs-argo.git
|
||||
revision: argo-applicationset-main
|
||||
files:
|
||||
- path: "common/*"
|
||||
template:
|
||||
metadata:
|
||||
name: "{{ argo.application }}"
|
||||
namespace: argo-system
|
||||
spec:
|
||||
project: "{{ argo.project }}"
|
||||
source:
|
||||
helm:
|
||||
valueFiles:
|
||||
- values.yaml
|
||||
values: |-
|
||||
{{ values }}
|
||||
repoURL: "{{ chart.repo }}"
|
||||
targetRevision: "{{ chart.version }}"
|
||||
chart: "{{ chart.name }}"
|
||||
destination:
|
||||
server: "{{ argo.cluster }}"
|
||||
namespace: "{{ argo.namespace }}"
|
|
@ -1,7 +0,0 @@
|
|||
---
|
||||
{{ readFile "../releases.yaml" }}
|
||||
|
||||
bases:
|
||||
- ../environments.yaml
|
||||
- ../repositories.yaml
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
---
|
||||
{{ readFile "../releases.yaml" }}
|
||||
|
||||
bases:
|
||||
- ../environments.yaml
|
||||
- ../repositories.yaml
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
---
|
||||
{{ readFile "../releases.yaml" }}
|
||||
|
||||
bases:
|
||||
- ../environments.yaml
|
||||
- ../repositories.yaml
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
environments:
|
||||
cluster_test:
|
||||
kubeContext: kind-kind
|
||||
cluster1:
|
||||
kubeContext: kind-kind
|
||||
cluster2:
|
||||
kubeContext: kind-kind
|
|
@ -1,11 +0,0 @@
|
|||
---
|
||||
{{ readFile "releases.yaml" }}
|
||||
|
||||
bases:
|
||||
- environments.yaml
|
||||
- repositories.yaml
|
||||
|
||||
releases:
|
||||
|
||||
helmfiles:
|
||||
- path: {{.Environment.Name }}/helmfile.yaml
|
|
@ -1,31 +0,0 @@
|
|||
---
|
||||
templates:
|
||||
crd-management-hook: &crd-management-hook
|
||||
hooks:
|
||||
- events: ["preapply"]
|
||||
showlogs: true
|
||||
command: "sh"
|
||||
args:
|
||||
- -c
|
||||
- "helm show crds {{ .Release.Chart }} --version {{ .Release.Version }}| kubectl apply -f -"
|
||||
- events: ["prepare"]
|
||||
showlogs: true
|
||||
command: "sh"
|
||||
args:
|
||||
- -c
|
||||
- "helm show crds {{ .Release.Chart }} --version {{ .Release.Version }} | kubectl diff -f - || true"
|
||||
- events: ["postuninstall"]
|
||||
showlogs: true
|
||||
command: "sh"
|
||||
args:
|
||||
- -c
|
||||
- "helm show crds {{ .Release.Chart }} --version {{ .Release.Version }} | kubectl delete -f -"
|
||||
helm-vendor-hook: &helm-vendor-hook
|
||||
hooks:
|
||||
- events: ["prepare"]
|
||||
showlogs: false
|
||||
command: "sh"
|
||||
args:
|
||||
- -c
|
||||
- "make vendor_chart chart={{ .Release.Chart }} version={{ .Release.Version }}"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
---
|
||||
repositories:
|
Reference in New Issue