Skip to content

Commit

Permalink
Merge pull request #172 from mlbiam/master
Browse files Browse the repository at this point in the history
fix sync of rolebindings and metadata objects
  • Loading branch information
mlbiam authored Aug 27, 2024
2 parents 025d8ca + b758386 commit 1c5b24c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion openunison-k8s-cluster-management/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,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.
version: 3.0.32
version: 3.0.34

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ spec:
srcType: yaml
writeToRequest: "$useGit$"
requestAttribute: git-secret-cluster-k8s-$nameSpace$
path: {{ $root.Values.openunison.naas.git.prefix }}/$nameSpace$/groupmetadatas/k8s-namespace-{{ $role.name }}-$cluster$-$nameSpace$.yaml
path: {{ $root.Values.openunison.naas.git.prefix }}/{{ $root.Release.Namespace }}/groupmetadatas/k8s-namespace-{{ $role.name }}-$cluster$-$nameSpace$.yaml
{{ end }}
{{ range $role := .Values.openunison.naas.groups.roles }}
- taskType: customTask
Expand Down Expand Up @@ -189,7 +189,7 @@ spec:
srcType: yaml
writeToRequest: "$useGit$"
requestAttribute: git-secret-cluster-k8s-$nameSpace$
path: {{ $root.Values.openunison.naas.git.prefix }}/$nameSpace$/groupmetadatas/k8s-namespace-{{ $role.name }}-$cluster$-$nameSpace$.yaml
path: {{ $root.Values.openunison.naas.git.prefix }}/{{ $root.Release.Namespace }}/groupmetadatas/k8s-namespace-{{ $role.name }}-$cluster$-$nameSpace$.yaml
{{ end }}


Expand Down Expand Up @@ -302,7 +302,7 @@ spec:
srcType: yaml
writeToRequest: "$useGit$"
requestAttribute: git-secret-namespace-$cluster$-$nameSpace$
path: $gitPath$/$nameSpace$/rolebindings/{{ $role.name }}-binding{{ $root.Values.openunison.naas.groups.internal.suffix }}.yaml
path: $gitPath$/$nameSpace$/rolebindings/{{ $bind.binding }}-binding{{ $root.Values.openunison.naas.groups.internal.suffix }}.yaml
{{ end }}
{{ end }}
{{ range $role := .Values.openunison.naas.groups.roles }}
Expand All @@ -325,11 +325,10 @@ spec:
kind: {{ $bind.type }}
name: {{ $bind.name }}
apiGroup: rbac.authorization.k8s.io
kind: RoleBinding
srcType: yaml
writeToRequest: "$useGit$"
requestAttribute: git-secret-namespace-$cluster$-$nameSpace$
path: $gitPath$/$nameSpace$/rolebindings/{{ $role.name }}-binding{{ $root.Values.openunison.naas.groups.internal.suffix }}.yaml
path: $gitPath$/$nameSpace$/rolebindings/{{ $bind.binding }}-binding{{ $root.Values.openunison.naas.groups.internal.suffix }}.yaml
{{ end }}
{{ end }}
{{ end }}
Expand Down Expand Up @@ -360,11 +359,10 @@ spec:
kind: {{ $bind.type }}
name: {{ $bind.name }}
apiGroup: rbac.authorization.k8s.io
kind: RoleBinding
srcType: yaml
writeToRequest: "$useGit$"
requestAttribute: git-secret-namespace-$cluster$-$nameSpace$
path: $gitPath$/$nameSpace$/rolebindings/{{ $role.bindingname }}-binding{{ $root.Values.openunison.naas.groups.external.suffix }}.yaml
path: $gitPath$/$nameSpace$/rolebindings/{{ $bind.binding }}-binding{{ $root.Values.openunison.naas.groups.external.suffix }}.yaml
{{ end }}
{{ end }}
{{ range $role := .Values.openunison.naas.groups.roles }}
Expand All @@ -391,11 +389,10 @@ spec:
kind: {{ $bind.type }}
name: {{ $bind.name }}
apiGroup: rbac.authorization.k8s.io
kind: RoleBinding
srcType: yaml
writeToRequest: "$useGit$"
requestAttribute: git-secret-namespace-$cluster$-$nameSpace$
path: $gitPath$/$nameSpace$/rolebindings/{{ $role.bindingname }}-binding{{ $root.Values.openunison.naas.groups.external.suffix }}.yaml
path: $gitPath$/$nameSpace$/rolebindings/{{ $bind.binding }}-binding{{ $root.Values.openunison.naas.groups.external.suffix }}.yaml
{{ end }}
{{ end }}
{{ end }}
Expand All @@ -414,7 +411,7 @@ spec:
target: k8s
keyName: id_rsa
gitRepo: $clusterGitUrl$
requestObject: git-secret-cluster-$cluster$-$nameSpace$
requestObject: git-secret-cluster-k8s-$nameSpace$
commitMsg: For workflow $WORKFLOW.id$

# GitOps - Run Job to push to namespace repo
Expand Down

0 comments on commit 1c5b24c

Please sign in to comment.