-
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.
Based on the 4.5.1 rock and upstream Dockerfile. The golang version was updated. Note that longhornio/csi-attacher:v4.6.1 is only a retag of the Kubernetes official image. Updates unit test to also test the new image.
- Loading branch information
1 parent
7f3a894
commit ae8218c
Showing
2 changed files
with
64 additions
and
2 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,60 @@ | ||
# Copyright 2024 Canonical, Ltd. | ||
# See LICENSE file for licensing details | ||
|
||
# Based on: https://github.com/kubernetes-csi/external-attacher/blob/v4.6.1/Dockerfile | ||
name: csi-attacher | ||
summary: csi-attacher rock | ||
description: | | ||
A rock containing csi-attacher. | ||
The external-attacher is a sidecar container that attaches volumes to nodes | ||
by calling ControllerPublish and ControllerUnpublish functions of CSI drivers. | ||
It is necessary because internal Attach/Detach controller running in Kubernetes | ||
controller-manager does not have any direct interfaces to CSI drivers. | ||
license: Apache-2.0 | ||
version: 4.6.1 | ||
|
||
base: bare | ||
build-base: ubuntu@22.04 | ||
|
||
platforms: | ||
amd64: | ||
arm64: | ||
|
||
environment: | ||
APP_VERSION: 4.6.1 | ||
|
||
# Services to be loaded by the Pebble entrypoint. | ||
services: | ||
csi-attacher: | ||
summary: "csi-attacher service" | ||
override: replace | ||
startup: enabled | ||
command: "/csi-attacher [ --help ]" | ||
on-success: shutdown | ||
on-failure: shutdown | ||
|
||
entrypoint-service: csi-attacher | ||
|
||
parts: | ||
build-csi-attacher: | ||
plugin: go | ||
source: https://github.com/kubernetes-csi/external-attacher.git | ||
source-type: git | ||
source-tag: v${CRAFT_PROJECT_VERSION} | ||
source-depth: 1 | ||
build-snaps: | ||
- go/1.22/stable | ||
build-environment: | ||
- CGO_ENABLED: 0 | ||
- GOOS: linux | ||
- GOARCH: $CRAFT_ARCH_BUILD_FOR | ||
- VERSION: $CRAFT_PROJECT_VERSION | ||
- LDFLAGS: > | ||
-X main.version=${VERSION} -extldflags "-static" | ||
go-buildtags: | ||
- "mod=vendor" | ||
go-generate: | ||
- ./cmd/csi-attacher | ||
organize: | ||
bin/csi-attacher: ./ |
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