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

feat: Use CAPI for provisioning clusters #424

Merged
merged 338 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
338 commits
Select commit Hold shift + click to select a range
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
4d34911
remove credentials
zreigz Sep 5, 2023
ea25d3b
Properly normalize Google -> GCP provider name and add migration step…
floreks Sep 5, 2023
4c3c8d1
Merge remote-tracking branch 'origin/main' into cluster-api-simple-test
floreks Sep 5, 2023
5f14011
update go.sum
floreks Sep 5, 2023
5d90134
make genmock
floreks Sep 5, 2023
6abefd7
Fix executor println (#443)
michaeljguarino Sep 6, 2023
38b2c17
bump migrator
zreigz Sep 6, 2023
0c2ff30
small refactor
floreks Sep 6, 2023
847dd4e
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Sep 6, 2023
41ae327
Bump migrator version
maciaszczykm Sep 6, 2023
173c00e
fix null replacment
zreigz Sep 6, 2023
79d12a3
Deprecate values.yaml migration
maciaszczykm Sep 6, 2023
324ac9f
bump migrator
zreigz Sep 6, 2023
49784d3
Fix Azure destroy after migration
maciaszczykm Sep 6, 2023
5cd90ab
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Sep 6, 2023
01b676d
Refactor step filtering
maciaszczykm Sep 7, 2023
d12d79d
Fix Azure identity bug
maciaszczykm Sep 7, 2023
3d94d42
add posthog feature call timeout and fix caching
floreks Sep 7, 2023
27dff19
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Sep 7, 2023
1c39295
cleanup some steps
zreigz Sep 7, 2023
1471cae
Switch google to gcp during init
maciaszczykm Sep 8, 2023
0d22da3
Update messaging for GCP
maciaszczykm Sep 8, 2023
7f60754
bump migrator
zreigz Sep 12, 2023
ecb1715
update go.sum
zreigz Sep 12, 2023
886c2de
fix linters
zreigz Sep 12, 2023
8958bdf
ci: ensure docker buildx removes the running nodes (#448)
davidspek Sep 12, 2023
68e6844
Add semver validation for required bootstrap tf/helm modules on migra…
michaeljguarino Sep 13, 2023
479edc0
remove default values from migration values.yaml
floreks Sep 13, 2023
5b16dec
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Sep 13, 2023
3d85b2a
go mod tidy
floreks Sep 13, 2023
09972c0
update AZs during migration
zreigz Sep 13, 2023
b780880
disable external-dns and plural-certmanager-webhook
zreigz Sep 13, 2023
0f7e8fb
Do not delete bootstrap cluster on failed deploy
maciaszczykm Sep 13, 2023
4067644
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Sep 13, 2023
98666a7
fix disabling plural-certmanager-webhook
davidspek Sep 13, 2023
280d51d
also disable external dns on gcp and azure
davidspek Sep 13, 2023
cb2b20f
Update step handling
maciaszczykm Sep 14, 2023
389365a
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Sep 14, 2023
c4b1ef6
Add retry mechanism
maciaszczykm Sep 14, 2023
46117a8
Fix step numbering
maciaszczykm Sep 14, 2023
eca13e3
Fix unit tests
maciaszczykm Sep 14, 2023
b5b995d
Further improvements
maciaszczykm Sep 14, 2023
f24dfe8
Use map to store provider tags
maciaszczykm Sep 14, 2023
53dce61
add move state backup and restore to capi deploy
floreks Sep 14, 2023
db525b9
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Sep 14, 2023
1c8213e
Further improvements
maciaszczykm Sep 14, 2023
725db52
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Sep 14, 2023
6a4cdd0
Fix OIDC issuer step
maciaszczykm Sep 14, 2023
17895cf
Fix typo
maciaszczykm Sep 14, 2023
da889a7
add initial step confirm support
floreks Sep 14, 2023
3ca2833
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Sep 14, 2023
b31119a
move capi backup to .plural dir and add multi-cluster backup support
floreks Sep 14, 2023
728f6e1
Remove tui package
maciaszczykm Sep 14, 2023
7746051
Merge remote-tracking branch 'origin/cluster-api-simple-test' into cl…
maciaszczykm Sep 14, 2023
c1488e8
add conditional recovery steps when cluster issues are detected
floreks Sep 18, 2023
136692b
Merge branch 'cluster-api-simple-test' of github.com:pluralsh/plural-…
floreks Sep 18, 2023
bce51b9
Merge remote-tracking branch 'origin/main' into cluster-api-simple-test
maciaszczykm Sep 26, 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
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
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
7 changes: 4 additions & 3 deletions cmd/plural/api.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package plural

import (
"github.com/pluralsh/plural/pkg/api"
"github.com/pluralsh/plural/pkg/utils"
"github.com/pluralsh/polly/algorithms"
"github.com/urfave/cli"

"github.com/pluralsh/plural/pkg/api"
"github.com/pluralsh/plural/pkg/utils"
)

func (p *Plural) apiCommands() []cli.Command {
Expand Down Expand Up @@ -111,7 +112,7 @@ func (p *Plural) handleCharts(c *cli.Context) error {

func (p *Plural) handleTerraforma(c *cli.Context) error {
p.InitPluralClient()
tfs, err := p.GetTerraforma(c.Args().First())
tfs, err := p.GetTerraform(c.Args().First())
if err != nil {
return api.GetErrorResponse(err, "GetTerraforma")
}
Expand Down
Loading
Loading