diff --git a/artifacts/deploy/ensurance.crane.io_podqoss.yaml b/artifacts/deploy/ensurance.crane.io_podqoss.yaml index 2420b0e..af018a2 100644 --- a/artifacts/deploy/ensurance.crane.io_podqoss.yaml +++ b/artifacts/deploy/ensurance.crane.io_podqoss.yaml @@ -241,9 +241,6 @@ spec: asyncRatio: format: int64 type: integer - required: - - asyncDistanceFactor - - asyncRatio type: object memPageCacheLimit: properties: @@ -253,9 +250,6 @@ spec: pageCacheReclaimRatio: format: int64 type: integer - required: - - pageCacheMaxRatio - - pageCacheReclaimRatio type: object memPriority: description: MemoryPriority define the memory priority for @@ -271,8 +265,6 @@ spec: properties: watermarkRatio: type: integer - required: - - watermarkRatio type: object memoryCompression: properties: diff --git a/ensurance/v1alpha1/types.go b/ensurance/v1alpha1/types.go index f374e6c..9758fdd 100644 --- a/ensurance/v1alpha1/types.go +++ b/ensurance/v1alpha1/types.go @@ -197,18 +197,18 @@ type MemoryQOS struct { } type MemPageCacheLimit struct { - PageCacheMaxRatio *int64 `json:"pageCacheMaxRatio"` - PageCacheReclaimRatio *int64 `json:"pageCacheReclaimRatio"` + PageCacheMaxRatio *int64 `json:"pageCacheMaxRatio,omitempty"` + PageCacheReclaimRatio *int64 `json:"pageCacheReclaimRatio,omitempty"` } type MemAsyncReclaim struct { - AsyncRatio *int64 `json:"asyncRatio"` - AsyncDistanceFactor *int64 `json:"asyncDistanceFactor"` + AsyncRatio *int64 `json:"asyncRatio,omitempty"` + AsyncDistanceFactor *int64 `json:"asyncDistanceFactor,omitempty"` } // MemWatermark to set memory watermark priority type MemWatermark struct { - WatermarkRatio *int `json:"watermarkRatio"` + WatermarkRatio *int `json:"watermarkRatio,omitempty"` } type NetIOQOS struct {