Skip to content

Commit

Permalink
Merge pull request #1334 from ulucinar/converted-examples
Browse files Browse the repository at this point in the history
Add example manifests for the converted singleton list API versions
  • Loading branch information
ulucinar authored Jun 13, 2024
2 parents 74f9b28 + 3113f08 commit 57c34f2
Show file tree
Hide file tree
Showing 349 changed files with 20,895 additions and 22 deletions.
15 changes: 15 additions & 0 deletions examples/accessanalyzer/v1beta2/analyzer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: accessanalyzer.aws.upbound.io/v1beta2
kind: Analyzer
metadata:
annotations:
meta.upbound.io/example-id: accessanalyzer/v1beta2/analyzer
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
region: us-west-1
39 changes: 39 additions & 0 deletions examples/acm/v1beta2/certificate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: acm.aws.upbound.io/v1beta2
kind: Certificate
metadata:
annotations:
meta.upbound.io/example-id: acm/v1beta2/certificate
labels:
testing.upbound.io/example-name: certificate
name: example-dns
spec:
forProvider:
domainName: example-dns.upbound-providers.io
region: us-west-1
tags:
Environment: test
validationMethod: DNS

---

apiVersion: acm.aws.upbound.io/v1beta1
kind: CertificateValidation
metadata:
annotations:
meta.upbound.io/example-id: acm/v1beta2/certificate
upjet.upbound.io/manual-intervention: It requires a real domain to be bought
labels:
testing.upbound.io/example-name: certificate
name: example-dns
spec:
forProvider:
certificateArnSelector:
matchLabels:
testing.upbound.io/example-name: certificate
region: us-west-1
validationRecordFqdns:
- _6a48817259ef461524224d64f7a209f4.example-dns.upbound-providers.io
31 changes: 31 additions & 0 deletions examples/acmpca/v1beta2/certificate.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: acmpca.aws.upbound.io/v1beta2
kind: Certificate
metadata:
annotations:
meta.upbound.io/example-id: acmpca/v1beta2/certificate
upjet.upbound.io/manual-intervention: It depends on CertificateAuthority which
is not suitable for continuous automated testing.
name: example
spec:
forProvider:
certificateAuthorityArnRef:
name: example
certificateSigningRequestSecretRef:
key: certificate_signing_request
name: acmpca-ca
namespace: upbound-system
region: eu-central-1
signingAlgorithm: SHA256WITHRSA
templateArn: arn:aws:acm-pca:::template/RootCACertificate/V1
validity:
type: YEARS
value: "1"
providerConfigRef:
name: default
writeConnectionSecretToRef:
name: acmpca-certificate
namespace: upbound-system
27 changes: 27 additions & 0 deletions examples/acmpca/v1beta2/certificateauthority.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: acmpca.aws.upbound.io/v1beta2
kind: CertificateAuthority
metadata:
annotations:
meta.upbound.io/example-id: acmpca/v1beta2/certificateauthority
upjet.upbound.io/manual-intervention: Creation of this resource costs over $100,
so it is not suitable for continuous testing.
name: example
spec:
forProvider:
certificateAuthorityConfiguration:
keyAlgorithm: RSA_4096
signingAlgorithm: SHA512WITHRSA
subject:
commonName: example.com
permanentDeletionTimeInDays: 7
region: eu-central-1
type: ROOT
providerConfigRef:
name: default
writeConnectionSecretToRef:
name: acmpca-ca
namespace: upbound-system
4 changes: 4 additions & 0 deletions examples/amp/v1beta1/workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ spec:
apiVersion: amp.aws.upbound.io/v1beta1
kind: RuleGroupNamespace
metadata:
annotations:
meta.upbound.io/example-id: amp/v1beta1/workspace
labels:
testing.upbound.io/example-name: amp
name: demo
Expand All @@ -37,6 +39,8 @@ spec:
apiVersion: amp.aws.upbound.io/v1beta1
kind: AlertManagerDefinition
metadata:
annotations:
meta.upbound.io/example-id: amp/v1beta1/workspace
labels:
testing.upbound.io/example-name: amp
name: demo
Expand Down
62 changes: 62 additions & 0 deletions examples/amp/v1beta2/workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: amp.aws.upbound.io/v1beta2
kind: Workspace
metadata:
annotations:
meta.upbound.io/example-id: amp/v1beta2/workspace
uptest.upbound.io/update-parameter: '{"tags":{"update-test-tag":"val"}}'
labels:
testing.upbound.io/example-name: amp
name: demo
spec:
forProvider:
region: us-east-1

---

apiVersion: amp.aws.upbound.io/v1beta1
kind: RuleGroupNamespace
metadata:
annotations:
meta.upbound.io/example-id: amp/v1beta2/workspace
labels:
testing.upbound.io/example-name: amp
name: demo
spec:
forProvider:
data: |
groups:
- name: test
rules:
- record: metric:recording_rule
expr: avg(rate(container_cpu_usage_seconds_total[5m]))
region: us-east-1
workspaceIdSelector:
matchLabels:
testing.upbound.io/example-name: amp

