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

Fix controller environment #178

Merged
merged 1 commit into from
Mar 28, 2022
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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ GO111MODULE = on
# ====================================================================================
# Setup Images

DOCKER_REGISTRY := crossplane
DOCKER_REGISTRY ?= crossplane
IMAGES = provider-jet-aws provider-jet-aws-controller
-include build/makelib/image.mk

Expand Down
5 changes: 5 additions & 0 deletions cluster/images/provider-jet-aws-controller/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ RUN unzip /tmp/terraform_${TERRAFORM_VERSION}_linux_${ARCH}.zip -d /usr/local/bi

ADD provider /usr/local/bin/crossplane-provider

# Provider controller needs these environment variable at runtime
ENV TERRAFORM_VERSION ${TERRAFORM_VERSION}
ENV TERRAFORM_PROVIDER_SOURCE ${TERRAFORM_PROVIDER_SOURCE}
ENV TERRAFORM_PROVIDER_VERSION ${TERRAFORM_PROVIDER_VERSION}

USER ${USER_ID}
EXPOSE 8080

Expand Down