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

Commit

Permalink
Switched to classic confinement
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarl committed Sep 27, 2019
1 parent 43ae1a3 commit 656d381
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@ description: >
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
grade: devel
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
# Needs to be able to read files passed as args, e.g. wksctl apply --machines, --cluster
confinement: classic
grade: stable
base: core18

parts:
Expand All @@ -23,26 +20,14 @@ parts:
plugin: nil
override-build: |
export GOBIN=$SNAPCRAFT_PART_INSTALL/bin
export VERSION=$(git tag -l | egrep -v '^(chart-|helm-|master-|pre-split)' | sort --version-sort | tail -n1)
export VERSION=$(git tag -l | egrep -v '^(chart-|helm-|master-|pre-split|[a-z])' | sort --version-sort | tail -n1)
go build -ldflags "-X github.com/weaveworks/wksctl/pkg/version.Version=$VERSION" -o $GOBIN/wksctl ./cmd/wksctl
build-environment:
- GO111MODULE: 'on'
- CGO_ENABLED: '0'
build-snaps:
- go/1.12/stable

plugs:
kube-config:
interface: personal-files
read:
- $HOME/.kube
- $HOME/.minikube
- $HOME/.wks

apps:
wksctl:
command: bin/wksctl
plugs:
- kube-config
- network
- network-bind

0 comments on commit 656d381

Please sign in to comment.