Skip to content

Commit

Permalink
update swiftv2 crds scope (#2176)
Browse files Browse the repository at this point in the history
  • Loading branch information
aggarwal0009 authored Aug 25, 2023
1 parent e789e04 commit 216cc23
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 13 deletions.
3 changes: 1 addition & 2 deletions crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import (
// +kubebuilder:object:root=true

// MultitenantPodNetworkConfig is the Schema for the multitenantpodnetworkconfigs API
// +kubebuilder:resource:scope=Namespaced
// +kubebuilder:resource:shortName=mtpnc
// +kubebuilder:resource:shortName=mtpnc,scope=Cluster
// +kubebuilder:subresource:status
// +kubebuilder:metadata:labels=managed=
// +kubebuilder:metadata:labels=owner=
Expand Down
4 changes: 1 addition & 3 deletions crd/multitenancy/api/v1alpha1/nodeinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import (
// +kubebuilder:object:root=true

// NodeInfo is the Schema for the NodeInfo API
// +kubebuilder:resource:scope=Namespaced
// +kubebuilder:resource:shortName=ni
// +kubebuilder:resource:path=nodeinfo
// +kubebuilder:resource:shortName=ni,scope=Cluster,path=nodeinfo
// +kubebuilder:printcolumn:name="VMUniqueID",type=string,priority=0,JSONPath=`.spec.vmUniqueID`
type NodeInfo struct {
metav1.TypeMeta `json:",inline"`
Expand Down
3 changes: 1 addition & 2 deletions crd/multitenancy/api/v1alpha1/podnetwork.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import (
// +kubebuilder:object:root=true

// PodNetwork is the Schema for the PodNetworks API
// +kubebuilder:resource:scope=Namespaced
// +kubebuilder:resource:shortName=pn
// +kubebuilder:resource:shortName=pn,scope=Cluster
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Status",type=string,priority=1,JSONPath=`.status.status`
// +kubebuilder:printcolumn:name="Address Prefixes",type=string,priority=1,JSONPath=`.status.addressPrefixes`
Expand Down
3 changes: 1 addition & 2 deletions crd/multitenancy/api/v1alpha1/podnetworkinstance.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ import (
// +kubebuilder:object:root=true

// PodNetworkInstance is the Schema for the PodNetworkInstances API
// +kubebuilder:resource:scope=Namespaced
// +kubebuilder:resource:shortName=pni
// +kubebuilder:resource:shortName=pni,scope=Cluster
// +kubebuilder:subresource:status
// +kubebuilder:metadata:labels=managed=
// +kubebuilder:metadata:labels=owner=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
shortNames:
- mtpnc
singular: multitenantpodnetworkconfig
scope: Namespaced
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.podNetworkInstance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ spec:
kind: NodeInfo
listKind: NodeInfoList
plural: nodeinfo
shortNames:
- ni
singular: nodeinfo
scope: Namespaced
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.vmUniqueID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
shortNames:
- pni
singular: podnetworkinstance
scope: Namespaced
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .status.podIPAddresses
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
shortNames:
- pn
singular: podnetwork
scope: Namespaced
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .status.status
Expand Down

0 comments on commit 216cc23

Please sign in to comment.