Skip to content

Commit a843d56

Browse files
authored
Merge pull request #961 from sttts/sttts-auto-publish
workloads: make --auto-publish-apis default to on
2 parents 9a804fa + 650ee4f commit a843d56

File tree

9 files changed

+3
-10
lines changed

9 files changed

+3
-10
lines changed

contrib/demo/ingress-script/startKcp.sh

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ fi
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

3938
wait_command "test -f ${KCP_DATA_DIR}/kcp-started"

contrib/demo/kubecon-script/startKcp.sh

-1
Original file line numberDiff line numberDiff 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

3130
wait_command "test -f ${KCP_DATA_DIR}/kcp-started"

contrib/demo/prototype2-script/startKcp.sh

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ fi
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 \

contrib/demo/prototype3-script/startKcp.sh

-1
Original file line numberDiff line numberDiff 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 \

contrib/demo/sharding/run.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ done
5757
echo
5858

5959
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 &
6161

6262
echo "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 &
@@ -81,7 +81,7 @@ done
8181
echo
8282

8383
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 &
8585

8686
"${KCP_ROOT}"/contrib/demo/sharding/add-cluster.py ".kcp1/admin.kubeconfig" ".kcp2/admin.kubeconfig"
8787
touch .ready

contrib/demo/workspaceKubectlPlugin-script/startKcp.sh

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ setupTraps "$0"
2626
KUBECONFIG=${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

manifest/kcp.yaml

-1
Original file line numberDiff line numberDiff 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

pkg/reconciler/apis/apiresource/startup.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
// DefaultOptions are the default options for the apiresource controller.
2626
func DefaultOptions() *Options {
2727
return &Options{
28-
AutoPublishAPIs: false,
28+
AutoPublishAPIs: true,
2929
// Consumed by server instantiation
3030
NumThreads: runtime.NumCPU(),
3131
}

test/e2e/framework/fixture.go

-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ func TestServerArgs() []string {
6464
// start a test server with the given token auth file.
6565
func 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",

0 commit comments

Comments
 (0)