This repository has been archived by the owner on Mar 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
52 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 |
---|---|---|
|
@@ -30,3 +30,6 @@ tf.json | |
|
||
# Docs | ||
docs/_build | ||
|
||
# Snap images | ||
*.snap |
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 @@ | ||
name: wksctl | ||
version: git | ||
summary: Open Source Weaveworks Kubernetes Subscription | ||
description: > | ||
wksctl allows simple creation of a Kubernetes cluster given a set of IP addresses and an SSH key. It | ||
can be run in a standalone environment but is best used via a GitOps approach in which cluster and | ||
machine descriptions are stored in Git and the state of the cluster tracks changes to the descriptions. | ||
Its features include: | ||
* simple creation of Kubernetes clusters | ||
* manage cluster and machine descriptions using Git | ||
* manage addons like Weave Net or Flux | ||
* Sealed Secret integration | ||
confinement: devmode | ||
base: core18 | ||
|
||
parts: | ||
wksctl: | ||
source: . | ||
# Don't use go plugin because it doesn't seem to work with Go modules | ||
plugin: nil | ||
override-build: | | ||
export GOBIN=$SNAPCRAFT_PART_INSTALL/bin | ||
go build -o $GOBIN/wksctl ./cmd/wksctl | ||
build-environment: | ||
- GO111MODULE: 'on' | ||
- CGO_ENABLED: '0' | ||
build-packages: | ||
- gcc | ||
- git | ||
build-snaps: | ||
- go/1.12/stable | ||
|
||
plugs: | ||
kube-config: | ||
interface: personal-files | ||
read: | ||
- $HOME/.kube | ||
- $HOME/.minikube | ||
- $HOME/.config/k3d # hard-coded $XDG_CONFIG_HOME for the common case | ||
|
||
apps: | ||
wksctl: | ||
command: bin/wksctl | ||
plugs: | ||
- kube-config | ||
- network | ||
- network-bind |