Skip to content

Commit

Permalink
Merge pull request #6799 from caseydavenport/casey-cp-certs
Browse files Browse the repository at this point in the history
Cherry-pick cert changes
  • Loading branch information
caseydavenport authored Sep 30, 2022
2 parents 91b84e6 + 7f57f0d commit 7febb5e
Show file tree
Hide file tree
Showing 121 changed files with 298 additions and 1,901 deletions.
14 changes: 7 additions & 7 deletions apiserver/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ run-kubernetes-server: run-etcd stop-kubernetes-server
# Run a Kubernetes apiserver using Docker.
docker run --detach --net=host \
--name st-apiserver \
-v $(CURDIR)/test/certs:/home/user/certs \
-v $(CERTS_PATH):/home/user/certs \
-e KUBECONFIG=/home/user/certs/kubeconfig \
$(CALICO_BUILD) kube-apiserver \
--etcd-servers=http://$(LOCAL_IP_ENV):2379 \
Expand All @@ -204,7 +204,7 @@ run-kubernetes-server: run-etcd stop-kubernetes-server
# And run the controller manager.
docker run --detach --net=host \
--name st-controller-manager \
-v $(CURDIR)/test/certs:/home/user/certs \
-v $(CERTS_PATH):/home/user/certs \
$(CALICO_BUILD) kube-controller-manager \
--master=https://127.0.0.1:6443 \
--kubeconfig=/home/user/certs/kube-controller-manager.kubeconfig \
Expand All @@ -221,7 +221,7 @@ run-kubernetes-server: run-etcd stop-kubernetes-server
--net=host \
--rm \
-v $(CURDIR)/../:/go/src/github.com/projectcalico/calico:rw \
-v $(CURDIR)/test/certs:/home/user/certs \
-v $(CERTS_PATH):/home/user/certs \
lachlanevenson/k8s-kubectl:${KUBECTL_VERSION} \
--kubeconfig=/home/user/certs/kubeconfig \
apply -f /go/src/github.com/projectcalico/calico/libcalico-go/config/crd/
Expand All @@ -231,7 +231,7 @@ run-kubernetes-server: run-etcd stop-kubernetes-server
--net=host \
--rm \
-v $(CURDIR):/manifests \
-v $(CURDIR)/test/certs:/home/user/certs \
-v $(CERTS_PATH):/home/user/certs \
lachlanevenson/k8s-kubectl:${KUBECTL_VERSION} \
--kubeconfig=/home/user/certs/kubeconfig \
apply -f /manifests/test/mock-node.yaml
Expand All @@ -242,7 +242,7 @@ run-kubernetes-server: run-etcd stop-kubernetes-server
--net=host \
--rm \
-v $(CURDIR):/manifests \
-v $(CURDIR)/test/certs:/home/user/certs \
-v $(CERTS_PATH):/home/user/certs \
lachlanevenson/k8s-kubectl:${KUBECTL_VERSION} \
--kubeconfig=/home/user/certs/kubeconfig \
apply -f /manifests/test/namespaces.yaml
Expand All @@ -266,15 +266,15 @@ fv: fv-kdd
.PHONY: fv-etcd
fv-etcd: run-kubernetes-server hack-lib
$(DOCKER_RUN) \
-v $(CURDIR)/test/certs:/home/user/certs \
-v $(CERTS_PATH):/home/user/certs \
-e KUBECONFIG=/home/user/certs/kubeconfig \
$(CALICO_BUILD) \
sh -c 'ETCD_ENDPOINTS="http://127.0.0.1:2379" DATASTORE_TYPE="etcdv3" test/integration.sh'

.PHONY: fv-kdd
fv-kdd: run-kubernetes-server hack-lib
$(DOCKER_RUN) \
-v $(CURDIR)/test/certs:/home/user/certs \
-v $(CERTS_PATH):/home/user/certs \
-e KUBECONFIG=/home/user/certs/kubeconfig \
$(CALICO_BUILD) \
sh -c 'DATASTORE_TYPE="kubernetes" test/integration.sh'
Expand Down
27 changes: 0 additions & 27 deletions apiserver/test/certs/admin-key.pem

This file was deleted.

17 changes: 0 additions & 17 deletions apiserver/test/certs/admin.csr

This file was deleted.

24 changes: 0 additions & 24 deletions apiserver/test/certs/admin.pem

This file was deleted.

27 changes: 0 additions & 27 deletions apiserver/test/certs/ca-key.pem

This file was deleted.

17 changes: 0 additions & 17 deletions apiserver/test/certs/ca.csr

This file was deleted.

22 changes: 0 additions & 22 deletions apiserver/test/certs/ca.pem

This file was deleted.

18 changes: 0 additions & 18 deletions apiserver/test/certs/kube-controller-manager.kubeconfig

This file was deleted.

27 changes: 0 additions & 27 deletions apiserver/test/certs/kubernetes-key.pem

This file was deleted.

21 changes: 0 additions & 21 deletions apiserver/test/certs/kubernetes.csr

This file was deleted.

27 changes: 0 additions & 27 deletions apiserver/test/certs/kubernetes.pem

This file was deleted.

Loading

0 comments on commit 7febb5e

Please sign in to comment.