-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Share common CA with OLMv1 in overlays/cert-manager (#296)
Use kustomization Components to share a common ClusterIssuer with operator-controller. Fixes #295 Signed-off-by: Todd Short <todd.short@me.com>
- Loading branch information
Showing
9 changed files
with
62 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: kustomize.config.k8s.io/v1alpha1 | ||
kind: Component | ||
# No namespace is specified here, otherwise, it will overwrite _all_ the other namespaces! | ||
resources: | ||
- resources/issuers.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,32 @@ | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
name: self-sign-issuer | ||
namespace: cert-manager | ||
spec: | ||
selfSigned: {} | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: olmv1-ca | ||
namespace: cert-manager | ||
spec: | ||
isCA: true | ||
commonName: olmv1-ca | ||
secretName: olmv1-ca | ||
privateKey: | ||
algorithm: ECDSA | ||
size: 256 | ||
issuerRef: | ||
name: self-sign-issuer | ||
kind: Issuer | ||
group: cert-manager.io | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: ClusterIssuer | ||
metadata: | ||
name: olmv1-ca | ||
spec: | ||
ca: | ||
secretName: olmv1-ca |
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,15 @@ | ||
apiVersion: kustomize.config.k8s.io/v1alpha1 | ||
kind: Component | ||
namespace: olmv1-system | ||
namePrefix: catalogd- | ||
resources: | ||
- resources/certificate.yaml | ||
patches: | ||
- target: | ||
kind: Service | ||
name: catalogserver | ||
path: patches/catalogserver_service_port.yaml | ||
- target: | ||
kind: Deployment | ||
name: controller-manager | ||
path: patches/manager_deployment_certs.yaml |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -1,28 +1,9 @@ | ||
# Adds namespace to all resources. | ||
namespace: olmv1-system | ||
|
||
# Value of this field is prepended to the | ||
# names of all resources, e.g. a deployment named | ||
# "wordpress" becomes "alices-wordpress". | ||
# Note that it should also match with the prefix (text before '-') of the namespace | ||
# field above. | ||
namePrefix: catalogd- | ||
|
||
# the following config is for teaching kustomize how to do var substitution | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../../base/crd | ||
- ../../base/rbac | ||
- ../../base/manager | ||
- resources | ||
|
||
patches: | ||
- target: | ||
kind: Service | ||
name: catalogserver | ||
path: patches/catalogserver_service_port.yaml | ||
- target: | ||
kind: Deployment | ||
name: controller-manager | ||
path: patches/manager_deployment_certs.yaml | ||
components: | ||
- ../../components/tls | ||
- ../../components/ca |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.