Skip to content

Commit 6e66efd

Browse files
[refactor] make podname optional (#2584)
* [refactor] make podname optional * push manifest yaml * remove podame from mtpnc (the correct way) --------- Co-authored-by: Aranta Rokade <[email protected]>
1 parent 3d95a18 commit 6e66efd

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ type MultitenantPodNetworkConfigSpec struct {
4848
// name of PN object from requesting cx pod
4949
PodNetwork string `json:"podNetwork"`
5050
// name of the requesting cx pod
51-
PodName string `json:"podName"`
51+
PodName string `json:"podName,omitempty"`
5252
}
5353

5454
// MultitenantPodNetworkConfigStatus defines the observed state of PodNetworkConfig

crd/multitenancy/manifests/multitenancy.acn.azure.com_multitenantpodnetworkconfigs.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ spec:
7373
description: name of PNI object from requesting cx pod
7474
type: string
7575
required:
76-
- podName
7776
- podNetwork
7877
type: object
7978
status:

0 commit comments

Comments
 (0)