Markus Lehtonen
01525de2f1
scripts/test-infra: add logcheck to verify script
...
Now that we've migrated to structured logging add a verification step to
verify that future additions/changes to logging comply.
2023-05-31 16:01:40 +03:00
Markus Lehtonen
9b74e12f60
scripts/test-infra: bump golangci-lint to v1.52.2
2023-05-30 22:27:05 +03:00
Markus Lehtonen
32072dddf1
scripts/test-infra: provide PR base SHA to codecov
...
In the hopes that codecov will be properly showing and calculating the
diff. Also quote the args for proper handling of empty values.
2023-04-28 13:47:41 +03:00
Markus Lehtonen
611ed65e43
scripts/test-infra: provide PR info to codecov
...
Provide the commit SHA repo slug, PR number, prow build id and base
branch to the codecov tool so that it is able to do its job.
2023-04-26 11:55:13 +03:00
Muyassarov, Feruzjon
6ed43c2926
e2e: add codecov uploader configuration
...
Signed-off-by: Muyassarov, Feruzjon <feruzjon.muyassarov@intel.com>
2023-04-11 23:33:47 +03:00
Markus Lehtonen
28cb0cd15d
scripts/test-infra: bump golangci-lint to v1.51.2
2023-03-10 12:12:09 +02:00
Markus Lehtonen
1b8ab4b862
scripts/test-infra: bump golangci-lint to v1.51.1
...
Update to the latest release.
2023-02-16 19:04:12 +02:00
Muyassarov, Feruzjon
ae25d5319b
test: move out unit testing from Dockerfile
...
Move out running unit tests as part of container image building and
instead add it into verify.sh script which runs linter, formatter
and other checks.
Signed-off-by: Muyassarov, Feruzjon <feruzjon.muyassarov@intel.com>
2023-02-02 01:00:32 +02:00
Markus Lehtonen
72e523f277
scripts/mdlint: update mdlint to v0.12.0
2022-12-01 20:57:21 +02:00
Kubernetes Prow Robot
34781af9e5
Merge pull request #917 from fmuyassarov/ephemeral-e2e
...
add ephemeral environment for e2e test execution
2022-11-02 10:35:15 -07:00
Feruzjon Muyassarov
0118215826
Add ephemeral E2E test environment
...
This patch adds a script to run E2E test on kind ephemeral cluster
that gets deleted by the end of each test. Eventually, we will use
this script on pull requests as a presubmit test.
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-11-02 15:30:56 +02:00
Feruzjon Muyassarov
ea8906203a
Increase image waiting timeout
...
We recently increase timeout for image building and pushing to GCR
due to some failures with timeout. This commit extends timeout for
waiting that image to be published.
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-10-27 23:26:26 +03:00
Markus Lehtonen
97590e200a
scripts: move hacky scripts to hack directory
...
Move prepare-release.sh and kustomize.sh from scripts/ to hack/.
2022-09-13 17:58:09 +03:00
Markus Lehtonen
4f34451db8
Update NFD registry to registry.k8s.io
...
Kubernetes has moved to a new container image registry:
https://groups.google.com/a/kubernetes.io/g/dev/c/DYZYNQ_A6_c/m/FpHqeVR2BAAJ
2022-09-12 11:21:12 +03:00
Markus Lehtonen
2e0e93fb84
scripts/test-infra: bump golangci-lint to v1.49.0
...
Update to the latest version, supporting golang v1.19. Also make the
verify script a tad more verbose.
2022-09-08 11:53:07 +03:00
Feruzjon Muyassarov
1e3bfcc77d
Run local markdown tests inside an isolated container
...
Signed-off-by: Feruzjon Muyassarov <feruzjon.muyassarov@intel.com>
2022-09-06 16:08:06 +03:00
Markus Lehtonen
d61f31076f
scripts/test-e2e: install kubectl
...
Kubectl is required bu the topologu-updater end-to-end tests.
2022-08-25 16:27:59 +03:00
Markus Lehtonen
989565de97
scripts/prepare-release: patch golang version in Makefile
...
Make it mandatory to specify a golang version with "-g" when running the
script (and patching repo content). The given version will be patched
into the Makefile to fix the version used in the release build - it is
meant to use a exact point release (like 1.18.3) to get reproducible
builds.
2022-08-09 08:22:58 +03:00
Markus Lehtonen
e41c5a712f
scripts/prepare-release: option -k to specify the signing key
...
Make the GPG signing an optional argument. It doesn't make much sense to
require that when no assets are being generated (i.e. when "-b" is
used).
2022-08-09 08:22:58 +03:00
Markus Lehtonen
3f084a4307
scripts/prepare-release: option -b to not generate assets
...
Implement a new command line option "-b" to prevent the script from
creating release assets (Helm chart).
2022-08-09 08:22:58 +03:00
Markus Lehtonen
a7835a060f
scripts/test-e2e: update aws-iam-authenticator to v0.5.7
...
We need the latest version to support client.authentication.k8s.io/v1.
The previous version we used only supported v1alpha1 which was dropped
in K8s v1.24.
2022-06-28 16:56:43 +03:00
Markus Lehtonen
9276ad49ac
scripts/test-infra: bump golangci-lint to v1.45.2
...
Adds support for golang v1.18.
2022-04-13 09:53:55 +03:00
Markus Lehtonen
f659372af2
scripts/update-gh-pages: adjust commit message body
...
Align the version number inserted in the commit message with what we use
in the Makefile.
2022-04-11 16:45:26 +03:00
Markus Lehtonen
3ff50e5ce4
scripts/prepare-release: fix upating of readme
...
Fix the sed script to update the version of kustomize overlay.
Also, add a sed script to update the documentation link to point to the
correct version in gh-pages.
2022-01-25 17:43:05 +02:00
Markus Lehtonen
e674631591
cloudbuild.yaml: decrease timeout to 25 minutes
...
Build time decreased dramatically after upgrading the builder machine
type.
2022-01-21 12:00:14 +02:00
Markus Lehtonen
6f56d5edbf
scripts/test-infra: separate task for multiarch image build
2022-01-21 11:18:10 +02:00
Markus Lehtonen
33cfd6eaba
scripts: configure docker auth in push-image.sh
...
Re-introduce docker authentication that was dropped in
bac690813a
. Should fix issues with
building multi-arch buildx buildx.
2022-01-21 07:36:22 +02:00
Markus Lehtonen
5e90343fc9
cloudbuild.yaml: increase timeout to 1h 20min
...
Fourth timeout increase's the charm.
2022-01-20 22:30:42 +02:00
Markus Lehtonen
c0235c490e
cloudbuild.yaml: increase timeout to 1 hour
...
Even 40 minutes failed us for multi-arch builds.
Also, increase the e2e-test image polling timeout correspondingly.
2022-01-20 21:02:03 +02:00
Kubernetes Prow Robot
8ea6b765c8
Merge pull request #698 from zvonkok/multi-arch
...
Multi ARCH build amd64, arm64
2022-01-20 07:21:52 -08:00
Zvonko Kaiser
c69e47a27a
Iniital multi arch build
2022-01-20 15:41:08 +01:00
Markus Lehtonen
2ac10d854f
scripts/update-gh-pages: fix symlink to stable version
...
Fix the sorting magic of release directories. Correctly sort according
to the version number.
2022-01-11 23:28:05 +02:00
Kubernetes Prow Robot
fe377458a9
Merge pull request #689 from marquiz/devel/ci-helm
...
scripts/test-infra: bump helm to v3.7.1
2021-12-02 07:39:33 -08:00
Markus Lehtonen
80da116cab
scripts/test-infra: bump helm to v3.7.1
2021-12-02 12:34:41 +02:00
Markus Lehtonen
a543122d00
scripts: increase e2e-test image poll timeout to 12mins
...
Rare timeouts (narrowly missing) with 10 minutes observed, try
increasing by 2 minutes.
Also fix printing of error message in case of a timeout.
2021-12-02 10:56:36 +02:00
Markus Lehtonen
f1f79575fe
scripts/test-infra: bump golangci-lint to v1.42.1
2021-10-04 09:43:21 +03:00
Markus Lehtonen
8132d17f89
scripts/test-infra: verify buildability of kustomize overlays
...
Not perfect and fool proof evidence but better than nothing.
2021-08-26 19:47:25 +03:00
Markus Lehtonen
9db5807bf4
scripts: fix prepare-release.sh to update all kustomize files
2021-08-19 22:15:58 +03:00
Markus Lehtonen
63c1256d08
Drop deployment templates
...
Resort to kustomize, instead. Update docs and scripts, accordingly.
Bump cert-manager version in the deployment instructions to v1.5.1.
2021-08-18 15:10:25 +03:00
Markus Lehtonen
0f2554abf1
helm: move files under deployment/helm
2021-08-16 14:44:26 +03:00
Markus Lehtonen
5fe3f7163f
helm: add readme
...
Add minimal readme to the helm chart and update
scripts/prepare-release.sh to handle references in the readme file.
2021-08-11 11:41:27 +03:00
Markus Lehtonen
7dd5f0e5c3
scripts/prepare-release: option to only create assets
...
Add '-a' command line option to only create release assets and not patch
any files in the repo. E.g.
$ scripts/prepare-release.sh -a v0.8.0+1 user@example.com
2021-03-31 11:37:28 +03:00
Markus Lehtonen
fa5272eaeb
scripts/update-gh-pages: slightly cleaner log output
2021-03-18 19:27:41 +02:00
Markus Lehtonen
6541e3bb55
scripts/update-gh-pages: fix helm repo update
...
Whitespace in release metadata json was not correctly handled.
2021-03-18 11:25:07 +02:00
Kubernetes Prow Robot
086f8c3b7a
Merge pull request #457 from marquiz/devel/helm-repo
...
Host NFD Helm repo in gh-pages
2021-03-17 04:00:56 -07:00
Markus Lehtonen
fd2dcc2275
scripts/prepare-release: use gpg for signing Helm chart
...
Need to create the provenance file by hand as we mangle the name of the
chart archive. However, this also provides better user experience (for
the release manager) as gpg version 2.1 and later are supported.
2021-03-17 07:48:22 +02:00
Markus Lehtonen
c5dca79a07
Makefile: change poll-image target to poll-images
...
Poll all images that are supposed to be tagged. Both the "full" and
"minimal" variant, including tags created from IMAGE_EXTRA_TAG_NAMES.
2021-03-10 11:10:08 +02:00
Markus Lehtonen
f80e683e3e
scripts/prepare-release: package Helm chart
...
Prepare a signed Helm chart package to be uploaded to the Github release
page.
2021-03-09 15:52:44 +02:00
Markus Lehtonen
dfae747e84
scripts/update-gh-pages: manage a Helm repo
...
Make the update-gh-pages.sh script to maintain a Helm charts repository
under charts/ subdirectory in gh-pages. The script now (always) scans
throught all release assets and injects any found Helm chart archives
into the Helm repo. In practice, new assets in all Github releases are
scanned and the Helm repo is updated on any update of the master or
release branches or on any new tags. Asset ids are tracked/cached in
order to avoid unnecessary downloads, but also, to capture any changes
in assets that were already merged in the repo index.
After this a user is able to do something like
$ helm repo add nfd http://kubernetes-sigs.github.io/node-feature-discovery/charts
...
$ helm repo update
...
$ helm install nfd/node-feature-discovery --namespace nfd --create-namespace --generate-name
...
2021-03-09 14:14:29 +02:00
Markus Lehtonen
34cc407dd9
scripts/test-infra: enable helm linting
2021-02-26 07:24:59 +02:00