From 28daabd7a79af5ec26ac7215976f314701f9a4b6 Mon Sep 17 00:00:00 2001 From: Nicolas Bigler Date: Tue, 6 Aug 2024 11:56:04 +0200 Subject: [PATCH] Re-enable serviceMonitors Signed-off-by: Nicolas Bigler --- package/crossplane.yaml | 2 +- pkg/comp-functions/functions/vshnkeycloak/deploy.go | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/package/crossplane.yaml b/package/crossplane.yaml index a06a4971c1..1997545178 100644 --- a/package/crossplane.yaml +++ b/package/crossplane.yaml @@ -4,6 +4,6 @@ kind: Function metadata: name: function-appcat spec: - image: ghcr.io/vshn/appcat:latest + image: ghcr.io/vshn/appcat:keycloak_svc_monitor crossplane: version: ">=1.14.0" diff --git a/pkg/comp-functions/functions/vshnkeycloak/deploy.go b/pkg/comp-functions/functions/vshnkeycloak/deploy.go index 76a5e83c50..73c0186164 100644 --- a/pkg/comp-functions/functions/vshnkeycloak/deploy.go +++ b/pkg/comp-functions/functions/vshnkeycloak/deploy.go @@ -324,8 +324,6 @@ func newValues(ctx context.Context, svc *runtime.ServiceRuntime, comp *vshnv1.VS "/opt/keycloak/bin/kc-with-setup.sh", "--verbose", "start", - "--http-enabled=true", - "--http-port=8080", "--hostname-strict=false", "--spi-events-listener-jboss-logging-success-level=info", "--spi-events-listener-jboss-logging-error-level=warn", @@ -344,10 +342,10 @@ func newValues(ctx context.Context, svc *runtime.ServiceRuntime, comp *vshnv1.VS "enabled": true, }, "extraServiceMonitor": map[string]any{ - "enabled": false, + "enabled": true, }, "serviceMonitor": map[string]any{ - "enabled": false, + "enabled": true, }, "resources": map[string]any{ "requests": map[string]any{ @@ -390,7 +388,6 @@ func newValues(ctx context.Context, svc *runtime.ServiceRuntime, comp *vshnv1.VS }, "http": map[string]any{ "relativePath": comp.Spec.Parameters.Service.RelativePath, - // "internalPort": "http-internal", }, "podSecurityContext": nil, }