-
Notifications
You must be signed in to change notification settings - Fork 103
Bugfix/fix kk configure reconciliation #589
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
Changes from 3 commits
9de782e
191c8b4
7afb85e
2b3c1d3
b33d348
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -195,4 +195,7 @@ releases: | |||||||||||||||||||||
chart: cozy-keycloak-configure | ||||||||||||||||||||||
namespace: cozy-keycloak | ||||||||||||||||||||||
dependsOn: [keycloak-operator] | ||||||||||||||||||||||
values: | ||||||||||||||||||||||
cozyValues: | | ||||||||||||||||||||||
{{ (lookup "v1" "ConfigMap" "cozy-system" "cozystack").data | toJson | sha256sum }} | ||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Add error handling for ConfigMap lookup. The code assumes that the Consider adding a check: values:
cozyValues: |
- {{ (lookup "v1" "ConfigMap" "cozy-system" "cozystack").data | toJson | sha256sum }}
+ {{- $config := lookup "v1" "ConfigMap" "cozy-system" "cozystack" }}
+ {{- if not $config }}
+ {{- fail "ERROR: cozystack ConfigMap not found in cozy-system namespace" }}
+ {{- end }}
+ {{ $config.data | toJson | sha256sum }} 📝 Committable suggestion
Suggested change
klinch0 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||
{{- end }} |
Uh oh!
There was an error while loading. Please reload this page.