Skip to content

Commit

Permalink
semi-working state
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jul 22, 2024
1 parent 2fd8f52 commit 923234b
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions pkg/comp-functions/functions/vshnkeycloak/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
"encoding/json"
"errors"
"fmt"
xkubev1 "github.com/vshn/appcat/v4/apis/kubernetes/v1alpha2"
"time"

xkubev1 "github.com/vshn/appcat/v4/apis/kubernetes/v1alpha2"

xfnproto "github.com/crossplane/function-sdk-go/proto/v1beta1"
xhelmv1 "github.com/vshn/appcat/v4/apis/helm/release/v1beta1"
vshnv1 "github.com/vshn/appcat/v4/apis/vshn/v1"
Expand Down Expand Up @@ -312,9 +313,9 @@ func newValues(ctx context.Context, svc *runtime.ServiceRuntime, comp *vshnv1.VS
"--http-enabled=true",
"--http-port=8080",
"--hostname-strict=false",
"--hostname-strict-https=false",
"--spi-events-listener-jboss-logging-success-level=info",
"--spi-events-listener-jboss-logging-error-level=warn",
"--spi-events-listener-jboss-logging-error-level=debug",
"--log-level=DEBUG",
},
"image": map[string]any{
"repository": "docker-registry.inventage.com:10121/keycloak-competence-center/keycloak-managed",
Expand All @@ -327,13 +328,13 @@ func newValues(ctx context.Context, svc *runtime.ServiceRuntime, comp *vshnv1.VS
"password": string(cd[vshnpostgres.PostgresqlPassword]),
},
"metrics": map[string]any{
"enabled": true,
"enabled": false,
},
"extraServiceMonitor": map[string]any{
"enabled": true,
"enabled": false,
},
"serviceMonitor": map[string]any{
"enabled": true,
"enabled": false,
},
"resources": map[string]any{
"requests": map[string]any{
Expand Down Expand Up @@ -361,12 +362,25 @@ func newValues(ctx context.Context, svc *runtime.ServiceRuntime, comp *vshnv1.VS
},
},
},
"service": map[string]any{
"extraPorts": []map[string]any{
{
"name": "http-internal",
"port": 9000,
"targetPort": 9000,
},
},
},
"http": map[string]any{
"relativePath": comp.Spec.Parameters.Service.RelativePath,
// "internalPort": "http-internal",
},
"podSecurityContext": nil,
}

jsonned, _ := json.Marshal(values)
fmt.Println(string(jsonned))

return values, nil
}

Expand Down

0 comments on commit 923234b

Please sign in to comment.