fix: misc resource management
This commit is contained in:
@@ -26,8 +26,8 @@ spec:
|
|||||||
destination:
|
destination:
|
||||||
namespace: atlantis
|
namespace: atlantis
|
||||||
server: "{{ .cluster }}"
|
server: "{{ .cluster }}"
|
||||||
source:
|
sources:
|
||||||
repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: dev
|
||||||
path: charts/archmeister
|
path: charts/archmeister
|
||||||
plugin:
|
plugin:
|
||||||
@@ -37,6 +37,9 @@ spec:
|
|||||||
string: "{{ .env }}"
|
string: "{{ .env }}"
|
||||||
- name: hostname
|
- name: hostname
|
||||||
string: "{{ .hostname }}"
|
string: "{{ .hostname }}"
|
||||||
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
|
targetRevision: dev
|
||||||
|
path: charts/archmeister/manifests
|
||||||
templatePatch: |
|
templatePatch: |
|
||||||
{{- if .autoSync }}
|
{{- if .autoSync }}
|
||||||
spec:
|
spec:
|
||||||
|
|||||||
@@ -4,23 +4,28 @@ metadata:
|
|||||||
name: hipster
|
name: hipster
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
spec:
|
spec:
|
||||||
|
goTemplate: true
|
||||||
generators:
|
generators:
|
||||||
- list:
|
- list:
|
||||||
elements:
|
elements:
|
||||||
- cluster: https://kubernetes.default.svc
|
- cluster: https://kubernetes.default.svc
|
||||||
env: prod
|
env: prod
|
||||||
hostname: hipster.srv.oceanbox.io
|
hostname: hipster.srv.oceanbox.io
|
||||||
|
autoSync: false
|
||||||
|
prune: true
|
||||||
- cluster: https://staging-vcluster.staging-vcluster:443
|
- cluster: https://staging-vcluster.staging-vcluster:443
|
||||||
env: staging
|
env: staging
|
||||||
hostname: hipster.beta.oceanbox.io
|
hostname: hipster.beta.oceanbox.io
|
||||||
|
autoSync: true
|
||||||
|
prune: true
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: '{{ env }}-hipster'
|
name: '{{ .env }}-hipster'
|
||||||
spec:
|
spec:
|
||||||
project: atlantis
|
project: atlantis
|
||||||
destination:
|
destination:
|
||||||
namespace: atlantis
|
namespace: atlantis
|
||||||
server: '{{ cluster }}'
|
server: '{{ .cluster }}'
|
||||||
sources:
|
sources:
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: dev
|
||||||
@@ -29,9 +34,16 @@ spec:
|
|||||||
name: kustomize-helm-with-rewrite
|
name: kustomize-helm-with-rewrite
|
||||||
parameters:
|
parameters:
|
||||||
- name: env
|
- name: env
|
||||||
string: '{{ env }}'
|
string: '{{ .env }}'
|
||||||
- name: hostname
|
- name: hostname
|
||||||
string: '{{ hostname }}'
|
string: '{{ .hostname }}'
|
||||||
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
- repoURL: https://gitlab.com/oceanbox/manifests.git
|
||||||
targetRevision: dev
|
targetRevision: dev
|
||||||
path: charts/hipster/manifests
|
path: charts/hipster/manifests
|
||||||
|
templatePatch: |
|
||||||
|
{{- if .autoSync }}
|
||||||
|
spec:
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: {{ .prune }}
|
||||||
|
{{- end }}
|
||||||
|
|||||||
-2
@@ -3,8 +3,6 @@ kind: Secret
|
|||||||
metadata:
|
metadata:
|
||||||
name: archmeister-env
|
name: archmeister-env
|
||||||
namespace: atlantis
|
namespace: atlantis
|
||||||
labels:
|
|
||||||
oceanbox.io/atlantis-env: sync
|
|
||||||
stringData:
|
stringData:
|
||||||
OICD_CLIENT_SECRET: ieK3yak9zoh3yeewee8quahY6seiv7Ro
|
OICD_CLIENT_SECRET: ieK3yak9zoh3yeewee8quahY6seiv7Ro
|
||||||
SEQ_APIKEY: bFdYPKLDvnau3fQa1vRV
|
SEQ_APIKEY: bFdYPKLDvnau3fQa1vRV
|
||||||
@@ -3,8 +3,6 @@ kind: Secret
|
|||||||
metadata:
|
metadata:
|
||||||
name: hipster-env
|
name: hipster-env
|
||||||
namespace: atlantis
|
namespace: atlantis
|
||||||
labels:
|
|
||||||
oceanbox.io/atlantis-env: sync
|
|
||||||
stringData:
|
stringData:
|
||||||
SEQ_APIKEY: bFdYPKLDvnau3fQa1vRV
|
SEQ_APIKEY: bFdYPKLDvnau3fQa1vRV
|
||||||
type: Opaque
|
type: Opaque
|
||||||
|
|||||||
Reference in New Issue
Block a user