Skip to content

Commit

Permalink
feat(hackl): remove gitea values (#1063)
Browse files Browse the repository at this point in the history
* feat: release without gitea
  • Loading branch information
ialejandro authored Dec 3, 2024
1 parent 759476b commit 57ed153
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 108 deletions.
54 changes: 0 additions & 54 deletions hack/scripts/create_self_signed_cert.sh

This file was deleted.

2 changes: 1 addition & 1 deletion hack/scripts/helmfile/helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ releases:
- name: "kdl-local"
<<: *default
chart: oci://ghcr.io/konstellation-io/helm-charts/kdl-server
version: 6.0.3-rc.21
version: 6.0.3-rc.24
needs:
- kdl/initial-resources

Expand Down
78 changes: 28 additions & 50 deletions hack/scripts/helmfile/values/kdl-local/values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ image:
pullPolicy: Always

env:
KDL_SERVER_PORT: "8080"
KDL_ADMIN_EMAIL: "[email protected]"
KDL_ADMIN_USERNAME: {{ requiredEnv "KEYCLOAK_ADMIN_USER" | quote }}
KDL_SERVER_MONGODB_URI: "mongodb://kdl:123456@mongodb:27017/kdl?authSource=kdl&authMechanism=SCRAM-SHA-256"
KDL_SERVER_PORT: "8080"
MINIO_ACCESS_KEY: "minio"
MINIO_ENDPOINT: "minio:9000"
MINIO_SECRET_KEY: "minio123"
SERVER_URL: https://kdlapp.{{ requiredEnv "DOMAIN" }}
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123

readyChecker:
enabled: false
Expand Down Expand Up @@ -186,28 +189,6 @@ mongodb:
enabled: true
storageClass: {{ requiredEnv "STORAGE_CLASS_NAME" | quote }}

# (DEPRECATION) legacy, remove in future versions
# OAuth2-Proxy legacy to configure user authentication
oauth2Proxy:
image:
repository: quay.io/oauth2-proxy/oauth2-proxy
tag: v7.7.1-amd64

customConfig: |-
provider="keycloak-oidc"
oidc_issuer_url="https://keycloak.{{ requiredEnv "DOMAIN" }}/realms/kdl"
redirect_url="https://kdlapp.{{ requiredEnv "DOMAIN" }}/oauth2/callback"
cookie_secret="mycookiesecret16"
cookie_secure=true
email_domains="*"
set_xauthrequest=true
http_address="https://kdlapp.{{ requiredEnv "DOMAIN" }}/"
ssl_insecure_skip_verify=true
whitelist_domains=["kdlapp.{{ requiredEnv "DOMAIN" }}"]
cookie_domains=["kdlapp.{{ requiredEnv "DOMAIN" }}", "keycloak.{{ requiredEnv "DOMAIN" }}"]
errors_to_info_log=true
skip_provider_button=true

# -- OAuth2-Proxy subchart deployment
# </br> Ref: https://github.com/oauth2-proxy/manifests/blob/main/helm/oauth2-proxy/values.yaml
oauth2proxy:
Expand All @@ -222,45 +203,42 @@ oauth2proxy:
- kdlapp.{{ requiredEnv "DOMAIN" }}

httpScheme: http
cookieSecret: mycookiesecret16

image:
tag: "v7.7.1-amd64"

extraArgs:
- "--upstream=http://kdl-local-server:80/"
- "--upstream=http://127.0.0.1:9000/mlflow/"
- "--upstream=http://127.0.0.1:9000/filebrowser/"
- "--upstream=http://127.0.0.1:9000/kg/"
- "--pass-user-headers=true"
- "--skip-auth-route=/config.json"
config:
clientID: proxy
clientSecret: proxy654321
cookieSecret: mycookiesecret16

configFile: |-
provider="keycloak-oidc"
oidc_issuer_url="https://keycloak.{{ requiredEnv "DOMAIN" }}/realms/kdl"
redirect_url="https://kdlapp.{{ requiredEnv "DOMAIN" }}/oauth2/callback"
cookie_secret="mycookiesecret16"
upstreams=["http://kdl-local-server:80/", "http://127.0.0.1:9000/mlflow/", "http://127.0.0.1:9000/filebrowser/", "http://127.0.0.1:9000/kg/"]
cookie_domains=["kdlapp.{{ requiredEnv "DOMAIN" }}", "keycloak.{{ requiredEnv "DOMAIN" }}"]
cookie_samesite="lax"
cookie_secure=true
email_domains="*"
set_xauthrequest=true
errors_to_info_log=true
http_address="https://kdlapp.{{ requiredEnv "DOMAIN" }}/"
oidc_issuer_url="https://keycloak.{{ requiredEnv "DOMAIN" }}/realms/kdl"
pass_user_headers=true
provider="keycloak-oidc"
redirect_url="https://kdlapp.{{ requiredEnv "DOMAIN" }}/oauth2/callback"
set_xauthrequest=true
skip_auth_routes="/config.json"
skip_provider_button=true
ssl_insecure_skip_verify=true
whitelist_domains=["kdlapp.{{ requiredEnv "DOMAIN" }}"]
cookie_domains=["kdlapp.{{ requiredEnv "DOMAIN" }}", "keycloak.{{ requiredEnv "DOMAIN" }}"]
errors_to_info_log=true
skip_provider_button=true

extraContainers:
- name: project-proxy
image: nginx:alpine
ports:
- containerPort: 9000
volumeMounts:
- name: project-proxy-nginx-config
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
- name: project-proxy
image: nginx:alpine
ports:
- containerPort: 9000
volumeMounts:
- name: project-proxy-nginx-config
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf

extraVolumes:
- name: project-proxy-nginx-config
Expand Down Expand Up @@ -311,7 +289,7 @@ projectOperator:
image:
repository: filebrowser/filebrowser
pullPolicy: Always
tag: latest
tag: v2

sharedVolume:
enabled: true
Expand Down
3 changes: 0 additions & 3 deletions hack/scripts/kdlctl/cmd_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ deploy() {

create_namespace

# if [ "$ENABLE_TLS" != "false" ]; then
# ./scripts/create_self_signed_cert.sh $NAMESPACE $DOMAIN $OS
# fi
./scripts/create_nginx_ingress_configmap.sh

deploy_helm_chart
Expand Down

0 comments on commit 57ed153

Please sign in to comment.