Skip to content

Commit 57c34f2

Browse files
authored
Merge pull request #1334 from ulucinar/converted-examples
Add example manifests for the converted singleton list API versions
2 parents 74f9b28 + 3113f08 commit 57c34f2

349 files changed

Lines changed: 20895 additions & 22 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
apiVersion: accessanalyzer.aws.upbound.io/v1beta2
6+
kind: Analyzer
7+
metadata:
8+
annotations:
9+
meta.upbound.io/example-id: accessanalyzer/v1beta2/analyzer
10+
labels:
11+
testing.upbound.io/example-name: example
12+
name: example
13+
spec:
14+
forProvider:
15+
region: us-west-1
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
apiVersion: acm.aws.upbound.io/v1beta2
6+
kind: Certificate
7+
metadata:
8+
annotations:
9+
meta.upbound.io/example-id: acm/v1beta2/certificate
10+
labels:
11+
testing.upbound.io/example-name: certificate
12+
name: example-dns
13+
spec:
14+
forProvider:
15+
domainName: example-dns.upbound-providers.io
16+
region: us-west-1
17+
tags:
18+
Environment: test
19+
validationMethod: DNS
20+
21+
---
22+
23+
apiVersion: acm.aws.upbound.io/v1beta1
24+
kind: CertificateValidation
25+
metadata:
26+
annotations:
27+
meta.upbound.io/example-id: acm/v1beta2/certificate
28+
upjet.upbound.io/manual-intervention: It requires a real domain to be bought
29+
labels:
30+
testing.upbound.io/example-name: certificate
31+
name: example-dns
32+
spec:
33+
forProvider:
34+
certificateArnSelector:
35+
matchLabels:
36+
testing.upbound.io/example-name: certificate
37+
region: us-west-1
38+
validationRecordFqdns:
39+
- _6a48817259ef461524224d64f7a209f4.example-dns.upbound-providers.io
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
apiVersion: acmpca.aws.upbound.io/v1beta2
6+
kind: Certificate
7+
metadata:
8+
annotations:
9+
meta.upbound.io/example-id: acmpca/v1beta2/certificate
10+
upjet.upbound.io/manual-intervention: It depends on CertificateAuthority which
11+
is not suitable for continuous automated testing.
12+
name: example
13+
spec:
14+
forProvider:
15+
certificateAuthorityArnRef:
16+
name: example
17+
certificateSigningRequestSecretRef:
18+
key: certificate_signing_request
19+
name: acmpca-ca
20+
namespace: upbound-system
21+
region: eu-central-1
22+
signingAlgorithm: SHA256WITHRSA
23+
templateArn: arn:aws:acm-pca:::template/RootCACertificate/V1
24+
validity:
25+
type: YEARS
26+
value: "1"
27+
providerConfigRef:
28+
name: default
29+
writeConnectionSecretToRef:
30+
name: acmpca-certificate
31+
namespace: upbound-system
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
apiVersion: acmpca.aws.upbound.io/v1beta2
6+
kind: CertificateAuthority
7+
metadata:
8+
annotations:
9+
meta.upbound.io/example-id: acmpca/v1beta2/certificateauthority
10+
upjet.upbound.io/manual-intervention: Creation of this resource costs over $100,
11+
so it is not suitable for continuous testing.
12+
name: example
13+
spec:
14+
forProvider:
15+
certificateAuthorityConfiguration:
16+
keyAlgorithm: RSA_4096
17+
signingAlgorithm: SHA512WITHRSA
18+
subject:
19+
commonName: example.com
20+
permanentDeletionTimeInDays: 7
21+
region: eu-central-1
22+
type: ROOT
23+
providerConfigRef:
24+
name: default
25+
writeConnectionSecretToRef:
26+
name: acmpca-ca
27+
namespace: upbound-system

examples/amp/v1beta1/workspace.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ spec:
1818
apiVersion: amp.aws.upbound.io/v1beta1
1919
kind: RuleGroupNamespace
2020
metadata:
21+
annotations:
22+
meta.upbound.io/example-id: amp/v1beta1/workspace
2123
labels:
2224
testing.upbound.io/example-name: amp
2325
name: demo
@@ -37,6 +39,8 @@ spec:
3739
apiVersion: amp.aws.upbound.io/v1beta1
3840
kind: AlertManagerDefinition
3941
metadata:
42+
annotations:
43+
meta.upbound.io/example-id: amp/v1beta1/workspace
4044
labels:
4145
testing.upbound.io/example-name: amp
4246
name: demo
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
apiVersion: amp.aws.upbound.io/v1beta2
6+
kind: Workspace
7+
metadata:
8+
annotations:
9+
meta.upbound.io/example-id: amp/v1beta2/workspace
10+
uptest.upbound.io/update-parameter: '{"tags":{"update-test-tag":"val"}}'
11+
labels:
12+
testing.upbound.io/example-name: amp
13+
name: demo
14+
spec:
15+
forProvider:
16+
region: us-east-1
17+
18+
---
19+
20+
apiVersion: amp.aws.upbound.io/v1beta1
21+
kind: RuleGroupNamespace
22+
metadata:
23+
annotations:
24+
meta.upbound.io/example-id: amp/v1beta2/workspace
25+
labels:
26+
testing.upbound.io/example-name: amp
27+
name: demo
28+
spec:
29+
forProvider:
30+
data: |
31+
groups:
32+
- name: test
33+
rules:
34+
- record: metric:recording_rule
35+
expr: avg(rate(container_cpu_usage_seconds_total[5m]))
36+
region: us-east-1
37+
workspaceIdSelector:
38+
matchLabels:
39+
testing.upbound.io/example-name: amp
40+
41+
---
42+
43+
apiVersion: amp.aws.upbound.io/v1beta1
44+
kind: AlertManagerDefinition
45+
metadata:
46+
annotations:
47+
meta.upbound.io/example-id: amp/v1beta2/workspace
48+
labels:
49+
testing.upbound.io/example-name: amp
50+
name: demo
51+
spec:
52+
forProvider:
53+
definition: |
54+
alertmanager_config: |
55+
route:
56+
receiver: 'default'
57+
receivers:
58+
- name: 'default'
59+
region: us-east-1
60+
workspaceIdSelector:
61+
matchLabels:
62+
testing.upbound.io/example-name: amp

