mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-15 17:51:20 +00:00
d96499462e
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
28 lines
526 B
Bash
Executable file
28 lines
526 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
# CREATE KYVERNO-POLICIES APP
|
|
|
|
kubectl apply -f - <<EOF
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: kyverno-policies
|
|
namespace: argocd
|
|
spec:
|
|
destination:
|
|
namespace: kyverno
|
|
server: https://kubernetes.default.svc
|
|
project: default
|
|
source:
|
|
chart: kyverno-policies
|
|
repoURL: https://kyverno.github.io/kyverno
|
|
targetRevision: 2.7.2
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|
|
EOF
|