Skip to content

Commit

Permalink
Add Authorino Operator metrics service
Browse files Browse the repository at this point in the history
  • Loading branch information
guicassolato committed Jul 1, 2024
1 parent a07ac74 commit c9d0e99
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 3 deletions.
16 changes: 16 additions & 0 deletions bundle/manifests/authorino-operator-metrics_v1_service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
control-plane: authorino-operator
name: authorino-operator-metrics
spec:
ports:
- name: metrics
port: 8080
targetPort: metrics
selector:
control-plane: authorino-operator
status:
loadBalancer: {}
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ metadata:
capabilities: Basic Install
categories: Integration & Delivery
containerImage: quay.io/kuadrant/authorino-operator:latest
createdAt: "2024-06-28T16:37:00Z"
createdAt: "2024-07-01T08:30:34Z"
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/Kuadrant/authorino-operator
Expand Down Expand Up @@ -322,6 +322,9 @@ spec:
initialDelaySeconds: 15
periodSeconds: 20
name: manager
ports:
- containerPort: 8080
name: metrics
readinessProbe:
httpGet:
path: /readyz
Expand Down
18 changes: 18 additions & 0 deletions config/deploy/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6119,6 +6119,21 @@ metadata:
---
apiVersion: v1
kind: Service
metadata:
labels:
control-plane: authorino-operator
name: authorino-operator-metrics
namespace: authorino-operator
spec:
ports:
- name: metrics
port: 8080
targetPort: metrics
selector:
control-plane: authorino-operator
---
apiVersion: v1
kind: Service
metadata:
labels:
app: authorino
Expand Down Expand Up @@ -6164,6 +6179,9 @@ spec:
initialDelaySeconds: 15
periodSeconds: 20
name: manager
ports:
- containerPort: 8080
name: metrics
readinessProbe:
httpGet:
path: /readyz
Expand Down
7 changes: 5 additions & 2 deletions config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- manager.yaml
- metrics_service.yaml

generatorOptions:
disableNameSuffixHash: true
Expand All @@ -8,8 +12,7 @@ configMapGenerator:
- files:
- controller_manager_config.yaml
name: manager-config
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

images:
- name: controller
newName: quay.io/kuadrant/authorino-operator
Expand Down
3 changes: 3 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spec:
name: manager
securityContext:
allowPrivilegeEscalation: false
ports:
- name: metrics
containerPort: 8080
livenessProbe:
httpGet:
path: /healthz
Expand Down
15 changes: 15 additions & 0 deletions config/manager/metrics_service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
apiVersion: v1
kind: Service
metadata:
labels:
control-plane: authorino-operator
name: authorino-operator-metrics
namespace: system
spec:
ports:
- name: metrics
port: 8080
targetPort: metrics
selector:
control-plane: authorino-operator

0 comments on commit c9d0e99

Please sign in to comment.