Skip to content

Commit 1ad7226

Browse files
author
Shaik Mahboob Shareef
committed
Add validation for ProactiveConf name
(cherry picked from commit d41dd18) (cherry picked from commit 8e4242c)
1 parent 9c27862 commit 1ad7226

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

provision/acc_provision/templates/aci-containers.yaml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1381,6 +1381,7 @@ spec:
13811381
metadata:
13821382
type: object
13831383
spec:
1384+
type: object
13841385
properties:
13851386
TunnelEpAdvertisementInterval:
13861387
type: integer
@@ -1389,7 +1390,11 @@ spec:
13891390
- Immediate
13901391
- OnDemand
13911392
type: string
1392-
type: object
1393+
required:
1394+
- spec
1395+
x-kubernetes-validations:
1396+
- rule: "self.metadata.name == 'proactiveconf'"
1397+
message: "Only one instance allowed with name proactiveconf"
13931398
---
13941399
{% endif %}
13951400
{% endif %}

provision/testdata/with_overrides.kube.yaml

+7-2
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)