Skip to content

Commit 6016669

Browse files
authored
feat: metrics (#111)
* exposes metrics port Signed-off-by: Alex Jones <[email protected]> * exposes metrics port Signed-off-by: Alex Jones <[email protected]> Signed-off-by: Alex Jones <[email protected]>
1 parent b835abb commit 6016669

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Image URL to use all building/pushing image targets
33
IMG ?= controller:latest
44
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
5-
FLAGD_VERSION=v0.2.1
5+
FLAGD_VERSION=v0.2.3
66
ENVTEST_K8S_VERSION = 1.23
77

88
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)

webhooks/pod_webhook.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,12 @@ func (m *PodMutator) injectSidecar(pod *corev1.Pod, configMap string, featureFla
260260
},
261261
},
262262
Env: envs,
263+
Ports: []corev1.ContainerPort{
264+
{
265+
Name: "metrics",
266+
ContainerPort: 8014,
267+
},
268+
},
263269
})
264270
return json.Marshal(pod)
265271
}

0 commit comments

Comments
 (0)