Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add kyverno to staging #5203

Merged
merged 1 commit into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ resources:
- konflux-rbac
- konflux-info
- vector-tekton-logs-collector
- kyverno
components:
- ../../../k-components/inject-infra-deployments-repo-details
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- kyverno.yaml
47 changes: 47 additions & 0 deletions argo-cd-apps/base/member/infra-deployments/kyverno/kyverno.yaml
filariow marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: kyverno
labels:
noSourceTransform: "true"
spec:
generators:
- merge:
mergeKeys:
- nameNormalized
generators:
- clusters:
values:
sourceRoot: components/kyverno
environment: staging
clusterDir: ""
- list:
elements: []
template:
metadata:
name: kyverno-{{nameNormalized}}
spec:
project: default
sources:
- chart: kyverno
repoURL: https://kyverno.github.io/kyverno/
targetRevision: 3.3.4
helm:
valueFiles:
- $values/{{values.sourceRoot}}/{{values.environment}}/values.yaml
destination:
namespace: konflux-kyverno
server: '{{server}}'
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- Replace=true # Recommended by upstream
retry:
limit: 50
backoff:
duration: 10s
factor: 2
maxDuration: 3m
6 changes: 6 additions & 0 deletions argo-cd-apps/overlays/development/delete-applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,9 @@ kind: ApplicationSet
metadata:
name: konflux-info
$patch: delete
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: kyverno
$patch: delete
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,9 @@ kind: ApplicationSet
metadata:
name: nvme-storage-configurator
$patch: delete
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: kyverno
$patch: delete
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,9 @@ $patch: delete
# metadata:
# name: nvme-storage-configurator
# $patch: delete
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: kyverno
$patch: delete
8 changes: 8 additions & 0 deletions components/kyverno/staging/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
admissionController:
replicas: 3
backgroundController:
replicas: 3
cleanupController:
replicas: 3
reportsController:
replicas: 3
Loading