Skip to content

Commit

Permalink
Finish reconfigure tls for standalone
Browse files Browse the repository at this point in the history
Signed-off-by: Neaj Morshad <[email protected]>
  • Loading branch information
Neaj-Morshad-101 committed Nov 18, 2024
1 parent 2f6edf8 commit ff4d46f
Show file tree
Hide file tree
Showing 9 changed files with 1,139 additions and 127 deletions.
4 changes: 2 additions & 2 deletions docs/examples/mssqlserver/reconfigure-tls/issuer.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: mg-issuer
name: mssqlserver-ca-issuer
namespace: demo
spec:
ca:
secretName: mongo-ca
secretName: mssqlserver-ca
14 changes: 0 additions & 14 deletions docs/examples/mssqlserver/reconfigure-tls/mops-change-issuer.yaml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: MongoDBOpsRequest
kind: MSSQLServerOpsRequest
metadata:
name: mops-add-tls
name: msops-add-tls
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: mg-rs
name: ms-standalone
tls:
issuerRef:
name: mg-issuer
name: mssqlserver-ca-issuer
kind: Issuer
apiGroup: "cert-manager.io"
certificates:
- alias: client
subject:
organizations:
- mongo
- mssqlserver
organizationalUnits:
- client
clientTLS: true
timeout: 5m
apply: IfReady
14 changes: 14 additions & 0 deletions docs/examples/mssqlserver/reconfigure-tls/msops-change-issuer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: MSSQLServerOpsRequest
metadata:
name: msops-change-issuer
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: ms-standalone
tls:
issuerRef:
name: mssqlserver-new-ca-issuer
kind: Issuer
apiGroup: "cert-manager.io"
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: MongoDBOpsRequest
kind: MSSQLServerOpsRequest
metadata:
name: mops-remove
name: msops-remove
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: mg-rs
name: ms-standalone
tls:
remove: true
remove: true
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
apiVersion: ops.kubedb.com/v1alpha1
kind: MongoDBOpsRequest
kind: MSSQLServerOpsRequest
metadata:
name: mops-rotate
name: msops-rotate
namespace: demo
spec:
type: ReconfigureTLS
databaseRef:
name: mg-rs
name: ms-standalone
tls:
rotateCertificates: true
timeout: 5m
apply: IfReady
4 changes: 2 additions & 2 deletions docs/examples/mssqlserver/reconfigure-tls/new-issuer.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: mg-new-issuer
name: mssqlserver-new-ca-issuer
namespace: demo
spec:
ca:
secretName: mongo-new-ca
secretName: mssqlserver-new-ca
Loading

0 comments on commit ff4d46f

Please sign in to comment.