Skip to content
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

Fix ArgoCD diff on postgresql keys #441

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

bozorgmehr96
Copy link

Use with for every key in the cluster's spec.postgresql to prevent generating empty keys.

Fixes: #426

@bozorgmehr96
Copy link
Author

If there are other problems like this, give me the key names, and I will fix them.

@pschichtel
Copy link

@bozorgmehr96 this is my ignoreDifferences rule:

group: postgresql.cnpg.io
kind: Cluster
jsonPointers:
- /spec/bootstrap/initdb/postInitApplicationSQL
- /spec/managed
- /spec/postgresql/shared_preload_libraries
- /spec/priorityClassName
- /spec/postgresql/pg_hba
- /spec/postgresql/pg_ident

You covered the last two for me

@bozorgmehr96 bozorgmehr96 marked this pull request as draft November 5, 2024 11:50
@bozorgmehr96
Copy link
Author

@pschichtel Thanks. I wrapped them in if blocks.

@bozorgmehr96 bozorgmehr96 marked this pull request as ready for review November 5, 2024 12:10
@bozorgmehr96 bozorgmehr96 force-pushed the argocd_diff branch 2 times, most recently from 13ae008 to f8e49c2 Compare November 8, 2024 18:52
@pschichtel
Copy link

@bozorgmehr96 one more:

@bozorgmehr96
Copy link
Author

@pschichtel, can you provide a repro? It has a non-empty default value, so it shouldn't have the problem I'm trying to fix here.

@pschichtel
Copy link

@bozorgmehr96 I customized the schedule, so I don't get the defaults since it's an array. According to

and
default: barmanObjectStore
the method field is not required

@itay-grudev itay-grudev added the chart( cluster ) Related to the cluster chart label Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chart( cluster ) Related to the cluster chart
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ArgoCD is forever stuck on updating the Cluster resource generated by the cluster chart
3 participants