-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Labels
kind:questionQuestion about KSOPSQuestion about KSOPS
Description
I am using helmCharts with valuesFile to provide the configuration to the helm chart.
But when I try to build the kubernetes manifests I get the following error:
Error: missing Resource metadata
kustomization.yaml
---
helmCharts:
- name: checkmk
repo: https://checkmk.github.io/checkmk_kube_agent
version: 1.6.0
releaseName: checkmk
namespace: checkmk
includeCRDs: true
valuesFile: values.enc.yaml
generators:
- kustomize-secret-generator.yaml
kustomize-secret-generator.yaml
---
apiVersion: viaduct.ai/v1
kind: ksops
metadata:
name: checkmk-secret-generator
namespace: checkmk
files:
- values.enc.yaml
values.enc.yaml (decrypted)
clusterCollector:
ingress:
enabled: true
className: traefik
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
traefik.ingress.kubernetes.io/router.middlewares: traefik-redirect@kubernetescrd
kustomize.config.k8s.io/behavior: merge
kustomize.config.k8s.io/needs-hash: "false"
hosts:
- host: checkmk-cluster-collector.k8s.example.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: wildcard-cloudflare-production-01
hosts:
- checkmk-cluster-collector.k8s.example.com
I assume ksops decrypts the file before the values are send to kustomize? And it tries to find kubernetes manifest specific configuration parameters in the values.enc.yaml?
dmitrygusev, adamschlesinger, bamaas and atz
Metadata
Metadata
Assignees
Labels
kind:questionQuestion about KSOPSQuestion about KSOPS