Skip to content

Commit fc103a6

Browse files
committed
Cleanup for NodeFeature API being GA
Drop references to the gRPC API and don't suggest that NodeFeatureAPI could be disabled. Also update the developer guide for instructions running nfd components outside the cluster.
1 parent 1416072 commit fc103a6

File tree

17 files changed

+38
-134
lines changed

17 files changed

+38
-134
lines changed

cmd/nfd-master/main.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,9 @@ func initFlags(flagset *flag.FlagSet) (*master.Args, *master.ConfigOverrideArgs)
142142
"Do not publish feature labels")
143143
flagset.Var(overrides.DenyLabelNs, "deny-label-ns",
144144
"Comma separated list of denied label namespaces")
145-
flagset.Var(overrides.ResyncPeriod, "resync-period",
146-
"Specify the NFD API controller resync period."+
147-
"It does not have effect when the NodeFeature API has been disabled (with -feature-gates NodeFeatureAPI=false).")
145+
flagset.Var(overrides.ResyncPeriod, "resync-period", "Specify the NFD API controller resync period.")
148146
overrides.NfdApiParallelism = flagset.Int("nfd-api-parallelism", 10, "Defines the maximum number of goroutines responsible of updating nodes. "+
149-
"Can be used for the throttling mechanism. It does not have effect if NodeFeatureAPI feature gate is disabled.")
147+
"Can be used for the throttling mechanism.")
150148

151149
return args, overrides
152150
}

deployment/base/worker-daemonset/worker-daemonset.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ spec:
3939
requests:
4040
cpu: 5m
4141
memory: 64Mi
42-
args:
43-
- "-server=nfd-master:8080"
4442
ports:
4543
- name: metrics
4644
containerPort: 8081

deployment/base/worker-job/worker-job.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,3 @@ spec:
3333
- "nfd-worker"
3434
args:
3535
- "-oneshot"
36-
- "-server=nfd-master:8080"
37-

deployment/helm/node-feature-discovery/templates/clusterrole.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ rules:
101101
- update
102102
{{- end }}
103103

104-
{{- if and .Values.gc.enable .Values.gc.rbac.create (or .Values.featureGates.NodeFeatureAPI .Values.topologyUpdater.enable) }}
104+
{{- if and .Values.gc.enable .Values.gc.rbac.create }}
105105
---
106106
apiVersion: rbac.authorization.k8s.io/v1
107107
kind: ClusterRole

deployment/helm/node-feature-discovery/templates/clusterrolebinding.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ subjects:
3333
namespace: {{ include "node-feature-discovery.namespace" . }}
3434
{{- end }}
3535

36-
{{- if and .Values.gc.enable .Values.gc.rbac.create (or .Values.featureGates.NodeFeatureAPI .Values.topologyUpdater.enable) }}
36+
{{- if and .Values.gc.enable .Values.gc.rbac.create }}
3737
---
3838
apiVersion: rbac.authorization.k8s.io/v1
3939
kind: ClusterRoleBinding

deployment/helm/node-feature-discovery/templates/master.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ spec:
9696
successThreshold: {{ . }}
9797
{{- end }}
9898
ports:
99-
- containerPort: {{ .Values.master.port | default "8080" }}
100-
name: grpc
10199
- containerPort: {{ .Values.master.metricsPort | default "8081" }}
102100
name: metrics
103101
- containerPort: {{ .Values.master.healthPort | default "8082" }}

deployment/helm/node-feature-discovery/templates/nfd-gc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.gc.enable (or .Values.featureGates.NodeFeatureAPI .Values.topologyUpdater.enable) -}}
1+
{{- if and .Values.gc.enable -}}
22
apiVersion: apps/v1
33
kind: Deployment
44
metadata:

deployment/helm/node-feature-discovery/templates/service.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

deployment/helm/node-feature-discovery/templates/serviceaccount.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ metadata:
2727
{{- end }}
2828
{{- end }}
2929

30-
{{- if and .Values.gc.enable .Values.gc.serviceAccount.create (or .Values.featureGates.NodeFeatureAPI .Values.topologyUpdater.enable) }}
30+
{{- if and .Values.gc.enable .Values.gc.serviceAccount.create }}
3131
---
3232
apiVersion: v1
3333
kind: ServiceAccount

deployment/helm/node-feature-discovery/templates/worker.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ spec:
100100
command:
101101
- "nfd-worker"
102102
args:
103-
{{- if not .Values.featureGates.NodeFeatureAPI }}
104-
- "-server={{ include "node-feature-discovery.fullname" . }}-master:{{ .Values.master.service.port }}"
105-
{{- end }}
106103
# Go over featureGate and add the feature-gate flag
107104
{{- range $key, $value := .Values.featureGates }}
108105
- "-feature-gates={{ $key }}={{ $value }}"

0 commit comments

Comments
 (0)