Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Add basic snapcraft.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarl committed Sep 20, 2019
1 parent b3a1183 commit 1555829
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ tf.json

# Docs
docs/_build

# Snap images
*.snap
49 changes: 49 additions & 0 deletions snapcraft.yaml
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

0 comments on commit 1555829

Please sign in to comment.