Skip to content

Commit

Permalink
Updates after Code-Review kubernetes-sigs#4
Browse files Browse the repository at this point in the history
  • Loading branch information
e0ne committed Feb 3, 2021
1 parent 0212fc4 commit 95e1401
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 18 deletions.
3 changes: 0 additions & 3 deletions deployment/node-feature-discovery/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ helm.sh/chart: {{ include "node-feature-discovery.chart" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
{{- if .Chart.Name }}
app.kubernetes.io/name: {{ .Chart.Name | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}

Expand Down
1 change: 1 addition & 0 deletions deployment/node-feature-discovery/templates/worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ spec:
readOnly: true
- name: source-d
mountPath: "/etc/kubernetes/node-feature-discovery/source.d/"
readOnly: true
- name: features-d
mountPath: "/etc/kubernetes/node-feature-discovery/features.d/"
readOnly: true
Expand Down
16 changes: 1 addition & 15 deletions deployment/node-feature-discovery/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,24 +179,10 @@ worker:

nodeSelector: {}

tolerations:
- key: "node-role.kubernetes.io/master"
operator: "Equal"
value: ""
effect: "NoSchedule"
tolerations: {}

annotations: {}

affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: "node-role.kubernetes.io/master"
operator: In
values: [""]

## RBAC parameteres
## https://kubernetes.io/docs/reference/access-authn-authz/rbac/
##
Expand Down
2 changes: 2 additions & 0 deletions scripts/prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ sed -E s",^([[:space:]]+)image:.+$,\1image: $container_image," -i *yaml.template

# Patch Helm chart
sed -e s"/appVersion:.*/appVersion: $release/" -i deployment/node-feature-discovery/Chart.yaml
sed -e s"/pullPolicy: Always$/pullPolicy: IfNotPresent/" -i deployment/node-feature-discovery/values.yaml
sed -e s"/k8s-staging-nfd\/node-feature-discovery$/k8s-staging-nfd\/node-feature-discovery:$release/" -i deployment/node-feature-discovery/values.yaml

# Patch e2e test
echo Patching test/e2e/node_feature_discovery.go flag defaults to k8s.gcr.io/nfd/node-feature-discovery and $release
Expand Down

0 comments on commit 95e1401

Please sign in to comment.