Commit Graph

96 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
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
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 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
Jiaqi Luo c303e94418 bump go to 1.23 and k8s to 1.31.1 2024-10-22 14:25:08 -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
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
Brad Davidson 2d2f339066 Bump misc module versions
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2024-02-28 17:05:28 -08:00
Steven Fackler da10aca78b
Add a Complete condition to plans (#292)
* Add a Complete condition to plans
2024-02-28 11:48:30 -08:00
Steven Fackler 3ffd4a31fa
Propagate labels and annotations from plans to jobs (#286)
* Propagate labels and annotations from plans to jobs
* remove s390x CI steps
2024-02-27 13:39:11 -08:00
Arun Sharma af373602d6 PE-2443: adding image pull secrets
Signed-off-by: Arun Sharma <dev.arun2302@gmail.com>
2023-11-27 15:52:44 -08:00
Auston-Ivison-Suse a70667b302
Adding the ability to define a secuirty context and SELinux options (#257)
* Allow users to to specify a SecurityContext for the upgrade job.
2023-11-23 09:53:09 -08:00
Brad Davidson cb8db12182 Use node name for job name instead of host name
Hostnames are not guaranteed safe for use in resource names; thats why the hostname has a separate field on the node object.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-11-16 09:38:13 -08:00
matttrach f82866e5cb
Fix: upgrade go in go.mod and bci image
Signed-off-by: matttrach <matttrach@gmail.com>
2023-10-18 16:36:57 -05:00
Riley O'Donnell 5014b4b1df
225: Add support for exclusive plans (#260)
Add new field to Plan spec, Exclusive. This field will be useful when the order of execution for a series of Jobs is important, as each exclusive Job will have to complete before the next one is scheduled.
2023-09-29 10:01:56 -07:00
Steven Kreitzer 87ccc7e68f feat: allow plan to ignore secret updates 2023-09-28 23:17:32 -07:00
Brad Davidson 04a0b9ef58 Bump submodule requirements
Refer to the 'can of worms' comment from #102

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-08-02 18:05:39 -07:00
Guilherme Macedo 23f7fe005b Security related bumps in Go and BCI
Signed-off-by: Guilherme Macedo <guilherme@gmacedo.com>
2023-07-24 12:32:25 -07:00
Connor Kuehl d2569dedb4 Allow Plan to specify Job deadline
If a workload is known to be slow in excess of the
system-upgrade-controller deployment's default deadline, allow the Plan
creator to specify a job deadline with the plan so that the entailing
job may run to completion.

Signed-off-by: Connor Kuehl <connor.kuehl@suse.com>
2023-06-27 16:00:49 -07:00
Brad Davidson 9e7e45c1bd Bump to wrangler v1.1.1 / Kubernetes 1.25 / ginkgo 2
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-05-25 14:15:44 -07:00
dependabot[bot] bb7771068a Bump github.com/rancher/wrangler in /pkg/apis
Bumps [github.com/rancher/wrangler](https://github.com/rancher/wrangler) from 0.8.11-0.20230207214913-209077f2d98f to 0.8.11.
- [Release notes](https://github.com/rancher/wrangler/releases)
- [Commits](https://github.com/rancher/wrangler/commits/v0.8.11)

---
updated-dependencies:
- dependency-name: github.com/rancher/wrangler
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-05 11:26:10 -07:00
Brad Davidson 852b0378db Fix Spec.Drain.PodSelector
Use helpers instead of string ops to handle pod selector generation

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-05-05 11:02:43 -07:00
Brad Davidson db2b4a8df1 Ensure that WithSetOwnerReference is set on the apply controller
Ensures that object references are properly set on the generated Job

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-04-19 16:22:57 -07:00
Brad Davidson ac25caa9da Raise error in Plan handler if drain options conflict
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-03-23 18:43:54 -07:00
Brad Davidson 0c3aa94c1a Add support for PodSelector in DrainSpec
The selected labels are added to the default LabelSelector that excludes the SUC pods from being drained.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-03-23 18:43:54 -07:00
Brad Davidson 1234058819 go generate
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-03-23 18:43:54 -07:00
Brad Davidson 01f08b5631 Update wrangler/k8s modules
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
2023-03-23 18:43:54 -07:00
Robert Schuh 8abd0ddf50 add columns to plan crd 2022-08-01 10:16:46 -07:00
Luther Monson c0583b3337
Add Volume Mounts (#195)
* adding volume mounts
2022-04-27 12:37:52 -07:00
Guilherme Macedo 35ebe89039
Version bumps (#194)
Signed-off-by: Guilherme Macedo <guilherme.macedo@suse.com>
2022-04-21 14:11:32 -07:00
Thomas Ferrandiz 8c2a88392e Add support for s390x 2022-03-18 15:52:11 -07:00
Donnie Adams 2c588d56e9
Add default fields in Job (#173)
With the new version of wrangler, default fields are added. This poses
an issue when Apply is called again because these default fields won't
exist on the next call. This causes wrangler to think that something has
changed.

In this fix, default fields are added to the Job to prevent this issue.
2021-12-14 17:59:28 -07:00