Skip to content

Commit a8bde50

Browse files
Merge branch 'kubernetes-sigs:master' into master
2 parents 1d13b10 + 4bd929d commit a8bde50

File tree

35 files changed

+555
-257
lines changed

35 files changed

+555
-257
lines changed

.github/ISSUE_TEMPLATE/new-release.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Please do not remove items from the checklist
2929
- [ ] An OWNER runs
3030
`git tag -s -m "NFD release $VERSION" $VERSION`
3131
- [ ] An OWNER runs
32-
`git tag -s -m "NFD API release $VERSION" api/nfd/$VERSION`
32+
`git tag -s -m "NFD API release $VERSION" api/nfd/$VERSION`
3333
- [ ] An OWNER pushes the tag with
3434
`git push $VERSION api/nfd/$VERSION`
3535
- Triggers prow to build and publish a staging container image
@@ -43,9 +43,10 @@ Please do not remove items from the checklist
4343
- [ ] Add a link to the tagged release in this issue.
4444
- [ ] Send an announcement email to `[email protected]` with the subject `[ANNOUNCE] node-feature-discovery $VERSION is released`
4545
- [ ] Add a link to the release announcement in this issue
46-
- [ ] Update README in master branch
47-
- [ ] Update references e.g. by running `hack/prepare-release.sh $VERSION` but **only** committing README.md, and,
48-
submit a PR
46+
- [ ] Update README and netlify.toml in master branch
47+
- [ ] Submit a PR
48+
- Update references e.g. by running `hack/prepare-release.sh $VERSION` but **only** committing README.md
49+
- Update the `[[redirects]]` in `netlify.toml` to point to the new release branch
4950
- [ ] Wait for the PR to be merged
5051
- [ ] Create an unannotated *devel* tag in the master branch, on the first commit that gets merged after the release branch has been created (presumably the README update commit above), and, push the tag:
5152
`DEVEL=v0.$(($MAJ+1)).0-devel; git tag $DEVEL master && git push $DEVEL`

.github/workflows/gh-pages.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99

1010
concurrency:
1111
group: gh-pages
12+
cancel-in-progress: false
1213

1314
permissions:
1415
contents: read
@@ -34,6 +35,8 @@ jobs:
3435
run: git fetch --no-tags --prune --depth=1 origin refs/heads/gh-pages:refs/heads/gh-pages
3536

3637
- name: Build site
38+
env:
39+
JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3740
run: |
3841
git config user.name "Github Actions"
3942
git config user.email "[email protected]"

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
concurrency:
77
group: gh-pages
8+
cancel-in-progress: false
89

910
permissions:
1011
contents: read

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ JEKYLL_ENV ?= development
2222
SITE_BUILD_CMD := $(CONTAINER_RUN_CMD) --rm -i -u "`id -u`:`id -g`" \
2323
$(shell [ -t 0 ] && echo '-t') \
2424
-e JEKYLL_ENV=$(JEKYLL_ENV) \
25+
-e JEKYLL_GITHUB_TOKEN="$$JEKYLL_GITHUB_TOKEN" \
2526
$(shell [ "$(JEKYLL_ENV)" = "development" ] && echo '-e PAGES_DISABLE_NETWORK=1') \
2627
--volume="$$PWD/docs:/work" \
2728
--volume="$$PWD/docs/vendor/bundle:/usr/local/bundle" \
@@ -255,11 +256,11 @@ poll-images:
255256

256257
site-build:
257258
@mkdir -p docs/vendor/bundle
258-
$(SITE_BUILD_CMD) sh -c "bundle plugin install bundler-override && bundle install && jekyll build $(JEKYLL_OPTS)"
259+
$(SITE_BUILD_CMD) sh -c "bundle install && jekyll build $(JEKYLL_OPTS)"
259260

260261
site-serve:
261262
@mkdir -p docs/vendor/bundle
262-
$(SITE_BUILD_CMD) sh -c "bundle plugin install bundler-override && bundle install && jekyll serve $(JEKYLL_OPTS) -H 127.0.0.1"
263+
$(SITE_BUILD_CMD) sh -c "bundle install && jekyll serve $(JEKYLL_OPTS) -H 127.0.0.1"
263264

264265
benchmark:
265266
go test -bench=./pkg/nfd-master -run=^# ./pkg/nfd-master

Tiltfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# -*- mode: Python -*-
2+
# Anonymous, ephemeral image registry.
3+
default_registry('ttl.sh')
4+
# Allow Tilt to use the local Docker daemon
5+
allow_k8s_contexts('kubernetes-admin@kubernetes')
26

37
BASE_IMAGE_MINIMAL="gcr.io/distroless/base"
48
BASE_IMAGE_FULL="debian:bullseye-slim"
@@ -12,7 +16,6 @@ IMAGE_NAME = os.getenv('IMAGE_NAME', "node-feature-discovery")
1216
# registry.k8s.io/nfd/node-feature-discovery:master
1317
IMAGE = "/".join([IMAGE_REGISTRY, IMAGE_NAME])
1418
TAGGED_IMAGE = ":".join([IMAGE, IMAGE_TAG_NAME])
15-
allow_k8s_contexts('kubernetes-admin@kubernetes')
1619

1720
# Builds container image
1821
def build_image():

deployment/helm/node-feature-discovery/templates/_helpers.tpl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,22 @@ Create the name of the service account which nfd-gc will use
105105
{{ default "default" .Values.gc.serviceAccount.name }}
106106
{{- end -}}
107107
{{- end -}}
108+
109+
{{/*
110+
imagePullSecrets helper - uses local values or falls back to global values
111+
*/}}
112+
{{- define "node-feature-discovery.imagePullSecrets" -}}
113+
{{- $imagePullSecrets := list -}}
114+
{{- if .Values.imagePullSecrets -}}
115+
{{- range .Values.imagePullSecrets -}}
116+
{{- $imagePullSecrets = append $imagePullSecrets . -}}
117+
{{- end -}}
118+
{{- else if and .Values.global .Values.global.imagePullSecrets -}}
119+
{{- range .Values.global.imagePullSecrets -}}
120+
{{- $imagePullSecrets = append $imagePullSecrets . -}}
121+
{{- end -}}
122+
{{- end -}}
123+
{{- if $imagePullSecrets -}}
124+
{{- $imagePullSecrets | toJson }}
125+
{{- end -}}
126+
{{- end -}}

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ spec:
3333
{{- with .Values.priorityClassName }}
3434
priorityClassName: {{ . }}
3535
{{- end }}
36-
{{- with .Values.imagePullSecrets }}
37-
imagePullSecrets:
38-
{{- toYaml . | nindent 8 }}
39-
{{- end }}
36+
imagePullSecrets: {{ include "node-feature-discovery.imagePullSecrets" . }}
4037
serviceAccountName: {{ include "node-feature-discovery.master.serviceAccountName" . }}
4138
enableServiceLinks: false
4239
securityContext:

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ spec:
3333
{{- with .Values.priorityClassName }}
3434
priorityClassName: {{ . }}
3535
{{- end }}
36-
{{- with .Values.imagePullSecrets }}
37-
imagePullSecrets:
38-
{{- toYaml . | nindent 8 }}
39-
{{- end }}
36+
imagePullSecrets: {{ include "node-feature-discovery.imagePullSecrets" . }}
4037
securityContext:
4138
{{- toYaml .Values.gc.podSecurityContext | nindent 8 }}
4239
hostNetwork: {{ .Values.gc.hostNetwork }}

deployment/helm/node-feature-discovery/templates/post-delete-job.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,7 @@ spec:
6767
role: prune
6868
spec:
6969
serviceAccountName: {{ include "node-feature-discovery.fullname" . }}-prune
70-
{{- with .Values.imagePullSecrets }}
71-
imagePullSecrets:
72-
{{- toYaml . | nindent 8 }}
73-
{{- end }}
70+
imagePullSecrets: {{ include "node-feature-discovery.imagePullSecrets" . }}
7471
containers:
7572
- name: nfd-master
7673
securityContext:

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ spec:
3333
{{- with .Values.priorityClassName }}
3434
priorityClassName: {{ . }}
3535
{{- end }}
36-
{{- with .Values.imagePullSecrets }}
37-
imagePullSecrets:
38-
{{- toYaml . | nindent 8 }}
39-
{{- end }}
36+
imagePullSecrets: {{ include "node-feature-discovery.imagePullSecrets" . }}
4037
securityContext:
4138
{{- toYaml .Values.topologyUpdater.podSecurityContext | nindent 8 }}
4239
hostNetwork: {{ .Values.topologyUpdater.hostNetwork }}

0 commit comments

Comments
 (0)