examples/amplify/v1beta2/app.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
apiVersion: amplify.aws.upbound.io/v1beta2
6+
kind: App
7+
metadata:
8+
annotations:
9+
meta.upbound.io/example-id: amplify/v1beta2/app
10+
labels:
11+
testing.upbound.io/example-name: example
12+
name: example
13+
spec:
14+
forProvider:
15+
buildSpec: |
16+
version: 0.1
17+
frontend:
18+
phases:
19+
preBuild:
20+
commands:
21+
- yarn install
22+
build:
23+
commands:
24+
- yarn run build
25+
artifacts:
26+
baseDirectory: build
27+
files:
28+
- '**/*'
29+
cache:
30+
paths:
31+
- node_modules/**/*
32+
customRule:
33+
- source: /<*>
34+
status: "404"
35+
target: /index.html
36+
environmentVariables:
37+
ENV: test
38+
name: example
39+
region: us-west-1

examples/apigateway/v1beta1/restapi.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,23 @@
55
apiVersion: apigateway.aws.upbound.io/v1beta1
66
kind: RestAPI
77
metadata:
8+
annotations:
9+
meta.upbound.io/example-id: apigateway/v1beta1/restapi
810
labels:
911
testing.upbound.io/example-name: restapi
1012
name: auth-demo
1113
spec:
1214
forProvider:
1315
name: auth-demo
1416
region: us-west-1
17+
1518
---
19+
1620
apiVersion: apigateway.aws.upbound.io/v1beta1
1721
kind: RestAPIPolicy
1822
metadata:
1923
annotations:
24+
meta.upbound.io/example-id: apigateway/v1beta1/restapi
2025
upjet.upbound.io/manual-intervention: "RestAPIPolicy needs a valid arn for its policy json."
2126
labels:
2227
testing.upbound.io/example-name: restapi
@@ -46,10 +51,14 @@ spec:
4651
restApiIdSelector:
4752
matchLabels:
4853
testing.upbound.io/example-name: test
54+
4955
---
56+
5057
apiVersion: apigateway.aws.upbound.io/v1beta1
5158
kind: Authorizer
5259
metadata:
60+
annotations:
61+
meta.upbound.io/example-id: apigateway/v1beta1/restapi
5362
labels:
5463
testing.upbound.io/example-name: demo
5564
name: demo
@@ -64,10 +73,14 @@ spec:
6473
restApiIdSelector:
6574
matchLabels:
6675
testing.upbound.io/example-name: restapi
76+
6777
---
78+
6879
apiVersion: apigateway.aws.upbound.io/v1beta1
6980
kind: DocumentationVersion
7081
metadata:
82+
annotations:
83+
meta.upbound.io/example-id: apigateway/v1beta1/restapi
7184
labels:
7285
testing.upbound.io/example-name: example
7386
name: example
@@ -79,10 +92,14 @@ spec:
7992
matchLabels:
8093
testing.upbound.io/example-name: restapi
8194
version: example_version
95+
8296
---
97+
8398
apiVersion: apigateway.aws.upbound.io/v1beta1
8499
kind: DocumentationPart
85100
metadata:
101+
annotations:
102+
meta.upbound.io/example-id: apigateway/v1beta1/restapi
86103
labels:
87104
testing.upbound.io/example-name: restapi
88105
name: example
@@ -95,10 +112,14 @@ spec:
95112
restApiIdSelector:
96113
matchLabels:
97114
testing.upbound.io/example-name: restapi
115+
98116
---
117+
99118
apiVersion: apigateway.aws.upbound.io/v1beta1
100119
kind: GatewayResponse
101120
metadata:
121+
annotations:
122+
meta.upbound.io/example-id: apigateway/v1beta1/restapi
102123
labels:
103124
testing.upbound.io/example-name: test
104125
name: test
@@ -114,10 +135,14 @@ spec:
114135
matchLabels:
115136
testing.upbound.io/example-name: restapi
116137
statusCode: "401"
138+
117139
---
140+
118141
apiVersion: iam.aws.upbound.io/v1beta1
119142
kind: Role
120143
metadata:
144+
annotations:
145+
meta.upbound.io/example-id: apigateway/v1beta1/restapi
121146
labels:
122147
testing.upbound.io/example-name: restapi
123148
name: test-invocation-role-${Rand.RFC1123Subdomain}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
2+
#
3+
# SPDX-License-Identifier: CC0-1.0
4+
5+
apiVersion: apigateway.aws.upbound.io/v1beta2
6+
kind: DomainName
7+
metadata:
8+
annotations:
9+
upjet.upbound.io/manual-intervention: "The DomainName resource needs valid certificates."
10+
labels:
11+
testing.upbound.io/example-name: domainname
12+
name: example
13+
spec:
14+
forProvider:
15+
certificateBody: <content of 'example.crt'>
16+
certificateChain: <content of ca.crt>
17+
certificateName: example-api
18+
certificatePrivateKeySecretRef:
19+
key: attribute.example.key
20+
name: example-secret
21+
namespace: upbound-system
22+
domainName: example.com
23+
region: us-west-1

0 commit comments

Comments
 (0)