Skip to content

Commit 64ac3b4

Browse files
committed
first commit
Signed-off-by: Tamal Saha <tamal@appscode.com>
0 parents  commit 64ac3b4

File tree

3,047 files changed

+1047777
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,047 files changed

+1047777
-0
lines changed

.github/.kodiak.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
version = 1
2+
3+
[merge]
4+
method = "squash" # default: "merge"
5+
delete_branch_on_merge = true # default: false
6+
optimistic_updates = true # default: true
7+
prioritize_ready_to_merge = true # default: false
8+
9+
[merge.message]
10+
title = "pull_request_title" # default: "github_default"
11+
body = "github_default" # default: "github_default"
12+
strip_html_comments = true # default: false
13+
14+
[update]
15+
always = true # default: false
16+
17+
[approve]
18+
auto_approve_usernames = ["1gtm", "tamalsaha"]

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "*"
7+
push:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
name: Build
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Set up Go 1.17
17+
uses: actions/setup-go@v1
18+
with:
19+
go-version: 1.17
20+
id: go
21+
22+
- name: Check out code into the Go module directory
23+
uses: actions/checkout@v1
24+
25+
- name: Prepare Host
26+
run: |
27+
sudo apt-get -qq update || true
28+
sudo apt-get install -y bzr
29+
30+
- name: Run checks
31+
run: |
32+
make ci

.github/workflows/release-tracker.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: release-tracker
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v1
13+
14+
- name: Prepare git
15+
env:
16+
GITHUB_USER: 1gtm
17+
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
18+
run: |
19+
git config --global user.name "${GITHUB_USER}"
20+
git config --global user.email "${GITHUB_USER}@appscode.com"
21+
git remote set-url origin https://${GITHUB_USER}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
22+
23+
- name: Install GitHub CLI
24+
run: |
25+
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
26+
sudo mv bin/hub /usr/local/bin
27+
28+
- name: Update release tracker
29+
if: |
30+
github.event.action == 'closed' &&
31+
github.event.pull_request.merged == true
32+
env:
33+
GITHUB_USER: 1gtm
34+
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
35+
run: |
36+
./hack/scripts/update-release-tracker.sh

.github/workflows/release.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "*.*"
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check out code into the Go module directory
14+
uses: actions/checkout@v1
15+
16+
- name: Print version info
17+
id: semver
18+
run: |
19+
make version
20+
21+
- name: Set up QEMU
22+
id: qemu
23+
uses: docker/setup-qemu-action@v1
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v1
27+
28+
- name: Build
29+
env:
30+
APPSCODE_ENV: prod
31+
run: |
32+
make release COMPRESS=yes
33+
34+
- name: Release
35+
uses: softprops/action-gh-release@v1
36+
if: startsWith(github.ref, 'refs/tags/')
37+
with:
38+
files: |
39+
bin/kubectl-voyager-darwin-amd64.tar.gz
40+
bin/kubectl-voyager-linux-amd64.tar.gz
41+
bin/kubectl-voyager-linux-arm.tar.gz
42+
bin/kubectl-voyager-linux-arm64.tar.gz
43+
bin/kubectl-voyager-windows-amd64.zip
44+
bin/kubectl-voyager-checksums.txt
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
48+
- name: Install GitHub CLI
49+
run: |
50+
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
51+
sudo mv bin/hub /usr/local/bin
52+
53+
- name: Clone krew-index repository
54+
env:
55+
GITHUB_USER: 1gtm
56+
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
57+
run: |
58+
KREW_INDEX_REPOSITORY=github.com/appscode/krew-index
59+
url="https://${GITHUB_USER}:${GITHUB_TOKEN}@${KREW_INDEX_REPOSITORY}.git"
60+
cd $RUNNER_WORKSPACE
61+
git clone $url
62+
cd $(basename $KREW_INDEX_REPOSITORY)
63+
git config user.name "${GITHUB_USER}"
64+
git config user.email "${GITHUB_USER}@appscode.com"
65+
66+
- name: Publish krew manifest
67+
env:
68+
GITHUB_USER: 1gtm
69+
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
70+
if: startsWith(github.event.ref, 'refs/tags/')
71+
# if: startsWith(github.event.ref, 'refs/tags/') && (contains(github.ref, '-alpha.') || contains(github.ref, '-beta.') || contains(github.ref, '-rc.')) == false
72+
run: |
73+
cd $RUNNER_WORKSPACE/krew-index
74+
./hack/scripts/open-pr.sh $GITHUB_WORKSPACE voyager

.github/workflows/update-docs.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: update-docs
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Set up Go 1.17
14+
uses: actions/setup-go@v1
15+
with:
16+
go-version: 1.17
17+
id: go
18+
19+
- uses: actions/checkout@v1
20+
21+
- name: Install GitHub CLI
22+
run: |
23+
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
24+
sudo mv bin/hub /usr/local/bin
25+
26+
- name: Clone charts repository
27+
env:
28+
GITHUB_USER: 1gtm
29+
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
30+
DOCS_REPOSITORY: ${{ secrets.DOCS_REPOSITORY }}
31+
run: |
32+
url="https://${GITHUB_USER}:${GITHUB_TOKEN}@${DOCS_REPOSITORY}.git"
33+
cd $RUNNER_WORKSPACE
34+
git clone $url
35+
cd $(basename $DOCS_REPOSITORY)
36+
git config user.name "${GITHUB_USER}"
37+
git config user.email "${GITHUB_USER}@appscode.com"
38+
39+
- name: Update docs
40+
env:
41+
GITHUB_USER: 1gtm
42+
GITHUB_TOKEN: ${{ secrets.LGTM_GITHUB_TOKEN }}
43+
DOCS_REPOSITORY: ${{ secrets.DOCS_REPOSITORY }}
44+
run: |
45+
export DOCS_ROOT=$RUNNER_WORKSPACE/$(basename $DOCS_REPOSITORY)
46+
./hack/gendocs/make.sh
47+
$DOCS_ROOT/hack/scripts/open-pr.sh

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Compiled Object files, Static and Dynamic libs (Shared Objects)
2+
*.o
3+
*.a
4+
*.so
5+
6+
# Folders
7+
_obj
8+
_test
9+
10+
# Architecture specific extensions/prefixes
11+
*.cgo1.go
12+
*.cgo2.c
13+
_cgo_defun.c
14+
_cgo_gotypes.go
15+
_cgo_export.*
16+
17+
_testmain.go
18+
19+
*.exe
20+
*.test
21+
*.prof
22+
23+
/bin
24+
/.go
25+
26+
/.idea
27+
/.markdownlint.json
28+
/.vscode
29+
/apiserver.local.config
30+
/coverage.txt
31+
/dist
32+
/hack/configs/.env
33+
/test/e2e/junit.xml
34+
/test/e2e/report.xml

LICENSE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## License
2+
3+
Source code in this repository, Binaries, Docker images and Charts produced by the build process are licensed under the AppsCode Community License 1.0.0. You may obtain a copy of the License at
4+
5+
- [AppsCode-Community-1.0.0](https://github.com/appscode/licenses/raw/1.0.0/AppsCode-Community-1.0.0.md)

0 commit comments

Comments
 (0)