Skip to content

Commit

Permalink
Merge pull request #528 from sergenyalcin/add-v1beta2-examples
Browse files Browse the repository at this point in the history
Add example manifests for v1beta2 version
  • Loading branch information
sergenyalcin authored May 16, 2024
2 parents c82aec4 + 89bac75 commit 6738b68
Show file tree
Hide file tree
Showing 206 changed files with 9,317 additions and 28 deletions.
44 changes: 44 additions & 0 deletions examples/accesscontextmanager/v1beta2/accesslevel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: accesscontextmanager.gcp.upbound.io/v1beta2
kind: AccessLevel
metadata:
annotations:
meta.upbound.io/example-id: accesscontextmanager/v1beta2/accesslevel
upjet.upbound.io/manual-intervention: Requires organization level IAM permissions
labels:
testing.upbound.io/example-name: access-level
name: access-level
spec:
forProvider:
basic:
conditions:
- devicePolicy:
osConstraints:
- osType: DESKTOP_CHROME_OS
requireScreenLock: true
regions:
- CH
- IT
- US
name: accessPolicies/${google_access_context_manager_access_policy.access-policy.name}/accessLevels/chromeos_no_lock
parent: accessPolicies/${google_access_context_manager_access_policy.access-policy.name}
title: chromeos_no_lock

---

apiVersion: accesscontextmanager.gcp.upbound.io/v1beta1
kind: AccessPolicy
metadata:
annotations:
meta.upbound.io/example-id: accesscontextmanager/v1beta2/accesslevel
upjet.upbound.io/manual-intervention: Requires organization level IAM permissions
labels:
testing.upbound.io/example-name: access-policy
name: access-policy
spec:
forProvider:
parent: organizations/123456789
title: my policy
90 changes: 90 additions & 0 deletions examples/accesscontextmanager/v1beta2/accesslevelcondition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: accesscontextmanager.gcp.upbound.io/v1beta2
kind: AccessLevelCondition
metadata:
annotations:
meta.upbound.io/example-id: accesscontextmanager/v1beta2/accesslevelcondition
upjet.upbound.io/manual-intervention: Requires organization level IAM permissions
labels:
testing.upbound.io/example-name: access-level-conditions
name: access-level-conditions
spec:
forProvider:
accessLevelSelector:
matchLabels:
testing.upbound.io/example-name: access-level-service-account
devicePolicy:
osConstraints:
- osType: DESKTOP_CHROME_OS
requireAdminApproval: false
requireCorpOwned: true
requireScreenLock: false
ipSubnetworks:
- 192.0.4.0/24
members:
- user:[email protected]
- user:[email protected]
- serviceAccount:${google_service_account.created-later.email}
negate: false
regions:
- IT
- US

---

apiVersion: accesscontextmanager.gcp.upbound.io/v1beta2
kind: AccessLevel
metadata:
annotations:
meta.upbound.io/example-id: accesscontextmanager/v1beta2/accesslevelcondition
upjet.upbound.io/manual-intervention: Requires organization level IAM permissions
labels:
testing.upbound.io/example-name: access-level-service-account
name: access-level-service-account
spec:
forProvider:
basic:
conditions:
- devicePolicy:
osConstraints:
- osType: DESKTOP_CHROME_OS
requireScreenLock: true
regions:
- CH
- IT
- US
name: accessPolicies/${google_access_context_manager_access_policy.access-policy.name}/accessLevels/chromeos_no_lock
parent: accessPolicies/${google_access_context_manager_access_policy.access-policy.name}
title: chromeos_no_lock

---

apiVersion: accesscontextmanager.gcp.upbound.io/v1beta1
kind: AccessPolicy
metadata:
annotations:
meta.upbound.io/example-id: accesscontextmanager/v1beta2/accesslevelcondition
upjet.upbound.io/manual-intervention: Requires organization level IAM permissions
labels:
testing.upbound.io/example-name: access-policy
name: access-policy
spec:
forProvider:
parent: organizations/123456789
title: my policy

---

apiVersion: cloudplatform.gcp.upbound.io/v1beta1
kind: ServiceAccount
metadata:
annotations:
meta.upbound.io/example-id: accesscontextmanager/v1beta2/accesslevelcondition
labels:
testing.upbound.io/example-name: created-later
name: created-later
spec:
forProvider: {}
18 changes: 18 additions & 0 deletions examples/accesscontextmanager/v1beta2/accesspolicyiammember.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: accesscontextmanager.gcp.upbound.io/v1beta2
kind: AccessPolicyIAMMember
metadata:
annotations:
meta.upbound.io/example-id: accesscontextmanager/v1beta2/accesspolicyiammember
upjet.upbound.io/manual-intervention: Requires organization level IAM permissions
labels:
testing.upbound.io/example-name: accesspolicy-iam-member
name: accesspolicy-iam-member
spec:
forProvider:
member: ${data.google_iam_member.member}
name: ${google_access_context_manager_access_policy.access-policy.name}
role: roles/viewer
67 changes: 67 additions & 0 deletions examples/accesscontextmanager/v1beta2/serviceperimeter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: accesscontextmanager.gcp.upbound.io/v1beta2
kind: ServicePerimeter
metadata:
annotations:
meta.upbound.io/example-id: accesscontextmanager/v1beta2/serviceperimeter
upjet.upbound.io/manual-intervention: Requires organization level IAM permissions
labels:
testing.upbound.io/example-name: service-perimeter
name: service-perimeter
spec:
forProvider:
name: accessPolicies/${google_access_context_manager_access_policy.access-policy.name}/servicePerimeters/restrict_storage
parent: accessPolicies/${google_access_context_manager_access_policy.access-policy.name}
status:
accessLevelsSelector:
matchLabels:
testing.upbound.io/example-name: access-level
restrictedServices:
- storage.googleapis.com
title: restrict_storage

---

apiVersion: accesscontextmanager.gcp.upbound.io/v1beta2
kind: AccessLevel
metadata:
annotations:
meta.upbound.io/example-id: accesscontextmanager/v1beta2/serviceperimeter
upjet.upbound.io/manual-intervention: Requires organization level IAM permissions
labels:
testing.upbound.io/example-name: access-level
name: access-level
spec:
forProvider:
basic:
conditions:
- devicePolicy:
osConstraints:
- osType: DESKTOP_CHROME_OS
requireScreenLock: false
regions:
- CH
- IT
- US
name: accessPolicies/${google_access_context_manager_access_policy.access-policy.name}/accessLevels/chromeos_no_lock
parent: accessPolicies/${google_access_context_manager_access_policy.access-policy.name}
title: chromeos_no_lock

---

apiVersion: accesscontextmanager.gcp.upbound.io/v1beta1
kind: AccessPolicy
metadata:
annotations:
meta.upbound.io/example-id: accesscontextmanager/v1beta2/serviceperimeter
upjet.upbound.io/manual-intervention: Requires organization level IAM permissions
labels:
testing.upbound.io/example-name: access-policy
name: access-policy
spec:
forProvider:
parent: organizations/123456789
title: my policy
103 changes: 103 additions & 0 deletions examples/alloydb/v1beta2/backup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: alloydb.gcp.upbound.io/v1beta2
kind: Backup
metadata:
annotations:
meta.upbound.io/example-id: alloydb/v1beta2/backup
labels:
testing.upbound.io/example-name: alloydb-test
name: alloydb-test
spec:
forProvider:
clusterNameSelector:
matchLabels:
testing.upbound.io/example-name: alloydb-test
location: us-central1

---

apiVersion: alloydb.gcp.upbound.io/v1beta2
kind: Cluster
metadata:
annotations:
meta.upbound.io/example-id: alloydb/v1beta2/backup
labels:
testing.upbound.io/example-name: alloydb-test
name: alloydb-test
spec:
forProvider:
location: us-central1
networkSelector:
matchLabels:
testing.upbound.io/example-name: google_compute_network

---

apiVersion: alloydb.gcp.upbound.io/v1beta2
kind: Instance
metadata:
annotations:
meta.upbound.io/example-id: alloydb/v1beta2/backup
labels:
testing.upbound.io/example-name: alloydb-test
name: alloydb-test
spec:
forProvider:
clusterSelector:
matchLabels:
testing.upbound.io/example-name: default
instanceType: PRIMARY

---

apiVersion: compute.gcp.upbound.io/v1beta1
kind: GlobalAddress
metadata:
annotations:
meta.upbound.io/example-id: alloydb/v1beta2/backup
labels:
testing.upbound.io/example-name: private_ip_alloc
name: private-ip-alloc-alloy
spec:
forProvider:
addressType: INTERNAL
networkSelector:
matchLabels:
testing.upbound.io/example-name: google_compute_network
prefixLength: 16
purpose: VPC_PEERING

---

apiVersion: servicenetworking.gcp.upbound.io/v1beta1
kind: Connection
metadata:
annotations:
meta.upbound.io/example-id: alloydb/v1beta2/backup
labels:
testing.upbound.io/example-name: vpc_connection
name: vpc-connection
spec:
forProvider:
networkSelector:
matchLabels:
testing.upbound.io/example-name: google_compute_network
reservedPeeringRangesRefs:
- name: private-ip-alloc-alloy
service: servicenetworking.googleapis.com

---

apiVersion: compute.gcp.upbound.io/v1beta1
kind: Network
metadata:
annotations:
meta.upbound.io/example-id: alloydb/v1beta2/backup
labels:
testing.upbound.io/example-name: google_compute_network
name: alloydb-test-network
spec:
forProvider: {}
31 changes: 31 additions & 0 deletions examples/alloydb/v1beta2/cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: alloydb.gcp.upbound.io/v1beta2
kind: Cluster
metadata:
annotations:
meta.upbound.io/example-id: alloydb/v1beta2/cluster
labels:
testing.upbound.io/example-name: alloydb-test
name: alloydb-test
spec:
forProvider:
location: us-central1
networkSelector:
matchLabels:
testing.upbound.io/example-name: alloydb-test

---

apiVersion: compute.gcp.upbound.io/v1beta1
kind: Network
metadata:
annotations:
meta.upbound.io/example-id: alloydb/v1beta2/cluster
labels:
testing.upbound.io/example-name: alloydb-test
name: alloydb-test
spec:
forProvider: {}
Loading

0 comments on commit 6738b68

Please sign in to comment.