1
0
Fork 0
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:
Markus Lehtonen 2021-02-03 18:23:09 +02:00
parent 4af5311880
commit 040604eeb4
6 changed files with 9 additions and 1 deletions

View file

@ -68,6 +68,7 @@ spec:
fieldRef: fieldRef:
fieldPath: spec.nodeName fieldPath: spec.nodeName
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
imagePullPolicy: Always
name: nfd-master name: nfd-master
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
@ -83,6 +84,7 @@ spec:
fieldRef: fieldRef:
fieldPath: spec.nodeName fieldPath: spec.nodeName
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
imagePullPolicy: Always
name: nfd-worker name: nfd-worker
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false

View file

@ -80,6 +80,7 @@ spec:
fieldRef: fieldRef:
fieldPath: spec.nodeName fieldPath: spec.nodeName
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
imagePullPolicy: Always
name: nfd-master name: nfd-master
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false

View file

@ -73,6 +73,7 @@ spec:
containers: containers:
- name: nfd-master - name: nfd-master
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
imagePullPolicy: Always
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false
capabilities: capabilities:

View file

@ -22,6 +22,7 @@ spec:
fieldRef: fieldRef:
fieldPath: spec.nodeName fieldPath: spec.nodeName
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
imagePullPolicy: Always
name: nfd-worker name: nfd-worker
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false

View file

@ -31,6 +31,7 @@ spec:
fieldRef: fieldRef:
fieldPath: spec.nodeName fieldPath: spec.nodeName
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
imagePullPolicy: Always
name: nfd-worker name: nfd-worker
securityContext: securityContext:
allowPrivilegeEscalation: false allowPrivilegeEscalation: false

View file

@ -66,7 +66,9 @@ sed s"!node-feature-discovery/v.*/!node-feature-discovery/$release/!" -i README.
# Patch deployment templates # Patch deployment templates
echo Patching '*.yaml.template' to use $container_image 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 # Patch e2e test
echo Patching test/e2e/node_feature_discovery.go flag defaults to k8s.gcr.io/nfd/node-feature-discovery and $release echo Patching test/e2e/node_feature_discovery.go flag defaults to k8s.gcr.io/nfd/node-feature-discovery and $release