Skip to content

Commit

Permalink
Merge pull request #655 from lbbniu/fix/crd
Browse files Browse the repository at this point in the history
update manifests
  • Loading branch information
qmhu authored Dec 19, 2022
2 parents ec5304b + c8aadff commit b75117c
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 19 deletions.
8 changes: 4 additions & 4 deletions deploy/craned/webhooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ webhooks:
service:
name: craned
namespace: crane-system
path: /mutate-ensurance-crane-io-v1alpha1-nodeqosensurancepolicy
path: /mutate-ensurance-crane-io-v1alpha1-nodeqos
failurePolicy: Fail
name: mnodeqosensurancepolicies.ensurance.crane.io
rules:
Expand All @@ -45,7 +45,7 @@ webhooks:
- CREATE
- UPDATE
resources:
- NodeQOSEnsurancePolicy
- NodeQOS
sideEffects: None
- admissionReviewVersions:
- v1
Expand Down Expand Up @@ -124,7 +124,7 @@ webhooks:
service:
name: craned
namespace: crane-system
path: /validate-ensurance-crane-io-v1alpha1-nodeqosensurancepolicy
path: /validate-ensurance-crane-io-v1alpha1-nodeqos
failurePolicy: Fail
name: vnodeqosensurancepolicies.ensurance.crane.io
rules:
Expand All @@ -136,7 +136,7 @@ webhooks:
- CREATE
- UPDATE
resources:
- nodeqosensurancepolicies
- nodeqoss
sideEffects: None
- admissionReviewVersions:
- v1
Expand Down
5 changes: 5 additions & 0 deletions deploy/manifests/analysis.crane.io_analytics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,11 @@ spec:
description: RecommenderRef presents recommender info for recommendation
mission.
properties:
config:
additionalProperties:
type: string
description: Override Recommendation configs
type: object
name:
description: Recommender's Name
type: string
Expand Down
10 changes: 10 additions & 0 deletions deploy/manifests/analysis.crane.io_recommendationrules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ spec:
items:
description: Recommender referring to the Recommender in RecommendationConfiguration
properties:
config:
additionalProperties:
type: string
description: Override Recommendation configs
type: object
name:
description: Recommender's Name
type: string
Expand Down Expand Up @@ -199,6 +204,11 @@ spec:
description: RecommenderRef presents recommender info for recommendation
mission.
properties:
config:
additionalProperties:
type: string
description: Override Recommendation configs
type: object
name:
description: Recommender's Name
type: string
Expand Down
3 changes: 1 addition & 2 deletions deploy/manifests/ensurance.crane.io_nodeqoss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,7 @@ spec:
type: object
type: object
status:
description: NodeQOSEnsurancePolicyStatus defines the observed status
of NodeQOSEnsurancePolicy
description: NodeQOSStatus defines the observed status of NodeQOS
type: object
required:
- spec
Expand Down
9 changes: 9 additions & 0 deletions deploy/manifests/ensurance.crane.io_podqoss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,15 @@ spec:
- pageCacheMaxRatio
- pageCacheReclaimRatio
type: object
memPriority:
description: MemoryPriority define the memory priority for
the pods. MemoryPriority range [0,7], 0 is the highest level.
When the memory resource is shortage, the low level pods
would be OOM Killed earlier
format: int32
maximum: 7
minimum: 0
type: integer
memWatermark:
description: MemWatermark to set memory watermark priority
properties:
Expand Down
4 changes: 2 additions & 2 deletions deploy/manifests_1.13/ensurance.crane.io_nodeqoss.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,8 @@ spec:
type: object
type: object
status:
description: NodeQOSEnsurancePolicyStatus defines the observed status
of NodeQOSEnsurancePolicy
description: NodeQOSStatus defines the observed status
of NodeQOS
type: object
required:
- spec
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: ensurance.crane.io/v1alpha1
kind: NodeQOSEnsurancePolicy
kind: NodeQOS
metadata:
name: "disablescheduling-when-ext-cpu-total-distribute"
labels:
Expand All @@ -9,7 +9,7 @@ spec:
timeoutSeconds: 10
nodeLocalGet:
localCacheTTLSeconds: 60
objectiveEnsurances:
rules:
- name: "ext_cpu_total_distribute"
avoidanceThreshold: 2
restoreThreshold: 2
Expand Down
5 changes: 2 additions & 3 deletions examples/ensurance/nep-schedule-delay.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
apiVersion: ensurance.crane.io/v1alpha1
kind: NodeQOSEnsurancePolicy
kind: NodeQOS
metadata:
name: "schedule-delay"
labels:
app: "system"
spec:
nodeQualityProbe:
initialDelaySeconds: 10
timeoutSeconds: 10
nodeLocalGet:
localCacheTTLSeconds: 60
objectiveEnsurances:
rules:
- name: "container-schedule-delay-time"
avoidanceThreshold: 1
restoreThreshold: 10
Expand Down
4 changes: 2 additions & 2 deletions examples/ensurance/waterline1.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: ensurance.crane.io/v1alpha1
kind: NodeQOSEnsurancePolicy
kind: NodeQOS
metadata:
name: "waterline1"
labels:
Expand All @@ -9,7 +9,7 @@ spec:
timeoutSeconds: 10
nodeLocalGet:
localCacheTTLSeconds: 60
objectiveEnsurances:
rules:
- name: "cpu-usage"
avoidanceThreshold: 2
restoreThreshold: 2
Expand Down
4 changes: 2 additions & 2 deletions examples/ensurance/waterline2.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: ensurance.crane.io/v1alpha1
kind: NodeQOSEnsurancePolicy
kind: NodeQOS
metadata:
name: "waterline2"
labels:
Expand All @@ -9,7 +9,7 @@ spec:
timeoutSeconds: 10
nodeLocalGet:
localCacheTTLSeconds: 60
objectiveEnsurances:
rules:
- name: "cpu-usage"
avoidanceThreshold: 2
restoreThreshold: 2
Expand Down
4 changes: 2 additions & 2 deletions examples/ensurance/waterline3.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: ensurance.crane.io/v1alpha1
kind: NodeQOSEnsurancePolicy
kind: NodeQOS
metadata:
name: "waterline3"
labels:
Expand All @@ -9,7 +9,7 @@ spec:
timeoutSeconds: 10
nodeLocalGet:
localCacheTTLSeconds: 60
objectiveEnsurances:
rules:
- name: "cpu-usage"
avoidanceThreshold: 2
restoreThreshold: 2
Expand Down

0 comments on commit b75117c

Please sign in to comment.