mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
18 lines
394 B
YAML
18 lines
394 B
YAML
|
apiVersion : kubepolicy.nirmata.io/v1alpha1
|
||
|
kind: Policy
|
||
|
metadata :
|
||
|
name: "policy-configmapgenerator-test"
|
||
|
spec:
|
||
|
rules:
|
||
|
- name: "Policy ConfigMap sample rule"
|
||
|
resource:
|
||
|
kind : Namespace
|
||
|
name: "ns2"
|
||
|
generate:
|
||
|
kind: ConfigMap
|
||
|
name: copied-cm
|
||
|
copyFrom:
|
||
|
namespace: default
|
||
|
name: game-config
|
||
|
data:
|
||
|
secretData: "data from cmg"
|