Skip to content

Commit

Permalink
rename restic-init-container to ark-restic-restore-helper
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Kriss <steve@heptio.com>
  • Loading branch information
skriss committed Jun 11, 2018
1 parent 459fe66 commit 81520a9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
Expand Up @@ -16,8 +16,8 @@ FROM alpine:3.7

MAINTAINER Steve Kriss <steve@heptio.com>

ADD /bin/linux/amd64/restic-init-container .
ADD /bin/linux/amd64/ark-restic-restore-helper .

USER nobody:nobody

ENTRYPOINT [ "/restic-init-container" ]
ENTRYPOINT [ "/ark-restic-restore-helper" ]
6 changes: 3 additions & 3 deletions Makefile
Expand Up @@ -60,7 +60,7 @@ IMAGE := $(REGISTRY)/$(BIN)
# If you want to build AND push all containers, see the 'all-push' rule.
all:
@$(MAKE) build
@$(MAKE) build BIN=restic-init-container
@$(MAKE) build BIN=ark-restic-restore-helper

build-%:
@$(MAKE) --no-print-directory ARCH=$* build
Expand Down Expand Up @@ -117,7 +117,7 @@ DOTFILE_IMAGE = $(subst :,_,$(subst /,_,$(IMAGE))-$(VERSION))

all-containers:
$(MAKE) container
$(MAKE) container BIN=restic-init-container
$(MAKE) container BIN=ark-restic-restore-helper

container: verify test .container-$(DOTFILE_IMAGE) container-name
.container-$(DOTFILE_IMAGE): _output/bin/$(GOOS)/$(GOARCH)/$(BIN) $(DOCKERFILE)
Expand All @@ -130,7 +130,7 @@ container-name:

all-push:
$(MAKE) push
$(MAKE) push BIN=restic-init-container
$(MAKE) push BIN=ark-restic-restore-helper

push: .push-$(DOTFILE_IMAGE) push-name
.push-$(DOTFILE_IMAGE): .container-$(DOTFILE_IMAGE)
Expand Down
File renamed without changes.
7 changes: 5 additions & 2 deletions pkg/restore/restic_restore_action.go
Expand Up @@ -65,8 +65,11 @@ func (a *resticRestoreAction) Execute(obj runtime.Unstructured, restore *api.Res
log.Info("Restic snapshot ID annotations found")

initContainer := corev1.Container{
Name: restic.InitContainer,
Image: "gcr.io/heptio-images/restic-init-container:latest",
Name: restic.InitContainer,
// TODO don't hardcode the tag as "latest". We should probably be defaulting
// to a tag that matches the Ark binary version, and possibly allowing it to
// be overriden via cmd-line flag to Ark.
Image: "gcr.io/heptio-images/ark-restic-restore-helper:latest",
Args: []string{string(restore.UID)},
Env: []corev1.EnvVar{
{
Expand Down

0 comments on commit 81520a9

Please sign in to comment.