View details of a Cluster Policy
view cluster policies
Use Wayfinder's User Interface or CLI to view all the details of a specific cluster policy.
CLI Commands
wf get globalclusterpolicies POLICY -o yaml
Use the -o yaml
flag to output the YAML to the console.
wf get globalclusterpolicies flux.default.global -o yaml
apiVersion: policydelivery.appvia.io/v1alpha1
kind: GlobalClusterPolicy
metadata:
name: flux.default.global
spec:
policy:
kyverno:
background: false
rules:
- exclude:
resources: {}
subjects:
- kind: ServiceAccount
name: wf-cluster-admin
namespace: kube-system
generate:
clone: {}
cloneList: {}
match:
resources:
kinds:
- HelmRelease
namespaceSelector:
matchExpressions:
- key: appvia.io/workspace
operator: Exists
mutate: {}
name: validate-helmrelease-serviceaccount
validate:
message: HelmReleases must specify a ServiceAccount
pattern:
spec:
serviceAccountName: ?*
validationFailureAction: enforce
type: Kyverno
target:
cluster: {}
namespace: {}
Web Interface Instructions
Steps
- Expand Admin, and then navigate to Policy > Cluster
- Click on the name of a cluster policy to see all the details of that policy
Screenshot(s)