-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathcrossplane-provider-aws.yaml
100 lines (88 loc) · 2.38 KB
/
crossplane-provider-aws.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package:
name: crossplane-provider-aws
version: "1.21.0"
epoch: 3
description: Official AWS Provider for Crossplane by Upbound
copyright:
- license: Apache-2.0
resources:
cpu: 16
memory: 16Gi
dependencies:
runtime:
- terraform-provider-aws
environment:
contents:
packages:
- bash
- build-base
- busybox
- curl
- docker
- go
- gzip
- jq
- kustomize
environment:
CGO_ENABLED: 0
pipeline:
- uses: git-checkout
with:
expected-commit: 45ec02187ac6371229b719fc3eb277914a666552
repository: https://github.com/upbound/provider-aws
tag: v${{package.version}}
- uses: patch
with:
patches: uptest_changes.patch
- uses: go/bump
with:
deps: |-
golang.org/x/oauth2@v0.27.0
golang.org/x/crypto@v0.35.0
golang.org/x/net@v0.36.0
- runs: |
# This downloads a tool called `up` which is no longer open source, but is required to build the provider.
curl -sL "https://cli.upbound.io" | sh
mv up /usr/bin/
up version
make
mkdir -p "${{targets.destdir}}"/usr/bin/
GOARCH=$(go env GOARCH)
cp ./_output/bin/linux_${GOARCH}/monolith "${{targets.destdir}}"/usr/bin/provider
- uses: strip
data:
- name: packages
items:
family: provider-family-aws
# List from: https://github.com/gitops-bridge-dev/gitops-bridge-argocd-control-plane-template/blob/main/charts/addons/crossplane/resources/values.yaml
cloudfront: provider-aws-cloudfront
cloudwatchlogs: provider-aws-cloudwatchlogs
dynamodb: provider-aws-dynamodb
ec2: provider-aws-ec2
eks: provider-aws-eks
firehose: provider-aws-firehose
iam: provider-aws-iam
kms: provider-aws-kms
lambda: provider-aws-lambda
rds: provider-aws-rds
s3: provider-aws-s3
sns: provider-aws-sns
sqs: provider-aws-sqs
subpackages:
- name: crossplane-provider-aws-${{range.key}}
range: packages
pipeline:
- runs: |
up xpkg xp-extract xpkg.upbound.io/upbound/${{range.value}}:v${{package.version}}
mkdir -p "${{targets.subpkgdir}}"
gunzip out.gz -c > "${{targets.subpkgdir}}"/package.yaml
update:
enabled: true
github:
identifier: upbound/provider-aws
strip-prefix: v
test:
pipeline:
# AUTOGENERATED
- runs: |
provider --help