Commit Graph

206 Commits

Author SHA1 Message Date
swastik959 f2c9e60b10 [1.34] bumped k8s dependencies
Signed-off-by: swastik959 <swastik.gour@suse.com>
2025-09-30 09:39:23 -07:00
Brad Davidson a8d5a372d8 Allow specifying human-readable duration string for drain timeout
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-09-02 17:21:23 -07:00
solidDoWant 745300be18
Add support for setting secret mount mode (#374) 2025-08-11 14:22:33 -07:00
Malte Lehmann 4b81f6b351 fix: use string instead of *string for PrioClassName 2025-08-11 11:46:07 -07:00
Malte Lehmann a3dc281715 fix: run go generate 2025-08-11 11:46:07 -07:00
Malte Lehmann 189003c6d0 feat: add optional priority class name to plan spec
fixes https://github.com/rancher/system-upgrade-controller/issues/372
2025-08-11 11:46:07 -07:00
Swastik Gour 185ff9f785
added k8s-1.33-support (#370)
* added k8s-1.33-support

Signed-off-by: swastik959 <Sswastik959@gmail.com>

* added corrections

Signed-off-by: swastik959 <Sswastik959@gmail.com>

* un-rced wrangler and lasso

Signed-off-by: swastik959 <Sswastik959@gmail.com>

---------

Signed-off-by: swastik959 <Sswastik959@gmail.com>
2025-07-10 12:23:44 -04:00
Brad Davidson 99a03a0d61 Improve docs and table output for conditions
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-06-30 17:07:33 -07:00
Brad Davidson 68b6eeadf9 Add message to event and update status condition when job fails
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-06-30 17:07:33 -07:00
Brad Davidson 42e0dc31ba Add API docs
Also clean up some of the api spec for better documentation, and fix
tests.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-06-30 17:07:33 -07:00
Brad Davidson 355252512c Migrate CRD generation to controller-gen
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-06-30 17:07:33 -07:00
Brad Davidson b41206cdd2 Exclude kubectl annotations from propagation
Fixes `kubectl.kubernetes.io/last-applied-configuration` annotation being passed through from Plan to Job

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-06-30 17:07:33 -07:00
Brad Davidson 42d77ed9b8 Bump component versions in Dockerfiles
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-06-30 17:07:33 -07:00
dependabot[bot] eed86678ba Bump golang.org/x/crypto from 0.28.0 to 0.35.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.28.0 to 0.35.0.
- [Commits](https://github.com/golang/crypto/compare/v0.28.0...v0.35.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.35.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-04-16 10:49:00 -07:00
Malte Lehmann a7ecca9786 Fix securityContext and volumes for prepare
fixes https://github.com/rancher/system-upgrade-controller/issues/363
2025-04-16 10:48:17 -07:00
Jack Luo b1a9781acc
support k8s 1.32.2 and fix e2e tests(#352) 2025-03-05 17:01:50 -07:00
Brad Davidson acc2fdf9c2 Make IgnoreUpdate secrets optional
Fixes issue where nonexistent secret with ignoreUpdate set would cause the plan to endlessly requeue due to errors. If it is ignored for purposes of plan hash, it should be optional.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-03-03 13:47:46 -08:00
Michael Kriese 9de913246a feat: add `org.opencontainers.image.source`docker label 2025-02-24 13:06:50 -08:00
Brad Davidson 98381a657c Include tz files in Docker image
Add timezone files to Docker image so that tz names work in spec.window.timeZone

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2025-01-27 17:44:25 -08:00
Brad Davidson 67bbce8736 Update e2e for new features
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2024-11-04 12:43:30 -08:00
Brad Davidson 0b25e9c211 Add support for Spec.PostCompleteDelay to set delay after job completion
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2024-11-04 12:43:30 -08:00
Brad Davidson 938216d3fc Add support for Spec.Window to set time window
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2024-11-04 12:43:30 -08:00
Brad Davidson 96b03bdc32 Add event recorder and leader election support
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2024-11-04 12:43:30 -08:00
Jack Luo 8e5485bf70
Merge pull request #334 from jiaqiluo/bump-k8s 2024-10-22 16:15:10 -07:00
Jiaqi Luo c303e94418 bump go to 1.23 and k8s to 1.31.1 2024-10-22 14:25:08 -07:00
onno204 f7f79ff187
Revert "fix(kustomize): Deploy latest system-upgrade-controller" (#304)
* Revert "fix(kustomize): Deploy latest system-upgrade-controller"
  This reverts commit 4e31e5d6a0.
* Apply suggestions from code review

Co-authored-by: Brad Davidson <brad@oatmail.org>
2024-09-25 19:25:49 -07:00
Brad Davidson 73165b9558 Fix artifact permissions
Passing the binary artifacts through the GH artifact zip files strips their permissions; we need to make them executable before building the final image.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2024-09-25 18:05:35 -07:00
Brad Davidson 320cb31d6c Fix docker-compose agent image
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2024-09-25 17:31:04 -07:00
Brad Davidson 61d715d07a Re-add arm support and fix target arch for non-amd64 platforms
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2024-09-25 17:31:04 -07:00
Brad Davidson ac09a00de7 Fix image tag
Workflow is triggered on tag, not release, so we can't use
release.tag_name. Also, need to use TARGETARCH instead of ARCH for
multiplatform builds.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2024-09-25 17:31:04 -07:00
Brad Davidson 3835c95696 Fix arm64 image clobbering amd64 image
Use build-push-action platforms instead of job matrix to build and publish the image

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2024-09-25 14:37:31 -07:00
Brad Davidson 416d9f50b0 Fix uploading artifacts to existing release
Fixes issue where releases would be left without assets if the tag was created by the GH release UI, as the release would already exist.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2024-09-25 14:37:31 -07:00
dependabot[bot] 8ccc207354 Bump golang.org/x/net from 0.17.0 to 0.23.0 in /pkg/apis
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.17.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.17.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-29 10:18:50 -07:00
Damiano Donati 256e42be65 fix: system-upgrade-controller-drainer: add missing delete permission for pods in clusterrole 2024-08-29 09:59:18 -07:00
Steven Kreitzer c900c39e7b feat: allow pod replacement policy override 2024-08-29 09:52:30 -07:00
Harsimran Singh Maan de7263216f remove revive linter 2024-08-26 17:26:41 -07:00
Harsimran Singh Maan 9d6c6a923d Address review comments 2024-08-26 17:26:41 -07:00
Harsimran Singh Maan 3c5598c1ef Upgrade dependencies
Some Golang CVEs get flagged in the suc binary as it was built with an
older golang version. Use go 1.22.6
Updating other go module deps.
SLES update is required for libc compatiblity with latest ginkgo
version.

Update golangci-lint. Most gingko and gomega changes are to fix linting
failures.
Update sonobuoy

docker bridge address is added to tls-san to avoid cert errors when
using the client to connect the KUBEHOST.

Drop deprecated version field in the docker compose manifests.

It is recommended that the next release be v0.15.0 as 0.14.0 was already
published and deleted in the past and gosumdb already has entries.
2024-08-26 17:26:41 -07:00
Bruno Bachmann 57605e3390
Merge pull request #311 from bfbachmann/gha
Add GHA workflows
2024-06-12 13:57:12 -07:00
Bruno Bachmann 64b5355ee5 Update triggers 2024-06-12 11:16:26 -07:00
Bruno Bachmann c8cf8783d7 Update workflow triggers 2024-06-12 10:25:16 -07:00
Bruno Bachmann 65559201bb Add GHA workflows 2024-06-06 10:46:28 -07:00
Sheogorath 4a643535e6 fix: Add missing permission for CRD creation 2024-03-07 23:30:02 -08:00
Sheogorath 4e31e5d6a0 fix(kustomize): Deploy latest system-upgrade-controller
Before this patch always version v0.8.0 would be deployed when using the
kustomize command from the README. This patch adjust the kustomization
to not overwrite the version.

The build process is unaffected from this, since during the build script
the kustomize file is adjusted to adjust the version to the current
release. This means the build manifests for release will still have a
pinned version like before.

Reference:
4eacc2dabb/scripts/package-controller (L36)
2024-03-07 23:30:02 -08:00
Sheogorath db86e242c0 docs(README): Simplify kustomize command 2024-03-07 23:30:02 -08:00
Sheogorath 097fe71742 fix: Drop unneeded reorder surpression
This patch drops the deprecated flag for output reordering. This causes
the output to be ordered properly instead of following the order of the
resource list.

References:
https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/sortoptions/#legacy-sorting
2024-03-07 23:29:40 -08:00
Sheogorath 4eacc2dabb fix: Add missing namespace references in rendered output
This patch patches the namespace name in all generates resources. It can
still be adjusting using kustomize, but provides functional experience
for the plain manifest installation.
2024-02-29 16:18:45 -08:00
Brad Davidson 2d2f339066 Bump misc module versions
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2024-02-28 17:05:28 -08:00
Brad Davidson f88b164dad Remove accidentally committed/approved binary
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2024-02-28 17:05:28 -08:00
Sheogorath 37928adb92 feat: Reduce permissions for system-upgrade-controller serviceaccount
This patch drastically cuts down the permissions of the
system-upgrades-controller from the previous cluster-admin permissions
to a tailored set of permissions for the controller.
2024-02-28 13:28:10 -08:00