Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use service for uffizzi cluster metrics #102

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: v1
kind: Service
metadata:
labels: {{ include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/component: manager
app.kubernetes.io/part-of: uffizzi
name: {{ include "common.names.fullname" . | trunc 55 | trimSuffix "-" }}-http-metrics
namespace: {{ .Release.Namespace | quote }}
spec:
ports:
- name: http
port: 8080
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
4 changes: 4 additions & 0 deletions chart/templates/controller-manager_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ spec:
command:
- /manager
image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}"
ports:
- containerPort: 8080
name: http
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
Expand Down
4 changes: 4 additions & 0 deletions src/test/e2e/metrics_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// contains helper functions to test metrics exported by
// the uffizzi cluster operator

package e2e
3 changes: 3 additions & 0 deletions src/test/e2e/ucluster_lifecycle_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// ucluster_lifecycle_test contains helper functions which are used
// for testing the lifecycle of the UffizziCluster resource.

package e2e

import (
Expand Down
Loading