Skip to content

Commit

Permalink
feat: metrics (#111)
Browse files Browse the repository at this point in the history
* exposes metrics port

Signed-off-by: Alex Jones <alexsimonjones@gmail.com>

* exposes metrics port

Signed-off-by: Alex Jones <alexsimonjones@gmail.com>

Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
  • Loading branch information
AlexsJones authored Oct 13, 2022
1 parent b835abb commit 6016669
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Image URL to use all building/pushing image targets
IMG ?= controller:latest
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
FLAGD_VERSION=v0.2.1
FLAGD_VERSION=v0.2.3
ENVTEST_K8S_VERSION = 1.23

# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
Expand Down
6 changes: 6 additions & 0 deletions webhooks/pod_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,12 @@ func (m *PodMutator) injectSidecar(pod *corev1.Pod, configMap string, featureFla
},
},
Env: envs,
Ports: []corev1.ContainerPort{
{
Name: "metrics",
ContainerPort: 8014,
},
},
})
return json.Marshal(pod)
}

0 comments on commit 6016669

Please sign in to comment.