Skip to content

Latest commit

 

History

History
61 lines (35 loc) · 1.05 KB

kubewarden.md

File metadata and controls

61 lines (35 loc) · 1.05 KB

Policies With Kubewarden

TODO: Intro

Setup

# TODO: kapp-controller

chmod +x manuscript/policies/kubewarden.sh

./manuscript/policies/kubewarden.sh

source .env

Do

cat policies/kubewarden.yaml

cp policies/kubewarden.yaml infra/policies.yaml

git add .

git commit -m "Policies"

git push

kubectl get clusteradmissionpolicies

# Wait until the policies are created

kubectl --namespace production get admissionpolicies

# Wait until the policies are created

export POLICY_KIND=admissionpolicy

yq --inplace ".policies.type = \"kubewarden\"" settings.yaml

yq --inplace ".policies.kind = \"$POLICY_KIND\"" settings.yaml

cp $GITOPS_APP/cncf-demo-$TEMPLATES.yaml apps/cncf-demo.yaml

git add .

git commit -m "CNCF Demo"

git push

How Did You Define Your App?