File tree 9 files changed +3
-10
lines changed
workspaceKubectlPlugin-script
pkg/reconciler/apis/apiresource
9 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 33
33
34
34
" ${DEMOS_DIR} " /startKcp.sh \
35
35
--push-mode \
36
- --auto-publish-apis=true \
37
36
--resources-to-sync " ingresses.networking.k8s.io,deployments.apps,services" &
38
37
39
38
wait_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
25
25
26
26
" ${DEMOS_DIR} " /startKcp.sh \
27
27
--push-mode \
28
- --auto-publish-apis=true \
29
28
--resources-to-sync deployments.apps &
30
29
31
30
wait_command " test -f ${KCP_DATA_DIR} /kcp-started"
Original file line number Diff line number Diff line change 71
71
72
72
" ${DEMOS_DIR} " /startKcp.sh \
73
73
--token-auth-file " ${DEMO_DIR} " /kcp-tokens \
74
- --auto-publish-apis \
75
74
--push-mode \
76
75
--discovery-poll-interval 3s \
77
76
--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
64
64
65
65
" ${DEMOS_DIR} " /startKcp.sh \
66
66
--token-auth-file " ${DEMO_DIR} " /kcp-tokens \
67
- --auto-publish-apis \
68
67
--push-mode \
69
68
--discovery-poll-interval 3s \
70
69
--profiler-address localhost:6060 \
Original file line number Diff line number Diff line change 57
57
echo
58
58
59
59
echo " 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 &
61
61
62
62
echo " Starting kcp2..."
63
63
" ${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 &
81
81
echo
82
82
83
83
echo " 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 &
85
85
86
86
" ${KCP_ROOT} " /contrib/demo/sharding/add-cluster.py " .kcp1/admin.kubeconfig" " .kcp2/admin.kubeconfig"
87
87
touch .ready
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ setupTraps "$0"
26
26
KUBECONFIG=${KCP_DATA_DIR} /.kcp/admin.kubeconfig
27
27
" ${DEMOS_DIR} " /startKcp.sh \
28
28
--push-mode \
29
- --auto-publish-apis=true \
30
29
--resources-to-sync deployments.apps \
31
30
--token-auth-file " ${DEMO_DIR} " /kcp-tokens
32
31
Original file line number Diff line number Diff line change @@ -111,7 +111,6 @@ spec:
111
111
- /kcp
112
112
args :
113
113
- start
114
- - --auto-publish-apis
115
114
- --etcd-servers=https://etcd:2379
116
115
- --etcd-keyfile=/etc/etcd/tls/server/tls.key
117
116
- --etcd-certfile=/etc/etcd/tls/server/tls.crt
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import (
25
25
// DefaultOptions are the default options for the apiresource controller.
26
26
func DefaultOptions () * Options {
27
27
return & Options {
28
- AutoPublishAPIs : false ,
28
+ AutoPublishAPIs : true ,
29
29
// Consumed by server instantiation
30
30
NumThreads : runtime .NumCPU (),
31
31
}
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ func TestServerArgs() []string {
64
64
// start a test server with the given token auth file.
65
65
func TestServerArgsWithTokenAuthFile (tokenAuthFile string ) []string {
66
66
return []string {
67
- "--auto-publish-apis" ,
68
67
"--discovery-poll-interval=5s" ,
69
68
"--token-auth-file" , tokenAuthFile ,
70
69
"--run-virtual-workspaces=true" ,
You can’t perform that action at this time.
0 commit comments