Skip to content

Commit

Permalink
update samples for version 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
maqiuyujoyce committed Oct 22, 2019
1 parent 0620d6b commit 7d93ed7
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: bigquery.cnrm.cloud.google.com/v1alpha2
kind: BigQueryDataset
metadata:
name: bigquerytabledep
spec:
description: "BigQuery Sample Dataset"
20 changes: 20 additions & 0 deletions resources/bigquerytable/bigquery_v1alpha2_bigquerytable.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: bigquery.cnrm.cloud.google.com/v1alpha2
kind: BigQueryTable
metadata:
name: bigquerytable
spec:
description: "BigQuery Sample Table"
datasetRef:
name: bigquerytabledep
friendlyName: "Friendly Name"
timePartitioning:
type: DAY
externalDataConfiguration:
autodetect: true
compression: NONE
ignoreUnknownValues: false
maxBadRecords: 10
sourceFormat: CSV
sourceUris:
- my-uri-1
- my-uri-2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: compute.cnrm.cloud.google.com/v1alpha2
kind: ComputeExternalVPNGateway
metadata:
name: externalvpngateway-sample
labels:
label-one: "value-one"
spec:
description: an external vpn gateway
redundancyType: "SINGLE_IP_INTERNALLY_REDUNDANT"
interface:
- id: 0
ipAddress: "8.8.8.8"
3 changes: 3 additions & 0 deletions tutorials/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## tutorials

This directory contains Config Connector samples for tutorials on cloud.google.com.
1 change: 1 addition & 0 deletions tutorials/auth-service-accounts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Samples for: https://cloud.google.com/kubernetes-engine/docs/tutorials/authenticating-to-cloud-platform
23 changes: 23 additions & 0 deletions tutorials/auth-service-accounts/subscription.yaml
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
#
# http://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.

# [START config_connector_service_accounts_subscription]
apiVersion: pubsub.cnrm.cloud.google.com/v1alpha2
kind: PubSubSubscription
metadata:
name: echo-read
spec:
topicRef:
name: echo
# [END config_connector_service_accounts_subscription]
20 changes: 20 additions & 0 deletions tutorials/auth-service-accounts/topic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# 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
#
# http://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.

# [START config_connector_service_accounts_topic]
apiVersion: pubsub.cnrm.cloud.google.com/v1alpha2
kind: PubSubTopic
metadata:
name: echo
# [END config_connector_service_accounts_topic]

0 comments on commit 7d93ed7

Please sign in to comment.