---

apiVersion: amp.aws.upbound.io/v1beta1
kind: AlertManagerDefinition
metadata:
annotations:
meta.upbound.io/example-id: amp/v1beta2/workspace
labels:
testing.upbound.io/example-name: amp
name: demo
spec:
forProvider:
definition: |
alertmanager_config: |
route:
receiver: 'default'
receivers:
- name: 'default'
region: us-east-1
workspaceIdSelector:
matchLabels:
testing.upbound.io/example-name: amp
39 changes: 39 additions & 0 deletions examples/amplify/v1beta2/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: amplify.aws.upbound.io/v1beta2
kind: App
metadata:
annotations:
meta.upbound.io/example-id: amplify/v1beta2/app
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
buildSpec: |
version: 0.1
frontend:
phases:
preBuild:
commands:
- yarn install
build:
commands:
- yarn run build
artifacts:
baseDirectory: build
files:
- '**/*'
cache:
paths:
- node_modules/**/*
customRule:
- source: /<*>
status: "404"
target: /index.html
environmentVariables:
ENV: test
name: example
region: us-west-1
25 changes: 25 additions & 0 deletions examples/apigateway/v1beta1/restapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,23 @@
apiVersion: apigateway.aws.upbound.io/v1beta1
kind: RestAPI
metadata:
annotations:
meta.upbound.io/example-id: apigateway/v1beta1/restapi
labels:
testing.upbound.io/example-name: restapi
name: auth-demo
spec:
forProvider:
name: auth-demo
region: us-west-1

---

apiVersion: apigateway.aws.upbound.io/v1beta1
kind: RestAPIPolicy
metadata:
annotations:
meta.upbound.io/example-id: apigateway/v1beta1/restapi
upjet.upbound.io/manual-intervention: "RestAPIPolicy needs a valid arn for its policy json."
labels:
testing.upbound.io/example-name: restapi
Expand Down Expand Up @@ -46,10 +51,14 @@ spec:
restApiIdSelector:
matchLabels:
testing.upbound.io/example-name: test

---

apiVersion: apigateway.aws.upbound.io/v1beta1
kind: Authorizer
metadata:
annotations:
meta.upbound.io/example-id: apigateway/v1beta1/restapi
labels:
testing.upbound.io/example-name: demo
name: demo
Expand All @@ -64,10 +73,14 @@ spec:
restApiIdSelector:
matchLabels:
testing.upbound.io/example-name: restapi

---

apiVersion: apigateway.aws.upbound.io/v1beta1
kind: DocumentationVersion
metadata:
annotations:
meta.upbound.io/example-id: apigateway/v1beta1/restapi
labels:
testing.upbound.io/example-name: example
name: example
Expand All @@ -79,10 +92,14 @@ spec:
matchLabels:
testing.upbound.io/example-name: restapi
version: example_version

---

apiVersion: apigateway.aws.upbound.io/v1beta1
kind: DocumentationPart
metadata:
annotations:
meta.upbound.io/example-id: apigateway/v1beta1/restapi
labels:
testing.upbound.io/example-name: restapi
name: example
Expand All @@ -95,10 +112,14 @@ spec:
restApiIdSelector:
matchLabels:
testing.upbound.io/example-name: restapi

---

apiVersion: apigateway.aws.upbound.io/v1beta1
kind: GatewayResponse
metadata:
annotations:
meta.upbound.io/example-id: apigateway/v1beta1/restapi
labels:
testing.upbound.io/example-name: test
name: test
Expand All @@ -114,10 +135,14 @@ spec:
matchLabels:
testing.upbound.io/example-name: restapi
statusCode: "401"

---

apiVersion: iam.aws.upbound.io/v1beta1
kind: Role
metadata:
annotations:
meta.upbound.io/example-id: apigateway/v1beta1/restapi
labels:
testing.upbound.io/example-name: restapi
name: test-invocation-role-${Rand.RFC1123Subdomain}
Expand Down
23 changes: 23 additions & 0 deletions examples/apigateway/v1beta2/domainname.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: CC0-1.0

apiVersion: apigateway.aws.upbound.io/v1beta2
kind: DomainName
metadata:
annotations:
upjet.upbound.io/manual-intervention: "The DomainName resource needs valid certificates."
labels:
testing.upbound.io/example-name: domainname
name: example
spec:
forProvider:
certificateBody: <content of 'example.crt'>
certificateChain: <content of ca.crt>
certificateName: example-api
certificatePrivateKeySecretRef:
key: attribute.example.key
name: example-secret
namespace: upbound-system
domainName: example.com
region: us-west-1
Loading

0 comments on commit 57c34f2

Please sign in to comment.