-
Notifications
You must be signed in to change notification settings - Fork 19
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
Introduction of Red Hat Build of Keycloak #202
Open
sabre1041
wants to merge
2
commits into
securesign:main
Choose a base branch
from
sabre1041:rhbk
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
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,27 @@ | ||
annotations: | ||
artifacthub.io/category: integration-delivery | ||
artifacthub.io/license: Apache-2.0 | ||
artifacthub.io/links: | | ||
- name: support | ||
url: https://github.com/securesign/sigstore-ocp/issues | ||
- name: Chart Source | ||
url: https://github.com/securesign/sigstore-ocp | ||
- name: Default Image Source | ||
url: "" | ||
charts.openshift.io/name: KeycloakOperator | ||
charts.openshift.io/provider: TrustedArtifactSigner | ||
charts.openshift.io/supportURL: https://github.com/securesign/sigstore-ocp/issues | ||
apiVersion: v2 | ||
name: keycloak-operator | ||
description: A Helm chart for deploying the Keycloak Operator Using the Operator Lifecycle Manager (OLM) | ||
type: application | ||
keywords: | ||
- operator | ||
- keycloak | ||
kubeVersion: ">= 1.19.0-0" | ||
maintainers: | ||
- name: TrustedArtifactSigner | ||
url: "" | ||
sources: | ||
- https://github.com/securesign/sigstore-ocp | ||
version: 0.1.0 |
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,59 @@ | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "keycloak-operator.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "keycloak-operator.fullname" -}} | ||
{{- if .Values.fullnameOverride }} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- $name := default .Chart.Name .Values.nameOverride }} | ||
{{- if contains $name .Release.Name }} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create the chart namespace. | ||
*/}} | ||
{{- define "keycloak-operator.namespace" -}} | ||
{{- default .Release.Namespace .Values.namespaceOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- end -}} | ||
|
||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "keycloak-operator.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "keycloak-operator.labels" -}} | ||
helm.sh/chart: {{ include "keycloak-operator.chart" . }} | ||
{{ include "keycloak-operator.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "keycloak-operator.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "keycloak-operator.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{- if .Values.operatorgroup.create }} | ||
apiVersion: operators.coreos.com/v1 | ||
kind: OperatorGroup | ||
metadata: | ||
name: {{ include "keycloak-operator.fullname" . }} | ||
generateName: {{ include "keycloak-operator.fullname" . }}- | ||
namespace: {{ include "keycloak-operator.namespace" . }} | ||
labels: | ||
{{- include "keycloak-operator.labels" . | nindent 4 }} | ||
{{- if .Values.operatorgroup.annotations }} | ||
annotations: | ||
{{- tpl (toYaml .Values.operatorgroup.annotations) $ | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if not .Values.operatorgroup.allNamespaces }} | ||
targetNamespaces: | ||
{{ tpl (toYaml (list (include "keycloak-operator.namespace" .))) $ }} | ||
{{- end }} | ||
upgradeStrategy: {{ tpl .Values.operatorgroup.upgradeStrategy $ }} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: operators.coreos.com/v1alpha1 | ||
kind: Subscription | ||
metadata: | ||
name: {{ include "keycloak-operator.fullname" . }} | ||
namespace: {{ default .Release.Namespace .Values.namespaceOverride | trunc 63 | trimSuffix "-" }} | ||
labels: | ||
{{- include "keycloak-operator.labels" . | nindent 4 }} | ||
{{- if .Values.subscription.annotations }} | ||
annotations: | ||
{{- tpl (toYaml .Values.subscription.annotations) $ | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
channel: {{ required "Operator channel is required!" .Values.subscription.channel }} | ||
installPlanApproval: {{ default "Automatic" .Values.subscription.installPlanApproval }} | ||
name: {{ required "Operator name is required!" .Values.subscription.name }} | ||
source: {{ required "Operator source is required!" .Values.subscription.source }} | ||
sourceNamespace: {{ required "Operator source namespace is required!" .Values.subscription.sourceNamespace }} | ||
{{- if .Values.subscription.config }} | ||
config: | ||
{{- tpl (toYaml .Values.subscription.config) $ | nindent 4 }} | ||
{{- 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
|
||
subscription: | ||
channel: "stable-v22" | ||
installPlanApproval: Automatic | ||
name: "rhbk-operator" | ||
source: "redhat-operators" | ||
sourceNamespace: "openshift-marketplace" | ||
config: {} | ||
|
||
operatorgroup: | ||
create: true | ||
allNamespaces: false | ||
upgradeStrategy: Default | ||
|
||
namespaceOverride: "" |
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,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
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,28 @@ | ||
annotations: | ||
artifacthub.io/category: integration-delivery | ||
artifacthub.io/license: Apache-2.0 | ||
artifacthub.io/links: | | ||
- name: support | ||
url: https://github.com/securesign/sigstore-ocp/issues | ||
- name: Chart Source | ||
url: https://github.com/securesign/sigstore-ocp | ||
- name: Default Image Source | ||
url: "" | ||
charts.openshift.io/name: Keycloak | ||
charts.openshift.io/provider: TrustedArtifactSigner | ||
charts.openshift.io/supportURL: https://github.com/securesign/sigstore-ocp/issues | ||
apiVersion: v2 | ||
name: keycloak | ||
description: A Helm chart for deploying the Keycloak | ||
type: application | ||
keywords: | ||
- sso | ||
- keycloak | ||
- identity | ||
kubeVersion: ">= 1.19.0-0" | ||
maintainers: | ||
- name: TrustedArtifactSigner | ||
url: "" | ||
sources: | ||
- https://github.com/securesign/sigstore-ocp | ||
version: 0.1.0 |
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,5 @@ | ||
--- | ||
|
||
keycloak: | ||
ingress: | ||
host: foo |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious - what is the benefit of
--dry-run
and then piping it throughoc apply
?