Skip to content

Commit

Permalink
Fix certificate order
Browse files Browse the repository at this point in the history
  • Loading branch information
mhoshi-vm committed Dec 13, 2024
1 parent 3186d6e commit 2755b96
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#@ load("@ytt:data", "data")
---
apiVersion: v1
kind: Secret
metadata:
name: pvc-owned-for-deletion-strategy-overlay
namespace: #@ data.values.tp.namespace
stringData:
#@yaml/text-templated-strings
pvc-owned-for-deletion-strategy.yaml: |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,49 @@
#@ load("@ytt:data", "data")
#@ if data.values.tp.ingress.self_signed_cert:
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: issuers.cert-manager.io
annotations:
kapp.k14s.io/exists: ""
kapp.k14s.io/change-rule: "upsert after upserting pkg-cert"
spec:
group: cert-manager.io
scope: Namespaced
versions:
- name: v1
served: true
storage: true
names:
kind: Issuer
plural: issuers
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: certificates.cert-manager.io
annotations:
kapp.k14s.io/exists: ""
kapp.k14s.io/change-rule: "upsert after upserting pkg-cert"
spec:
group: cert-manager.io
scope: Namespaced
versions:
- name: v1
served: true
storage: true
names:
kind: Certificate
plural: certificates
---
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: tp-root-issuer
namespace: #@ data.values.tp.namespace
annotations:
kapp.k14s.io/change-group: "secrettemplate"
kapp.k14s.io/change-rule: "upsert after upserting pkg-cert"
spec:
selfSigned: {}
---
Expand All @@ -19,7 +54,6 @@ metadata:
namespace: #@ data.values.tp.namespace
annotations:
kapp.k14s.io/change-group: "secrettemplate"
kapp.k14s.io/change-rule: "upsert after upserting pkg-cert"
spec:
isCA: true
commonName: #@ data.values.tp.ingress.host
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: rsa-role-bindings
namespace: #@ data.values.tp.namespace
annotations:
kapp.k14s.io/change-group: "secrettemplate"
roleRef:
Expand Down

0 comments on commit 2755b96

Please sign in to comment.