File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,20 @@ FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.16-openshift-4.8
4
4
5
5
ARG KUBEBUILDER_RELEASE=2.3.1
6
6
# Install test dependencies
7
+ # TODO(tflannag): This is a quick fix to kubebuilder's quick start instructions
8
+ # that were failing e2e tests. We'll want to update our o/release ci-operator
9
+ # configuration to allow build_root changes to be reflected in a PR vs.
10
+ # instead of the CI pipeline always defaulting to building the HEAD version
11
+ # of the dockerfile:
12
+ # - https://docs.ci.openshift.org/docs/architecture/ci-operator/#build-root-image
13
+ # Note(tflannag): We ran into some issues curling from the https://go.kubebuilder.io/dl
14
+ # domain as the output file was HTLM-based, so curl from the github releases
15
+ # until this has been resolved.
7
16
RUN yum install -y skopeo && \
8
17
export OS=$(go env GOOS) && \
9
18
export ARCH=$(go env GOARCH) && \
10
- curl -L "https://go. kubebuilder.io/dl/ ${KUBEBUILDER_RELEASE}/${ OS}/ ${ARCH}" | tar -xz -C /tmp/ && \
19
+ curl -L "https://github.com/kubernetes-sigs/ kubebuilder/releases/download/v ${KUBEBUILDER_RELEASE}/kubebuilder_${KUBEBUILDER_RELEASE}_${ OS}_ ${ARCH}.tar.gz " | tar -xz -C /tmp/ && \
11
20
mv /tmp/kubebuilder_${KUBEBUILDER_RELEASE}_${OS}_${ARCH}/ /usr/local/kubebuilder && \
12
21
export PATH=$PATH:/usr/local/kubebuilder/bin && \
22
+ kubebuilder version && \
13
23
echo "Kubebuilder installation complete!"
You can’t perform that action at this time.
0 commit comments