Skip to content

Commit 9d91e61

Browse files
authored
Upgrade api deps to 0.16.0 and Kubernetes to 0.31.4 (#149)
* Upgrade api deps to 0.16.0 and Kubernetes to 0.31.4 Signed-off-by: clyang82 <[email protected]> * Fix verify issues Signed-off-by: clyang82 <[email protected]> * Fix cannot start api server issue Signed-off-by: clyang82 <[email protected]> * use msa 0.8.0 Signed-off-by: clyang82 <[email protected]> --------- Signed-off-by: clyang82 <[email protected]>
1 parent 94ad9c4 commit 9d91e61

32 files changed

+2464
-2170
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ check: check-copyright
2222
.PHONY: check
2323

2424
verify-gocilint:
25-
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.53.2
25+
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.64.8
2626
go vet ./...
2727
golangci-lint run --timeout=3m ./...
2828
.PHONY: verify-gocilint

charts/multicluster-controlplane/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.3.0
18+
version: 0.7.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to
2222
# follow Semantic Versioning. They should reflect the version the application is using.
2323
# It is recommended to use it with quotes.
24-
appVersion: "0.3.0"
24+
appVersion: "0.7.0"

charts/multicluster-controlplane/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
- "--feature-gates={{ .Values.features }}"
2828
{{- end }}
2929
{{- if .Values.autoApprovalBootstrapUsers }}
30-
- "--cluster-auto-approval-users={{ .Values.autoApprovalBootstrapUsers }}"
30+
- "--auto-approved-csr-users={{ .Values.autoApprovalBootstrapUsers }}"
3131
{{- end }}
3232
{{- if eq .Values.enableSelfManagement true }}
3333
- "--self-management"

go.mod

Lines changed: 120 additions & 93 deletions
Large diffs are not rendered by default.

go.sum

Lines changed: 259 additions & 198 deletions
Large diffs are not rendered by default.

hack/start-multicluster-controlplane.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function start_apiserver {
7979
"${GO_OUT}/multicluster-controlplane" \
8080
"server" \
8181
--controlplane-config-dir="${CONFIG_DIR}" \
82-
--cluster-auto-approval-users="${BOOTSTRAP_USERS}" \
82+
--auto-approved-csr-users="${BOOTSTRAP_USERS}" \
8383
--feature-gates="${FEATURE_GATES}" >"${APISERVER_LOG}" 2>&1 &
8484

8585
APISERVER_PID=$!
@@ -89,7 +89,7 @@ function start_apiserver {
8989
|| { echo "check apiserver logs: ${APISERVER_LOG}" ; exit 1 ; }
9090

9191
echo "use 'kubectl --kubeconfig=${DATA_DIR}/cert/kube-aggregator.kubeconfig' to access the controlplane"
92-
echo "$APISERVER_PID" > "${REPO_DIR}/_output/controlplane/controlpane_pid"
92+
echo "$APISERVER_PID" > "${REPO_DIR}/_output/controlplane/controlplane_pid"
9393
chmod a+r ${DATA_DIR}/cert/kube-aggregator.kubeconfig
9494
}
9595

pkg/cmd/controller/controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import (
1717
mcfeature "open-cluster-management.io/multicluster-controlplane/pkg/feature"
1818
"open-cluster-management.io/multicluster-controlplane/pkg/servers"
1919
"open-cluster-management.io/multicluster-controlplane/pkg/servers/options"
20+
"open-cluster-management.io/multicluster-controlplane/pkg/util"
2021
)
2122

2223
func init() {
@@ -48,7 +49,7 @@ func NewController() *cobra.Command {
4849
return err
4950
}
5051

51-
return servers.NewServer(*options).Start(stopChan)
52+
return servers.NewServer(*options).Start(util.GoContext(stopChan))
5253
},
5354
Args: func(cmd *cobra.Command, args []string) error {
5455
for _, arg := range args {

pkg/controllers/bootstrap/crds.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ import (
2323
)
2424

2525
var baseCRDs = []string{
26+
"crds/0000_00_addon.open-cluster-management.io_clustermanagementaddons.crd.yaml",
2627
"crds/0000_00_clusters.open-cluster-management.io_managedclusters.crd.yaml",
2728
"crds/0000_00_clusters.open-cluster-management.io_managedclustersets.crd.yaml",
28-
"crds/0000_01_clusters.open-cluster-management.io_managedclustersetbindings.crd.yaml",
29+
"crds/0000_00_multicluster.x-k8s.io_clusterprofiles.crd.yaml",
2930
"crds/0000_00_work.open-cluster-management.io_manifestworks.crd.yaml",
3031
"crds/0000_00_work.open-cluster-management.io_manifestworkreplicasets.crd.yaml",
31-
"crds/0000_00_addon.open-cluster-management.io_clustermanagementaddons.crd.yaml",
3232
"crds/0000_01_addon.open-cluster-management.io_managedclusteraddons.crd.yaml",
33+
"crds/0000_01_clusters.open-cluster-management.io_managedclustersetbindings.crd.yaml",
3334
"crds/0000_02_addon.open-cluster-management.io_addondeploymentconfigs.crd.yaml",
34-
"crds/0000_03_addon.open-cluster-management.io_addontemplates.crd.yaml",
3535
"crds/0000_02_clusters.open-cluster-management.io_placements.crd.yaml",
36+
"crds/0000_03_addon.open-cluster-management.io_addontemplates.crd.yaml",
3637
"crds/0000_03_clusters.open-cluster-management.io_placementdecisions.crd.yaml",
3738
"crds/0000_05_clusters.open-cluster-management.io_addonplacementscores.crd.yaml",
3839
"crds/0000_06_authentication.open-cluster-management.io_managedserviceaccounts_crd.yaml",
39-
"crds/multicluster.x-k8s.io_clusterprofiles.yaml",
4040
}
4141

4242
var ocmCRDs = []string{
@@ -53,6 +53,7 @@ var ocmCRDs = []string{
5353
"placements.cluster.open-cluster-management.io",
5454
"addonplacementscores.cluster.open-cluster-management.io",
5555
"managedserviceaccounts.authentication.open-cluster-management.io",
56+
"clusterprofiles.multicluster.x-k8s.io",
5657
}
5758

5859
var (

0 commit comments

Comments
 (0)