Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
Signed-off-by: Rickard von Essen <rickard.von.essen@gmail.com>
  • Loading branch information
rickard-von-essen committed Oct 9, 2024
1 parent 5353e52 commit 32c3d4e
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 31 deletions.
10 changes: 5 additions & 5 deletions examples/beyondcorp/v1beta2/appconnection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ metadata:
spec:
forProvider:
applicationEndpoint:
host: foo-host
- host: foo-host
port: 8080
connectors:
- projects/${project.project_id}/locations/us-central1/appConnectors/app-connector
connectorsRefs:
- name: app_connector
gateway:
appGateway: app-gateway
name: my-app-connection
Expand All @@ -37,8 +37,8 @@ metadata:
spec:
forProvider:
principalInfo:
serviceAccount:
emailSelector:
- serviceAccount:
- emailSelector:
matchLabels:
testing.upbound.io/example-name: service_account
region: us-central1
Expand Down
12 changes: 6 additions & 6 deletions examples/binaryauthorization/v1beta2/policy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ spec:
- cluster: us-central1-a.prod-cluster
enforcementMode: ENFORCED_BLOCK_AND_AUDIT_LOG
evaluationMode: REQUIRE_ATTESTATION
requireAttestationsBy:
- attestor
requireAttestationsByRefs:
- name: attestor
defaultAdmissionRule:
enforcementMode: ENFORCED_BLOCK_AND_AUDIT_LOG
- enforcementMode: ENFORCED_BLOCK_AND_AUDIT_LOG
evaluationMode: ALWAYS_ALLOW

---
Expand All @@ -37,7 +37,7 @@ metadata:
spec:
forProvider:
attestationAuthorityNote:
noteReferenceSelector:
- noteReferenceSelector:
matchLabels:
testing.upbound.io/example-name: note

Expand All @@ -54,5 +54,5 @@ metadata:
spec:
forProvider:
attestationAuthority:
hint:
humanReadableName: My attestor
- hint:
- humanReadableName: My attestor
16 changes: 8 additions & 8 deletions examples/certificatemanager/v1beta1/certificatemapentry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ metadata:
name: default
spec:
forProvider:
certificates:
- projects/official-provider-testing/locations/global/certificates/certificate
certificatesRefs:
- name: certificate
description: My acceptance test certificate map entry
labels:
acc-test: "true"
Expand All @@ -39,12 +39,12 @@ spec:
forProvider:
description: The default cert
managed:
- dnsAuthorizations:
- projects/official-provider-testing/locations/global/dnsAuthorizations/instance
- projects/official-provider-testing/locations/global/dnsAuthorizations/instance2
domains:
- subdomain2.hashicorptest.com
- subdomain.hashicorptest.com
- dnsAuthorizationsRefs:
- name: instance
- name: instance2
domainsRefs:
- name: instance
- name: instance2
scope: DEFAULT

---
Expand Down
34 changes: 26 additions & 8 deletions examples/certificatemanager/v1beta2/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,23 @@ kind: Certificate
metadata:
annotations:
meta.upbound.io/example-id: certificatemanager/v1beta2/certificate
upjet.upbound.io/manual-intervention: Certificate requires a real DNS authorization
ID
upjet.upbound.io/manual-intervention: Certificate requires a real DNS authorization ID
labels:
testing.upbound.io/example-name: default
name: default
spec:
forProvider:
description: The default cert
location: global
labels:
env: test
managed:
dnsAuthorizations:
- projects/official-provider-testing/locations/global/dnsAuthorizations/default
domains:
- subdomain.hashicorptest.com
- dnsAuthorizationsRefs:
- name: instance
- name: instance2
domainsRefs:
- name: instance
- name: instance2
scope: DEFAULT

---
Expand All @@ -31,9 +34,24 @@ metadata:
annotations:
meta.upbound.io/example-id: certificatemanager/v1beta2/certificate
labels:
testing.upbound.io/example-name: default
name: default
testing.upbound.io/example-name: instance
name: instance
spec:
forProvider:
description: The default dnss
domain: subdomain.hashicorptest.com

---

apiVersion: certificatemanager.gcp.upbound.io/v1beta1
kind: DNSAuthorization
metadata:
annotations:
meta.upbound.io/example-id: certificatemanager/v1beta2/certificate
labels:
testing.upbound.io/example-name: instance2
name: instance2
spec:
forProvider:
description: The default dnss
domain: subdomain2.hashicorptest.com
74 changes: 70 additions & 4 deletions examples/compute/v1beta2/instancetemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,84 @@ spec:
disk:
- autoDelete: false
boot: true
resourcePoliciesRefs:
- name: daily_backup
sourceImage: debian-cloud/debian-11
- autoDelete: false
boot: false
sourceSelector:
matchLabels:
testing.upbound.io/example-name: foobar
instanceDescription: Description assigned to instances
labels:
environment: dev
foo: bar
machineType: e2-medium
metadata:
environment: dev
foo: bar
name: appserver-template
networkInterface:
- network: default
- networkSelector:
matchLabels:
testing.upbound.io/example-name: example
scheduling:
automaticRestart: true
- automaticRestart: true
onHostMaintenance: MIGRATE
serviceAccount:
- emailSelector:
matchLabels:
testing.upbound.io/example-name: default
scopes:
- cloud-platform
tags:
- foo
- bar

---

apiVersion: compute.gcp.upbound.io/v1beta2
kind: Disk
metadata:
annotations:
meta.upbound.io/example-id: compute/v1beta2/instancetemplate
labels:
testing.upbound.io/example-name: foobar
name: foobar
spec:
forProvider:
image: debian-12-bookworm-v20240910
size: 10
type: pd-ssd
zone: us-central1-a

---

apiVersion: compute.gcp.upbound.io/v1beta2
kind: ResourcePolicy
metadata:
annotations:
meta.upbound.io/example-id: compute/v1beta2/instancetemplate
labels:
testing.upbound.io/example-name: daily_backup
name: daily-backup
spec:
forProvider:
region: us-central1
snapshotSchedulePolicy:
- schedule:
- dailySchedule:
- daysInCycle: 1
startTime: "04:00"

---

apiVersion: cloudplatform.gcp.upbound.io/v1beta1
kind: ServiceAccount
metadata:
annotations:
meta.upbound.io/example-id: compute/v1beta2/instancetemplate
labels:
testing.upbound.io/example-name: default
name: default
spec:
forProvider:
displayName: Service Account

0 comments on commit 32c3d4e

Please sign in to comment.