Skip to content

Commit

Permalink
Merge pull request #2 from turkenf/fix-dockerfile
Browse files Browse the repository at this point in the history
Fix directory name in Dockerfile
  • Loading branch information
turkenf authored Sep 25, 2024
2 parents 252a7e9 + a3c8a8b commit 6362caa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ CROSSPLANE_NAMESPACE = upbound-system
# - UPTEST_EXAMPLE_LIST, a comma-separated list of examples to test
# - UPTEST_CLOUD_CREDENTIALS (optional), cloud credentials for the provider being tested, e.g. export UPTEST_CLOUD_CREDENTIALS=$(cat ~/.aws/credentials)
# - UPTEST_DATASOURCE_PATH (optional), see https://github.com/upbound/uptest#injecting-dynamic-values-and-datasource
uptest: $(UPTEST) $(KUBECTL) $(KUTTL)
uptest: $(UPTEST) $(KUBECTL) $(CHAINSAW) $(CROSSPLANE_CLI)
@$(INFO) running automated tests
@KUBECTL=$(KUBECTL) KUTTL=$(KUTTL) $(UPTEST) e2e "${UPTEST_EXAMPLE_LIST}" --data-source="${UPTEST_DATASOURCE_PATH}" --setup-script=cluster/test/setup.sh || $(FAIL)
@KUBECTL=$(KUBECTL) CHAINSAW=$(CHAINSAW) CROSSPLANE_CLI=$(CROSSPLANE_CLI) CROSSPLANE_NAMESPACE=$(CROSSPLANE_NAMESPACE) $(UPTEST) e2e "${UPTEST_EXAMPLE_LIST}" --data-source="${UPTEST_DATASOURCE_PATH}" --setup-script=cluster/test/setup.sh --skip-import || $(FAIL)
@$(OK) running automated tests

local-deploy: build controlplane.up local.xpkg.deploy.provider.$(PROJECT_NAME)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ configurable using `DeploymentRuntimeConfig`.
## Known limitations:

* You must either use remote state or ensure the provider container's `/tf`
directory is not lost. `provider-opentofy` __does not persist state__;
directory is not lost. `provider-opentofu` __does not persist state__;
consider using the [Kubernetes](https://opentofu.org/docs/language/settings/backends/kubernetes/) remote state backend.
* If the module takes longer than the value of `--timeout` (default is 20m) to apply the
underlying `tofu` process will be killed. You will potentially lose state
Expand Down
4 changes: 2 additions & 2 deletions cluster/images/provider-opentofu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG TARGETARCH

ENV OPENTOFU_VERSION=1.8.2
ENV TF_IN_AUTOMATION=1
ENV TOFU_PLUGIN_CACHE_DIR=/tf/plugin-cache
ENV TOFU_PLUGIN_CACHE_DIR=/tofu/plugin-cache

ADD "bin/${TARGETOS}_${TARGETARCH}/provider" /usr/local/bin/crossplane-opentofu-provider
ADD .gitconfig .gitconfig
Expand All @@ -15,7 +15,7 @@ RUN curl -s -L https://github.com/opentofu/opentofu/releases/download/v${OPENTOF
&& rm tofu.zip \
&& chmod +x /usr/local/bin/tofu \
&& mkdir -p ${TOFU_PLUGIN_CACHE_DIR} \
&& chown -R 2000 /tf
&& chown -R 2000 /tofu
# As of Crossplane v1.3.0 provider controllers run as UID 2000.
# https://github.com/crossplane/crossplane/blob/v1.3.0/internal/controller/pkg/revision/deployment.go#L32

Expand Down
File renamed without changes.

0 comments on commit 6362caa

Please sign in to comment.