Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix buildx cleanup on AWS #441

Closed
wants to merge 282 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
282 commits
Select commit Hold shift + click to select a range
b47e1ff
Merge branch 'bootstrap' of github.com:pluralsh/plural-cli into boots…
floreks May 16, 2023
2ce0e7f
Add Azure client ID and secret to context
maciaszczykm May 17, 2023
b85a7e3
Fix null pointer error
maciaszczykm May 22, 2023
d004cfe
deploy cluster from helm chart
zreigz May 23, 2023
47474b1
bump versions
zreigz May 24, 2023
98b4c98
improve destroy
zreigz May 25, 2023
084f96b
use helm flag
zreigz May 25, 2023
e71636d
init
davidspek Jun 8, 2023
981c0bb
init working simple capi deployment
davidspek Jun 13, 2023
6df0e0f
init destroy with some hardcoding
davidspek Jun 13, 2023
0130edf
add todo comment
davidspek Jun 13, 2023
6ef15a8
add method for getting the provider kubecontext name
davidspek Jun 13, 2023
b851d09
add cluster and machinepool watchers for testing
davidspek Jun 14, 2023
09d078d
init add wait all machine pool func + table view
davidspek Jun 15, 2023
9345949
make plural bootstrap cluster move more generic
zreigz Jun 16, 2023
7c61718
add diagrams
davidspek Jun 19, 2023
ed0c31a
Fix nil map usage
floreks Jun 19, 2023
728a35e
add cluster-api for deploy method
zreigz Jun 19, 2023
2bc4ea1
migrate cluster API
zreigz Jun 22, 2023
3211242
fix migrate cluster API
zreigz Jun 22, 2023
7e871ec
Update deploy steps for capi clusters
floreks Jun 22, 2023
e9c76fe
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Jun 22, 2023
a1b615c
add tags
zreigz Jun 23, 2023
a5f031f
Update chdir in clusterapi steps
floreks Jun 27, 2023
9a5c243
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Jun 27, 2023
5b0c83b
fix deploy
zreigz Jun 27, 2023
60cb107
update statuses
zreigz Jun 27, 2023
0ad6e4b
skip cluster installation on target cluster
zreigz Jun 27, 2023
4986944
Update Azure configuration
maciaszczykm Jun 28, 2023
1e877e4
Bump cluster-api-migration to v0.1.0
maciaszczykm Jun 28, 2023
e5e6a65
Set AKS tags before migration
maciaszczykm Jun 28, 2023
239ebb6
Disable azure-identity during migration
maciaszczykm Jun 28, 2023
90ef0e8
Update comment
maciaszczykm Jun 28, 2023
4e2baaf
Bump cluster-api-migration to v0.1.1
maciaszczykm Jun 28, 2023
3ab4a4f
destroy
zreigz Jun 29, 2023
6f00feb
Fix bootstrap flag
maciaszczykm Jun 30, 2023
69f4b48
Remove unused code
maciaszczykm Jun 30, 2023
c0c1f9f
code cleanup
zreigz Jun 30, 2023
58c2694
Set SSHPublicKey and add step to uninstall azure-identity Helm chart
maciaszczykm Jul 3, 2023
d42467b
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Jul 3, 2023
76eb6a2
Do not ask for confirmation to uninstall azure-identity Helm chart
maciaszczykm Jul 3, 2023
84120de
Uninstall azure-identity before build
maciaszczykm Jul 4, 2023
56cd1b4
Clear package cache during AKS migration
maciaszczykm Jul 5, 2023
7c052ad
Do not set mocked SSHPublicKey during migration
maciaszczykm Jul 5, 2023
3bc5389
Set ClusterAPI flag before deploy
maciaszczykm Jul 11, 2023
7cb85ae
Add ClusterAPI ref to Helm and Terraform
maciaszczykm Jul 11, 2023
499df4d
Unlink Terraform resources after migration
maciaszczykm Jul 12, 2023
d46fc76
Replace client secret with resource ID
maciaszczykm Jul 18, 2023
a1b7378
Bump cluster-api-migration version
maciaszczykm Jul 18, 2023
286adb1
Switch resource ID to client secret
maciaszczykm Jul 19, 2023
6899061
Bump cluster-api-migration to v0.1.4
maciaszczykm Jul 19, 2023
076104a
add build step for cluster API deployment
zreigz Jul 19, 2023
07d4783
Do not ask for commit twice
maciaszczykm Jul 19, 2023
629d623
Bump cluster-api-migration
maciaszczykm Jul 20, 2023
7476571
Bump cluster-api-migration
maciaszczykm Jul 20, 2023
9e60a02
Bump cluster-api-migration
maciaszczykm Jul 20, 2023
f4573a0
Bump cluster-api-migration
maciaszczykm Jul 20, 2023
e369a0d
bump migrator
zreigz Jul 24, 2023
0fa9339
Bump cluster-api-migration
maciaszczykm Jul 24, 2023
320e5a6
bump migrator
zreigz Jul 25, 2023
05757c8
bump migrator
zreigz Jul 25, 2023
27646e3
bump migrator
zreigz Jul 25, 2023
98d8ae3
Update GCP migration config
floreks Jul 25, 2023
0b48675
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Jul 25, 2023
f08e492
optimize imports
floreks Jul 25, 2023
39d8dba
Remove --cluster-api flag
maciaszczykm Jul 25, 2023
3bd6e13
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Jul 25, 2023
462cdc4
update google bootstrap flags
floreks Jul 25, 2023
7f96dc1
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Jul 25, 2023
be44001
Fix deploy logic
maciaszczykm Jul 25, 2023
4686ef2
bump migrator
zreigz Jul 25, 2023
a0171e6
update destroy bootstrap flags for google provider
floreks Jul 25, 2023
549e283
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Jul 25, 2023
08e1a1b
Check if cluster exists
maciaszczykm Jul 25, 2023
8f59faf
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Jul 25, 2023
a393238
update destroy steps
floreks Jul 25, 2023
52df7b2
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Jul 25, 2023
a2c6a45
Fix deploy
maciaszczykm Jul 25, 2023
008e0ed
Add logging
maciaszczykm Jul 26, 2023
9adc12f
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Jul 26, 2023
a471342
Add missing new line
maciaszczykm Jul 26, 2023
0910176
Fix log types
maciaszczykm Jul 26, 2023
e93dfed
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Jul 27, 2023
acb5b2a
Add client ID and secret to init survey
maciaszczykm Jul 27, 2023
80aab74
remove cluster resources during destroy
zreigz Jul 28, 2023
80fbd84
Fix wait command
maciaszczykm Jul 28, 2023
1b03e1e
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Jul 28, 2023
81584db
Remove plural clusters watch command
maciaszczykm Aug 1, 2023
8d13f0c
Merge remote-tracking branch 'origin/main' into cluster-api-simple-test
maciaszczykm Aug 1, 2023
8910bdb
Run go mod tidy
maciaszczykm Aug 1, 2023
3d6200e
Fix unit tests
maciaszczykm Aug 1, 2023
2a13ec0
Print step numbers for bootstrap and migration
maciaszczykm Aug 1, 2023
76c875f
Remove plural cluster watch command and some unused code
maciaszczykm Aug 1, 2023
af7ce1e
Remove build step and update descriptions for CAPI deploy
maciaszczykm Aug 1, 2023
edcb75f
Refactor deploy and migration steps
maciaszczykm Aug 1, 2023
ef2a3ff
Refactor destroy steps
maciaszczykm Aug 1, 2023
a090baa
Add destroy logs
maciaszczykm Aug 1, 2023
c1a91d5
Refactor
maciaszczykm Aug 1, 2023
85d89fc
Move CAPI related logic from cmd to pkg
maciaszczykm Aug 2, 2023
ab23da4
Extract common code
maciaszczykm Aug 2, 2023
4c6d30d
Move checks
maciaszczykm Aug 2, 2023
31db040
Fix minor import issue
maciaszczykm Aug 2, 2023
6ace5b7
Cleanup
maciaszczykm Aug 2, 2023
e2453bc
Remove unused flag
maciaszczykm Aug 2, 2023
6a326ba
Minor improvements
maciaszczykm Aug 2, 2023
ac80175
Add TODO
maciaszczykm Aug 3, 2023
8ebf161
add post install step
zreigz Aug 3, 2023
8a9d868
Update cluster readiness check
maciaszczykm Aug 4, 2023
ad5fa0f
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Aug 4, 2023
e69ec1b
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Aug 7, 2023
ebc5b91
Fix merge conflicts
floreks Aug 7, 2023
bc45a8a
Update migration configuration for gcp
floreks Aug 7, 2023
4314368
Export execute steps function
maciaszczykm Aug 8, 2023
084f0a8
Refactor
maciaszczykm Aug 8, 2023
49e811b
Refactor migration
maciaszczykm Aug 8, 2023
4f4b124
Add tests for common functions
maciaszczykm Aug 8, 2023
731ea62
Improve GCP preflight checks
floreks Aug 8, 2023
83493ee
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Aug 8, 2023
1a03c2c
Add tests for migration functions
maciaszczykm Aug 8, 2023
d72da22
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Aug 8, 2023
092fe45
Update messaging
floreks Aug 8, 2023
737feaf
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Aug 8, 2023
d20170e
add kind provider
zreigz Aug 9, 2023
d2f7508
Raise destroy timeout
maciaszczykm Aug 10, 2023
08fe75f
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Aug 10, 2023
a7b6104
Refactor cilium.go
maciaszczykm Aug 10, 2023
283d5f7
Fix resource group and storage account name validation
maciaszczykm Aug 10, 2023
6120c9a
Add command to check if chart is installed
maciaszczykm Aug 10, 2023
0648d95
save kubeconfig
zreigz Aug 11, 2023
7652e23
add kind configuration
zreigz Aug 11, 2023
fd897c6
fix kind configuration
zreigz Aug 11, 2023
fa626eb
fix docker destroy
zreigz Aug 11, 2023
474d950
normilize kind
zreigz Aug 11, 2023
884d5c8
update e2e test
zreigz Aug 16, 2023
50910ab
update github action
zreigz Aug 16, 2023
dab7a62
Merge branch 'main' into cluster-api-simple-test
zreigz Aug 16, 2023
29dd2b6
bump kind action
zreigz Aug 16, 2023
f63815a
create bootstrap namespace
zreigz Aug 16, 2023
45e0147
create bootstrap namespace
zreigz Aug 16, 2023
d54df72
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Aug 16, 2023
e6a2d55
add extra debug
zreigz Aug 16, 2023
d2c69c4
do not run migrate when cluster already migrated
floreks Aug 16, 2023
b47d385
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Aug 16, 2023
abf95b2
read sa email from credentials file
floreks Aug 16, 2023
d1127c7
add vendor dir to gitignore
floreks Aug 16, 2023
9f557fc
fix import cycle
floreks Aug 16, 2023
739e7f2
add PLURAL_DISABLE_MP_TABLE_VIEW env for machine pools view
zreigz Aug 17, 2023
8d81d98
remove bootstrap operator dependencies
zreigz Aug 17, 2023
3304345
cilium update
zreigz Aug 17, 2023
f0dfcab
refactor
zreigz Aug 17, 2023
6784fcb
split e2e tests
zreigz Aug 18, 2023
3121e8e
change name
zreigz Aug 18, 2023
37bb09e
Refactor e2e workflows
maciaszczykm Aug 18, 2023
0581796
distinguish between regular and cluster api
zreigz Aug 18, 2023
44dc4e9
distinguish between regular and cluster api - fix
zreigz Aug 18, 2023
e424ab3
distinguish between regular and cluster api - improvement
zreigz Aug 18, 2023
2af56be
distinguish between regular and cluster api - improvement
zreigz Aug 18, 2023
eb881f5
distinguish between regular and cluster api - improvement
zreigz Aug 18, 2023
0d5c86b
add e2e test for cluster api
zreigz Aug 18, 2023
d2871c3
enable list view for destroy
zreigz Aug 18, 2023
7882352
add e2e test to check installed packages
zreigz Aug 18, 2023
00d0701
fix linter
zreigz Aug 18, 2023
a3a2fdc
Update github.com/gin-gonic/gin to avoid CVE
maciaszczykm Aug 21, 2023
7dee848
Bump dependencies
maciaszczykm Aug 21, 2023
4c25c13
Read Go version from go.mod in CI
maciaszczykm Aug 21, 2023
82e9229
Merge remote-tracking branch 'origin/main' into cluster-api-simple-test
maciaszczykm Aug 21, 2023
dcc24a2
Bump dependencies
maciaszczykm Aug 21, 2023
5532091
improve error handling for deoploy/destroy cluster
floreks Aug 21, 2023
43c9ae0
e2e update machine pool
zreigz Aug 21, 2023
d4ca14f
Refactor storage account code
maciaszczykm Aug 21, 2023
ce25047
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Aug 21, 2023
3bfe72e
Fixes
maciaszczykm Aug 21, 2023
97186b7
Merge remote-tracking branch 'origin/main' into cluster-api-simple-test
maciaszczykm Aug 21, 2023
6f85173
Fix unit tests
maciaszczykm Aug 22, 2023
f96c465
Merge remote-tracking branch 'origin/main' into cluster-api-simple-test
maciaszczykm Aug 22, 2023
26ffb31
Fix kind delete
maciaszczykm Aug 22, 2023
1c36dc3
remove role permissions check for gcp SA and use local CLI ADC for mi…
floreks Aug 22, 2023
8413e10
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Aug 22, 2023
b79352f
fetch AvailabilityZones
zreigz Aug 23, 2023
b86bb6a
fix unit test
zreigz Aug 23, 2023
8a624e6
Use Microsoft Graph SDK to create service principal and get client ID…
maciaszczykm Aug 23, 2023
d6e9c4c
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Aug 23, 2023
38cc946
set bootstrapMode flag for gcp during the bootstrap phase
floreks Aug 23, 2023
04d6daf
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Aug 23, 2023
3d69b30
fix fetching zones
zreigz Aug 24, 2023
1906c3d
Add proper role assignment to Azure service principal
maciaszczykm Aug 24, 2023
86dbbc0
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Aug 24, 2023
2e48049
fix execute not showing error and add workaround for tf value templat…
floreks Aug 24, 2023
313b6da
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Aug 24, 2023
959dc8e
Minor improvements
maciaszczykm Aug 24, 2023
5152bc5
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Aug 24, 2023
4b2f531
read gcp credentials from adc file
floreks Aug 24, 2023
d3b9815
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Aug 24, 2023
712c990
Fix client ID
maciaszczykm Aug 24, 2023
a487219
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Aug 24, 2023
8b35c76
change migrate to run deploy at the end and run gcp in bootstrapMode …
floreks Aug 24, 2023
00b9efd
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Aug 24, 2023
f56543f
update gcp permissions check
floreks Aug 24, 2023
ecb956b
set azure bootstrap mode flag
davidspek Aug 24, 2023
3c7fffb
Add commit flag at the end of running migrate (#436)
michaeljguarino Aug 25, 2023
e9d009a
do not use bootstrap mode for the gcp migration
floreks Aug 25, 2023
4e4f208
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Aug 25, 2023
03158ff
improve gcp permissions check messaging
floreks Aug 25, 2023
0f45ab7
Fix typo
maciaszczykm Aug 25, 2023
5ab9dd1
Enable OIDC issuer for Azure clusters
maciaszczykm Aug 25, 2023
5c61394
add some todo comments
davidspek Aug 25, 2023
21e9a1c
Create temporary service principal with password during deploy and de…
maciaszczykm Aug 28, 2023
9cf3e4e
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Aug 28, 2023
f9b8b04
Refactor
maciaszczykm Aug 28, 2023
a3880b4
e2e update machine pool version
zreigz Aug 28, 2023
48aca17
Fix destroy
maciaszczykm Aug 28, 2023
7c12de6
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Aug 28, 2023
6863892
update bootstrap step building logic
floreks Aug 29, 2023
6911974
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Aug 29, 2023
bae2fc4
add plural build-values REPO
zreigz Aug 29, 2023
74de8a2
init bubbletea tui
floreks Aug 30, 2023
664393d
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Aug 30, 2023
0fd6b93
revert bootstrap step changes
floreks Aug 30, 2023
6a30e5c
Resolve Helm issue
maciaszczykm Aug 30, 2023
afa9a1c
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Aug 30, 2023
f26fe60
Extract methods from bootstrap steps
maciaszczykm Aug 30, 2023
3abf264
Fix destroy
maciaszczykm Aug 30, 2023
56c12df
Modify aws auth configmap manually to solve migration chicken-egg (#437)
michaeljguarino Aug 30, 2023
83bf756
Add secret list and create funcs
maciaszczykm Aug 30, 2023
97bcefb
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Aug 30, 2023
b048084
Add kube initializer with context
maciaszczykm Aug 30, 2023
54d397b
Merge branch 'main' into cluster-api-simple-test
zreigz Aug 30, 2023
49227ed
add feature flag for CAPI stuff
floreks Aug 30, 2023
9432832
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Aug 30, 2023
187c3be
fix build
zreigz Aug 30, 2023
7b33241
Add kube initializer with context
maciaszczykm Aug 31, 2023
65207be
set aws credentials
zreigz Aug 31, 2023
893e805
cleanup build values command
zreigz Aug 31, 2023
2358bc0
use dynamic credentials for GCP without storing them on the repo
floreks Aug 31, 2023
9808033
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Aug 31, 2023
6dc7b29
lint fix
floreks Aug 31, 2023
79de2b3
Refactor
maciaszczykm Sep 1, 2023
dad8fba
Rename file
maciaszczykm Sep 1, 2023
f136504
allow overriding enable field of helm modules
floreks Sep 1, 2023
95de03b
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Sep 1, 2023
2a408a3
Fix var name
maciaszczykm Sep 1, 2023
70696b5
Simplify migration
maciaszczykm Sep 1, 2023
0b75a58
Restore uninstall azure-identity package step
maciaszczykm Sep 1, 2023
99b06d3
update gcp permissions check name
floreks Sep 4, 2023
e3fc0f8
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Sep 4, 2023
76d0e45
fix nil pointer error when listing uninstalled package
floreks Sep 4, 2023
2cde122
improve fetching AZs
zreigz Sep 4, 2023
3a10e24
bump migrator version (#440)
davidspek Sep 4, 2023
a271265
fix gcp provider name
zreigz Sep 5, 2023
e016e92
ci: re-login to aws for buildx build
davidspek Sep 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ jobs:
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
if: always()
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::312272277431:role/github-actions/buildx-deployments
role-session-name: PluralCLI
cloud:
name: Build cloud image
runs-on: ubuntu-latest
Expand Down Expand Up @@ -206,6 +213,13 @@ jobs:
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
if: always()
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::312272277431:role/github-actions/buildx-deployments
role-session-name: PluralCLI
dind:
name: Build dind image
runs-on: ubuntu-latest
Expand Down Expand Up @@ -306,7 +320,13 @@ jobs:
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
if: always()
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::312272277431:role/github-actions/buildx-deployments
role-session-name: PluralCLI
trivy-scan:
name: Trivy fs scan
runs-on: ubuntu-latest
Expand Down Expand Up @@ -338,7 +358,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version-file: go.mod
- run: make test
lint:
name: Lint
Expand All @@ -347,7 +367,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version-file: go.mod
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v3
with:
go-version: 1.18
go-version-file: go.mod
- uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
Expand Down
48 changes: 45 additions & 3 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,53 @@ on:
branches:
- main
jobs:
create-cluster-capi:
name: Create cluster with Cluster API
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create kind cluster
uses: helm/[email protected]
with:
install_only: true
- run: |
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
sudo apt-get update
sudo apt-get install -y terraform
- run: |
GOBIN="$HOME"/bin make build-cli
chmod 755 plural.o
mv plural.o /usr/local/bin/plural
- run: hack/e2e/kind-install-for-capd.sh
- run: hack/e2e/setup-plural.sh
env:
CLI_E2E_CONF: ${{ secrets.CLI_E2E_CONF }}
CLI_E2E_IDENTITY_FILE: ${{ secrets.CLI_E2E_IDENTITY_FILE }}
CLI_E2E_KEY_FILE: ${{ secrets.CLI_E2E_KEY_FILE }}
CLI_E2E_PUBLIC_KEY: ${{ secrets.CLI_E2E_PUBLIC_KEY }}
CLI_E2E_PRIVATE_KEY: ${{ secrets.CLI_E2E_PRIVATE_KEY }}
CLI_E2E_SHARING_PRIVATE_KEY: ${{ secrets.CLI_E2E_SHARING_PRIVATE_KEY }}
CLI_E2E_SHARING_PUBLIC_KEY: ${{ secrets.CLI_E2E_SHARING_PUBLIC_KEY }}
USE_CLUSTER_API: true
- run: go test -v -race ./pkg/test/e2eclusterapi/... -tags="e2e"
- run: |
cd $HOME/test
plural destroy --force --all --commit=""
env:
PLURAL_DESTROY_CONFIRM: true
PLURAL_DESTROY_AFFIRM_UNINSTALL_APPS: true
PLURAL_DISABLE_MP_TABLE_VIEW: true
create-cluster:
if: false
name: Create cluster
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1.5.0
- name: Create kind cluster
uses: helm/kind-action@v1.8.0
with:
install_only: true
- run: |
Expand All @@ -31,10 +71,12 @@ jobs:
CLI_E2E_PRIVATE_KEY: ${{ secrets.CLI_E2E_PRIVATE_KEY }}
CLI_E2E_SHARING_PRIVATE_KEY: ${{ secrets.CLI_E2E_SHARING_PRIVATE_KEY }}
CLI_E2E_SHARING_PUBLIC_KEY: ${{ secrets.CLI_E2E_SHARING_PUBLIC_KEY }}
INSTALL_APP: console
INSTALL_RECIPE: console-kind
- run: go test -v -race ./pkg/test/e2e/... -tags="e2e"
- run: |
cd $HOME/test
plural destroy --force --all --commit=""
env:
PLURAL_DESTROY_CONFIRM: true
PLURAL_DESTROY_AFFIRM_UNINSTALL_APPS: true
PLURAL_DESTROY_AFFIRM_UNINSTALL_APPS: true
7 changes: 7 additions & 0 deletions .github/workflows/goreleaser-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,13 @@ jobs:
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
if: always()
with:
aws-region: us-east-2
role-to-assume: arn:aws:iam::312272277431:role/github-actions/buildx-deployments
role-session-name: PluralCLI
packer:
name: Build EKS AMI
runs-on: ubuntu-latest
Expand Down
26 changes: 14 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
# Binaries for programs and plugins
# IDE files
.idea/
.vscode/

# Testing files
context.yaml
workspace.yaml

# Build files and binaries
dist/
build/
*.exe
*.exe~
*.dll
*.so
*.o
*.dylib
__debug_bin

# Test binary, built with `go test -c`
*.test
Expand All @@ -13,15 +24,6 @@
*.out
forge*.o
plural*.o
# Dependency directories (remove the comment below to include it)
# vendor/

# IDE dirs
.idea/

dist/
build/

# Testing files
context.yaml
workspace.yaml
# Vendored dependencies
vendor/
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ git-push:
git push

.PHONY: install
install: build-cli-ui
mv $(OUTFILE) ~/bin/plural
install:
go install -ldflags '$(LDFLAGS)' .

.PHONY: build-cli
build-cli: ## Build a CLI binary for the host architecture without embedded UI
Expand Down
Loading
Loading