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

[2182] Allow null value in config map #138

Merged
merged 1 commit into from
Dec 11, 2024
Merged

[2182] Allow null value in config map #138

merged 1 commit into from
Dec 11, 2024

Conversation

saliceti
Copy link
Member

@saliceti saliceti commented Dec 10, 2024

Context

Fix for error: https://github.com/DFE-Digital/get-into-teaching-app/actions/runs/12253181382/job/34182474422
The current workaround is to provide a non-null value: DFE-Digital/get-into-teaching-app#4417

Changes proposed in this pull request

Ignore the null variable when calculating hash. We use the same behaviour for secrets

Guidance to review

Test before applying DFE-Digital/get-into-teaching-app#4417

Checklist

  • I have performed a self-review of my code, including formatting and typos
  • I have cleaned the commit history
  • I have added the Devops label
  • I have attached the pull request to the trello card

Ignore the null variable when calculating hash to work around error:
Error: Invalid template interpolation value
│
│   on vendor/modules/aks/aks/application_configuration/resources.tf line 13, in locals:
│   13:   config_map_hash = sha1(join("-", [for k, v in local.config_map_data : "$***k***:$***v***"]))
│
│ The expression result is null. Cannot include a null value in a string
│ template.

We use the same behaviour for secrets
@saliceti
Copy link
Member Author

@saliceti saliceti merged commit 8dc1508 into main Dec 11, 2024
3 checks passed
@saliceti saliceti deleted the 2182-variable-null branch December 11, 2024 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants