Skip to content

Fix OPA deployment checksum/config annotation#118

Merged
garryod merged 1 commit intomainfrom
fix-opa-config-checksum
May 28, 2024
Merged

Fix OPA deployment checksum/config annotation#118
garryod merged 1 commit intomainfrom
fix-opa-config-checksum

Conversation

@MattPrit
Copy link
Collaborator

Since 134421a, .Values.config in charts/opa/templates/deployment.yaml has evaluated to null. This causes the checksum/config annotation on the OPA deployment to not work correctly. If values.yaml are changed such that the output charts/opa/templates/opa-config.yaml is changed but charts/opa/templates/deployment.yaml is not directly updated, helm upgrade will not cause the deployment to be updated, and OPA will not be configured as desired. An example would be adding an extra policy bundle.

This change should fix this issue by using the output value of charts/opa/templates/opa-config.yaml in the checksum.

@MattPrit MattPrit requested a review from garryod May 24, 2024 15:45
@MattPrit MattPrit force-pushed the fix-opa-config-checksum branch from c4ab530 to 68f1f66 Compare May 28, 2024 10:48
@garryod garryod merged commit e0eb3a3 into main May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants