-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial port of shutdown await from bash to Go
- Loading branch information
0 parents
commit d387652
Showing
15 changed files
with
1,623 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,23 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: docker | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
pull-request-branch-name: | ||
separator: "-" | ||
open-pull-requests-limit: 1 | ||
- package-ecosystem: gomod | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
pull-request-branch-name: | ||
separator: "-" | ||
open-pull-requests-limit: 2 | ||
ignore: | ||
- dependency-name: "k8s.io/api" | ||
- dependency-name: "k8s.io/apimachinery" |
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,25 @@ | ||
name: test | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
build: | ||
name: go | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
go: ['1.18', '1.19'] | ||
steps: | ||
- name: setup | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: ${{matrix.go}} | ||
|
||
- name: checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: test | ||
run: make |
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 @@ | ||
bin/ |
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,13 @@ | ||
linters: | ||
enable: | ||
- goheader | ||
linters-settings: | ||
goheader: | ||
template: |- | ||
Copyright (C) {{year}} Poseidon Labs | ||
Copyright (C) {{year}} Dalton Hubble | ||
This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at https://mozilla.org/MPL/2.0/. | ||
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,12 @@ | ||
# scuttle | ||
|
||
Notable changes between versions. | ||
|
||
## Latest | ||
|
||
## v0.1.0 | ||
|
||
* Initial port from bash script to Go | ||
* Make uncordon, drain, and delete optional | ||
* Poll AWS spot instance termination notices | ||
* Drop requirement that `kubectl` be present |
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 @@ | ||
FROM docker.io/golang:1.19.3 AS builder | ||
COPY . src | ||
RUN cd src && make build | ||
|
||
FROM docker.io/alpine:3.16.2 | ||
LABEL maintainer="Dalton Hubble <dghubble@gmail.com>" | ||
RUN apk --no-cache --update add ca-certificates | ||
COPY --from=builder /go/src/bin/scuttle /usr/local/bin | ||
ENTRYPOINT ["/usr/local/bin/scuttle"] |
Oops, something went wrong.