Skip to content

Commit

Permalink
increase the number of allowed labels per labelgroup
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Trent <[email protected]>
  • Loading branch information
trent-s committed Jul 9, 2024
1 parent 83a3cb3 commit 15987e1
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.21
0.0.22
2 changes: 1 addition & 1 deletion api/v1/labelgroup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type LabelGroupSpec struct {
// Do not use the most recent value stored in the database
DisableUsingMostRecentValue bool `json:"disableUsingMostRecentValue,omitempty"`

// List of labels to be tracked for energy measurments (up to 3)
// List of labels to be tracked for energy measurments (up to 5)
Labels []string `json:"labels,omitempty"`
}

Expand Down
10 changes: 5 additions & 5 deletions bundle/manifests/susql-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ metadata:
]
capabilities: Basic Install
categories: Monitoring
containerImage: quay.io/sustainable_computing_io/susql_operator:0.0.21
createdAt: "2024-07-02T05:17:47Z"
containerImage: quay.io/sustainable_computing_io/susql_operator:0.0.22
createdAt: "2024-07-09T05:01:04Z"
description: 'Aggregates energy data from pods tagged with SusQL labels '
operators.operatorframework.io/builder: operator-sdk-v1.34.1
operators.operatorframework.io/project_layout: go.kubebuilder.io/v4
repository: https://github.com/sustainable-computing-io/susql-operator
support: https://github.com/sustainable-computing-io/susql-operator/issues
name: susql-operator.v0.0.21
name: susql-operator.v0.0.22
namespace: placeholder
spec:
apiservicedefinitions: {}
Expand Down Expand Up @@ -224,7 +224,7 @@ spec:
value: :8081
- name: METRICS-BIND-ADDRESS
value: 127.0.0.1:9999
image: quay.io/sustainable_computing_io/susql_operator:0.0.21
image: quay.io/sustainable_computing_io/susql_operator:0.0.22
imagePullPolicy: IfNotPresent
livenessProbe:
httpGet:
Expand Down Expand Up @@ -328,4 +328,4 @@ spec:
provider:
name: SusQL Operator Contributors
url: https://github.com/sustainable-computing-io/susql-operator
version: 0.0.21
version: 0.0.22
2 changes: 1 addition & 1 deletion bundle/manifests/susql.ibm.com_labelgroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
type: boolean
labels:
description: List of labels to be tracked for energy measurments (up
to 3)
to 5)
items:
type: string
type: array
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/susql.ibm.com_labelgroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
type: boolean
labels:
description: List of labels to be tracked for energy measurments (up
to 3)
to 5)
items:
type: string
type: array
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ kind: Kustomization
images:
- name: controller
newName: quay.io/sustainable_computing_io/susql_operator
newTag: 0.0.21
newTag: 0.0.22
4 changes: 2 additions & 2 deletions internal/controller/labelgroup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ const (
)

var (
susqlKubernetesLabelNames = []string{"susql.label/1", "susql.label/2", "susql.label/3", "susql.label/4"} // Names of the SusQL Kubernetes labels
susqlPrometheusLabelNames = []string{"susql_label_1", "susql_label_2", "susql_label_3", "susql_label_4"} // Names of the SusQL Prometheus labels
susqlKubernetesLabelNames = []string{"susql.label/1", "susql.label/2", "susql.label/3", "susql.label/4", "susql.label/5", "susql.label/6"} // Names of the SusQL Kubernetes labels
susqlPrometheusLabelNames = []string{"susql_label_1", "susql_label_2", "susql_label_3", "susql_label_4", "susql_label_5", "susql_label_6"} // Names of the SusQL Prometheus labels
)

//+kubebuilder:rbac:groups=susql.ibm.com,resources=labelgroups,verbs=get;list;watch;create;update;patch;delete
Expand Down

0 comments on commit 15987e1

Please sign in to comment.