-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds other versions of Whereabouts (#9)
Added support for versions 0.5.4 and 0.6.1. Added rockcraft.yaml files based on their Dockerfiles. Adds /host folder in the rocks. The /install-cni.sh script requires this folder. It does mkdir it, but the bitnami helm chart creates the daemonsets with read-only filesystem, making it impossible to create the folder.
- Loading branch information
1 parent
d2cbe77
commit f73a54f
Showing
5 changed files
with
128 additions
and
27 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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Dockerfile: https://github.com/k8snetworkplumbingwg/whereabouts/blob/v0.5.4/Dockerfile | ||
name: whereabouts | ||
summary: Whereabouts rock | ||
description: | | ||
A rock containing Whereabouts, an IP Address Management (IPAM) CNI plugin | ||
that assigns IP addresses cluster-wide. | ||
license: Apache-2.0 | ||
version: 0.5.4 | ||
|
||
base: [email protected] | ||
build-base: [email protected] | ||
|
||
platforms: | ||
amd64: | ||
arm64: | ||
|
||
environment: | ||
APP_VERSION: 0.5.4 | ||
|
||
# Services to be loaded by the Pebble entrypoint | ||
services: | ||
install-cni: | ||
override: replace | ||
startup: enabled | ||
command: bash /install-cni.sh | ||
on-success: shutdown | ||
on-failure: shutdown | ||
|
||
parts: | ||
build-binary: | ||
plugin: nil | ||
source: https://github.com/k8snetworkplumbingwg/whereabouts.git | ||
source-type: git | ||
source-tag: v${CRAFT_PROJECT_VERSION} | ||
source-depth: 1 | ||
build-snaps: | ||
- go/1.16/stable | ||
build-environment: | ||
- GOARCH: $CRAFT_ARCH_BUILD_FOR | ||
override-build: | | ||
bash -x "hack/build-go.sh" | ||
cp bin/* "${CRAFT_PART_INSTALL}/" | ||
cp script/install-cni.sh "${CRAFT_PART_INSTALL}/" | ||
bitnami-compatibility: | ||
plugin: nil | ||
override-build: | | ||
# install-cni.sh requires this folder to exist. | ||
mkdir -p "${CRAFT_PART_INSTALL}/bitnami/whereabouts/host" | ||
ln -sf /bitnami/whereabouts/host "${CRAFT_PART_INSTALL}/host" |
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,50 @@ | ||
# Dockerfile: https://github.com/k8snetworkplumbingwg/whereabouts/blob/v0.6.1Dockerfile | ||
name: whereabouts | ||
summary: Whereabouts rock | ||
description: | | ||
A rock containing Whereabouts, an IP Address Management (IPAM) CNI plugin | ||
that assigns IP addresses cluster-wide. | ||
license: Apache-2.0 | ||
version: 0.6.1 | ||
|
||
base: [email protected] | ||
build-base: [email protected] | ||
|
||
platforms: | ||
amd64: | ||
arm64: | ||
|
||
environment: | ||
APP_VERSION: 0.6.1 | ||
|
||
# Services to be loaded by the Pebble entrypoint | ||
services: | ||
install-cni: | ||
override: replace | ||
startup: enabled | ||
command: bash /install-cni.sh | ||
on-success: shutdown | ||
on-failure: shutdown | ||
|
||
parts: | ||
build-binary: | ||
plugin: nil | ||
source: https://github.com/k8snetworkplumbingwg/whereabouts.git | ||
source-type: git | ||
source-tag: v${CRAFT_PROJECT_VERSION} | ||
source-depth: 1 | ||
build-snaps: | ||
- go/1.19/stable | ||
build-environment: | ||
- GOARCH: $CRAFT_ARCH_BUILD_FOR | ||
override-build: | | ||
bash -x "hack/build-go.sh" | ||
cp bin/* "${CRAFT_PART_INSTALL}/" | ||
cp script/install-cni.sh "${CRAFT_PART_INSTALL}/" | ||
bitnami-compatibility: | ||
plugin: nil | ||
override-build: | | ||
# install-cni.sh requires this folder to exist. | ||
mkdir -p "${CRAFT_PART_INSTALL}/bitnami/whereabouts/host" | ||
ln -sf /bitnami/whereabouts/host "${CRAFT_PART_INSTALL}/host" |
File renamed without changes.
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
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