-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix missing NodeSLO CRD Signed-off-by: Tao Li <joseph.t.lee@outlook.com> * fix chart-testing action Signed-off-by: Tao Li <joseph.t.lee@outlook.com>
- Loading branch information
Showing
2 changed files
with
76 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
versions/v0.1.0/templates/slo.koordinator.sh_nodeslos.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{{- if .Values.crds.managed }} | ||
|
||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.8.0 | ||
creationTimestamp: null | ||
name: nodeslos.slo.koordinator.sh | ||
spec: | ||
group: slo.koordinator.sh | ||
names: | ||
kind: NodeSLO | ||
listKind: NodeSLOList | ||
plural: nodeslos | ||
singular: nodeslo | ||
scope: Cluster | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: NodeSLO is the Schema for the nodeslos API | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation | ||
of an object. Servers should convert recognized schemas to the latest | ||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: NodeSLOSpec defines the desired state of NodeSLO | ||
properties: | ||
resourceUsedThresholdWithBE: | ||
description: BE pods will be limited if node resource usage overload | ||
properties: | ||
cpuSuppressPolicy: | ||
description: CPUSuppressPolicy | ||
type: string | ||
cpuSuppressThresholdPercent: | ||
description: cpu suppress threshold percentage (0,100), default | ||
= 65 | ||
format: int64 | ||
type: integer | ||
enable: | ||
description: whether the strategy is enabled, default = true | ||
type: boolean | ||
type: object | ||
type: object | ||
status: | ||
description: NodeSLOStatus defines the observed state of NodeSLO | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] | ||
{{- end }} |