1
1
---
2
- version : 0.1.1
2
+ version : 0.1.2
3
3
name : environment-variable-policy
4
4
displayName : Environment Variable Policy
5
- createdAt : ' 2022-10-25T08:41:16-03 :00'
5
+ createdAt : ' 2023-01-19T14:46:21+02 :00'
6
6
description : A Kubewarden Policy that controls the usage of environment variables
7
7
license : Apache-2.0
8
8
homeURL : https://github.com/kubewarden/environment-variable-policy
9
9
containersImages :
10
10
- name : policy
11
- image : " ghcr.io/kubewarden/policies/environment-variable-policy:v0.1.1 "
11
+ image : " ghcr.io/kubewarden/policies/environment-variable-policy:v0.1.2 "
12
12
keywords :
13
13
- deployment
14
14
- replicaset
@@ -22,7 +22,7 @@ keywords:
22
22
- environment-variables
23
23
links :
24
24
- name : policy
25
- url : https://github.com/kubewarden/environment-variable-policy/releases/download/v0.1.1 /policy.wasm
25
+ url : https://github.com/kubewarden/environment-variable-policy/releases/download/v0.1.2 /policy.wasm
26
26
- name : source
27
27
url : https://github.com/kubewarden/environment-variable-policy
28
28
provider :
@@ -33,3 +33,60 @@ annotations:
33
33
kubewarden/resources : Deployment,Replicaset,Statefulset,Daemonset,Replicationcontroller,Job,Cronjob,Pod
34
34
kubewarden/mutation : false
35
35
kubewarden/contextAware : false
36
+ kubewarden/rules : |
37
+ rules:
38
+ - apiGroups: [""]
39
+ apiVersions: ["v1"]
40
+ resources: ["deployment","replicaset","statefulset","daemonset","replicationcontroller","job","cronjob","pod"]
41
+ operations: ["CREATE"]
42
+ kubewarden/questions-ui : |
43
+ questions:
44
+ - default: null
45
+ description: >-
46
+ Each rule defined in the policy settings is composed by a reject operator
47
+ and a set of the environment variables used with the operator against the
48
+ environment variables from the resources. The rules are evaluated in the
49
+ order that they are defined. The resource is denied in the first failed
50
+ evaluated rule.
51
+ group: Settings
52
+ label: Description
53
+ required: false
54
+ hide_input: true
55
+ type: string
56
+ variable: description
57
+ - default: []
58
+ group: Settings
59
+ label: Rules
60
+ hide_input: true
61
+ type: map[
62
+ variable: rules
63
+ subquestions:
64
+ - default: anyIn
65
+ group: Settings
66
+ label: Reject Operator
67
+ options:
68
+ - anyIn
69
+ - anyNotIn
70
+ - allAreUsed
71
+ - notAllAreUsed
72
+ required: false
73
+ type: enum
74
+ variable: rules.reject
75
+ - default: []
76
+ description: ''
77
+ group: Settings
78
+ label: Environment Variables
79
+ hide_input: true
80
+ type: map[
81
+ variable: rules.environmentVariables
82
+ subquestions:
83
+ - default: ''
84
+ group: Settings
85
+ label: Name
86
+ type: string
87
+ variable: rules.environmentVariables.name
88
+ - default: ''
89
+ group: Settings
90
+ label: Value
91
+ type: string
92
+ variable: rules.environmentVariables.value
0 commit comments