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
*/}}
{{- 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 -}}

View File

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