Skip to content

Commit

Permalink
fix: drop dep of root-ca resources, change the issuer (#203)
Browse files Browse the repository at this point in the history
* fix: drop dependson change issuer kind

* fix: extend timeout for root-ca

cert-manager install timeout is 450s

* fix: add the old issuer back

 to prevent kommander code change

Co-authored-by: York Chen <[email protected]>
  • Loading branch information
mesosphere-mergebot and York Chen authored Feb 18, 2022
1 parent f680f00 commit 84c1129
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
5 changes: 1 addition & 4 deletions services/cert-manager/0.2.7/root-ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@ spec:
prune: true
interval: 1m0s
path: ./services/cert-manager/0.2.7/root-ca
dependsOn:
- name: cert-manager-release
namespace: ${releaseNamespace}
sourceRef:
kind: GitRepository
name: management
namespace: kommander-flux
timeout: 60s
timeout: 480s
# passing releaseNamespace to 2nd level configuration files for able to configure namespace correctly in attached clusters
# Using `substituteFrom` with `substitution-vars` creates 2nd level resources in `kommander` namespace instead of workspace ns
postBuild:
Expand Down
35 changes: 35 additions & 0 deletions services/cert-manager/0.2.7/root-ca/root-ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,38 @@ metadata:
spec:
ca:
secretName: kommander-bootstrap-root-ca
---
# a quick solution to fix kommander-traefik and kube-oidc-proxy certificate in attached clusters (with and without cert-manager pre-installed)
# https://jira.d2iq.com/browse/D2IQ-84510
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: selfsigned-issuer
spec:
selfSigned: {}
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: kommander-ca
namespace: cert-manager
spec:
isCA: true
commonName: kommander-ca
secretName: kommander-ca
privateKey:
algorithm: ECDSA
size: 256
issuerRef:
name: selfsigned-issuer
kind: ClusterIssuer
group: cert-manager.io
---
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: kommander-ca
spec:
ca:
secretName: kommander-ca

0 comments on commit 84c1129

Please sign in to comment.