fix: misc fixes and simplifications for atlantis, sorcerer and plume
This commit is contained in:
@@ -1,20 +1,17 @@
|
|||||||
bases:
|
bases:
|
||||||
- ../envs/environments.yaml.gotmpl
|
- ../envs/environments.yaml.gotmpl
|
||||||
|
|
||||||
repositories:
|
# repositories:
|
||||||
- name: oceanbox
|
# - name: oceanbox
|
||||||
url: "git+https://git:{{ requiredEnv "HELM_GIT_ACCESS_TOKEN" }}@gitlab.com/oceanbox/manifests@charts?ref=main"
|
# url: "git+https://git:{{ requiredEnv "HELM_GIT_ACCESS_TOKEN" }}@gitlab.com/oceanbox/manifests@charts?ref=main"
|
||||||
|
|
||||||
commonLabels:
|
commonLabels:
|
||||||
tier: system
|
tier: oceanbox
|
||||||
|
|
||||||
apiVersions:
|
|
||||||
- monitoring.coreos.com/v1
|
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
- name: {{ .Environment.Name }}-atlantis
|
- name: {{ .Environment.Name }}-atlantis
|
||||||
namespace: {{ .Environment.Name }}-atlantis
|
namespace: {{ .Environment.Name }}-atlantis
|
||||||
chart: oceanbox/atlantis
|
chart: ../charts/atlantis
|
||||||
condition: atlantis.enabled
|
condition: atlantis.enabled
|
||||||
values:
|
values:
|
||||||
- ../values/atlantis/values/values.yaml.gotmpl
|
- ../values/atlantis/values/values.yaml.gotmpl
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ bases:
|
|||||||
- ../envs/environments.yaml.gotmpl
|
- ../envs/environments.yaml.gotmpl
|
||||||
|
|
||||||
commonLabels:
|
commonLabels:
|
||||||
tier: plume
|
tier: oceanbox
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
- name: plume
|
- name: plume
|
||||||
|
|||||||
@@ -1,15 +1,12 @@
|
|||||||
bases:
|
bases:
|
||||||
- ../envs/environments.yaml.gotmpl
|
- ../envs/environments.yaml.gotmpl
|
||||||
|
|
||||||
repositories:
|
# repositories:
|
||||||
- name: oceanbox
|
# - name: oceanbox
|
||||||
url: "git+https://git:{{ requiredEnv "HELM_GIT_ACCESS_TOKEN" }}@gitlab.com/oceanbox/manifests@charts?ref=main"
|
# url: "git+https://git:{{ requiredEnv "HELM_GIT_ACCESS_TOKEN" }}@gitlab.com/oceanbox/manifests@charts?ref=main"
|
||||||
|
|
||||||
commonLabels:
|
commonLabels:
|
||||||
tier: system
|
tier: oceanbox
|
||||||
|
|
||||||
apiVersions:
|
|
||||||
- monitoring.coreos.com/v1
|
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
- name: {{ .Environment.Name }}-sorcerer
|
- name: {{ .Environment.Name }}-sorcerer
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
atlantis:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
atlantis:
|
atlantis:
|
||||||
enabled: true
|
enabled: false
|
||||||
autosync: true
|
autosync: {{ if eq .Environment.Name "prod" }} false {{ else }} true {{ end }}
|
||||||
env: {{ .Environment.Name }}
|
env: {{ .Environment.Name }}
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,9 @@ spec:
|
|||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
- ApplyOutOfSyncOnly=true
|
- ApplyOutOfSyncOnly=true
|
||||||
# automated:
|
{{- if .Values.atlantis.autosync }}
|
||||||
# prune: true
|
automated:
|
||||||
# selfHeal: false
|
prune: true
|
||||||
|
selfHeal: false
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
@@ -1,4 +1,2 @@
|
|||||||
plume:
|
plume:
|
||||||
enabled: true
|
enabled: true
|
||||||
envs:
|
|
||||||
- staging
|
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
plume:
|
|
||||||
enabled: true
|
|
||||||
envs:
|
|
||||||
- staging
|
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
plume:
|
plume:
|
||||||
enabled: false
|
enabled: true # for now
|
||||||
autosync: true
|
autosync: {{ if eq .Environment.Name "prod" }} false {{ else }} true {{ end }}
|
||||||
|
env: {{ .Environment.Name }}
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
{{ if .Values.clusterConfig.argo.enabled }}
|
{{ if .Values.clusterConfig.argo.enabled }}
|
||||||
{{- range .Values.plume.envs }}
|
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ . }}-plume
|
name: {{ .Values.plume.env }}-plume
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
@@ -11,28 +10,29 @@ metadata:
|
|||||||
- resources-finalizer.argocd.argoproj.io
|
- resources-finalizer.argocd.argoproj.io
|
||||||
spec:
|
spec:
|
||||||
destination:
|
destination:
|
||||||
namespace: {{ . }}-plume
|
namespace: {{ .Values.plume.env }}-plume
|
||||||
server: https://10.255.241.99:4443
|
server: https://10.255.241.99:4443
|
||||||
project: default
|
project: default
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: {{ .Values.clusterConfig.manifests }}
|
||||||
targetRevision: HEAD
|
targetRevision: HEAD
|
||||||
path: helmfile.d
|
path: helmfile.d
|
||||||
plugin:
|
plugin:
|
||||||
name: helmfile-cmp
|
name: helmfile-cmp
|
||||||
env:
|
env:
|
||||||
- name: CLUSTER_NAME
|
- name: CLUSTER_NAME
|
||||||
value: {{ $.Values.clusterConfig.cluster }}
|
value: {{ .Values.clusterConfig.cluster }}
|
||||||
- name: HELMFILE_ENVIRONMENT
|
- name: HELMFILE_ENVIRONMENT
|
||||||
value: {{ . }}
|
value: {{ .Values.plume.env }}
|
||||||
- name: HELMFILE_FILE_PATH
|
- name: HELMFILE_FILE_PATH
|
||||||
value: plume.yaml.gotmpl
|
value: plume.yaml.gotmpl
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
- ApplyOutOfSyncOnly=true
|
- ApplyOutOfSyncOnly=true
|
||||||
# automated:
|
{{- if .Values.plume.autosync }}
|
||||||
# prune: true
|
automated:
|
||||||
# selfHeal: false
|
prune: true
|
||||||
{{- end }}
|
selfHeal: false
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
+3
@@ -1,3 +1,6 @@
|
|||||||
|
image:
|
||||||
|
tag: replaceme
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: "nginx"
|
className: "nginx"
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
sorcerer:
|
||||||
|
enabled: true
|
||||||
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
sorcerer:
|
sorcerer:
|
||||||
enabled: true
|
enabled: true # for now
|
||||||
autosync: false
|
autosync: {{ if eq .Environment.Name "prod" }} false {{ else }} true {{ end }}
|
||||||
env: {{ .Environment.Name }}
|
env: {{ .Environment.Name }}
|
||||||
|
|
||||||
|
|||||||
@@ -46,7 +46,9 @@ spec:
|
|||||||
syncOptions:
|
syncOptions:
|
||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
- ApplyOutOfSyncOnly=true
|
- ApplyOutOfSyncOnly=true
|
||||||
# automated:
|
{{- if .Values.sorcerer.autosync }}
|
||||||
# prune: true
|
automated:
|
||||||
# selfHeal: false
|
prune: true
|
||||||
|
selfHeal: false
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|||||||
Reference in New Issue
Block a user