Skip to content

Commit

Permalink
rename TMO crd resource name
Browse files Browse the repository at this point in the history
  • Loading branch information
LuyaoZhong committed Mar 19, 2024
1 parent 21d4730 commit 0e012b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.0
creationTimestamp: null
name: tmoconfigurations.config.katalyst.kubewharf.io
name: transparentmemoryoffloadingconfigurations.config.katalyst.kubewharf.io
spec:
group: config.katalyst.kubewharf.io
names:
kind: TransparentMemoryOffloadingConfiguration
listKind: TransparentMemoryOffloadingConfigurationList
plural: tmoconfigurations
plural: transparentmemoryoffloadingconfigurations
shortNames:
- tmo
singular: transparentmemoryoffloadingconfiguration
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/config/v1alpha1/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const (
ResourceNameCustomNodeConfigs = "customnodeconfigs"
ResourceNameAdminQoSConfigurations = "adminqosconfigurations"
ResourceNameAuthConfigurations = "authconfigurations"
ResourceNameTMOConfigurations = "tmoconfigurations"
ResourceNameTMOConfigurations = "transparentmemoryoffloadingconfigurations"
)

// Resource takes an unqualified resource and returns a Group qualified GroupResource
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/config/v1alpha1/tmo.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:object:root=true
// +kubebuilder:resource:path=tmoconfigurations,shortName=tmo
// +kubebuilder:resource:path=transparentmemoryoffloadingconfigurations,shortName=tmo
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="AGE",type=date,JSONPath=.metadata.creationTimestamp
// +kubebuilder:printcolumn:name="SELECTOR",type=string,JSONPath=".spec.nodeLabelSelector"
Expand Down

0 comments on commit 0e012b7

Please sign in to comment.