Skip to content

Commit

Permalink
Fix missing apiserver module (#1229)
Browse files Browse the repository at this point in the history
release 0.6.0
  • Loading branch information
mfordjody authored Nov 30, 2023
1 parent 95657df commit ffc2b9a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions charts/admin-stack/charts/dubbo-admin/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,20 @@ Create the name of the service account to use
{{- else }}
{{- default "default" .Values.serviceAccount.nameTest }}
{{- end }}
{{- end }}

{{- define "dubbo-admin.rbac.apiVersion" -}}
{{- if $.Capabilities.APIVersions.Has "rbac.authorization.k8s.io/v1" }}
{{- print "rbac.authorization.k8s.io/v1" }}
{{- else }}
{{- print "rbac.authorization.k8s.io/v1beta1" }}
{{- end }}
{{- end }}

{{- define "dubbo-admin.podDisruptionBudget.apiVersion" -}}
{{- if $.Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" }}
{{- print "policy/v1" }}
{{- else }}
{{- print "policy/v1beta1" }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: {{ include "dubbo-admin.fullname" . }}
{{- end }}
subjects:
- kind: ServiceAccount
name: {{ include "dubbo-admin.serviceAccountName" . }}
namespace: {{ include "dubbo-admin.namespace" . }}
{{- end }}
2 changes: 1 addition & 1 deletion charts/admin-stack/charts/dubbo-admin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ image:
repository: apache/dubbo-admin
##
##
tag: "0.5.0"
tag: "0.6.0"
##
##
debug: false
Expand Down

0 comments on commit ffc2b9a

Please sign in to comment.