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 Jun 28, 2024
1 parent 1acbdfc commit 79d73bc
Show file tree
Hide file tree
Showing 7 changed files with 74 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-03-13T16:53:44Z"
createdAt: "2024-06-28T13:06:53Z"
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
3 changes: 3 additions & 0 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ bases:
#- ../prometheus

patchesStrategicMerge:
# Patches the controller Deployment to expose the metrics port
- manager_metrics_patch.yaml

# Mount the controller config file for loading manager configurations
# through a ComponentConfig type
#- manager_config_patch.yaml
Expand Down
13 changes: 13 additions & 0 deletions config/default/manager_metrics_patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: authorino-operator
namespace: system
spec:
template:
spec:
containers:
- name: manager
ports:
- containerPort: 8080
name: metrics
18 changes: 18 additions & 0 deletions config/deploy/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6115,6 +6115,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 @@ -6160,6 +6175,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
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 79d73bc

Please sign in to comment.