Add defaultPulsarImageRepository configuration (#503)

- makes it easier to use a custom image
This commit is contained in:
Lari Hotari 2024-06-05 14:20:16 +03:00 committed by GitHub
parent aebf5fb0d5
commit 47c2ac442a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 8 deletions

View File

@ -126,5 +126,5 @@ imagePullSecrets:
Create full image name Create full image name
*/}} */}}
{{- define "pulsar.imageFullName" -}} {{- define "pulsar.imageFullName" -}}
{{- printf "%s:%s" .image.repository (.image.tag | default .root.Values.defaultPulsarImageTag | default .root.Chart.AppVersion) -}} {{- printf "%s:%s" (.image.repository | default .root.Values.defaultPulsarImageRepository) (.image.tag | default .root.Values.defaultPulsarImageTag | default .root.Chart.AppVersion) -}}
{{- end -}} {{- end -}}

View File

@ -130,6 +130,9 @@ components:
# pulsar manager # pulsar manager
pulsar_manager: false pulsar_manager: false
# default image repository for pulsar images
defaultPulsarImageRepository: apachepulsar/pulsar-all
# default image tag for pulsar images # default image tag for pulsar images
# uses chart's appVersion when unspecified # uses chart's appVersion when unspecified
defaultPulsarImageTag: defaultPulsarImageTag:
@ -142,32 +145,38 @@ images:
# imagePullSecrets: # imagePullSecrets:
# - secretName # - secretName
zookeeper: zookeeper:
repository: apachepulsar/pulsar-all # uses defaultPulsarImageRepository when unspecified
repository:
# uses defaultPulsarImageTag when unspecified # uses defaultPulsarImageTag when unspecified
tag: tag:
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
bookie: bookie:
repository: apachepulsar/pulsar-all # uses defaultPulsarImageRepository when unspecified
repository:
# uses defaultPulsarImageTag when unspecified # uses defaultPulsarImageTag when unspecified
tag: tag:
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
autorecovery: autorecovery:
repository: apachepulsar/pulsar-all # uses defaultPulsarImageRepository when unspecified
repository:
# uses defaultPulsarImageTag when unspecified # uses defaultPulsarImageTag when unspecified
tag: tag:
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
broker: broker:
repository: apachepulsar/pulsar-all # uses defaultPulsarImageRepository when unspecified
repository:
# uses defaultPulsarImageTag when unspecified # uses defaultPulsarImageTag when unspecified
tag: tag:
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
proxy: proxy:
repository: apachepulsar/pulsar-all # uses defaultPulsarImageRepository when unspecified
repository:
# uses defaultPulsarImageTag when unspecified # uses defaultPulsarImageTag when unspecified
tag: tag:
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
functions: functions:
repository: apachepulsar/pulsar-all # uses defaultPulsarImageRepository when unspecified
repository:
# uses defaultPulsarImageTag when unspecified # uses defaultPulsarImageTag when unspecified
tag: tag:
pulsar_manager: pulsar_manager:
@ -713,7 +722,8 @@ pulsar_metadata:
component: pulsar-init component: pulsar-init
image: image:
# the image used for running `pulsar-cluster-initialize` job # the image used for running `pulsar-cluster-initialize` job
repository: apachepulsar/pulsar-all # uses defaultPulsarImageRepository when unspecified
repository:
# uses defaultPulsarImageTag when unspecified # uses defaultPulsarImageTag when unspecified
tag: tag:
pullPolicy: IfNotPresent pullPolicy: IfNotPresent