Skip to content

Commit

Permalink
Reorganize manifests for cert-manager overlay
Browse files Browse the repository at this point in the history
This allows the use of alternate certificate managers.

Signed-off-by: Tayler Geiger <tayler@redhat.com>
  • Loading branch information
trgeiger committed May 6, 2024
1 parent 3791977 commit b298977
Show file tree
Hide file tree
Showing 25 changed files with 31 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ kind: Kustomization
resources:
- ../crd
- ../rbac
- ../certmanager
- ../manager
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ spec:
selector:
control-plane: controller-manager
ports:
- name: https
- name: http
protocol: TCP
port: 443
port: 80
targetPort: 8083
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,12 @@ spec:
args:
- --leader-elect
- --metrics-bind-address=127.0.0.1:8080
- --https-external-address=https://catalogd-catalogserver.catalogd-system.svc
- --external-address=catalogd-catalogserver.catalogd-system.svc
image: controller:latest
name: manager
volumeMounts:
- name: cache
mountPath: /var/cache/
- name: catalogserver-certs
mountPath: /var/certs/
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down Expand Up @@ -112,6 +110,3 @@ spec:
volumes:
- name: cache
emptyDir: {}
- name: catalogserver-certs
secret:
secretName: catalogd-catalogserver-cert
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions config/overlays/cert-manager/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
resources:
- ../../base/default
- 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- op: replace
path: /spec/ports/0/port
value: 443
- op: replace
path: /spec/ports/0/name
value: https
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- op: add
path: /spec/template/spec/volumes/-
value: {"name":"catalogserver-certs", "secret":{"secretName":"catalogd-catalogserver-cert"}}
- op: add
path: /spec/template/spec/containers/1/volumeMounts/-
value: {"name":"catalogserver-certs", "mountPath":"/var/certs"}

Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ spec:
dnsNames:
- catalogd-catalogserver.catalogd-system.svc
issuerRef:
name: catalogd-catalogserver-selfsigned-issuer
name: catalogserver-selfsigned-issuer
kind: Issuer

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
resources:
- issuer.yaml
- certificate.yaml
- issuer.yaml

0 comments on commit b298977

Please sign in to comment.