Skip to content

Commit

Permalink
Leave subnetResourceID as is, just add subnetGUID field to PN CRD
Browse files Browse the repository at this point in the history
  • Loading branch information
Samarth Shah committed Oct 27, 2023
1 parent 59a0074 commit 9c87eef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion crd/multitenancy/api/v1alpha1/podnetwork.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ import (
// +kubebuilder:printcolumn:name="Status",type=string,priority=1,JSONPath=`.status.status`
// +kubebuilder:printcolumn:name="Address Prefixes",type=string,priority=1,JSONPath=`.status.addressPrefixes`
// +kubebuilder:printcolumn:name="Network",type=string,priority=1,JSONPath=`.spec.vnetGUID`
// +kubebuilder:printcolumn:name="Subnet",type=string,priority=1,JSONPath=`.spec.subnetGUID`
// +kubebuilder:printcolumn:name="Subnet",type=string,priority=1,JSONPath=`.spec.subnetResourceID`
// +kubebuilder:printcolumn:name="SubnetGUID",type=string,priority=1,JSONPath=`.spec.subnetGUID`
type PodNetwork struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand All @@ -40,6 +41,8 @@ type PodNetworkSpec struct {
// +kubebuilder:validation:Optional
// customer vnet guid
VnetGUID string `json:"vnetGUID,omitempty"`
// customer subnet id
SubnetResourceID string `json:"subnetResourceID,omitempty"`
// customer subnet guid
SubnetGUID string `json:"subnetGUID,omitempty"`
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ spec:
name: Network
priority: 1
type: string
- jsonPath: .spec.subnetGUID
- jsonPath: .spec.subnetResourceID
name: Subnet
priority: 1
type: string
- jsonPath: .spec.subnetGUID
name: SubnetGUID
priority: 1
type: string
name: v1alpha1
schema:
openAPIV3Schema:
Expand All @@ -53,6 +57,9 @@ spec:
spec:
description: PodNetworkSpec defines the desired state of PodNetwork
properties:
subnetResourceID:
description: customer subnet id
type: string
subnetGUID:
description: customer subnet guid
type: string
Expand Down

0 comments on commit 9c87eef

Please sign in to comment.