Switch to using kustomize

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2023-12-15 13:22:15 +00:00
parent a3b2defb4c
commit e5be0e4f4b
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78
3 changed files with 18 additions and 0 deletions

View File

@ -14,6 +14,9 @@ spec:
path: manifests/tailscale-operator path: manifests/tailscale-operator
repoURL: "https://git.cluster.fun/AverageMarcus/cluster.fun.git" repoURL: "https://git.cluster.fun/AverageMarcus/cluster.fun.git"
targetRevision: HEAD targetRevision: HEAD
kustomize:
commonLabels:
app.kubernetes.io/instance: scaleway
syncPolicy: syncPolicy:
automated: {} automated: {}
syncOptions: syncOptions:

View File

@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
metadata:
name: tailscale-operator
commonLabels:
app.kubernetes.io/name: tailscale-operator
app.kubernetes.io/instance: tailscale-operator
resources:
- rbac.yaml
- manifest.yaml

View File

@ -35,6 +35,9 @@ spec:
- env: - env:
- name: OPERATOR_HOSTNAME - name: OPERATOR_HOSTNAME
value: tailscale-operator value: tailscale-operator
valueFrom:
fieldRef:
fieldPath: metadata.labels['app.kubernetes.io/instance']
- name: OPERATOR_SECRET - name: OPERATOR_SECRET
value: operator value: operator
- name: OPERATOR_LOGGING - name: OPERATOR_LOGGING