Skip to content

Commit

Permalink
Add defaultPulsarImageRepository configuration (#503)
Browse files Browse the repository at this point in the history
- makes it easier to use a custom image
  • Loading branch information
lhotari authored Jun 5, 2024
1 parent aebf5fb commit 47c2ac4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/pulsar/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
24 changes: 17 additions & 7 deletions charts/pulsar/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 47c2ac4

Please sign in to comment.