Commit Graph

15 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 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 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 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
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
Steven Kreitzer 87ccc7e68f feat: allow plan to ignore secret updates 2023-09-28 23:17:32 -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
Darren Shepherd a04e2061be
Make pkg/apis a go module (#102)
* Make pkg/apis a go module

system-upgrade-controller depends on k8s.io/kubernetes which makes it very
difficult to include as a dependency from another project. The main reason
a project would want to have a go dependency on system-upgrade-controller
would be for the types. This makes the apis package a first class module
that one can depend on without having to depend on k8s.io/kubernetes

* Swith to vendorless
2020-08-25 07:55:42 -07:00
Menna Elmasry 6a71ecbc2c
prevent job creation for unresolved plans (#97)
* prevent job creation for unresolved plans
* add resolve channel integration test
2020-07-01 10:51:24 -07:00
Darren Shepherd 4655d4a551
Update to k8s 1.18 (#53)
* Update vendor

* Adapt to new client-go API

* Update generated code

* fix call to RegisterFailHandler

Co-authored-by: Jacob Blain Christen <jacob@rancher.com>
2020-03-26 15:02:02 -07:00
Jacob Blain Christen 77a05e5648
implement ttlSecondsAfterFinished for jobs (#48)
* implement ttlSecondsAfterFinished for jobs

- bump default backofflimit to the default for the job controller, aka 6

Addresses #24 by implementing cleanup of jobs based on configured .spec.ttlSecondsAfterFinished on jobs.
This should work pretty almost identically to the by-default, gated TTL Controll for Finished Resources.
See https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/

* Update pkg/upgrade/handle_batch.go

Co-authored-by: Dax McDonald <dax@rancher.com>
2020-03-09 16:27:38 -07:00
Jacob Blain Christen b007dd4d8b remove toleration in controller deployment
Fixes #45
2020-03-05 12:29:32 -07:00
Jacob Blain Christen d0b684b5b3
fix replace wait errors and rate limiting (#30)
This is a decent-sized refactor, primarily in how the controller is setup, that I think enhances readability. Additionally, wrangler has been upgraded which now supports openapi schema creation so norman has been dropped.

Primarily, however, this change is meant to address #25 (and possibly #36) caused by a bug in wrangler that:
- prevented the controller from properly replacing jobs that could not be patched (pod tempalte spec changes)
- prevented the controller from replacing a job generated with the `apply.WithNoDelete` option
- prevented the controller from processing external plan edits in a timely manner (no more long waits due to spurious replace-wait errors)

Fixes #25
Fixes #34

Depends on rancher/wrangler#66
2020-02-25 12:42:24 -07:00
Jacob Blain Christen 81b18094e8 munge plan.status.latestVersion
This fixes the use case where a channel resolves to (or a version value is) a legitimate SemVer with metadata by replacing all `+` with `-`.
i.e. in the case of k3s, git tag v1.17.2+k3s1 as the version becomes the docker tag v1.17.2-k3s1

Fixes #28
2020-02-13 17:18:22 -07:00
Jacob Blain Christen b53bd3bac0 testing: sonobuoy plugin for e2e testing
- includes removal of controller serviceAccountName references and envvar
- image tarballs a la `docker save` are added to dist/artifacts
- sonobuoy plugin yaml added to dist/artifacts
- introduces e2e-tests tag suffix image that can be used for the sonobuoy plugin
2020-02-10 10:45:39 -07:00