Skip to content

Commit

Permalink
change update to comply with golang 1.14 improvement (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzming authored Nov 6, 2020
1 parent 3787db5 commit e0a76b0
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion helm-chart-sources/pulsar-monitor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replicaCount: 1

image:
repository: kesque/pulsar-monitor
tag: 1.0.8
tag: 1.2.8
pullPolicy: IfNotPresent

imagePullSecrets: []
Expand Down
2 changes: 1 addition & 1 deletion helm-chart-sources/pulsar/templates/beamwh-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
{{- if .Values.priorityClass.enabled }}
priorityClassName: pulsar-priority
{{- end }}
{{- if (.Values.nodeSelector) and (eq .Values.pulsarBeam.nodeSelector false) }}
{{- if and (.Values.nodeSelector) (not .Values.autoRecovery.nodeSelector) }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ spec:
annotations:
{{ toYaml .Values.dashboard.annotations | indent 8 }}
spec:
{{- if (.Values.nodeSelector) and (eq .Values.dashboard.nodeSelector false) }}
{{- if and (.Values.nodeSelector) (not .Values.dashboard.nodeSelector) }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ spec:
annotations:
{{ toYaml .Values.latencymonitor.annotations | indent 8 }}
spec:
{{- if (.Values.nodeSelector) and (eq .Values.latencymonitor.nodeSelector false) }}
{{- if and (.Values.nodeSelector) (not .Values.latencymonitor.nodeSelector) }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
annotations:
{{ toYaml .Values.prometheus.annotations | indent 8 }}
spec:
{{- if (.Values.nodeSelector) and (eq .Values.prometheus.nodeSelector false) }}
{{- if and (.Values.nodeSelector) (not .Values.prometheus.nodeSelector) }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ spec:
{{- if .Values.priorityClass.enabled }}
priorityClassName: pulsar-priority
{{- end }}
{{- if (.Values.nodeSelector) and (eq .Values.stateStorage.nodeSelector false) }}
{{- if and (.Values.nodeSelector) (not .Values.stateStorage.nodeSelector) }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
{{- if .Values.priorityClass.enabled }}
priorityClassName: pulsar-priority
{{- end }}
{{- if (.Values.nodeSelector) and (eq .Values.dns.nodeSelector false) }}
{{- if and (.Values.nodeSelector) (not .Values.dns.nodeSelector) }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ spec:
priorityClassName: pulsar-priority
{{- end }}
serviceAccountName: "{{ template "pulsar.fullname" . }}-{{ .Values.function.component }}"
{{- if (.Values.nodeSelector) and (eq .Values.function.nodeSelector false) }}
{{- if and (.Values.nodeSelector) (not .Values.function.nodeSelector) }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
nodeAffinity:
{{ toYaml .Values.pulsarexpress.nodeAffinity | indent 10 }}
{{- end }}
{{- if (.Values.nodeSelector) and (eq .Values.pulsarexpress.nodeSelector false) }}
{{- if and (.Values.nodeSelector) (not .Values.pulsarexpress.nodeSelector) }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
nodeAffinity:
{{ toYaml .Values.zoonavigator.nodeAffinity | indent 10 }}
{{- end }}
{{- if (.Values.nodeSelector) and (eq .Values.zoonavigator.nodeSelector false) }}
{{- if and (.Values.nodeSelector) (not .Values.zoonavigator.nodeSelector) }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 8 }}
{{- end }}
Expand Down
4 changes: 0 additions & 4 deletions helm-chart-sources/pulsar/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,6 @@ extra:
#
# Monitoring stack (prometheus, grafana, and dashboard)
monitoring: no
# Zoonavigator
zoonavigator: no
# Pulsar manager UI for admin
pulsarexpress: no

## Which images to use
# When upgrading a Pulsar cluster, it is recommended to upgrade the
Expand Down

0 comments on commit e0a76b0

Please sign in to comment.