Skip to content

Commit 216cc23

Browse files
authored
update swiftv2 crds scope (#2176)
1 parent e789e04 commit 216cc23

8 files changed

+10
-13
lines changed

crd/multitenancy/api/v1alpha1/multitenantpodnetworkconfig.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import (
1212
// +kubebuilder:object:root=true
1313

1414
// MultitenantPodNetworkConfig is the Schema for the multitenantpodnetworkconfigs API
15-
// +kubebuilder:resource:scope=Namespaced
16-
// +kubebuilder:resource:shortName=mtpnc
15+
// +kubebuilder:resource:shortName=mtpnc,scope=Cluster
1716
// +kubebuilder:subresource:status
1817
// +kubebuilder:metadata:labels=managed=
1918
// +kubebuilder:metadata:labels=owner=

crd/multitenancy/api/v1alpha1/nodeinfo.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ import (
1212
// +kubebuilder:object:root=true
1313

1414
// NodeInfo is the Schema for the NodeInfo API
15-
// +kubebuilder:resource:scope=Namespaced
16-
// +kubebuilder:resource:shortName=ni
17-
// +kubebuilder:resource:path=nodeinfo
15+
// +kubebuilder:resource:shortName=ni,scope=Cluster,path=nodeinfo
1816
// +kubebuilder:printcolumn:name="VMUniqueID",type=string,priority=0,JSONPath=`.spec.vmUniqueID`
1917
type NodeInfo struct {
2018
metav1.TypeMeta `json:",inline"`

crd/multitenancy/api/v1alpha1/podnetwork.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import (
1212
// +kubebuilder:object:root=true
1313

1414
// PodNetwork is the Schema for the PodNetworks API
15-
// +kubebuilder:resource:scope=Namespaced
16-
// +kubebuilder:resource:shortName=pn
15+
// +kubebuilder:resource:shortName=pn,scope=Cluster
1716
// +kubebuilder:subresource:status
1817
// +kubebuilder:printcolumn:name="Status",type=string,priority=1,JSONPath=`.status.status`
1918
// +kubebuilder:printcolumn:name="Address Prefixes",type=string,priority=1,JSONPath=`.status.addressPrefixes`

crd/multitenancy/api/v1alpha1/podnetworkinstance.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import (
1212
// +kubebuilder:object:root=true
1313

1414
// PodNetworkInstance is the Schema for the PodNetworkInstances API
15-
// +kubebuilder:resource:scope=Namespaced
16-
// +kubebuilder:resource:shortName=pni
15+
// +kubebuilder:resource:shortName=pni,scope=Cluster
1716
// +kubebuilder:subresource:status
1817
// +kubebuilder:metadata:labels=managed=
1918
// +kubebuilder:metadata:labels=owner=

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
shortNames:
1818
- mtpnc
1919
singular: multitenantpodnetworkconfig
20-
scope: Namespaced
20+
scope: Cluster
2121
versions:
2222
- additionalPrinterColumns:
2323
- jsonPath: .spec.podNetworkInstance

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ spec:
1111
kind: NodeInfo
1212
listKind: NodeInfoList
1313
plural: nodeinfo
14+
shortNames:
15+
- ni
1416
singular: nodeinfo
15-
scope: Namespaced
17+
scope: Cluster
1618
versions:
1719
- additionalPrinterColumns:
1820
- jsonPath: .spec.vmUniqueID

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
shortNames:
1818
- pni
1919
singular: podnetworkinstance
20-
scope: Namespaced
20+
scope: Cluster
2121
versions:
2222
- additionalPrinterColumns:
2323
- jsonPath: .status.podIPAddresses

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ spec:
1414
shortNames:
1515
- pn
1616
singular: podnetwork
17-
scope: Namespaced
17+
scope: Cluster
1818
versions:
1919
- additionalPrinterColumns:
2020
- jsonPath: .status.status

0 commit comments

Comments
 (0)