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

✨Modify type.go to include shortNames for few Packet CRDs #585

Merged
merged 1 commit into from
Apr 20, 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
2 changes: 1 addition & 1 deletion api/v1alpha3/packetcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type PacketClusterStatus struct {
}

// +kubebuilder:subresource:status
// +kubebuilder:resource:path=packetclusters,scope=Namespaced,categories=cluster-api
// +kubebuilder:resource:path=packetclusters,shortName=pcl,scope=Namespaced,categories=cluster-api
// +kubebuilder:object:root=true
// +kubebuilder:printcolumn:name="Cluster",type="string",JSONPath=".metadata.labels.cluster\\.x-k8s\\.io/cluster-name",description="Cluster to which this PacketCluster belongs"
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.ready",description="PacketCluster ready status"
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha3/packetmachine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ type PacketMachineStatus struct {

// +kubebuilder:subresource:status
// +kubebuilder:object:root=true
// +kubebuilder:resource:path=packetmachines,scope=Namespaced,categories=cluster-api
// +kubebuilder:resource:path=packetmachines,shortName=pma,scope=Namespaced,categories=cluster-api
// +kubebuilder:printcolumn:name="Cluster",type="string",JSONPath=".metadata.labels.cluster\\.x-k8s\\.io/cluster-name",description="Cluster to which this PacketMachine belongs"
// +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.instanceState",description="Packet instance state"
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.ready",description="Machine ready status"
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha3/packetmachinetemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type PacketMachineTemplateSpec struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:path=packetmachinetemplates,scope=Namespaced,categories=cluster-api
// +kubebuilder:resource:path=packetmachinetemplates,shortName=pmt,scope=Namespaced,categories=cluster-api

// PacketMachineTemplate is the Schema for the packetmachinetemplates API
type PacketMachineTemplate struct {
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta1/packetcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type PacketClusterStatus struct {
}

// +kubebuilder:subresource:status
// +kubebuilder:resource:path=packetclusters,scope=Namespaced,categories=cluster-api
// +kubebuilder:resource:path=packetclusters,shortName=pcl,scope=Namespaced,categories=cluster-api
// +kubebuilder:object:root=true
// +kubebuilder:storageversion
// +kubebuilder:printcolumn:name="Cluster",type="string",JSONPath=".metadata.labels.cluster\\.x-k8s\\.io/cluster-name",description="Cluster to which this PacketCluster belongs"
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta1/packetmachine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ type PacketMachineStatus struct {

// +kubebuilder:subresource:status
// +kubebuilder:object:root=true
// +kubebuilder:resource:path=packetmachines,scope=Namespaced,categories=cluster-api
// +kubebuilder:resource:path=packetmachines,shortName=pma,scope=Namespaced,categories=cluster-api
// +kubebuilder:storageversion
// +kubebuilder:printcolumn:name="Cluster",type="string",JSONPath=".metadata.labels.cluster\\.x-k8s\\.io/cluster-name",description="Cluster to which this PacketMachine belongs"
// +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.instanceState",description="Packet instance state"
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta1/packetmachinetemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type PacketMachineTemplateSpec struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:path=packetmachinetemplates,scope=Namespaced,categories=cluster-api
// +kubebuilder:resource:path=packetmachinetemplates,shortName=pmt,scope=Namespaced,categories=cluster-api
// +kubebuilder:storageversion

// PacketMachineTemplate is the Schema for the packetmachinetemplates API
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ spec:
kind: PacketCluster
listKind: PacketClusterList
plural: packetclusters
shortNames:
- pcl
singular: packetcluster
scope: Namespaced
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ spec:
kind: PacketMachine
listKind: PacketMachineList
plural: packetmachines
shortNames:
- pma
singular: packetmachine
scope: Namespaced
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ spec:
kind: PacketMachineTemplate
listKind: PacketMachineTemplateList
plural: packetmachinetemplates
shortNames:
- pmt
singular: packetmachinetemplate
scope: Namespaced
versions:
Expand Down