-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into jd/admission-contro…
…ller-validation-fix
- Loading branch information
Showing
109 changed files
with
510 additions
and
1,099 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# The action uses an own Dockerfile on purpose because the root Dockerfile takes way too long to build for an action | ||
|
||
FROM alpine:3.10 | ||
|
||
RUN apk add --no-cache \ | ||
bash \ | ||
ca-certificates \ | ||
curl \ | ||
wget \ | ||
tar \ | ||
jq | ||
|
||
COPY get_polaris.sh /get_polaris.sh | ||
|
||
ENTRYPOINT ["/get_polaris.sh"] |
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,22 @@ | ||
name: 'Install polaris' | ||
description: 'Download a specific polaris version' | ||
|
||
inputs: | ||
version: | ||
description: 'version of polaris' | ||
required: true | ||
default: 'latest' | ||
|
||
runs: | ||
using: 'docker' | ||
image: './Dockerfile' | ||
args: | ||
- ${{ inputs.version }} | ||
|
||
outputs: | ||
version: | ||
description: 'Version of polaris installed' | ||
|
||
branding: | ||
icon: 'download-cloud' | ||
color: 'gray-dark' |
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,19 @@ | ||
#!/bin/bash | ||
if [[ -z "$INPUT_VERSION" ]]; then | ||
echo "Missing polaris version information" | ||
exit 1 | ||
fi | ||
polaris version | grep "$INPUT_VERSION" &> /dev/null | ||
if [ $? == 0 ]; then | ||
echo "Polaris $INPUT_VERSION is already installed! Exiting gracefully." | ||
exit 0 | ||
else | ||
echo "Installing polaris to path." | ||
fi | ||
TARGET_FILE="polaris.tar.gz" | ||
curl -LJ -o $TARGET_FILE 'https://github.com/FairwindsOps/polaris/releases/download/'"$INPUT_VERSION"'/polaris_'"$INPUT_VERSION"'_linux_386.tar.gz' | ||
mkdir polaris | ||
tar -xzf $TARGET_FILE -C polaris | ||
rm $TARGET_FILE | ||
echo "polaris" >> $GITHUB_PATH | ||
echo "::set-output name=version::$INPUT_VERSION" |
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
name: Test setup-polaris | ||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build-int: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup polaris | ||
uses: ./.github/actions/setup-polaris | ||
with: | ||
version: 3.0.3 | ||
- name: Use command | ||
run: polaris version | ||
|
||
build-ext: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup polaris | ||
uses: fairwindsops/polaris/.github/actions/setup-polaris@master | ||
with: | ||
version: 3.0.3 | ||
- name: Use command | ||
run: polaris version |
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 |
---|---|---|
|
@@ -26,3 +26,4 @@ dist | |
*-test.yaml | ||
|
||
node_modules | ||
/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
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
Oops, something went wrong.