Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update swiftv2 crds scope #2176

Merged
merged 3 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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