second-front / uchart

universal app chart with argocdWrapper
MIT License
1 stars 0 forks source link

enabling network policies causes an error if minio-instances key is not set #11

Closed zswanson closed 1 month ago

zswanson commented 1 month ago

The following setting causes an immediate templating error, while trying to set up the app network policies.

networkPolicies:
  enabled: true
Error: template: uchart/templates/networkPolicies/minio-instance-policies.yaml:2:36: executing "uchart/templates/networkPolicies/minio-instance-policies.yaml" at <index .Values "minio-instance" "enabled">: error calling index: index of nil pointer

Adding this works around it for now.

minio-instance:
  enabled: false
drduker commented 1 month ago

Removed old minio-instance netpol - https://github.com/second-front/uchart/commit/8a317a48b08cbca2f1db46bf6c40c3cd909df1ac

This is no longer needed. Netpols should be either included manually with the customPolicies, included in the subChart itself or by adding in the platform networkPolices chart.