-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rename --cloud-secret-manager to --admin-user-secret-type (#396)
- Loading branch information
1 parent
bffe45b
commit 87ff0f3
Showing
10 changed files
with
95 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ resources: | |
- mysql-deployment.yaml | ||
- mysql-service.yaml | ||
- mysql-service-nodeport.yaml | ||
# - mysql-secret.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: v1 | ||
data: | ||
key: cm9vdA== | ||
kind: Secret | ||
metadata: | ||
name: mysql-user | ||
type: Opaque | ||
--- | ||
apiVersion: v1 | ||
data: | ||
key: cGFzc3dvcmQ= | ||
kind: Secret | ||
metadata: | ||
name: mysql-password | ||
type: Opaque |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
## Append samples you want in your CSV to this file as resources ## | ||
resources: | ||
- mysql_v1alpha1_mysqluser.yaml | ||
- mysql_v1alpha1_mysql.yaml | ||
- mysql_v1alpha1_mysqldb.yaml | ||
#+kubebuilder:scaffold:manifestskustomizesamples |
12 changes: 12 additions & 0 deletions
12
config/samples-on-k8s-with-k8s-secret/mysql_v1alpha1_mysql.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: mysql.nakamasato.com/v1alpha1 | ||
kind: MySQL | ||
metadata: | ||
name: mysql-sample | ||
spec: | ||
host: "mysql.default" | ||
adminUser: | ||
name: mysql-user | ||
type: k8s | ||
adminPassword: # stored in GCP SecretMamanger | ||
name: mysql-password | ||
type: k8s |
7 changes: 7 additions & 0 deletions
7
config/samples-on-k8s-with-k8s-secret/mysql_v1alpha1_mysqldb.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: mysql.nakamasato.com/v1alpha1 | ||
kind: MySQLDB | ||
metadata: | ||
name: sample-db # this is not a name for MySQL database but just a Kubernetes object name | ||
spec: | ||
dbName: sample_db # this is MySQL database name | ||
mysqlName: mysql-sample |
6 changes: 6 additions & 0 deletions
6
config/samples-on-k8s-with-k8s-secret/mysql_v1alpha1_mysqluser.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: mysql.nakamasato.com/v1alpha1 | ||
kind: MySQLUser | ||
metadata: | ||
name: sample-user | ||
spec: | ||
mysqlName: mysql-sample |