Skip to content

Commit ada7560

Browse files
samarths-msftSamarth Shah
andauthored
fix: Add SubnetGUID to MT PodNetwork CRD (#2321)
* Update SubnetResourceId to SubnetGUID * Leave subnetResourceID as is, just add subnetGUID field to PN CRD * Update order of properties in PodNetworkSpec --------- Co-authored-by: Samarth Shah <[email protected]>
1 parent d34c61f commit ada7560

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

crd/multitenancy/api/v1alpha1/podnetwork.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
// +kubebuilder:printcolumn:name="Address Prefixes",type=string,priority=1,JSONPath=`.status.addressPrefixes`
1919
// +kubebuilder:printcolumn:name="Network",type=string,priority=1,JSONPath=`.spec.vnetGUID`
2020
// +kubebuilder:printcolumn:name="Subnet",type=string,priority=1,JSONPath=`.spec.subnetResourceID`
21+
// +kubebuilder:printcolumn:name="SubnetGUID",type=string,priority=1,JSONPath=`.spec.subnetGUID`
2122
type PodNetwork struct {
2223
metav1.TypeMeta `json:",inline"`
2324
metav1.ObjectMeta `json:"metadata,omitempty"`
@@ -42,6 +43,8 @@ type PodNetworkSpec struct {
4243
VnetGUID string `json:"vnetGUID,omitempty"`
4344
// customer subnet id
4445
SubnetResourceID string `json:"subnetResourceID,omitempty"`
46+
// customer subnet guid
47+
SubnetGUID string `json:"subnetGUID,omitempty"`
4548
}
4649

4750
// Status indicates the status of PN

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ spec:
3333
name: Subnet
3434
priority: 1
3535
type: string
36+
- jsonPath: .spec.subnetGUID
37+
name: SubnetGUID
38+
priority: 1
39+
type: string
3640
name: v1alpha1
3741
schema:
3842
openAPIV3Schema:
@@ -53,6 +57,9 @@ spec:
5357
spec:
5458
description: PodNetworkSpec defines the desired state of PodNetwork
5559
properties:
60+
subnetGUID:
61+
description: customer subnet guid
62+
type: string
5663
subnetResourceID:
5764
description: customer subnet id
5865
type: string

0 commit comments

Comments
 (0)