Skip to content

Commit

Permalink
fix: address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Sunil Thaha <[email protected]>
  • Loading branch information
sthaha committed Nov 29, 2023
1 parent 57abbd9 commit d1d9e4f
Show file tree
Hide file tree
Showing 17 changed files with 702 additions and 552 deletions.
17 changes: 13 additions & 4 deletions bundle/manifests/kepler-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ metadata:
capabilities: Basic Install
categories: Monitoring
containerImage: quay.io/sustainable_computing_io/kepler-operator:0.9.2
createdAt: "2023-11-14T05:15:33Z"
createdAt: "2023-11-29T08:19:36Z"
description: 'Deploys and Manages Kepler on Kubernetes '
operators.operatorframework.io/builder: operator-sdk-v1.27.0
operators.operatorframework.io/internal-objects: |-
Expand All @@ -46,14 +46,23 @@ spec:
displayName: KeplerInternal
kind: KeplerInternal
name: keplerinternals.kepler.system.sustainable.computing.io
statusDescriptors:
- description: conditions represent the latest available observations of the
kepler-exporter
displayName: Conditions
path: exporter.conditions
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:conditions
version: v1alpha1
- description: Kepler is the Schema for the keplers API
displayName: Kepler
kind: Kepler
name: keplers.kepler.system.sustainable.computing.io
statusDescriptors:
- displayName: Conditions
path: conditions
- description: conditions represent the latest available observations of the
kepler-exporter
displayName: Conditions
path: exporter.conditions
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:conditions
version: v1alpha1
Expand Down Expand Up @@ -349,5 +358,5 @@ spec:
name: kepler
- image: quay.io/sustainable_computing_io/kepler:release-0.6.1-libbpf
name: kepler-libbpf
replaces: kepler-operator.v0.9.0
replaces: kepler-operator.v0.0.0-dev
version: 0.9.2
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ spec:
- jsonPath: .spec.exporter.deployment.port
name: Port
type: integer
- jsonPath: .status.desiredNumberScheduled
- jsonPath: .status.exporter.desiredNumberScheduled
name: Desired
type: integer
- jsonPath: .status.currentNumberScheduled
- jsonPath: .status.exporter.currentNumberScheduled
name: Current
type: integer
- jsonPath: .status.numberReady
name: Ready
type: integer
- jsonPath: .status.updatedNumberScheduled
name: Up-to-date
type: integer
- jsonPath: .status.numberAvailable
- jsonPath: .status.exporter.numberReady
name: Ready
type: integer
- jsonPath: .status.exporter.numberAvailable
name: Available
type: integer
- jsonPath: .metadata.creationTimestamp
Expand Down Expand Up @@ -65,15 +65,17 @@ spec:
metadata:
type: object
spec:
description: KeplerInternalSpec defines the desired state of Kepler
description: KeplerInternalSpec defines the desired state of KeplerInternal
properties:
exporter:
properties:
deployment:
properties:
image:
description: Image of kepler-exporter to be deployed
type: string
namespace:
description: Namespace where kepler-exporter will be deployed
type: string
nodeSelector:
additionalProperties:
Expand Down Expand Up @@ -151,94 +153,103 @@ spec:
type: object
type: object
status:
description: KeplerStatus defines the observed state of Kepler
description: KeplerInternalStatus represents status of KeplerInternal
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
exporter:
description: ExporterStatus defines the observed state of Kepler Exporter
properties:
conditions:
description: conditions represent the latest available observations
of the kepler-exporter
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
type: object
served: true
Expand Down
Loading

0 comments on commit d1d9e4f

Please sign in to comment.