Skip to content

Commit 7b58ef5

Browse files
Fix: Add metrics configuration to overcommit controller and validatings (#14)
* Fix: Add metrics configuration to overcommit controller and validating webhooks * Chore: bump version to 1.0.2 in Makefile, Chart.yaml, values.yaml, and catalog_source.yaml * chore: autogenerate files
1 parent 699da62 commit 7b58ef5

30 files changed

+1453
-10
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# To re-generate a bundle for another specific version without changing the standard setup, you can:
99
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
1010
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
11-
VERSION ?= 1.0.1
11+
VERSION ?= 1.0.2
1212
# Image URL to use all building/pushing image targets
1313
IMG ?= ghcr.io/inditextech/k8s-overcommit-operator:$(VERSION)
1414
# IMAGE_TAG_BASE defines the docker.io namespace and part of the image name for remote images.

bundle/manifests/k8s-overcommit.clusterserviceversion.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ metadata:
3030
}
3131
]
3232
capabilities: Basic Install
33-
createdAt: "2025-07-02T12:39:39Z"
33+
createdAt: "2025-07-03T11:39:06Z"
3434
operators.operatorframework.io/builder: operator-sdk-v1.40.0
3535
operators.operatorframework.io/project_layout: go.kubebuilder.io/v4
36-
name: k8s-overcommit.v1.0.1
36+
name: k8s-overcommit.v1.0.2
3737
namespace: placeholder
3838
spec:
3939
apiservicedefinitions: {}
@@ -221,7 +221,7 @@ spec:
221221
valueFrom:
222222
fieldRef:
223223
fieldPath: metadata.namespace
224-
image: ghcr.io/inditextech/k8s-overcommit-operator:1.0.1
224+
image: ghcr.io/inditextech/k8s-overcommit-operator:1.0.2
225225
livenessProbe:
226226
httpGet:
227227
path: /healthz
@@ -313,4 +313,4 @@ spec:
313313
minKubeVersion: 1.22.0
314314
provider:
315315
name: inditexTech
316-
version: 1.0.1
316+
version: 1.0.2

chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name: k8s-overcommit-operator
99
description: K8s overcommit operator Helm chart for deploying the overcommit operator
1010
type: application
1111
version: "1.0.0"
12-
appVersion: "1.0.1"
12+
appVersion: "1.0.2"
1313
maintainers:
1414
- name: Enrique Andrés Villar
1515

chart/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ deployment:
2525
# -- Image name
2626
image: inditextech/k8s-overcommit-operator
2727
# -- Image tag
28-
tag: 1.0.1
28+
tag: 1.0.2
2929
resources:
3030
requests:
3131
# -- CPU request for the container

config/manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ kind: Kustomization
55
images:
66
- name: controller
77
newName: ghcr.io/inditextech/k8s-overcommit-operator
8-
newTag: 1.0.1
8+
newTag: 1.0.2

deploy/catalog_source.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ metadata:
55
namespace: olm
66
spec:
77
sourceType: grpc
8-
image: ghcr.io/inditextech/k8s-overcommit-operator-catalog:1.0.1
8+
image: ghcr.io/inditextech/k8s-overcommit-operator-catalog:1.0.2
99
displayName: K8s Overcommit Operator Catalog
1010
publisher: Inditex Tech

