Skip to content

Instantly share code, notes, and snippets.

@dholbach
dholbach / snapcraft.yaml
Last active October 6, 2016 13:33
WIP snapcraft.yaml for Ghost
name: ghost
version: '1.0.0-alpha.2+git'
summary: A simple, powerful publishing platform
description: |
Ghost is a free and open source blogging platform written in JavaScript
and distributed under the MIT License, designed to simplify the process
of online publishing for individual bloggers as well as online publications.
.
https://ghost.org
grade: devel # must be 'stable' to release into candidate/stable channels
cloud.google.com/go Apache License 2.0
cloud.google.com/go/bigtable Apache License 2.0
cloud.google.com/go/civil Apache License 2.0
cloud.google.com/go/cmd/go-cloud-debug-agent/internal Apache License 2.0
cloud.google.com/go/compute/metadata Apache License 2.0
cloud.google.com/go/container Apache License 2.0
cloud.google.com/go/firestore/genproto Apache License 2.0
cloud.google.com/go/httpreplay Apache License 2.0
cloud.google.com/go/iam Apache License 2.0
cloud.google.com/go/internal Apache License 2.0
@dholbach
dholbach / snapcraft.yaml
Created January 18, 2019 13:54
fluxctl snap
name: fluxctl
version: '0.1'
summary: fluxctl talks to Weave Flux and helps you deploy your code
description: |
fluxctl talks to your Weave Flux instance and exposes all its
functionality to an easy to use command line interface.
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: strict
plugs:
system-files:

Disable the Weave agent

Disable the Weave agent to prevent it from overwriting the adjustments you make in the next steps by running:

kubectl -n weave scale deployment/weave-agent --replicas=0

Overwrite the affected images

github.com/weaveworks/flux Apache License 2.0
github.com/weaveworks/flux/vendor/cloud.google.com/go/compute/metadata Apache License 2.0
github.com/weaveworks/flux/vendor/contrib.go.opencensus.io/exporter/ocagent Apache License 2.0
github.com/weaveworks/flux/vendor/github.com/2opremio/go-k8s-portforward Apache License 2.0
github.com/weaveworks/flux/vendor/github.com/Azure/go-autorest Apache License 2.0 (96%)
github.com/weaveworks/flux/vendor/github.com/BurntSushi/toml MIT License
github.com/weaveworks/flux/vendor/github.com/Masterminds/goutils Apache License 2.0
github.com/weaveworks/flux/vendor/github.com/Masterminds/semver MIT License (98%)
github.com/weaveworks/flux/vendor/github.com/Masterminds/sprig MIT License (98%)
github.com/weavewor
diff -ruN ./cmd/manager/main.go /home/daniel/dev/addon-operators/coredns/cmd/manager/main.go
--- ./cmd/manager/main.go 2019-07-09 15:48:21.739951967 +0200
+++ /home/daniel/dev/addon-operators/coredns/cmd/manager/main.go 2019-07-01 14:57:36.616341088 +0200
@@ -19,65 +19,70 @@
"flag"
"os"
- "github.com/weaveworks/addon-test/pkg/apis"
- "github.com/weaveworks/addon-test/pkg/controller"
- "github.com/weaveworks/addon-test/pkg/webhook"
diff -ruN ./api/v1alpha1/coredns_types.go /home/daniel/dev/addon-operators/coredns/api/v1alpha1/coredns_types.go
--- ./api/v1alpha1/coredns_types.go 2019-10-14 16:24:08.777447288 +0200
+++ /home/daniel/dev/addon-operators/coredns/api/v1alpha1/coredns_types.go 1970-01-01 01:00:00.000000000 +0100
@@ -1,74 +0,0 @@
-
-
-package v1alpha1
-
-import (
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Env for linux/amd64: GOOS=linux GOARCH=amd64 GOROOT=/usr/local/go CGO_ENABLED= CC=
Coverage is disabled.
# k8s.io/kubernetes/vendor/sigs.k8s.io/addon-operators/installer/pkg/apis/config
vendor/sigs.k8s.io/addon-operators/installer/pkg/apis/config/register.go:40:43: cannot use &AddonInstallerConfiguration literal (type *AddonInstallerConfiguration) as type runtime.Object in argument to scheme.AddKnownTypes:
*AddonInstallerConfiguration does not implement runtime.Object (missing DeepCopyObject method)
# k8s.io/kubernetes/vendor/sigs.k8s.io/addon-operators/installer/pkg/apis/config/v1alpha1
vendor/sigs.k8s.io/addon-operators/installer/pkg/apis/config/v1alpha1/defaults.go:23:9: undefined: RegisterDefaults
vendor/sigs.k8s.io/addon-operators/installer/pkg/apis/config/v1alpha1/register.go:41:43: cannot use &AddonInstallerConfiguration literal (type *AddonInstallerConfiguration) as type runtime.Object in argument to scheme.AddKnownTypes:
*AddonInstallerConfiguration does not implement runtime.Object (missing DeepCo
❯ cat ~/go/src/k8s.io/kubeadm/kinder/config.yaml
apiVersion: kubeadm.k8s.io/v1beta2
kind: InitConfiguration
---
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
featureGates:
AddonInstaller: true
---
apiVersion: addons.config.k8s.io/v1alpha1
# Here's what an alert definition looks like:
# ALERT AlertName
# IF expr
# FOR duration
# LABELS { severity="critical/warning/etc" }
# ANNOTATIONS {
# summary = "Description of the alert.",
# impact = "Impact for users.",
# dashboardURL = "https://dashboard.json",