-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add possibility to configure AWS JDBC Wrapper for Keycloak driver
Closes #698 Signed-off-by: Michal Hajas <mhajas@redhat.com>
- Loading branch information
Showing
9 changed files
with
125 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
provision/keycloak-tasks/keycloak-image-helm/templates/keycloak-nightly-imagestream.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{- if and (.Values.useAWSJDBCWrapper) (not .Values.customImage) }} | ||
kind: ImageStream | ||
apiVersion: image.openshift.io/v1 | ||
metadata: | ||
name: keycloak | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
lookupPolicy: | ||
local: false | ||
tags: | ||
- name: latest | ||
from: | ||
kind: DockerImage | ||
name: quay.io/keycloak/keycloak:nightly | ||
generation: 2 | ||
importPolicy: | ||
importMode: Legacy | ||
referencePolicy: | ||
type: Source | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
provision/keycloak-tasks/keycloak-image-helm/templates/keycloak-with-AWS-JDBC-wrapper.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{{- if .Values.useAWSJDBCWrapper }} | ||
kind: ImageStream | ||
apiVersion: image.openshift.io/v1 | ||
metadata: | ||
name: keycloak-with-aws-jdbc-wrapper | ||
namespace: {{ .Values.namespace }} | ||
labels: | ||
build: keycloak | ||
spec: | ||
lookupPolicy: | ||
local: false | ||
--- | ||
apiVersion: build.openshift.io/v1 | ||
kind: BuildConfig | ||
metadata: | ||
labels: | ||
build: keycloak | ||
name: keycloak-with-aws-jdbc-wrapper | ||
namespace: {{ .Values.namespace }} | ||
spec: | ||
output: | ||
to: | ||
kind: ImageStreamTag | ||
name: keycloak-with-aws-jdbc-wrapper:latest | ||
runPolicy: Serial | ||
triggers: | ||
- type: "ImageChange" | ||
imageChange: | ||
from: | ||
kind: "ImageStreamTag" | ||
name: "keycloak:latest" | ||
strategy: | ||
dockerStrategy: | ||
from: | ||
kind: "ImageStreamTag" | ||
name: "keycloak:latest" | ||
forcePull: true | ||
source: | ||
dockerfile: | | ||
FROM keycloak:latest | ||
ADD --chmod=0666 {{ .Values.jdbcWrapperURL }} /opt/keycloak/providers/ | ||
ENTRYPOINT ["/opt/keycloak/bin/kc.sh"] | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters