Fix deprecated values (#49)
Fixes #46 ### Motivation There were some templates that relied on extra values that are deprecated. ### Modifications Modified the checks to check for non deprecated values or deprecated values. ### Verifying this change - [X] Make sure that the change passes the CI checks.
This commit is contained in:
parent
a41b6c5063
commit
8426c8de9c
@ -21,7 +21,7 @@ apiVersion: v1
|
||||
appVersion: "2.6.0"
|
||||
description: Apache Pulsar Helm chart for Kubernetes
|
||||
name: pulsar
|
||||
version: 2.6.0-1
|
||||
version: 2.6.0-2
|
||||
home: https://pulsar.apache.org
|
||||
sources:
|
||||
- https://github.com/apache/pulsar
|
||||
|
||||
@ -17,11 +17,11 @@
|
||||
# under the License.
|
||||
#
|
||||
|
||||
{{- if .Values.extra.functionsAsPods }}
|
||||
{{- if or .Values.components.functions .Values.extra.functionsAsPods }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.functions.component }}"
|
||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.functions.component }}"
|
||||
rules:
|
||||
- apiGroups: [""]
|
||||
resources:
|
||||
@ -41,20 +41,20 @@ rules:
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.functions.component }}"
|
||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.functions.component }}"
|
||||
namespace: {{ .Values.namespace }}
|
||||
---
|
||||
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.functions.component }}"
|
||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.functions.component }}"
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.functions.component }}"
|
||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.functions.component }}"
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.functions.component }}"
|
||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.functions.component }}"
|
||||
namespace: {{ .Values.namespace }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@ -17,8 +17,8 @@
|
||||
# under the License.
|
||||
#
|
||||
|
||||
{{- if .Values.extra.monitoring}}
|
||||
{{- if .Values.grafana.ingress.enabled }}
|
||||
{{- if or .Values.monitoring.grafana .Values.extra.monitoring }}
|
||||
{{- if .Values.grafana.ingress.enabled }}
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
@ -46,5 +46,5 @@ spec:
|
||||
backend:
|
||||
serviceName: "{{ template "pulsar.fullname" . }}-{{ .Values.grafana.component }}"
|
||||
servicePort: {{ .Values.grafana.ingress.port }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user