From 85bc511f251ae620b821045682c6d12568407d98 Mon Sep 17 00:00:00 2001 From: Alex Bulankou Date: Fri, 1 Nov 2019 06:11:03 -0700 Subject: [PATCH] update samples for version 0.3.1 --- .../compute_v1alpha3_computeimage.yaml | 6 ++++-- .../compute_v1alpha3_computeimage.yaml | 8 +++++++- .../project-level/iam_v1alpha1_iampolicymember.yaml | 13 +++++++++++++ .../pubsub-admin/iam_v1alpha1_iampolicymember.yaml | 12 ++++++++++++ .../iam_v1alpha1_iamserviceaccount.yaml | 4 ++++ .../pubsub-admin/pubsub_v1alpha2_pubsubtopic.yaml | 4 ++++ 6 files changed, 44 insertions(+), 3 deletions(-) rename resources/computeimage/{from-URL-raw => from-url-raw}/compute_v1alpha3_computeimage.yaml (64%) create mode 100644 resources/iampolicymember/project-level/iam_v1alpha1_iampolicymember.yaml create mode 100644 resources/iampolicymember/pubsub-admin/iam_v1alpha1_iampolicymember.yaml create mode 100644 resources/iampolicymember/pubsub-admin/iam_v1alpha1_iamserviceaccount.yaml create mode 100644 resources/iampolicymember/pubsub-admin/pubsub_v1alpha2_pubsubtopic.yaml diff --git a/resources/computeimage/from-existing-disk/compute_v1alpha3_computeimage.yaml b/resources/computeimage/from-existing-disk/compute_v1alpha3_computeimage.yaml index b956399abd..5bdf1b55b2 100644 --- a/resources/computeimage/from-existing-disk/compute_v1alpha3_computeimage.yaml +++ b/resources/computeimage/from-existing-disk/compute_v1alpha3_computeimage.yaml @@ -3,5 +3,7 @@ kind: ComputeImage metadata: name: diskcomputeimage-sample spec: - description: A sample image created from a disk resource - sourceDisk: diskcomputeimage-dep \ No newline at end of file + description: A sample image created from an empty disk resource + diskRef: + name: diskcomputeimage-dep + diskSizeGb: 0 \ No newline at end of file diff --git a/resources/computeimage/from-URL-raw/compute_v1alpha3_computeimage.yaml b/resources/computeimage/from-url-raw/compute_v1alpha3_computeimage.yaml similarity index 64% rename from resources/computeimage/from-URL-raw/compute_v1alpha3_computeimage.yaml rename to resources/computeimage/from-url-raw/compute_v1alpha3_computeimage.yaml index 3937e9c11d..faae246251 100644 --- a/resources/computeimage/from-URL-raw/compute_v1alpha3_computeimage.yaml +++ b/resources/computeimage/from-url-raw/compute_v1alpha3_computeimage.yaml @@ -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" \ No newline at end of file + 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 \ No newline at end of file diff --git a/resources/iampolicymember/project-level/iam_v1alpha1_iampolicymember.yaml b/resources/iampolicymember/project-level/iam_v1alpha1_iampolicymember.yaml new file mode 100644 index 0000000000..1ba5b2e4b1 --- /dev/null +++ b/resources/iampolicymember/project-level/iam_v1alpha1_iampolicymember.yaml @@ -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] \ No newline at end of file diff --git a/resources/iampolicymember/pubsub-admin/iam_v1alpha1_iampolicymember.yaml b/resources/iampolicymember/pubsub-admin/iam_v1alpha1_iampolicymember.yaml new file mode 100644 index 0000000000..beaf035675 --- /dev/null +++ b/resources/iampolicymember/pubsub-admin/iam_v1alpha1_iampolicymember.yaml @@ -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 diff --git a/resources/iampolicymember/pubsub-admin/iam_v1alpha1_iamserviceaccount.yaml b/resources/iampolicymember/pubsub-admin/iam_v1alpha1_iamserviceaccount.yaml new file mode 100644 index 0000000000..cfa8c888f6 --- /dev/null +++ b/resources/iampolicymember/pubsub-admin/iam_v1alpha1_iamserviceaccount.yaml @@ -0,0 +1,4 @@ +apiVersion: iam.cnrm.cloud.google.com/v1alpha1 +kind: IAMServiceAccount +metadata: + name: iampolicymember-dep \ No newline at end of file diff --git a/resources/iampolicymember/pubsub-admin/pubsub_v1alpha2_pubsubtopic.yaml b/resources/iampolicymember/pubsub-admin/pubsub_v1alpha2_pubsubtopic.yaml new file mode 100644 index 0000000000..c15a8fcea8 --- /dev/null +++ b/resources/iampolicymember/pubsub-admin/pubsub_v1alpha2_pubsubtopic.yaml @@ -0,0 +1,4 @@ +apiVersion: pubsub.cnrm.cloud.google.com/v1alpha2 +kind: PubSubTopic +metadata: + name: iampolicymember-dep \ No newline at end of file