-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HelmRelease not able to work with customresourcedefinition PostgresService #4743
Comments
Hi, can you put code in code blocks? It will be easier to read. Can you provide the outputs of |
flux check output - output of describe helmrelease - Warning InstallFailed helm-controller Helm install failed for release infra-test/postgres-operator-chart with chart postgres-operator-chart@20230820.052633.4: YAML parse error on postgres-operator-chart/templates/cr.yaml: error converting YAML to JSON: yaml: line 27: found character that cannot start any token Last Helm logs: 2024-04-25T06:15:28.219986786Z: skipping CustomResourceDefinition apply: policy is set to Skip |
can you also provide the |
|
I see that you own the chart git repository. The issue here is with the chart. Maybe use helm lint? There is also https://github.com/helm/chart-testing for testing your chart. |
@souleb It was not a syntax problem. There was problem in overrding values which is fixed now. But thanks for pointing me in right direction. I have one other issue though. Its about dynamic manipulation of config map. Does HelmRelease doesnt allow it? Below is the config and error
|
Describe the bug
HelmRelease not able to work postgres database. It doesnt process the code for customresourcedefinition PostgresService
Below is the chunk of the code for that crd.
patroni:
clusterName: {{default "patroni" .Values.patroni.clusterName}}
dcs:
type: {{ default "kubernetes" .Values.patroni.dcs.type }}
{{ if or (eq .Values.patroni.dcs.type "etcd3") (eq .Values.patroni.dcs.type "etcd") }}
Helm Release is not able to process this. It process it as syntax error. However this code is working fine the in environment but somehow helmrelease is not able to process it. It gives below error
YAML parse error on postgres-operator-chart/templates/cr.yaml: error converting YAML to JSON: yaml: line 27: found character that cannot start any token
Steps to reproduce
Install flux with gitrepsitory controllers and helmrelease controllers
Install postgres helm charts and try to install it with crd postgresservices
Expected behavior
It should run without failure and create the postgresservices customresourcedefintion
Screenshots and recordings
No response
OS / Distro
centos
Flux version
https://github.com/fluxcd/flux2/releases/latest/download/install.yaml
Flux check
NA
Git provider
No response
Container Registry provider
No response
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: