Skip to content

Commit

Permalink
namespace-v0.2.3 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gnmsa committed Nov 8, 2024
1 parent c821453 commit 842a392
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/namespace/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# namespace

![Version: 0.2.2](https://img.shields.io/badge/Version-0.2.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.2](https://img.shields.io/badge/AppVersion-0.2.2-informational?style=flat-square)
![Version: 0.2.3](https://img.shields.io/badge/Version-0.2.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.3](https://img.shields.io/badge/AppVersion-0.2.3-informational?style=flat-square)

Common Namespace Resource Chart

Expand Down
5 changes: 1 addition & 4 deletions charts/namespace/templates/rolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@ metadata:
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
namespace: {{ include "namespace.namespace" $ }}
subjects:
{{- with $value.subjects }}
{{- toYaml . | nindent 4 }}
{{- end }}
subjects: {{- toYaml $value.subjects | nindent 2 }}
roleRef:
kind: {{ $value.kind }}
name: {{ $value.role }}
Expand Down
6 changes: 5 additions & 1 deletion charts/namespace/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,17 @@
"additionalProperties": true,
"type": "object"
},
"group": {
"kind": {
"additionalProperties": true,
"type": "string"
},
"role": {
"additionalProperties": true,
"type": "string"
},
"subjects": {
"additionalProperties": true,
"type": "array"
}
},
"type": "object"
Expand Down
5 changes: 4 additions & 1 deletion charts/namespace/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ clusterRoles: {}
# annotations:
# type: object
# additionalProperties: true
# group:
# subjects:
# type: array
# additionalProperties: true
# kind:
# type: string
# additionalProperties: true
# role:
Expand Down

0 comments on commit 842a392

Please sign in to comment.