Skip to content

Commit

Permalink
evict ingress-nginx-controller from kube-downscaler scope
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEnigmaa committed Dec 26, 2024
1 parent 3a6e544 commit dd13eec
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Add dnsDomainRoot to fix an issue with applications using .cluster.local.
- Add `ingress-nginx-kube-downscaler-eviction` ClusterPolicy to avoid conflict between the kube-downscaler and ingress-nginx-controller.

## [0.6.2] - 2024-10-31

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# THIS FILE IS GENERATED WITH 'make generate' - DO NOT EDIT MANUALLY
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: ingress-nginx-kube-downscaler-eviction
spec:
validationFailureAction: Enforce
rules:
- name: add-downscaler-exclude-annotation
match:
all:
- resources:
kinds:
- Deployment
- autoscaling/v2/HorizontalPodAutoscaler
names:
- ingress-nginx-controller
mutate:
patchStrategicMerge:
metadata:
annotations:
downscaler/exclude: "true"
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
name: ingress-nginx-kube-downscaler-eviction
spec:
validationFailureAction: Enforce
rules:
- name: add-downscaler-exclude-annotation
match:
all:
- resources:
kinds:
- Deployment
- autoscaling/v2/HorizontalPodAutoscaler
names:
- ingress-nginx-controller
mutate:
patchStrategicMerge:
metadata:
annotations:
downscaler/exclude: "true"

0 comments on commit dd13eec

Please sign in to comment.