Skip to content

Commit

Permalink
Add short names for dynakube (#2991)
Browse files Browse the repository at this point in the history
  • Loading branch information
waodim authored Apr 9, 2024
1 parent cd9716e commit b1cfdea
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_dynakubes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ spec:
kind: DynaKube
listKind: DynaKubeList
plural: dynakubes
shortNames:
- dk
- dks
singular: dynakube
scope: Namespaced
versions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,9 @@ spec:
kind: DynaKube
listKind: DynaKubeList
plural: dynakubes
shortNames:
- dk
- dks
singular: dynakube
preserveUnknownFields: false
scope: Namespaced
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v1alpha1/dynakube/dynakube_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ func (dk *DynaKubeStatus) SetPhase(phase status.DeploymentPhase) bool {
// +k8s:openapi-gen=true
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:path=dynakubes,scope=Namespaced,categories=dynatrace
// +kubebuilder:resource:path=dynakubes,scope=Namespaced,categories=dynatrace,shortName={dk,dks}
// +kubebuilder:printcolumn:name="ApiUrl",type=string,JSONPath=`.spec.apiUrl`
// +kubebuilder:printcolumn:name="Tokens",type=string,JSONPath=`.status.tokens`
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
Expand Down

0 comments on commit b1cfdea

Please sign in to comment.