Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make imagePullPolicy configurable. #79

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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