Skip to content

Commit

Permalink
address scorecard tests
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Trent <[email protected]>
  • Loading branch information
trent-s committed Sep 2, 2024
1 parent 5a23749 commit 8f9f9bc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion api/v1/labelgroup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const (
//+kubebuilder:object:root=true
//+kubebuilder:subresource:status

// LabelGroup is the Schema for the labelgroups API
// LabelGroup is the Schema for the LabelGroups API
type LabelGroup struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
11 changes: 8 additions & 3 deletions bundle/manifests/susql-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,18 @@ metadata:
},
"name": "labelgroup-sample"
},
"spec": null
"spec": {
"labels": [
"labelgroup-sample-1",
"labelgroup-sample-2"
]
}
}
]
capabilities: Basic Install
categories: Monitoring
containerImage: quay.io/sustainable_computing_io/susql_operator:0.0.26
createdAt: "2024-08-28T12:13:39Z"
createdAt: "2024-09-02T05:32:59Z"
description: 'Aggregates energy and CO2 emission data for pods tagged with SusQL
labels '
operators.operatorframework.io/builder: operator-sdk-v1.36.1
Expand All @@ -36,7 +41,7 @@ spec:
apiservicedefinitions: {}
customresourcedefinitions:
owned:
- description: LabelGroup is the Schema for the labelgroups API
- description: LabelGroup is the Schema for the LabelGroups API
displayName: Label Group
kind: LabelGroup
name: labelgroups.susql.ibm.com
Expand Down
7 changes: 3 additions & 4 deletions bundle/manifests/susql.ibm.com_labelgroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
- name: v1
schema:
openAPIV3Schema:
description: LabelGroup is the Schema for the labelgroups API
description: LabelGroup is the Schema for the LabelGroups API
properties:
apiVersion:
description: |-
Expand Down Expand Up @@ -63,16 +63,15 @@ spec:
description: SusQL Kubernetes labels constructed from the spec
type: object
phase:
description: Transition phase of the label group
description: Transition phase of the LabelGroup
type: string
prometheusLabels:
additionalProperties:
type: string
description: SusQL Prometheus labels constructed from the spec
type: object
susqlPrometheusQuery:
description: Prometheus query to get the total energy for this label
group
description: Prometheus query to get the total energy for this LabelGroup
type: string
totalCarbon:
description: TotalCarbon keeps track of the accumulated grams of carbon
Expand Down
4 changes: 3 additions & 1 deletion config/samples/susql_v1_labelgroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ metadata:
app.kubernetes.io/created-by: susql-operator
name: labelgroup-sample
spec:
# TODO(user): Add fields here
labels:
- labelgroup-sample-1
- labelgroup-sample-2

0 comments on commit 8f9f9bc

Please sign in to comment.