mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-14 20:56:42 +00:00
Set imagePullPolicy in the deployment templates to Always
Update prepare-release.sh so that the policy will be set to IfNotPresent for releases.
This commit is contained in:
parent
4af5311880
commit
040604eeb4
6 changed files with 9 additions and 1 deletions
|
@ -68,6 +68,7 @@ spec:
|
|||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
|
||||
imagePullPolicy: Always
|
||||
name: nfd-master
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
@ -83,6 +84,7 @@ spec:
|
|||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
|
||||
imagePullPolicy: Always
|
||||
name: nfd-worker
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
|
|
@ -80,6 +80,7 @@ spec:
|
|||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
|
||||
imagePullPolicy: Always
|
||||
name: nfd-master
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
|
|
@ -73,6 +73,7 @@ spec:
|
|||
containers:
|
||||
- name: nfd-master
|
||||
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
|
||||
imagePullPolicy: Always
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
|
|
|
@ -22,6 +22,7 @@ spec:
|
|||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
|
||||
imagePullPolicy: Always
|
||||
name: nfd-worker
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
|
|
@ -31,6 +31,7 @@ spec:
|
|||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
|
||||
imagePullPolicy: Always
|
||||
name: nfd-worker
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
|
|
@ -66,7 +66,9 @@ sed s"!node-feature-discovery/v.*/!node-feature-discovery/$release/!" -i README.
|
|||
|
||||
# Patch deployment templates
|
||||
echo Patching '*.yaml.template' to use $container_image
|
||||
sed -E s",^([[:space:]]+)image:.+$,\1image: $container_image," -i *yaml.template
|
||||
sed -E -e s",^([[:space:]]+)image:.+$,\1image: $container_image," \
|
||||
-e s",^([[:space:]]+)imagePullPolicy:.+$,\1imagePullPolicy: IfNotPresent," \
|
||||
-i *yaml.template
|
||||
|
||||
# Patch e2e test
|
||||
echo Patching test/e2e/node_feature_discovery.go flag defaults to k8s.gcr.io/nfd/node-feature-discovery and $release
|
||||
|
|
Loading…
Add table
Reference in a new issue