File tree Expand file tree Collapse file tree 9 files changed +3
-10
lines changed
workspaceKubectlPlugin-script
pkg/reconciler/apis/apiresource Expand file tree Collapse file tree 9 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 3333
3434" ${DEMOS_DIR} " /startKcp.sh \
3535 --push-mode \
36- --auto-publish-apis=true \
3736 --resources-to-sync " ingresses.networking.k8s.io,deployments.apps,services" &
3837
3938wait_command " test -f ${KCP_DATA_DIR} /kcp-started"
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ KUBECONFIG=${KCP_DATA_DIR}/.kcp/admin.kubeconfig
2525
2626" ${DEMOS_DIR} " /startKcp.sh \
2727 --push-mode \
28- --auto-publish-apis=true \
2928 --resources-to-sync deployments.apps &
3029
3130wait_command " test -f ${KCP_DATA_DIR} /kcp-started"
Original file line number Diff line number Diff line change 7171
7272" ${DEMOS_DIR} " /startKcp.sh \
7373 --token-auth-file " ${DEMO_DIR} " /kcp-tokens \
74- --auto-publish-apis \
7574 --push-mode \
7675 --discovery-poll-interval 3s \
7776 --profiler-address localhost:6060 \
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ KUBECONFIG=${KCP_DATA_DIR}/.kcp/admin.kubeconfig
6464
6565" ${DEMOS_DIR} " /startKcp.sh \
6666 --token-auth-file " ${DEMO_DIR} " /kcp-tokens \
67- --auto-publish-apis \
6867 --push-mode \
6968 --discovery-poll-interval 3s \
7069 --profiler-address localhost:6060 \
Original file line number Diff line number Diff line change 5757echo
5858
5959echo " Starting Cluster Controller on kcp1..."
60- " ${KCP_ROOT} " /bin/cluster-controller -push-mode=true -pull-mode=false -kubeconfig=" .kcp1/admin.kubeconfig" -auto-publish-apis=true .configmaps & > .kcp1.cluster-controller.log 2>&1 &
60+ " ${KCP_ROOT} " /bin/cluster-controller -push-mode=true -pull-mode=false -kubeconfig=" .kcp1/admin.kubeconfig" .configmaps & > .kcp1.cluster-controller.log 2>&1 &
6161
6262echo " Starting kcp2..."
6363" ${KCP_ROOT} " /bin/kcp start --enable-sharding --shard-kubeconfig-file " .kcp1/data/shard.kubeconfig" --root-directory " .kcp2" --etcd-client-port 2381 --etcd-peer-port 2382 --secure-port :6444 > " .kcp2.log" 2>&1 &
8181echo
8282
8383echo " Starting Cluster Controller on kcp2..."
84- " ${KCP_ROOT} " /bin/cluster-controller -push-mode=true -pull-mode=false -kubeconfig=" .kcp1/admin.kubeconfig" -auto-publish-apis=true .configmaps & > .kcp1.cluster-controller.log 2>&1 &
84+ " ${KCP_ROOT} " /bin/cluster-controller -push-mode=true -pull-mode=false -kubeconfig=" .kcp1/admin.kubeconfig" .configmaps & > .kcp1.cluster-controller.log 2>&1 &
8585
8686" ${KCP_ROOT} " /contrib/demo/sharding/add-cluster.py " .kcp1/admin.kubeconfig" " .kcp2/admin.kubeconfig"
8787touch .ready
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ setupTraps "$0"
2626KUBECONFIG=${KCP_DATA_DIR} /.kcp/admin.kubeconfig
2727" ${DEMOS_DIR} " /startKcp.sh \
2828 --push-mode \
29- --auto-publish-apis=true \
3029 --resources-to-sync deployments.apps \
3130 --token-auth-file " ${DEMO_DIR} " /kcp-tokens
3231
Original file line number Diff line number Diff line change @@ -111,7 +111,6 @@ spec:
111111 - /kcp
112112 args :
113113 - start
114- - --auto-publish-apis
115114 - --etcd-servers=https://etcd:2379
116115 - --etcd-keyfile=/etc/etcd/tls/server/tls.key
117116 - --etcd-certfile=/etc/etcd/tls/server/tls.crt
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import (
2525// DefaultOptions are the default options for the apiresource controller.
2626func DefaultOptions () * Options {
2727 return & Options {
28- AutoPublishAPIs : false ,
28+ AutoPublishAPIs : true ,
2929 // Consumed by server instantiation
3030 NumThreads : runtime .NumCPU (),
3131 }
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ func TestServerArgs() []string {
6464// start a test server with the given token auth file.
6565func TestServerArgsWithTokenAuthFile (tokenAuthFile string ) []string {
6666 return []string {
67- "--auto-publish-apis" ,
6867 "--discovery-poll-interval=5s" ,
6968 "--token-auth-file" , tokenAuthFile ,
7069 "--run-virtual-workspaces=true" ,
You can’t perform that action at this time.
0 commit comments