Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Change snap confinement to classic #2529

Merged
merged 3 commits into from
Dec 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions snap/local/fluxctl-launch

This file was deleted.

29 changes: 2 additions & 27 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,11 @@ summary: fluxctl talks to Flux and helps you deploy your code
description: |
fluxctl talks to your Flux instance and exposes all its
functionality to an easy to use command line interface.
confinement: strict
confinement: classic
adopt-info: fluxctl
base: core18

parts:
launcher:
source: snap/local
source-type: local
plugin: dump
organize:
'*': bin/
override-stage: |
cd $SNAPCRAFT_PART_INSTALL
chmod +x bin/fluxctl-launch
snapcraftctl stage
fluxctl:
source: .
override-pull: |
Expand Down Expand Up @@ -50,22 +40,7 @@ parts:
stage:
- -bin/fluxd
- -bin/helm-operator
organize:
bin/fluxctl: bin/fluxctl.real
after: [launcher]

plugs:
kube-config:
interface: personal-files
read:
- $HOME/.kube
- $HOME/.minikube
- $HOME/.config/k3d # hard-coded $XDG_CONFIG_HOME for the common case

apps:
fluxctl:
command: bin/fluxctl-launch
plugs:
- kube-config
- network
- network-bind
command: bin/fluxctl