diff --git a/config/crd/bases/config.katalyst.kubewharf.io_tmoconfigurations.yaml b/config/crd/bases/config.katalyst.kubewharf.io_tmoconfigurations.yaml index e401299..f7d69c5 100644 --- a/config/crd/bases/config.katalyst.kubewharf.io_tmoconfigurations.yaml +++ b/config/crd/bases/config.katalyst.kubewharf.io_tmoconfigurations.yaml @@ -104,7 +104,7 @@ spec: size in one cycle, it's a ratio of memory usage. type: number psiAvg60Threshold: - description: PsiAvg60Threshold indicates the threshold + description: PSIAvg60Threshold indicates the threshold of memory pressure. If observed pressure exceeds this threshold, memory offloading will be paused. type: number @@ -170,7 +170,7 @@ spec: size in one cycle, it's a ratio of memory usage. type: number psiAvg60Threshold: - description: PsiAvg60Threshold indicates the threshold + description: PSIAvg60Threshold indicates the threshold of memory pressure. If observed pressure exceeds this threshold, memory offloading will be paused. type: number diff --git a/pkg/apis/config/v1alpha1/register.go b/pkg/apis/config/v1alpha1/register.go index 9113a42..a578a74 100644 --- a/pkg/apis/config/v1alpha1/register.go +++ b/pkg/apis/config/v1alpha1/register.go @@ -17,10 +17,11 @@ limitations under the License. package v1alpha1 import ( - workloadapi "github.com/kubewharf/katalyst-api/pkg/apis/workload/v1alpha1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime/schema" + + workloadapi "github.com/kubewharf/katalyst-api/pkg/apis/workload/v1alpha1" ) const ( diff --git a/pkg/apis/config/v1alpha1/tmo.go b/pkg/apis/config/v1alpha1/tmo.go index 80e7b46..d81f3d6 100644 --- a/pkg/apis/config/v1alpha1/tmo.go +++ b/pkg/apis/config/v1alpha1/tmo.go @@ -128,9 +128,9 @@ type PSIPolicyConf struct { // MaxProbe limits the memory offloading size in one cycle, it's a ratio of memory usage. MaxProbe *float64 `json:"maxProbe,omitempty"` - // PsiAvg60Threshold indicates the threshold of memory pressure. If observed pressure exceeds + // PSIAvg60Threshold indicates the threshold of memory pressure. If observed pressure exceeds // this threshold, memory offloading will be paused. - PsiAvg60Threshold *float64 `json:"psiAvg60Threshold,omitempty"` + PSIAvg60Threshold *float64 `json:"psiAvg60Threshold,omitempty"` } type RefaultPolicyConf struct { diff --git a/pkg/apis/config/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/config/v1alpha1/zz_generated.deepcopy.go index 33f816b..3d635da 100644 --- a/pkg/apis/config/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/config/v1alpha1/zz_generated.deepcopy.go @@ -947,8 +947,8 @@ func (in *PSIPolicyConf) DeepCopyInto(out *PSIPolicyConf) { *out = new(float64) **out = **in } - if in.PsiAvg60Threshold != nil { - in, out := &in.PsiAvg60Threshold, &out.PsiAvg60Threshold + if in.PSIAvg60Threshold != nil { + in, out := &in.PSIAvg60Threshold, &out.PSIAvg60Threshold *out = new(float64) **out = **in }