diff --git a/Makefile b/Makefile index 9bbdc0f..8d89ada 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ ARCH ?= $(shell go env GOARCH) OS ?= $(shell uname -s | tr A-Z a-z) K8S_LATEST_VER ?= $(shell curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt) export CONTROLLER_IMG ?= $(REGISTRY)/$(IMAGE_NAME) -TAG ?= main +TAG ?= v0.9.0 .PHONY: all all: build diff --git a/charts/k8s-cleaner/README.md b/charts/k8s-cleaner/README.md index 6badb73..5664c5b 100644 --- a/charts/k8s-cleaner/README.md +++ b/charts/k8s-cleaner/README.md @@ -32,7 +32,7 @@ Major Changes to functions are documented with the version affected. **Before up | controller.image.pullPolicy | string | `"IfNotPresent"` | Controller Image pull policy | | controller.image.registry | string | `"docker.io"` | Controller Image Registry | | controller.image.repository | string | `"projectsveltos/k8s-cleaner"` | Controller Image Repository | -| controller.image.tag | string | `"v0.7.0"` | ControllerImage Tag | +| controller.image.tag | string | `"v0.9.0"` | ControllerImage Tag | | controller.livenessProbe | object | `{"enabled":true,"httpGet":{"path":"/healthz","port":"healthz","scheme":"HTTP"},"initialDelaySeconds":15,"periodSeconds":20}` | Controller LivenessProbe | | controller.ports[0].containerPort | int | `8443` | | | controller.ports[0].name | string | `"metrics"` | | diff --git a/charts/k8s-cleaner/crd/apps.projectsveltos.io_cleaners.yaml b/charts/k8s-cleaner/crd/apps.projectsveltos.io_cleaners.yaml index 65869b3..2851e2c 100644 --- a/charts/k8s-cleaner/crd/apps.projectsveltos.io_cleaners.yaml +++ b/charts/k8s-cleaner/crd/apps.projectsveltos.io_cleaners.yaml @@ -50,6 +50,31 @@ spec: - Transform - Scan type: string + deleteOptions: + description: |- + DeleteOption is some configuration that modifies options for a delete request. + This will be used only when action is delete + properties: + gracePeriodSeconds: + description: |- + GracePeriodSeconds is the duration in seconds before the object should be + deleted. Value must be non-negative integer. The value zero indicates + delete immediately. If this value is nil, the default grace period for the + specified type will be used. + format: int64 + type: integer + propagationPolicy: + description: |- + PropagationPolicy determined whether and how garbage collection will be + performed. Either this field or OrphanDependents may be set, but not both. + The default policy is decided by the existing finalizer set in the + metadata.finalizers and the resource-specific default policy. + Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - + allow the garbage collector to delete the dependents in the background; + 'Foreground' - a cascading policy that deletes all dependents in the + foreground. + type: string + type: object notifications: description: Notification is a list of source of events to evaluate. items: @@ -150,6 +175,12 @@ spec: Must return struct with field "matching" representing whether object is a match and an optional "message" field. type: string + excludeDeleted: + default: true + description: |- + ExcludeDeleted if set (default value), exclude resources marked as + deleted. If set to false, k8s-cleaner will consider also resources marked as deleted. + type: boolean group: description: Group of the resource deployed in the Cluster. type: string diff --git a/charts/k8s-cleaner/values.yaml b/charts/k8s-cleaner/values.yaml index 22cb8ce..c8ae65a 100644 --- a/charts/k8s-cleaner/values.yaml +++ b/charts/k8s-cleaner/values.yaml @@ -26,7 +26,7 @@ controller: # -- Controller Image Repository repository: projectsveltos/k8s-cleaner # -- ControllerImage Tag - tag: "v0.7.0" + tag: "v0.9.0" # -- Controller Image pull policy pullPolicy: IfNotPresent # -- Controller ARguments diff --git a/config/default/manager_image_patch.yaml b/config/default/manager_image_patch.yaml index 6812f2a..0d80658 100644 --- a/config/default/manager_image_patch.yaml +++ b/config/default/manager_image_patch.yaml @@ -8,5 +8,5 @@ spec: spec: containers: # Change the value of image field below to your controller image URL - - image: docker.io/projectsveltos/k8s-cleaner:main + - image: docker.io/projectsveltos/k8s-cleaner:v0.9.0 name: controller diff --git a/manifest/manifest.yaml b/manifest/manifest.yaml index b263975..9aaaa7f 100644 --- a/manifest/manifest.yaml +++ b/manifest/manifest.yaml @@ -512,7 +512,7 @@ spec: - --diagnostics-address=:8443 command: - /manager - image: docker.io/projectsveltos/k8s-cleaner:main + image: docker.io/projectsveltos/k8s-cleaner:v0.9.0 livenessProbe: failureThreshold: 3 httpGet: