Skip to content

Commit

Permalink
add imagepullpolicy support. (#79)
Browse files Browse the repository at this point in the history
Signed-off-by: morvencao <[email protected]>
  • Loading branch information
morvencao authored Dec 15, 2021
1 parent 0451c34 commit cd12a41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/manifests/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ spec:
fieldRef:
fieldPath: metadata.namespace
image: quay.io/observatorium/thanos-receive-controller:master-2019-10-18-d55fee2
imagePullPolicy: IfNotPresent
name: thanos-receive-controller
ports:
- containerPort: 8080
Expand Down
2 changes: 2 additions & 0 deletions jsonnet/lib/thanos-receive-controller.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ local defaults = {
namespace: error 'must provide namespace',
version: error 'must provide version',
image: error 'must provide image',
imagePullPolicy: 'IfNotPresent',
replicas: error 'must provide replicas',
hashrings: error 'must provide hashring configuration',
resources: {},
Expand Down Expand Up @@ -138,6 +139,7 @@ function(params) {
local c = {
name: 'thanos-receive-controller',
image: trc.config.image,
imagePullPolicy: trc.config.imagePullPolicy,
args: [
'--configmap-name=%s' % trc.configmap.metadata.name,
'--configmap-generated-name=%s-generated' % trc.configmap.metadata.name,
Expand Down

0 comments on commit cd12a41

Please sign in to comment.