Skip to content

Commit

Permalink
chore: update cockroachdb init-db example
Browse files Browse the repository at this point in the history
Moved certificate patching out of kustomization.yaml
  • Loading branch information
catalin-ilea committed Aug 1, 2024
1 parent 3e5db7f commit 8a6f18e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ spec:
# name of the user that the init job will grant access on the DB to
- name: DB_USER
value: "example_user"
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: cockroach-client
spec:
commonName: example_user
secretName: cockroachdb.client.example_user
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,4 @@ resources:
namePrefix: example-database-

patches:
- path: example-database-init-job.yaml
- patch: |-
- op: replace
path: /spec/commonName
value: "example_user"
- op: replace
path: /spec/secretName
value: "cockroachdb.client.example-user"
target:
kind: Certificate
name: cockroach-client
version: v1
- path: init.yaml

0 comments on commit 8a6f18e

Please sign in to comment.