-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create cert-manager Certificates in namespace
openshift-console
This feature requires Kyverno to be installed on the cluster. The component checks whether component `kyverno` is enabled on the cluster if you configure cert-manager Certificate resources for the web console. If the kyverno component isn't enabled, the component compilation produces an error. The component only depends on Kyverno for configurations which use cert-manager Certificates for a custom console route. Fixes #21
- Loading branch information
Showing
6 changed files
with
208 additions
and
17 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
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
62 changes: 62 additions & 0 deletions
62
...ed-tls/openshift4-console/openshift4-console/20_openshift_config_ns_annotation_patch.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,62 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
name: namespace-openshift-config-manager | ||
name: namespace-openshift-config-manager | ||
namespace: syn-resource-locker | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
labels: | ||
name: syn-resource-locker-namespace-openshift-config-manager | ||
name: syn-resource-locker-namespace-openshift-config-manager | ||
rules: | ||
- apiGroups: | ||
- '' | ||
resources: | ||
- namespaces | ||
verbs: | ||
- get | ||
- list | ||
- patch | ||
- watch | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
labels: | ||
name: syn-resource-locker-namespace-openshift-config-manager | ||
name: syn-resource-locker-namespace-openshift-config-manager | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: syn-resource-locker-namespace-openshift-config-manager | ||
subjects: | ||
- kind: ServiceAccount | ||
name: namespace-openshift-config-manager | ||
namespace: syn-resource-locker | ||
--- | ||
apiVersion: redhatcop.redhat.io/v1alpha1 | ||
kind: ResourceLocker | ||
metadata: | ||
annotations: | ||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true | ||
argocd.argoproj.io/sync-wave: '5' | ||
labels: | ||
name: namespace-openshift-config | ||
name: namespace-openshift-config | ||
namespace: syn-resource-locker | ||
spec: | ||
patches: | ||
- id: patch1 | ||
patchTemplate: "\"metadata\":\n \"annotations\":\n \"syn.tools/openshift4-console\"\ | ||
: \"secret-target-namespace\"" | ||
patchType: application/merge-patch+json | ||
targetObjectRef: | ||
apiVersion: v1 | ||
kind: Namespace | ||
name: openshift-config | ||
serviceAccountRef: | ||
name: namespace-openshift-config-manager |