Skip to content

Commit

Permalink
address comments: sort imports and refine field name
Browse files Browse the repository at this point in the history
  • Loading branch information
LuyaoZhong committed Mar 11, 2024
1 parent 4412ffd commit 1569529
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion pkg/apis/config/v1alpha1/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/config/v1alpha1/tmo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/config/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1569529

Please sign in to comment.