Install keycloak

This commit is contained in:
Jack Jackson 2024-03-30 19:28:28 -07:00
parent de944bac48
commit 1d56a131b7
2 changed files with 21 additions and 2 deletions

View File

@ -4,7 +4,8 @@
sourceRepoUrl, sourceRepoUrl,
sourceChart, sourceChart,
sourceTargetRevision, sourceTargetRevision,
namespace="") :: namespace="",
helmValues={}) ::
{ {
apiVersion: "argoproj.io/v1alpha1", apiVersion: "argoproj.io/v1alpha1",
kind: "Application", kind: "Application",
@ -18,7 +19,10 @@
source: { source: {
chart: sourceChart, chart: sourceChart,
repoURL: sourceRepoUrl, repoURL: sourceRepoUrl,
targetRevision: sourceTargetRevision targetRevision: sourceTargetRevision,
[if helmValues != {} then "helm"]: {
valuesObject: helmValues
}
}, },
destination: { destination: {
server: "https://kubernetes.default.svc", server: "https://kubernetes.default.svc",
@ -32,4 +36,5 @@
} }
} }
} }
} }

View File

@ -0,0 +1,14 @@
local appDef = import './app-definitions.libsonnet';
appDef.helmApplication(
name="keycloak",
sourceRepoUrl="https://charts.bitnami.com/bitnami",
sourceChart="keycloak",
sourceTargetRevision="19.3.4",
helmValues={
ingress: {
enabled: true,
hostname: "keycloak.avril"
}
}
)