-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update samples and user guide for version 0.0.9
- Loading branch information
Michael Kibbe
committed
Jul 31, 2019
1 parent
b3e7523
commit fd29dd6
Showing
24 changed files
with
117 additions
and
16 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
23 changes: 23 additions & 0 deletions
23
apps/musicians/manifests/overlays/prod/cloud-sql-user.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,23 @@ | ||
# Copyright 2019 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# https://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: sql.cnrm.cloud.google.com/v1alpha3 | ||
kind: SQLUser | ||
metadata: | ||
name: root | ||
spec: | ||
instanceRef: | ||
name: musicians-demo-prod | ||
host: "%" | ||
|
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
File renamed without changes.
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
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
resources/computefirewall/deny-rule/compute_v1alpha1_computefirewall.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,11 @@ | ||
apiVersion: compute.cnrm.cloud.google.com/v1alpha1 | ||
kind: ComputeFirewall | ||
metadata: | ||
labels: | ||
label-one: "value-one" | ||
name: computefirewall-deny-sample | ||
spec: | ||
deny: | ||
- protocol: icmp | ||
networkRef: | ||
name: computefirewall-dep |
7 changes: 7 additions & 0 deletions
7
resources/computefirewall/deny-rule/compute_v1alpha1_computenetwork.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: compute.cnrm.cloud.google.com/v1alpha1 | ||
kind: ComputeNetwork | ||
metadata: | ||
name: computefirewall-dep | ||
spec: | ||
routingMode: REGIONAL | ||
autoCreateSubnetworks: true |
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 |
---|---|---|
|
@@ -4,6 +4,5 @@ metadata: | |
name: computehealthcheck-sample | ||
spec: | ||
checkIntervalSec: 10 | ||
type: HTTP | ||
httpHealthCheck: | ||
port: 80 |
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,13 +3,14 @@ kind: IAMPolicy | |
metadata: | ||
labels: | ||
label-one: value-one | ||
name: iampolicy-sample | ||
name: iampolicy-pubsubtopic-admin-sample | ||
spec: | ||
resourceRef: | ||
apiVersion: pubsub.cnrm.cloud.google.com/v1alpha2 | ||
kind: PubSubTopic | ||
name: iampolicy-dep | ||
bindings: | ||
- role: roles/pubsub.admin | ||
- role: roles/editor | ||
members: | ||
- user:[email protected] | ||
# replace ${PROJECT_NAME?} with your project name | ||
- serviceAccount:iampolicy-dep@${PROJECT_NAME?}.iam.gserviceaccount.com |
4 changes: 4 additions & 0 deletions
4
resources/iampolicy/pubsub-admin/iam_v1alpha1_iamserviceaccount.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,4 @@ | ||
apiVersion: iam.cnrm.cloud.google.com/v1alpha1 | ||
kind: IAMServiceAccount | ||
metadata: | ||
name: iampolicy-dep |
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
resources/iampolicy/workload-identity/iam_v1alpha1_iampolicy.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,14 @@ | ||
apiVersion: iam.cnrm.cloud.google.com/v1alpha1 | ||
kind: IAMPolicy | ||
metadata: | ||
name: iampolicy-workload-identity-sample | ||
spec: | ||
resourceRef: | ||
apiVersion: iam.cnrm.cloud.google.com/v1alpha1 | ||
kind: IAMServiceAccount | ||
name: iampolicy-gsa-dep | ||
bindings: | ||
- role: roles/iam.workloadIdentityUser | ||
members: | ||
# replace ${PROJECT_NAME?} with your project name | ||
- serviceAccount:${PROJECT_NAME?}.svc.id.goog[default/iampolicy-ksa-dep] |
6 changes: 6 additions & 0 deletions
6
resources/iampolicy/workload-identity/iam_v1alpha1_iamserviceaccount.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: iam.cnrm.cloud.google.com/v1alpha1 | ||
kind: IAMServiceAccount | ||
metadata: | ||
name: iampolicy-gsa-dep | ||
spec: | ||
displayName: Example Service Account |
7 changes: 7 additions & 0 deletions
7
resources/iampolicy/workload-identity/kubernetes_service_account.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: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: iampolicy-ksa-dep | ||
annotations: | ||
# replace ${PROJECT_NAME?} with your project name | ||
iam.gke.io/gcp-service-account: iampolicy-gsa-dep@${project_name?}.iam.gserviceaccount.com |
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
apiVersion: sql.cnrm.cloud.google.com/v1alpha2 | ||
apiVersion: sql.cnrm.cloud.google.com/v1alpha3 | ||
kind: SQLInstance | ||
metadata: | ||
name: sqldatabase-dep | ||
spec: | ||
region: us-central1 | ||
databaseVersion: MYSQL_5_7 | ||
settings: | ||
tier: db-n1-standard-1 |
2 changes: 1 addition & 1 deletion
2
...sqldatabase/sql_v1alpha2_sqldatabase.yaml → ...sqldatabase/sql_v1alpha3_sqldatabase.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
3 changes: 2 additions & 1 deletion
3
...sqlinstance/sql_v1alpha2_sqlinstance.yaml → ...sqlinstance/sql_v1alpha3_sqlinstance.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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
apiVersion: sql.cnrm.cloud.google.com/v1alpha2 | ||
apiVersion: sql.cnrm.cloud.google.com/v1alpha3 | ||
kind: SQLInstance | ||
metadata: | ||
labels: | ||
label-one: "value-one" | ||
name: sqlinstance-sample | ||
spec: | ||
region: us-central1 | ||
databaseVersion: MYSQL_5_7 | ||
settings: | ||
tier: db-n1-standard-1 |
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,11 @@ | ||
apiVersion: sql.cnrm.cloud.google.com/v1alpha3 | ||
kind: SQLInstance | ||
metadata: | ||
labels: | ||
label-one: "value-one" | ||
name: sqluser-dep | ||
spec: | ||
region: us-central1 | ||
databaseVersion: MYSQL_5_7 | ||
settings: | ||
tier: db-n1-standard-1 |
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,9 @@ | ||
apiVersion: sql.cnrm.cloud.google.com/v1alpha3 | ||
kind: SQLUser | ||
metadata: | ||
name: sqluser-sample | ||
spec: | ||
instanceRef: | ||
name: sqluser-dep | ||
host: "%" | ||
password: password |
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