Skip to content

Commit 110d80b

Browse files
committed
fix: questions-ui.yml missing latest configuration.
The questions-ui.yml file is missing the latest configuration added: ignoreValues. This commits adds this new field in the file. As well as, configures the other fields to be hidden when user sets ignoreValue to false. Signed-off-by: José Guilherme Vanz <[email protected]>
1 parent c4c6bc1 commit 110d80b

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

artifacthub-pkg.yml

+23-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
version: 0.2.2
88
name: container-resources
99
displayName: Container Resources
10-
createdAt: 2024-03-15T17:07:43.480376548Z
10+
createdAt: 2024-04-12T11:54:02.226315046Z
1111
description: Policy is designed to enforce constraints on the resource requirements of Kubernetes containers
1212
license: Apache-2.0
1313
homeURL: https://github.com/kubewarden/container-resources-policy
@@ -60,27 +60,38 @@ annotations:
6060
type: map[
6161
variable: cpu
6262
subquestions:
63+
- default: false
64+
group: Settings
65+
label: Ignore values
66+
title: Ignore values
67+
type: boolean
68+
variable: cpu.ignoreValues
69+
tooltip: >-
70+
Skip enforcement of specific values, but ensure that requests and limits are set
6371
- default: ''
6472
tooltip: >-
6573
Defines default minimum CPU requested.
6674
group: Settings
6775
label: Default CPU requested
6876
type: string
6977
variable: cpu.defaultRequest
78+
show_if: cpu.ignoreValues=false
7079
- default: ''
7180
tooltip: >-
7281
Defines default CPU limit value.
7382
group: Settings
7483
label: Default CPU limit
7584
type: string
7685
variable: cpu.defaultLimit
86+
show_if: cpu.ignoreValues=false
7787
- default: ''
7888
tooltip: >-
7989
Defines maximum limit value allowed to be set for the CPU resource
8090
group: Settings
8191
label: Max CPU limit allowed
8292
type: string
8393
variable: cpu.maxLimit
94+
show_if: cpu.ignoreValues=false
8495
- default: {}
8596
description: Defines the limit and minimum amount requested for memory resource
8697
group: Settings
@@ -89,27 +100,38 @@ annotations:
89100
type: map[
90101
variable: memory
91102
subquestions:
103+
- default: false
104+
group: Settings
105+
label: Ignore values
106+
title: Ignore values
107+
type: boolean
108+
variable: memory.ignoreValues
109+
tooltip: >-
110+
Skip enforcement of specific values, but ensure that requests and limits are set
92111
- default: ''
93112
tooltip: >-
94113
Defines default minimum memory requested.
95114
group: Settings
96115
label: Default memory requested
97116
type: string
98117
variable: memory.defaultRequest
118+
show_if: memory.ignoreValues=false
99119
- default: ''
100120
tooltip: >-
101121
Defines default memory limit value.
102122
group: Settings
103123
label: Default memory limit
104124
type: string
105125
variable: memory.defaultLimit
126+
show_if: memory.ignoreValues=false
106127
- default: ''
107128
tooltip: >-
108129
Defines maximum limit value allowed to be set for the memory resource
109130
group: Settings
110131
label: Max memory limit allowed
111132
type: string
112133
variable: memory.maxLimit
134+
show_if: memory.ignoreValues=false
113135
- default: []
114136
description: >-
115137
Configuration used to exclude containers from enforcement

questions-ui.yml

+22
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,38 @@ questions:
1717
type: map[
1818
variable: cpu
1919
subquestions:
20+
- default: false
21+
group: Settings
22+
label: Ignore values
23+
title: Ignore values
24+
type: boolean
25+
variable: cpu.ignoreValues
26+
tooltip: >-
27+
Skip enforcement of specific values, but ensure that requests and limits are set
2028
- default: ''
2129
tooltip: >-
2230
Defines default minimum CPU requested.
2331
group: Settings
2432
label: Default CPU requested
2533
type: string
2634
variable: cpu.defaultRequest
35+
show_if: cpu.ignoreValues=false
2736
- default: ''
2837
tooltip: >-
2938
Defines default CPU limit value.
3039
group: Settings
3140
label: Default CPU limit
3241
type: string
3342
variable: cpu.defaultLimit
43+
show_if: cpu.ignoreValues=false
3444
- default: ''
3545
tooltip: >-
3646
Defines maximum limit value allowed to be set for the CPU resource
3747
group: Settings
3848
label: Max CPU limit allowed
3949
type: string
4050
variable: cpu.maxLimit
51+
show_if: cpu.ignoreValues=false
4152
- default: {}
4253
description: Defines the limit and minimum amount requested for memory resource
4354
group: Settings
@@ -46,27 +57,38 @@ questions:
4657
type: map[
4758
variable: memory
4859
subquestions:
60+
- default: false
61+
group: Settings
62+
label: Ignore values
63+
title: Ignore values
64+
type: boolean
65+
variable: memory.ignoreValues
66+
tooltip: >-
67+
Skip enforcement of specific values, but ensure that requests and limits are set
4968
- default: ''
5069
tooltip: >-
5170
Defines default minimum memory requested.
5271
group: Settings
5372
label: Default memory requested
5473
type: string
5574
variable: memory.defaultRequest
75+
show_if: memory.ignoreValues=false
5676
- default: ''
5777
tooltip: >-
5878
Defines default memory limit value.
5979
group: Settings
6080
label: Default memory limit
6181
type: string
6282
variable: memory.defaultLimit
83+
show_if: memory.ignoreValues=false
6384
- default: ''
6485
tooltip: >-
6586
Defines maximum limit value allowed to be set for the memory resource
6687
group: Settings
6788
label: Max memory limit allowed
6889
type: string
6990
variable: memory.maxLimit
91+
show_if: memory.ignoreValues=false
7092
- default: []
7193
description: >-
7294
Configuration used to exclude containers from enforcement

0 commit comments

Comments
 (0)