Skip to content

Commit

Permalink
Removed support for running Trident with an external etcd instance (#122
Browse files Browse the repository at this point in the history
)
  • Loading branch information
clintonk committed Sep 5, 2019
1 parent 1b6b964 commit 8aaa8d1
Show file tree
Hide file tree
Showing 38 changed files with 5 additions and 1,668 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -13,6 +13,7 @@

**Deprecations:**
- Changed minimum supported ONTAP version to 9.1.
- Removed support for running Trident with an external etcd instance.

## v19.07.0

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Expand Up @@ -33,7 +33,7 @@ ARG K8S=""
ENV K8S $K8S
ENV TRIDENT_IP localhost

COPY ./scripts/* $BIN $CLI_BIN ./extras/external-etcd/bin/etcd-copy /usr/local/bin/
COPY ./scripts/* $BIN $CLI_BIN /usr/local/bin/

RUN mkdir /netapp
ADD chroot-host-wrapper.sh /netapp
Expand All @@ -60,4 +60,4 @@ RUN ln -s /netapp/chroot-host-wrapper.sh /netapp/blkid \
&& ln -s /netapp/chroot-host-wrapper.sh /netapp/umount


CMD ["/usr/bin/env -i PATH='/netapp:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' /usr/local/bin/$BIN -port $PORT -etcd_v3 $ETCDV3 -k8s_api_server $K8S"]
CMD ["/usr/bin/env -i PATH='/netapp:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' /usr/local/bin/$BIN -port $PORT -crd_persistence -k8s_api_server $K8S"]
18 changes: 2 additions & 16 deletions Makefile
Expand Up @@ -39,7 +39,7 @@ DR=docker run --rm \

GO=${DR} go

.PHONY = default get build trident_build trident_build_all trident_retag tridentctl_build dist build_container_tools dist_tar dist_tag test test_core test_other test_coverage_report clean fmt install vet
.PHONY = default get build trident_build trident_build_all trident_retag tridentctl_build dist dist_tar dist_tag test test_core test_other test_coverage_report clean fmt install vet

default: dist

Expand Down Expand Up @@ -88,11 +88,8 @@ trident_retag:
trident_build: trident_retag
@mkdir -p ${BIN_DIR}
@chmod 777 ${BIN_DIR}
@mkdir -p ${ROOT}/extras/external-etcd/bin
@chmod 777 ${ROOT}/extras/external-etcd/bin
@${GO} ${BUILD} -ldflags $(BUILD_FLAGS) -o ${TRIDENT_VOLUME_PATH}/bin/${BIN}
@${GO} ${BUILD} -ldflags $(BUILD_FLAGS) -o ${TRIDENT_VOLUME_PATH}/bin/${CLI_BIN} ${CLI_PKG}
@${GO} ${BUILD} -ldflags $(BUILD_FLAGS) -o ${TRIDENT_VOLUME_PATH}/extras/external-etcd/bin/etcd-copy github.com/netapp/trident/extras/external-etcd/etcd-copy
cp ${BIN_DIR}/${BIN} .
cp ${BIN_DIR}/${CLI_BIN} .
docker build --build-arg PORT=${PORT} --build-arg BIN=${BIN} --build-arg CLI_BIN=${CLI_BIN} --build-arg ETCDV3=${ETCD_SERVER} --build-arg K8S=${K8S} -t ${TRIDENT_TAG} --rm .
Expand All @@ -113,10 +110,6 @@ tridentctl_build:

trident_build_all: get *.go trident_build

## Build targets for constructing trident and the trident installer bundle
build_container_tools:
make -C extras/container-tools container_tools

dist_tag:
ifneq ($(TRIDENT_DIST_TAG),$(TRIDENT_TAG))
-docker rmi ${TRIDENT_DIST_TAG}
Expand All @@ -127,18 +120,11 @@ dist_tar: build
-rm -rf /tmp/trident-installer
@cp -a trident-installer /tmp/
@cp ${BIN_DIR}/${CLI_BIN} /tmp/trident-installer/
@cp -a extras /tmp/trident-installer/
@mkdir -p /tmp/trident-installer/extras/bin
@cp ${BIN_DIR}/${BIN} /tmp/trident-installer/extras/bin/${TARBALL_BIN}
-rm -rf /tmp/trident-installer/setup/backend.json /tmp/trident-installer/extras/container-tools
@rm -rf /tmp/trident-installer/extras/external-etcd/etcd-copy
-rm -rf /tmp/trident-installer/setup/backend.json
-find /tmp/trident-installer -name \*.swp | xargs -0 -r rm
@mkdir -p /tmp/trident-installer/setup
@sed "s|__TRIDENT_IMAGE__|${TRIDENT_DIST_TAG}|g" kubernetes-yaml/trident-deployment-external-etcd.yaml.templ > /tmp/trident-installer/extras/external-etcd/trident/trident-deployment-external-etcd.yaml
@sed "s|__TRIDENT_IMAGE__|${TRIDENT_DIST_TAG}|g" kubernetes-yaml/etcdcopy-job.yaml.templ > /tmp/trident-installer/extras/external-etcd/trident/etcdcopy-job.yaml
@cp kubernetes-yaml/trident-namespace.yaml /tmp/trident-installer/extras/external-etcd/trident/
@cp kubernetes-yaml/trident-serviceaccounts.yaml /tmp/trident-installer/extras/external-etcd/trident/
@cp kubernetes-yaml/trident-clusterrole* /tmp/trident-installer/extras/external-etcd/trident/
@tar -C /tmp -czf trident-installer-${TRIDENT_VERSION}.tar.gz trident-installer
-rm -rf /tmp/trident-installer

Expand Down
19 changes: 0 additions & 19 deletions extras/container-tools/Dockerfile

This file was deleted.

21 changes: 0 additions & 21 deletions extras/container-tools/Makefile

This file was deleted.

0 comments on commit 8aaa8d1

Please sign in to comment.