-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
operator [CI] kepler-operator (0.9.2)
Signed-off-by: Vibhu Prashar <[email protected]>
- Loading branch information
1 parent
db803b7
commit 0d1b35b
Showing
8 changed files
with
724 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...-operator-controller-manager-metrics-monitor_monitoring.coreos.com_v1_servicemonitor.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,18 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
labels: | ||
app.kubernetes.io/component: metrics | ||
app.kubernetes.io/created-by: kepler-operator | ||
app.kubernetes.io/instance: controller-manager-metrics-monitor | ||
app.kubernetes.io/managed-by: kustomize | ||
app.kubernetes.io/name: servicemonitor | ||
app.kubernetes.io/part-of: kepler-operator | ||
name: kepler-operator-controller-manager-metrics-monitor | ||
spec: | ||
endpoints: | ||
- port: metrics | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: service | ||
app.kubernetes.io/part-of: kepler-operator |
23 changes: 23 additions & 0 deletions
23
...erator/0.9.2/manifests/kepler-operator-controller-manager-metrics-service_v1_service.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,23 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/component: kube-rbac-proxy | ||
app.kubernetes.io/created-by: kepler-operator | ||
app.kubernetes.io/instance: controller-manager-metrics-service | ||
app.kubernetes.io/managed-by: kustomize | ||
app.kubernetes.io/name: service | ||
app.kubernetes.io/part-of: kepler-operator | ||
name: kepler-operator-controller-manager-metrics-service | ||
spec: | ||
ports: | ||
- name: metrics | ||
port: 8080 | ||
protocol: TCP | ||
targetPort: metrics | ||
selector: | ||
app.kubernetes.io/component: manager | ||
app.kubernetes.io/instance: controller-manager | ||
status: | ||
loadBalancer: {} |
17 changes: 17 additions & 0 deletions
17
....2/manifests/kepler-operator-metrics-reader_rbac.authorization.k8s.io_v1_clusterrole.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,17 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
creationTimestamp: null | ||
labels: | ||
app.kubernetes.io/component: kube-rbac-proxy | ||
app.kubernetes.io/created-by: kepler-operator | ||
app.kubernetes.io/instance: metrics-reader | ||
app.kubernetes.io/managed-by: kustomize | ||
app.kubernetes.io/name: clusterrole | ||
app.kubernetes.io/part-of: kepler-operator | ||
name: kepler-operator-metrics-reader | ||
rules: | ||
- nonResourceURLs: | ||
- /metrics | ||
verbs: | ||
- get |
344 changes: 344 additions & 0 deletions
344
operators/kepler-operator/0.9.2/manifests/kepler-operator.clusterserviceversion.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
234 changes: 234 additions & 0 deletions
234
...ators/kepler-operator/0.9.2/manifests/kepler.system.sustainable.computing.io_keplers.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,234 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.12.1 | ||
creationTimestamp: null | ||
name: keplers.kepler.system.sustainable.computing.io | ||
spec: | ||
group: kepler.system.sustainable.computing.io | ||
names: | ||
kind: Kepler | ||
listKind: KeplerList | ||
plural: keplers | ||
singular: kepler | ||
scope: Cluster | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .spec.exporter.deployment.port | ||
name: Port | ||
type: integer | ||
- jsonPath: .status.desiredNumberScheduled | ||
name: Desired | ||
type: integer | ||
- jsonPath: .status.currentNumberScheduled | ||
name: Current | ||
type: integer | ||
- jsonPath: .status.numberReady | ||
name: Ready | ||
type: integer | ||
- jsonPath: .status.updatedNumberScheduled | ||
name: Up-to-date | ||
type: integer | ||
- jsonPath: .status.numberAvailable | ||
name: Available | ||
type: integer | ||
- jsonPath: .metadata.creationTimestamp | ||
name: Age | ||
type: date | ||
- jsonPath: .spec.exporter.deployment.nodeSelector | ||
name: Node-Selector | ||
priority: 10 | ||
type: string | ||
- jsonPath: .spec.exporter.deployment.tolerations | ||
name: Tolerations | ||
priority: 10 | ||
type: string | ||
name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: Kepler is the Schema for the keplers 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: KeplerSpec defines the desired state of Kepler | ||
properties: | ||
exporter: | ||
properties: | ||
deployment: | ||
properties: | ||
nodeSelector: | ||
additionalProperties: | ||
type: string | ||
default: | ||
kubernetes.io/os: linux | ||
description: Defines which Nodes the Pod is scheduled on | ||
type: object | ||
port: | ||
default: 9103 | ||
format: int32 | ||
maximum: 65535 | ||
minimum: 1 | ||
type: integer | ||
tolerations: | ||
default: | ||
- effect: "" | ||
key: "" | ||
operator: Exists | ||
value: "" | ||
description: If specified, define Pod's tolerations | ||
items: | ||
description: The pod this Toleration is attached to tolerates | ||
any taint that matches the triple <key,value,effect> using | ||
the matching operator <operator>. | ||
properties: | ||
effect: | ||
description: Effect indicates the taint effect to match. | ||
Empty means match all taint effects. When specified, | ||
allowed values are NoSchedule, PreferNoSchedule and | ||
NoExecute. | ||
type: string | ||
key: | ||
description: Key is the taint key that the toleration | ||
applies to. Empty means match all taint keys. If the | ||
key is empty, operator must be Exists; this combination | ||
means to match all values and all keys. | ||
type: string | ||
operator: | ||
description: Operator represents a key's relationship | ||
to the value. Valid operators are Exists and Equal. | ||
Defaults to Equal. Exists is equivalent to wildcard | ||
for value, so that a pod can tolerate all taints of | ||
a particular category. | ||
type: string | ||
tolerationSeconds: | ||
description: TolerationSeconds represents the period | ||
of time the toleration (which must be of effect NoExecute, | ||
otherwise this field is ignored) tolerates the taint. | ||
By default, it is not set, which means tolerate the | ||
taint forever (do not evict). Zero and negative values | ||
will be treated as 0 (evict immediately) by the system. | ||
format: int64 | ||
type: integer | ||
value: | ||
description: Value is the taint value the toleration | ||
matches to. If the operator is Exists, the value should | ||
be empty, otherwise just a regular string. | ||
type: string | ||
type: object | ||
type: array | ||
type: object | ||
type: object | ||
type: object | ||
status: | ||
description: KeplerStatus defines the observed state of Kepler | ||
properties: | ||
conditions: | ||
items: | ||
properties: | ||
lastTransitionTime: | ||
description: lastTransitionTime is the last time the condition | ||
transitioned from one status to another. This should be when | ||
the underlying condition changed. If that is not known, then | ||
using the time when the API field changed is acceptable. | ||
format: date-time | ||
type: string | ||
message: | ||
description: message is a human readable message indicating | ||
details about the transition. This may be an empty string. | ||
maxLength: 32768 | ||
type: string | ||
observedGeneration: | ||
description: observedGeneration represents the .metadata.generation | ||
that the condition was set based upon. For instance, if .metadata.generation | ||
is currently 12, but the .status.conditions[x].observedGeneration | ||
is 9, the condition is out of date with respect to the current | ||
state of the instance. | ||
format: int64 | ||
minimum: 0 | ||
type: integer | ||
reason: | ||
description: reason contains a programmatic identifier indicating | ||
the reason for the condition's last transition. | ||
type: string | ||
status: | ||
description: status of the condition, one of True, False, Unknown. | ||
type: string | ||
type: | ||
description: Type of Kepler Condition - Reconciled, Available | ||
... | ||
type: string | ||
required: | ||
- lastTransitionTime | ||
- message | ||
- reason | ||
- status | ||
- type | ||
type: object | ||
type: array | ||
x-kubernetes-list-type: atomic | ||
currentNumberScheduled: | ||
description: The number of nodes that are running at least 1 kepler | ||
pod and are supposed to run the kepler pod. | ||
format: int32 | ||
type: integer | ||
desiredNumberScheduled: | ||
description: The total number of nodes that should be running the | ||
kepler pod (including nodes correctly running the kepler pod). | ||
format: int32 | ||
type: integer | ||
numberAvailable: | ||
description: The number of nodes that should be running the kepler | ||
pod and have one or more of the kepler pod running and available | ||
format: int32 | ||
type: integer | ||
numberMisscheduled: | ||
description: The number of nodes that are running the kepler pod, | ||
but are not supposed to run the kepler pod. | ||
format: int32 | ||
type: integer | ||
numberReady: | ||
description: numberReady is the number of nodes that should be running | ||
the kepler pod and have one or more of the kepler pod running with | ||
a Ready Condition. | ||
format: int32 | ||
type: integer | ||
numberUnavailable: | ||
description: The number of nodes that should be running the kepler | ||
pod and have none of the kepler pod running and available | ||
format: int32 | ||
type: integer | ||
updatedNumberScheduled: | ||
description: The total number of nodes that are running updated kepler | ||
pod | ||
format: int32 | ||
type: integer | ||
required: | ||
- conditions | ||
- currentNumberScheduled | ||
- desiredNumberScheduled | ||
- numberMisscheduled | ||
- numberReady | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: null | ||
storedVersions: null |
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,17 @@ | ||
annotations: | ||
# Core bundle annotations. | ||
operators.operatorframework.io.bundle.mediatype.v1: registry+v1 | ||
operators.operatorframework.io.bundle.manifests.v1: manifests/ | ||
operators.operatorframework.io.bundle.metadata.v1: metadata/ | ||
operators.operatorframework.io.bundle.package.v1: kepler-operator | ||
operators.operatorframework.io.bundle.channels.v1: alpha,dev-preview | ||
operators.operatorframework.io.bundle.channel.default.v1: alpha | ||
operators.operatorframework.io.metrics.builder: operator-sdk-v1.27.0 | ||
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1 | ||
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v3 | ||
|
||
# Annotations for testing. | ||
operators.operatorframework.io.test.mediatype.v1: scorecard+v1 | ||
operators.operatorframework.io.test.config.v1: tests/scorecard/ | ||
# Annotations for OpenShift version | ||
com.redhat.openshift.versions: "v4.11-v4.14" |
70 changes: 70 additions & 0 deletions
70
operators/kepler-operator/0.9.2/tests/scorecard/config.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 @@ | ||
apiVersion: scorecard.operatorframework.io/v1alpha3 | ||
kind: Configuration | ||
metadata: | ||
name: config | ||
stages: | ||
- parallel: true | ||
tests: | ||
- entrypoint: | ||
- scorecard-test | ||
- basic-check-spec | ||
image: quay.io/operator-framework/scorecard-test:v1.25.1 | ||
labels: | ||
suite: basic | ||
test: basic-check-spec-test | ||
storage: | ||
spec: | ||
mountPath: {} | ||
- entrypoint: | ||
- scorecard-test | ||
- olm-bundle-validation | ||
image: quay.io/operator-framework/scorecard-test:v1.25.1 | ||
labels: | ||
suite: olm | ||
test: olm-bundle-validation-test | ||
storage: | ||
spec: | ||
mountPath: {} | ||
- entrypoint: | ||
- scorecard-test | ||
- olm-crds-have-validation | ||
image: quay.io/operator-framework/scorecard-test:v1.25.1 | ||
labels: | ||
suite: olm | ||
test: olm-crds-have-validation-test | ||
storage: | ||
spec: | ||
mountPath: {} | ||
- entrypoint: | ||
- scorecard-test | ||
- olm-crds-have-resources | ||
image: quay.io/operator-framework/scorecard-test:v1.25.1 | ||
labels: | ||
suite: olm | ||
test: olm-crds-have-resources-test | ||
storage: | ||
spec: | ||
mountPath: {} | ||
- entrypoint: | ||
- scorecard-test | ||
- olm-spec-descriptors | ||
image: quay.io/operator-framework/scorecard-test:v1.25.1 | ||
labels: | ||
suite: olm | ||
test: olm-spec-descriptors-test | ||
storage: | ||
spec: | ||
mountPath: {} | ||
- entrypoint: | ||
- scorecard-test | ||
- olm-status-descriptors | ||
image: quay.io/operator-framework/scorecard-test:v1.25.1 | ||
labels: | ||
suite: olm | ||
test: olm-status-descriptors-test | ||
storage: | ||
spec: | ||
mountPath: {} | ||
storage: | ||
spec: | ||
mountPath: {} |
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 |
---|---|---|
|
@@ -6,5 +6,6 @@ reviewers: | |
- rootfs | ||
- sthaha | ||
- vimalk78 | ||
- vprashar2929 | ||
updateGraph: replaces-mode | ||
addReviewers: true |