Skip to content

Commit

Permalink
Add ShortNames for EdgeConnect CRs (#3409)
Browse files Browse the repository at this point in the history
  • Loading branch information
wepudt committed Jul 8, 2024
1 parent ac2b2ce commit 32a4011
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config/crd/bases/dynatrace.com_edgeconnects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ spec:
kind: EdgeConnect
listKind: EdgeConnectList
plural: edgeconnects
shortNames:
- ec
- ecs
singular: edgeconnect
scope: Namespaced
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7149,6 +7149,9 @@ spec:
kind: EdgeConnect
listKind: EdgeConnectList
plural: edgeconnects
shortNames:
- ec
- ecs
singular: edgeconnect
scope: Namespaced
versions:
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v1alpha1/edgeconnect/edgeconnect_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (dk *EdgeConnectStatus) SetPhase(phase status.DeploymentPhase) bool {
// +k8s:openapi-gen=true
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:path=edgeconnects,scope=Namespaced,categories=dynatrace
// +kubebuilder:resource:path=edgeconnects,scope=Namespaced,categories=dynatrace,shortName={ec,ecs}
// +kubebuilder:printcolumn:name="ApiServer",type=string,JSONPath=`.spec.apiServer`
// +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.phase`
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
Expand Down

0 comments on commit 32a4011

Please sign in to comment.