Skip to content

Commit

Permalink
Merge pull request #4 from weaveworks/update-to-v2beta2
Browse files Browse the repository at this point in the history
update policies api version to v2beta2
  • Loading branch information
Ahmed El-Sayed authored Nov 10, 2022
2 parents b682ed1 + 55df92e commit d8a5d16
Show file tree
Hide file tree
Showing 185 changed files with 1,903 additions and 1,903 deletions.
2 changes: 1 addition & 1 deletion examples/ControllerAffinityNode/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.affinity-node-simple
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerAffinityNodeSelector/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.affinity-node-selector
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerAffinityPods/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.affinity-pod-simple
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerAntiAffinityPods/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.antiaffinity-pod-simple
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerContainerEnforceEnvVar/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.container-enforce-environment-variable
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerContainerProhibitEnvVar/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.container-prohibit-environment-variable
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerImageApprovedRegistry/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.approved-registry
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerImageName/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.containers-block-specific-image-names
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerMissingLabelValue/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.metadata-missing-label-and-value
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerMissingMatchLabelKey/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.missing-matchlabels-key
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerProbesCustom/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.container-custom-probe
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerProbesNamedPort/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.container-named-port
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerResourcesMaxCPULimits/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.container-maximum-cpu-limits
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerResourcesMaxCPURequests/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.container-maximum-cpu-requests
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerResourcesMaxMemoryLimits/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.container-maximum-memory-limits
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerResourcesMaxMemoryRequests/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.container-maximum-memory-requests
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerResourcesMinCPULimits/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.container-minimum-cpu-limits
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerResourcesMinCPURequests/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.container-minimum-cpu-requests
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerResourcesMinMemoryLimits/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.container-minimum-memory-limits
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerResourcesMinMemoryRequests/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.container-minimum-memory-requests
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerSpecGeneric/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.containers-are-missing-a-controller-spec-key
Expand Down
2 changes: 1 addition & 1 deletion examples/ControllerSpecTemplateLabels/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.containers-are-missing-a-spec-template-label
Expand Down
2 changes: 1 addition & 1 deletion examples/IngressClass/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.enforce-specific-ingress-class
Expand Down
2 changes: 1 addition & 1 deletion examples/IngressHostname/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.ingress-approved-hostnames
Expand Down
2 changes: 1 addition & 1 deletion examples/IstioGatewayHosts/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.istio-gateway-approved-hosts
Expand Down
2 changes: 1 addition & 1 deletion examples/IstioNamespaceLabelInjection/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.istio-injected-namespaces
Expand Down
2 changes: 1 addition & 1 deletion examples/KubernetesKubeletVersion/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.kubernetes-minimum-kubelet-version
Expand Down
2 changes: 1 addition & 1 deletion examples/KubernetesProhibitKind/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.prohibit-specific-kind-from-being-scheduled
Expand Down
2 changes: 1 addition & 1 deletion examples/NamespaceLimitRangeMinMax/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.namespace-resources-limitrange
Expand Down
2 changes: 1 addition & 1 deletion examples/NamespacePodQuota/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.namespace-pod-quota
Expand Down
2 changes: 1 addition & 1 deletion examples/NamespaceResourceQuotas/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.resource-quota-setting-is-missing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.network-allow-all-egress-traffic-from-namespace
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.network-allow-all-egress-traffic-from-namespace-to-cidr-block
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.network-allow-egress-dns-to-coredns
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.network-allow-egress-traffic-from-namespace-to-another
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.network-allow-all-ingress-traffic-to-namespace
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.network-allow-all-ingress-traffic-to-namespace-from-cidr-block
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.network-allow-ingress-traffic-from-namespace-to-another
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.network-block-all-egress-traffic-from-namespace
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.network-block-all-egress-traffic-for-namespace-to-cidr-block
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.network-block-all-ingress-traffic-to-namespace
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.network-block-all-ingress-traffic-to-namespace-from-cidr-block
Expand Down
2 changes: 1 addition & 1 deletion examples/NodeCustomLabel/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.node-custom-label
Expand Down
2 changes: 1 addition & 1 deletion examples/NodeKernelVersion/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.node-kernel-versions
Expand Down
2 changes: 1 addition & 1 deletion examples/NodeMissingLabel/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.node-missing-label
Expand Down
2 changes: 1 addition & 1 deletion examples/NodeOSVersion/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.node-os-version
Expand Down
2 changes: 1 addition & 1 deletion examples/PersistentVolumeAccessModes/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.persistent-volume-access-modes
Expand Down
2 changes: 1 addition & 1 deletion examples/PersistentVolumeClaimMaxSize/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.persistent-volume-claim-max-size
Expand Down
2 changes: 1 addition & 1 deletion examples/PersistentVolumeClaimSnapshot/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.persistent-volume-claim-snapshot
Expand Down
2 changes: 1 addition & 1 deletion examples/PersistentVolumeMaxSize/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.persistent-volume-max-size
Expand Down
2 changes: 1 addition & 1 deletion examples/PrometheusAnnotationKey/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.enforce-prometheus-annotation-key
Expand Down
2 changes: 1 addition & 1 deletion examples/PrometheusAnnotationValue/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.enforce-prometheus-annotation-value
Expand Down
2 changes: 1 addition & 1 deletion examples/PrometheusServiceAnnontationKey/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.enforce-prometheus-service-annotation-key
Expand Down
2 changes: 1 addition & 1 deletion examples/RBACProhibitEditingConfigMaps/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.rbac-prohibit-updating-configmaps
Expand Down
2 changes: 1 addition & 1 deletion examples/RBACProhibitVerbsOnResources/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.rbac-prohibit-verbs-on-resources
Expand Down
2 changes: 1 addition & 1 deletion examples/RBACProhibitWildcards/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.templates.rbac-prohibit-resources-wildcards
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.policies.containers-running-with-privilege-escalation
Expand Down
2 changes: 1 addition & 1 deletion policies/ControllerContainerBlockHostPath/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.policies.containers-using-hostpath
Expand Down
2 changes: 1 addition & 1 deletion policies/ControllerContainerBlockPortsRange/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.policies.containers-block-ports-range
Expand Down
2 changes: 1 addition & 1 deletion policies/ControllerContainerBlockSSHPort/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.policies.containers-block-ssh-port
Expand Down
2 changes: 1 addition & 1 deletion policies/ControllerContainerBlockSysctls/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.policies.container-block-sysctl
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.policies.container-block-sysctl.cve-2022-0811
Expand Down
2 changes: 1 addition & 1 deletion policies/ControllerContainerLinuxCapabilities/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.policies.containers-running-with-unapproved-linux-capabilities
Expand Down
2 changes: 1 addition & 1 deletion policies/ControllerContainerRunningAsRoot/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.policies.container-running-as-root
Expand Down
2 changes: 1 addition & 1 deletion policies/ControllerContainerRunningAsUser/policy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.policies.container-running-as-user
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: pac.weave.works/v2beta1
apiVersion: pac.weave.works/v2beta2
kind: Policy
metadata:
name: weave.policies.containers-running-in-privileged-mode
Expand Down
Loading

0 comments on commit d8a5d16

Please sign in to comment.