diff --git a/mirrord-operator/Chart.yaml b/mirrord-operator/Chart.yaml index cd25cb6..b102c6b 100644 --- a/mirrord-operator/Chart.yaml +++ b/mirrord-operator/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.11.0 +version: 1.11.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/mirrord-operator/templates/namespaced-role.yaml b/mirrord-operator/templates/namespaced-role.yaml index e926d0c..512bca2 100644 --- a/mirrord-operator/templates/namespaced-role.yaml +++ b/mirrord-operator/templates/namespaced-role.yaml @@ -6,8 +6,8 @@ metadata: namespace: {{.}} labels: {{- include "mirrord-operator.labels" $ | nindent 4 }} - {{- if index .Values.role "mirrord-operator-user" "labels" }} - {{- toYaml (index .Values.role "mirrord-operator-user" "labels") | nindent 4 }} + {{- if index $.Values.role "mirrord-operator-user" "labels" }} + {{- toYaml (index $.Values.role "mirrord-operator-user" "labels") | nindent 4 }} {{- end }} rules: {{- include "mirrord-operator.rules" . | nindent 0 }} diff --git a/test_values/operator_rolenamespaces.yaml b/test_values/operator_rolenamespaces.yaml new file mode 100644 index 0000000..47cac3b --- /dev/null +++ b/test_values/operator_rolenamespaces.yaml @@ -0,0 +1,9 @@ +license: + file: + secret: mirrord-operator-license + data: + license.pem: "DOESN'TNEEDTOBOOTSOITCANBEINVALID" + +roleNamespaces: + - namespace1 + - namespace2