generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from ThomasK33/thomaskosiewski/eng-4086-bug-gi…
…thub-action-setup-vcluster-setup-loft-parity feat(platform): Added platform functionality
- Loading branch information
Showing
26 changed files
with
52,479 additions
and
2,961 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
branches: | ||
- main | ||
schedule: | ||
- cron: '31 7 * * 3' | ||
- cron: "31 7 * * 3" | ||
|
||
jobs: | ||
analyze: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { describe, expect, test } from '@jest/globals' | ||
|
||
import { loginToPlatform } from '../src/login' | ||
|
||
describe('loginToPlatform(url: string, accessKey: string)', () => { | ||
test('with empty url', async () => { | ||
await expect(loginToPlatform('', 'foo', false, false)).rejects.toThrow( | ||
'No vCluster Platform url provided' | ||
) | ||
}) | ||
|
||
test('with empty accessKey', async () => { | ||
await expect( | ||
loginToPlatform('https://prod.loft.rocks', '', false, false) | ||
).rejects.toThrow('No vCluster Platform access key provided') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,36 @@ | ||
name: vCluster CLI Install | ||
author: loft.sh | ||
description: Installs the vcluster CLI | ||
description: Installs the vCluster CLI | ||
inputs: | ||
version: | ||
description: 'The version of vcluster to install' | ||
description: "The version of vCluster to install" | ||
required: false | ||
default: 'latest' | ||
default: "latest" | ||
url: | ||
description: "The vCluster Platform URL" | ||
required: false | ||
default: "" | ||
access-key: | ||
description: "The vCluster Platform Access Key" | ||
required: false | ||
default: "" | ||
insecure: | ||
description: "Allow login into an insecure vCluster Platform instance (default false)" | ||
required: false | ||
default: "false" | ||
docker-login: | ||
description: "If true, will log into the docker image registries the user has image pull secrets for (default true)" | ||
required: false | ||
default: "true" | ||
kubectl-install: | ||
description: 'Install kubectl if not already installed' | ||
description: "Install kubectl if not already installed" | ||
required: false | ||
default: 'true' | ||
default: "true" | ||
kubectl-version: | ||
description: 'The version of the kubectl to install' | ||
description: "The version of the kubectl to install" | ||
required: false | ||
default: 'latest' | ||
default: "latest" | ||
runs: | ||
using: node20 | ||
main: 'dist/main/index.js' | ||
post: 'dist/cleanup/index.js' | ||
main: "dist/main/index.js" | ||
post: "dist/cleanup/index.js" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.