deploy/chart/1.0.2/Chart.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# SPDX-FileCopyrightText: 2025 2025 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
2+
# SPDX-FileContributor: [email protected]
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
---
7+
apiVersion: v2
8+
name: k8s-overcommit-operator
9+
description: K8s overcommit operator Helm chart for deploying the overcommit operator
10+
type: application
11+
version: "1.0.0"
12+
appVersion: "1.0.2"
13+
maintainers:
14+
- name: Enrique Andrés Villar
15+
16+
- name: Javier Terceiro López
17+
18+
keywords:
19+
- kubernetes
20+
- openshift
21+
- operator
22+
- overcommit
23+
- resource-management
24+
- cluster-optimization
25+
- scheduling
26+
- performance
27+
- inditex
28+
sources:
29+
- https://github.com/InditexTech/k8s-overcommit-operator
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
# SPDX-FileCopyrightText: 2025 2025 INDUSTRIA DE DISEÑO TEXTIL S.A. (INDITEX S.A.)
2+
# SPDX-FileContributor: [email protected]
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
---
7+
apiVersion: apiextensions.k8s.io/v1
8+
kind: CustomResourceDefinition
9+
metadata:
10+
annotations:
11+
controller-gen.kubebuilder.io/version: v0.16.1
12+
name: overcommits.overcommit.inditex.dev
13+
spec:
14+
group: overcommit.inditex.dev
15+
names:
16+
kind: Overcommit
17+
listKind: OvercommitList
18+
plural: overcommits
19+
singular: overcommit
20+
scope: Cluster
21+
versions:
22+
- additionalPrinterColumns:
23+
- description: Label to apply to the pods to make overcommit
24+
jsonPath: .spec.overcommitLabel
25+
name: Target Label
26+
type: string
27+
name: v1alphav1
28+
schema:
29+
openAPIV3Schema:
30+
description: Overcommit is the Schema for the overcommits API
31+
properties:
32+
apiVersion:
33+
description: |-
34+
APIVersion defines the versioned schema of this representation of an object.
35+
Servers should convert recognized schemas to the latest internal value, and
36+
may reject unrecognized values.
37+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
38+
type: string
39+
kind:
40+
description: |-
41+
Kind is a string value representing the REST resource this object represents.
42+
Servers may infer this from the endpoint the client submits requests to.
43+
Cannot be updated.
44+
In CamelCase.
45+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
46+
type: string
47+
metadata:
48+
type: object
49+
spec:
50+
description: OvercommitSpec defines the desired state of Overcommit
51+
properties:
52+
annotations:
53+
additionalProperties:
54+
type: string
55+
type: object
56+
labels:
57+
additionalProperties:
58+
type: string
59+
type: object
60+
overcommitLabel:
61+
minLength: 1
62+
type: string
63+
required:
64+
- overcommitLabel
65+
type: object
66+
status:
67+
description: OvercommitStatus defines the observed state of Overcommit
68+
properties:
69+
conditions:
70+
items:
71+
description: Condition contains details for one aspect of the current
72+
state of this API Resource.
73+
properties:
74+
lastTransitionTime:
75+
description: |-
76+
lastTransitionTime is the last time the condition transitioned from one status to another.
77+
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
78+
format: date-time
79+
type: string
80+
message:
81+
description: |-
82+
message is a human readable message indicating details about the transition.
83+
This may be an empty string.
84+
maxLength: 32768
85+
type: string
86+
observedGeneration:
87+
description: |-
88+
observedGeneration represents the .metadata.generation that the condition was set based upon.
89+
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
90+
with respect to the current state of the instance.
91+
format: int64
92+
minimum: 0
93+
type: integer
94+
reason:
95+
description: |-
96+
reason contains a programmatic identifier indicating the reason for the condition's last transition.
97+
Producers of specific condition types may define expected values and meanings for this field,
98+
and whether the values are considered a guaranteed API.
99+
The value should be a CamelCase string.
100+
This field may not be empty.
101+
maxLength: 1024
102+
minLength: 1
103+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
104+
type: string
105+
status:
106+
description: status of the condition, one of True, False, Unknown.
107+
enum:
108+
- "True"
109+
- "False"
110+
- Unknown
111+
type: string
112+
type:
113+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
114+
maxLength: 316
115+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
116+
type: string
117+
required:
118+
- lastTransitionTime
119+
- message
120+
- reason
121+
- status
122+
- type
123+
type: object
124+
type: array
125+
resources:
126+
items:
127+
properties:
128+
name:
129+
type: string
130+
ready:
131+
type: boolean
132+
required:
133+
- ready
134+
type: object
135+
type: array
136+
type: object
137+
type: object
138+
x-kubernetes-validations:
139+
- message: overcommit is a singleton, .metadata.name must be 'cluster'
140+
rule: self.metadata.name == 'cluster'
141+
served: true
142+
storage: true
143+
subresources:
144+
status: {}

0 commit comments

Comments
 (0)