cybozu-go / accurate

Kubernetes controller for multi-tenancy. It propagates resources between namespaces accurately and allows tenant users to create/delete sub-namespaces.
https://cybozu-go.github.io/accurate/
Apache License 2.0
38 stars 5 forks source link

[helm] `namingPolicies` in values.yaml is not reflected in configmap #41

Closed zoetrope closed 2 years ago

zoetrope commented 2 years ago

Describe the bug

NamingPolicy is now supported in #17. However, namingpolicies in values.yaml is not reflected in configmap.

Because namingpolicies is not described in configmap.yaml. https://github.com/cybozu-go/accurate/blob/da7508cf549fd7c49668d515e759345d6c6824a6/charts/accurate/templates/configmap.yaml

Environments

To Reproduce Steps to reproduce the behavior:

  1. Prepare a values.yaml containing namingPolicies as below:
controller:
  config:
    namingPolicies:
      - root:  foo
        match: foo_.*
  1. Deploy accurate using Helm with the values.yaml.
helm install --create-namespace --namespace accurate accurate -f values.yaml accurate/accurate
  1. The generated configmap does not contain namingPolicies

Expected behavior The configmap should contain namingPolicies.

ymmt2005 commented 2 years ago

Fixed in #42