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

Add Keycloak provisioning #126

Merged
merged 6 commits into from
Feb 2, 2024
Merged

Add Keycloak provisioning #126

merged 6 commits into from
Feb 2, 2024

Conversation

Kidswiss
Copy link
Contributor

@Kidswiss Kidswiss commented Jan 23, 2024

Summary

With this commit it's now possible to provision a fairly default Keycloak instance backed by our PostgreSQL implementation.

There are currently no TLS configurations for Keycloak itself or its ingress. Also it currently only provisions in dev mode which has some things disabled like strict hostname checking and tls.

Checklist

  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog
  • Update tests.
  • Link this PR to related issues.

@Kidswiss Kidswiss force-pushed the add/keycloak_bootstrap branch 2 times, most recently from 4669e00 to c527b2d Compare January 24, 2024 10:43
pkg/comp-functions/functions/vshnkeycloak/deploy.go Outdated Show resolved Hide resolved
pkg/comp-functions/functions/vshnkeycloak/deploy.go Outdated Show resolved Hide resolved
pkg/comp-functions/functions/vshnkeycloak/deploy.go Outdated Show resolved Hide resolved
pkg/comp-functions/functions/vshnkeycloak/deploy.go Outdated Show resolved Hide resolved
pkg/comp-functions/functions/vshnkeycloak/deploy.go Outdated Show resolved Hide resolved
@Kidswiss Kidswiss force-pushed the add/keycloak_bootstrap branch from 47f9cac to 42217dd Compare January 25, 2024 09:32
With this commit it's now possible to provision a fairly default
Keycloak instance backed by our PostgreSQL implementation.
@Kidswiss Kidswiss force-pushed the add/keycloak_bootstrap branch from e1ef271 to 17ea5cf Compare January 30, 2024 10:25
@Kidswiss Kidswiss force-pushed the add/keycloak_bootstrap branch from 17ea5cf to 418fde9 Compare January 30, 2024 11:49
@Kidswiss Kidswiss changed the title Add/keycloak bootstrap Add Keycloak provisioning Jan 30, 2024
@Kidswiss Kidswiss requested review from a team, TheBigLee, wejdross and zugao and removed request for a team January 30, 2024 12:13
@Kidswiss Kidswiss added the enhancement New feature or request label Jan 30, 2024
Copy link
Member

@wejdross wejdross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quite big MR, I have just few notes here, it must be well tested in lab

Comment on lines +94 to +99
# curl ${STACKGRES_CRD_URL}/SGPoolingConfig.yaml?inline=false -o apis/stackgres/v1/sgpoolconfigs_crd.yaml
# yq -i e apis/stackgres/v1/sgpoolconfigs.yaml --expression ".components.schemas.SGPoolingConfigSpec=load(\"apis/stackgres/v1/sgpoolconfigs_crd.yaml\").spec.versions[0].schema.openAPIV3Schema.properties.spec"
# yq -i e apis/stackgres/v1/sgpoolconfigs.yaml --expression ".components.schemas.SGPoolingConfigStatus=load(\"apis/stackgres/v1/sgpoolconfigs_crd.yaml\").spec.versions[0].schema.openAPIV3Schema.properties.status"
# go run github.com/deepmap/oapi-codegen/cmd/oapi-codegen --package=v1 -generate=types -o apis/stackgres/v1/sgpoolconfigs.gen.go apis/stackgres/v1/sgpoolconfigs.yaml
# perl -i -0pe 's/\*struct\s\{\n\s\sAdditionalProperties\smap\[string\]string\s`json:"-"`\n\s}/map\[string\]string/gms' apis/stackgres/v1/sgpoolconfigs.gen.go

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it still necessary? or just left for future us?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future us. It probably makes sense if I add a comment though.

tl;dr: the generator for the pool configs doesn't work very well, as it relies on map[string]string which the go tooling can't handle. I guess it works with java though. So I had to replace parts of the generated code.

Comment on lines 14 to 18
// Spec defines the desired state of a VSHNPostgreSQL.
Spec SGPoolingConfigSpec `json:"spec"`

// Status reflects the observed state of a VSHNPostgreSQL.
Status SGPoolingConfigStatus `json:"status,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like copy-paste issue in comments

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I'll change the postgresql references.

@Kidswiss Kidswiss merged commit 345fd46 into master Feb 2, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants