-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Please note that this is a squashed commit for all changes prior to helm service. Initially, the project was conceived as a helm fork, but later was moved to be a module with helm as a dependency. Squashing all commits prior to helm service commits preserves exising helm service commits.
- Loading branch information
0 parents
commit 00be528
Showing
1,066 changed files
with
58,611 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright The Helm Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
set -euo pipefail | ||
|
||
curl -sSL https://github.com/golangci/golangci-lint/releases/download/v$GOLANGCI_LINT_VERSION/golangci-lint-$GOLANGCI_LINT_VERSION-linux-amd64.tar.gz | tar xz | ||
sudo mv golangci-lint-$GOLANGCI_LINT_VERSION-linux-amd64/golangci-lint /usr/local/bin/golangci-lint | ||
rm -rf golangci-lint-$GOLANGCI_LINT_VERSION-linux-amd64 |
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,36 @@ | ||
--- | ||
version: 2 | ||
|
||
jobs: | ||
build: | ||
working_directory: ~/helm.sh/helm | ||
docker: | ||
- image: circleci/golang:1.13 | ||
|
||
environment: | ||
GOCACHE: "/tmp/go/cache" | ||
GOLANGCI_LINT_VERSION: "1.21.0" | ||
|
||
steps: | ||
- checkout | ||
- run: | ||
name: install test dependencies | ||
command: .circleci/bootstrap.sh | ||
- run: | ||
name: test style | ||
command: make test-style | ||
- run: | ||
name: test | ||
command: make test-coverage | ||
- deploy: | ||
name: deploy | ||
command: .circleci/deploy.sh | ||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- build: | ||
filters: | ||
tags: | ||
only: /.*/ |
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,49 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright The Helm Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
set -euo pipefail | ||
|
||
# Skip on pull request builds | ||
if [[ -n "${CIRCLE_PR_NUMBER:-}" ]]; then | ||
exit | ||
fi | ||
|
||
: ${AZURE_STORAGE_CONNECTION_STRING:?"AZURE_STORAGE_CONNECTION_STRING environment variable is not set"} | ||
: ${AZURE_STORAGE_CONTAINER_NAME:?"AZURE_STORAGE_CONTAINER_NAME environment variable is not set"} | ||
|
||
VERSION= | ||
if [[ -n "${CIRCLE_TAG:-}" ]]; then | ||
VERSION="${CIRCLE_TAG}" | ||
elif [[ "${CIRCLE_BRANCH:-}" == "master" ]]; then | ||
VERSION="canary" | ||
else | ||
echo "Skipping deploy step; this is neither a releasable branch or a tag" | ||
exit | ||
fi | ||
|
||
echo "Installing Azure CLI" | ||
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ stretch main" | sudo tee /etc/apt/sources.list.d/azure-cli.list | ||
curl -L https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add | ||
sudo apt install apt-transport-https | ||
sudo apt update | ||
sudo apt install azure-cli | ||
|
||
|
||
echo "Building helm binaries" | ||
make build-cross | ||
make dist checksum VERSION="${VERSION}" | ||
|
||
echo "Pushing binaries to Azure" | ||
az storage blob upload-batch -s _dist/ -d "$AZURE_STORAGE_CONTAINER_NAME" --pattern 'helm-*' --connection-string "$AZURE_STORAGE_CONNECTION_STRING" |
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,9 @@ | ||
<!-- If you need help or think you have found a bug, please help us with your issue by entering the following information (otherwise you can delete this text): --> | ||
|
||
Output of `helm version`: | ||
|
||
Output of `kubectl version`: | ||
|
||
Cloud Provider/Platform (AKS, GKE, Minikube etc.): | ||
|
||
|
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,9 @@ | ||
*.exe | ||
.DS_Store | ||
.coverage/ | ||
.idea/ | ||
.vimrc | ||
.vscode/ | ||
_dist/ | ||
bin/ | ||
vendor/ |
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 @@ | ||
run: | ||
timeout: 2m | ||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- deadcode | ||
- dupl | ||
- gofmt | ||
- goimports | ||
- golint | ||
- gosimple | ||
- govet | ||
- ineffassign | ||
- misspell | ||
- nakedret | ||
- structcheck | ||
- unused | ||
- varcheck | ||
|
||
linters-settings: | ||
gofmt: | ||
simplify: true | ||
goimports: | ||
local-prefixes: helm.sh/helm/v3 | ||
dupl: | ||
threshold: 400 |
Oops, something went wrong.