Skip to content

Commit

Permalink
update samples for version 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBulankou committed Nov 1, 2019
1 parent 950178b commit 85bc511
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ kind: ComputeImage
metadata:
name: diskcomputeimage-sample
spec:
description: A sample image created from a disk resource
sourceDisk: diskcomputeimage-dep
description: A sample image created from an empty disk resource
diskRef:
name: diskcomputeimage-dep
diskSizeGb: 0
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@ apiVersion: compute.cnrm.cloud.google.com/v1alpha3
kind: ComputeImage
metadata:
name: diskcomputeimage-sample
labels:
imageType: stemcell
spec:
description: A sample image created from URL to a raw TAR disk image
family: ubuntu-custom
licenses: ["https://ubuntu.com/licensing"]
rawDisk:
source: "https://storage.googleapis.com/bosh-cpi-artifacts/bosh-stemcell-3262.7-google-kvm-ubuntu-trusty-go_agent-raw.tar.gz"
source: "https://storage.googleapis.com/bosh-cpi-artifacts/bosh-stemcell-3262.7-google-kvm-ubuntu-trusty-go_agent-raw.tar.gz"
containerType: "TAR"
sha1: d0646960085a472899db41f6065e6b627919b3a9
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Replace [PROJECT_ID] below with your desired project ID.
#
# This sample assumes that you have created a service account named cnrm-system@[PROJECT_ID].iam.gserviceaccount.com.
apiVersion: iam.cnrm.cloud.google.com/v1alpha1
kind: IAMPolicyMember
metadata:
name: iampolicymember-project-level-sample
spec:
member: serviceAccount:cnrm-system@[PROJECT_ID].iam.gserviceaccount.com
role: roles/storage.admin
resourceRef:
kind: Project
name: [PROJECT_ID]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: iam.cnrm.cloud.google.com/v1alpha1
kind: IAMPolicyMember
metadata:
name: iampolicymember-pubsubtopic-admin-sample
spec:
# replace ${PROJECT_ID?} with your project name
member: serviceAccount:iampolicymember-dep@${PROJECT_ID?}.iam.gserviceaccount.com
role: roles/editor
resourceRef:
apiVersion: pubsub.cnrm.cloud.google.com/v1alpha2
kind: PubSubTopic
name: iampolicymember-dep
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: iampolicymember-dep
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: pubsub.cnrm.cloud.google.com/v1alpha2
kind: PubSubTopic
metadata:
name: iampolicymember-dep

0 comments on commit 85bc511

Please sign in to comment.