Skip to content

Commit

Permalink
Modify type.go to include shortNames for few Packet CRDs
Browse files Browse the repository at this point in the history
  • Loading branch information
bnallapeta committed Apr 19, 2023
1 parent eb5dd55 commit c37086a
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 6 deletions.
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

0 comments on commit c37086a

Please sign in to comment.