diff --git a/CHANGELOG.md b/CHANGELOG.md index d574b94aa..85f825205 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,53 +1,20 @@ [comment]: # ( Copyright Contributors to the Open Cluster Management project ) # Release Content ## Additions -- [deploy work to placement selected clusters](https://github.com/open-cluster-management-io/clusteradm/pull/247) @haoqing0110 -- [add test that check manual bootstrap token](https://github.com/open-cluster-management-io/clusteradm/pull/191) @mgold1234 -- [clusteradm: provide darwin arm64 binary](https://github.com/open-cluster-management-io/clusteradm/pull/204) @SataQiu -- [Chore: Introducing golangci-lint - make verify](https://github.com/open-cluster-management-io/clusteradm/pull/213) @yue9944882 -- [Add proxy kubectl command](https://github.com/open-cluster-management-io/clusteradm/pull/219) @xuezhaojun -- [Doc: Adding more install approaches](https://github.com/open-cluster-management-io/clusteradm/pull/225) @yue9944882 -- [Add the governance-policy-addon-controller](https://github.com/open-cluster-management-io/clusteradm/pull/229) @dhaiducek +N/A ## Breaking Changes N/A ## Changes -- [Add yue9944882 as approver and ycyaoxdu as reviewer](https://github.com/open-cluster-management-io/clusteradm/pull/193) @qiujian16 -- [upgrade to latest openshift/library-go](https://github.com/open-cluster-management-io/clusteradm/pull/194) @itdove -- [Upgrade to ginkgo v2](https://github.com/open-cluster-management-io/clusteradm/pull/203) @itdove -- [Stop using the GitHub API in the install script](https://github.com/open-cluster-management-io/clusteradm/pull/224) @mprahl -- [Add context](https://github.com/open-cluster-management-io/clusteradm/pull/244) @itdove -- [Update app addon CRDs](https://github.com/open-cluster-management-io/clusteradm/pull/246) @mikeshng +- [Add preflight checks](https://github.com/open-cluster-management-io/clusteradm/pull/250) @Promacanthu +- [use applier repo](https://github.com/open-cluster-management-io/clusteradm/pull/254) @itdove +- [Update README with an additional policy config-policy-controller example](https://github.com/open-cluster-management-io/clusteradm/pull/258) @mikeshng +- [Add dry run for create clusterset](https://github.com/open-cluster-management-io/clusteradm/pull/253) @IlonaShishov ## Bug Fixes -- [modify: help information](https://github.com/open-cluster-management-io/clusteradm/pull/189) @ycyaoxdu -- [add change line to make output clear](https://github.com/open-cluster-management-io/clusteradm/pull/192) @jichenjc -- [fix: use poll method to monitor namespace deletion](https://github.com/open-cluster-management-io/clusteradm/pull/195) @ycyaoxdu -- [Add not found into output when deleted work not found](https://github.com/open-cluster-management-io/clusteradm/pull/197) @jichenjc -- [add copyright check for .mk file](https://github.com/open-cluster-management-io/clusteradm/pull/199) @ycyaoxdu -- [Add WithCache and getCache](https://github.com/open-cluster-management-io/clusteradm/pull/200) @itdove -- [Use cache in ApplyCustomResources](https://github.com/open-cluster-management-io/clusteradm/pull/202) @itdove -- [Make some Variable and Method to be at public scope](https://github.com/open-cluster-management-io/clusteradm/pull/206) @mgold1234 -- [change method and veriables to public scope in addon command.](https://github.com/open-cluster-management-io/clusteradm/pull/207) @mgold1234 -- [cluster_name has been converted to cluster-name](https://github.com/open-cluster-management-io/clusteradm/pull/209) @panguicai008 -- [fix clusteradm addon enable command unknown flag: --names](https://github.com/open-cluster-management-io/clusteradm/pull/211) @panguicai008 -- [fix clusteradm join usage example](https://github.com/open-cluster-management-io/clusteradm/pull/212) @panguicai008 -- [add bundler version into output](https://github.com/open-cluster-management-io/clusteradm/pull/215) @jichenjc -- [change method and veriables to public scope in clean command.](https://github.com/open-cluster-management-io/clusteradm/pull/216) @mgold1234 -- [change method and veriables to public scope in clusterset_bind command.](https://github.com/open-cluster-management-io/clusteradm/pull/217) @mgold1234 -- [fix: correct spelling of output table](https://github.com/open-cluster-management-io/clusteradm/pull/218) @vbelouso -- [change method and veriables to public scope in clusetset_set command.](https://github.com/open-cluster-management-io/clusteradm/pull/220) @mgold1234 -- [change method and veriables to public scope in clusetset_unbind command.](https://github.com/open-cluster-management-io/clusteradm/pull/221) @mgold1234 -- [Update PolicySet CRD to match propagator](https://github.com/open-cluster-management-io/clusteradm/pull/222) @JustinKuli -- [change method and veriables to public scope in create command.](https://github.com/open-cluster-management-io/clusteradm/pull/223) @mgold1234 -- [inogre the vscode caches](https://github.com/open-cluster-management-io/clusteradm/pull/226) @xauthulei -- [Fix init messaging](https://github.com/open-cluster-management-io/clusteradm/pull/227) @dhaiducek -- [Update: proxy kubectl logs](https://github.com/open-cluster-management-io/clusteradm/pull/230) @xuezhaojun -- [Consistent flags/Fix spelling](https://github.com/open-cluster-management-io/clusteradm/pull/231) @dhaiducek -- [update wording to make error clear](https://github.com/open-cluster-management-io/clusteradm/pull/232) @jichenjc -- [prevent delete of default clusterset](https://github.com/open-cluster-management-io/clusteradm/pull/233) @jichenjc -- [show controller image in ./clusteradm get klusterlet-info](https://github.com/open-cluster-management-io/clusteradm/pull/237) @jichenjc -- [Add dry run for delete clusterset](https://github.com/open-cluster-management-io/clusteradm/pull/239) @jichenjc -- [Force developers to call Build()](https://github.com/open-cluster-management-io/clusteradm/pull/242) @itdove -- [Force developers to call Build()](https://github.com/open-cluster-management-io/clusteradm/pull/243) @itdove +- [show not exist when disable not-found addon](https://github.com/open-cluster-management-io/clusteradm/pull/241) @jichenjc +- [Update the Policy Addon controller permissions](https://github.com/open-cluster-management-io/clusteradm/pull/257) @mprahl +- [Load auth plugin for kube client](https://github.com/open-cluster-management-io/clusteradm/pull/263) @qiujian16 +- [Fix sa token issue in 1.24](https://github.com/open-cluster-management-io/clusteradm/pull/252) @qiujian16 + diff --git a/VERSION.txt b/VERSION.txt index 268b0334e..937cd7846 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -v0.3.0 +v0.3.1 diff --git a/test/e2e/clusteradm/joinhubscenario_bootstrsptoken_test.go b/test/e2e/clusteradm/joinhubscenario_bootstrsptoken_test.go index 18bbb56cb..47ff3c82c 100644 --- a/test/e2e/clusteradm/joinhubscenario_bootstrsptoken_test.go +++ b/test/e2e/clusteradm/joinhubscenario_bootstrsptoken_test.go @@ -22,6 +22,7 @@ var _ = ginkgo.Describe("test clusteradm with bootstrap token", func() { err = e2e.Clusteradm().Init( "--use-bootstrap-token", "--context", e2e.Cluster().Hub().Context(), + "--bundle-version=latest", ) gomega.Expect(err).NotTo(gomega.HaveOccurred(), "clusteradm init error") @@ -31,6 +32,7 @@ var _ = ginkgo.Describe("test clusteradm with bootstrap token", func() { "--hub-token", e2e.CommandResult().Token(), "--hub-apiserver", e2e.CommandResult().Host(), "--cluster-name", e2e.Cluster().ManagedCluster1().Name(), "--wait", + "--bundle-version=latest", "--force-internal-endpoint-lookup", ) gomega.Expect(err).NotTo(gomega.HaveOccurred(), "managedcluster1 join error") @@ -58,6 +60,7 @@ var _ = ginkgo.Describe("test clusteradm with bootstrap token", func() { "--hub-token", e2e.CommandResult().Token(), "--hub-apiserver", e2e.CommandResult().Host(), "--cluster-name", e2e.Cluster().ManagedCluster2().Name(), "--wait", + "--bundle-version=latest", "--force-internal-endpoint-lookup", ) gomega.Expect(err).NotTo(gomega.HaveOccurred(), "managedcluster2 join error") diff --git a/test/e2e/clusteradm/joinhubscenario_sa_test.go b/test/e2e/clusteradm/joinhubscenario_sa_test.go index 8973edd3d..1661916b9 100644 --- a/test/e2e/clusteradm/joinhubscenario_sa_test.go +++ b/test/e2e/clusteradm/joinhubscenario_sa_test.go @@ -21,6 +21,7 @@ var _ = ginkgo.Describe("test clusteradm with service account", func() { ginkgo.By("init hub with service account") err = e2e.Clusteradm().Init( "--context", e2e.Cluster().Hub().Context(), + "--bundle-version=latest", ) gomega.Expect(err).NotTo(gomega.HaveOccurred(), "clusteradm init error") @@ -30,6 +31,7 @@ var _ = ginkgo.Describe("test clusteradm with service account", func() { "--hub-token", e2e.CommandResult().Token(), "--hub-apiserver", e2e.CommandResult().Host(), "--cluster-name", e2e.Cluster().ManagedCluster1().Name(), "--wait", + "--bundle-version=latest", "--force-internal-endpoint-lookup", ) gomega.Expect(err).NotTo(gomega.HaveOccurred(), "managedcluster1 join error") @@ -54,6 +56,7 @@ var _ = ginkgo.Describe("test clusteradm with service account", func() { "--hub-token", e2e.CommandResult().Token(), "--hub-apiserver", e2e.CommandResult().Host(), "--cluster-name", e2e.Cluster().ManagedCluster2().Name(), "--wait", + "--bundle-version=latest", "--force-internal-endpoint-lookup", ) gomega.Expect(err).NotTo(gomega.HaveOccurred(), "managedcluster2 join error") diff --git a/test/e2e/clusteradm/joinhubscenario_skip_approve_test.go b/test/e2e/clusteradm/joinhubscenario_skip_approve_test.go index 50df76928..991edf204 100644 --- a/test/e2e/clusteradm/joinhubscenario_skip_approve_test.go +++ b/test/e2e/clusteradm/joinhubscenario_skip_approve_test.go @@ -28,6 +28,7 @@ var _ = ginkgo.Describe("test clusteradm with manual bootstrap token", func() { err = e2e.Clusteradm().Init( "--timeout", "400", "--context", e2e.Cluster().Hub().Context(), + "--bundle-version=latest", ) gomega.Expect(err).NotTo(gomega.HaveOccurred(), "clusteradm init error") time.Sleep(1000000) @@ -71,6 +72,7 @@ var _ = ginkgo.Describe("test clusteradm with manual bootstrap token", func() { "--hub-apiserver", e2e.CommandResult().Host(), "--force-internal-endpoint-lookup", "--cluster-name", e2e.Cluster().ManagedCluster1().Name(), + "--bundle-version=latest", "--wait", ) diff --git a/test/e2e/clusteradm/joinhubscenario_timeout_test.go b/test/e2e/clusteradm/joinhubscenario_timeout_test.go index 61effb930..aa617c7db 100644 --- a/test/e2e/clusteradm/joinhubscenario_timeout_test.go +++ b/test/e2e/clusteradm/joinhubscenario_timeout_test.go @@ -21,6 +21,7 @@ var _ = ginkgo.Describe("test clusteradm with timeout", func() { err = e2e.Clusteradm().Init( "--timeout", "400", "--context", e2e.Cluster().Hub().Context(), + "--bundle-version=latest", ) gomega.Expect(err).NotTo(gomega.HaveOccurred(), "clusteradm init error") @@ -30,6 +31,7 @@ var _ = ginkgo.Describe("test clusteradm with timeout", func() { "--hub-token", e2e.CommandResult().Token(), "--hub-apiserver", e2e.CommandResult().Host(), "--cluster-name", e2e.Cluster().ManagedCluster1().Name(), "--wait", + "--bundle-version=latest", "--force-internal-endpoint-lookup", ) gomega.Expect(err).NotTo(gomega.HaveOccurred(), "managedcluster1 join error") diff --git a/test/e2e/clusteradm/upgrade_test.go b/test/e2e/clusteradm/upgrade_test.go index c3671170b..712ba1720 100644 --- a/test/e2e/clusteradm/upgrade_test.go +++ b/test/e2e/clusteradm/upgrade_test.go @@ -10,27 +10,29 @@ var _ = ginkgo.Describe("test clusteradm upgrade clustermanager and Klusterlets" ginkgo.BeforeAll(func() { ginkgo.By("reset e2e environment...") - err := e2e.ResetEnv() + err := e2e.ClearEnv() + gomega.Expect(err).NotTo(gomega.HaveOccurred()) + err = e2e.ResetEnv() gomega.Expect(err).NotTo(gomega.HaveOccurred()) }) var err error - ginkgo.It("run cluster manager upgrade version 0.8.0 ", func() { + ginkgo.It("run cluster manager upgrade version latest ", func() { err = e2e.Clusteradm().Upgrade( "clustermanager", - "--bundle-version", "0.8.0", + "--bundle-version", "latest", "--context", e2e.Cluster().Hub().Context(), ) - }) - gomega.Expect(err).NotTo(gomega.HaveOccurred(), "clusteradm upgrade error") - ginkgo.It("run klusterlet upgrade version 0.8.0 ", func() { + gomega.Expect(err).NotTo(gomega.HaveOccurred(), "clusteradm upgrade error") + err = e2e.Clusteradm().Upgrade( "klusterlet", - "--bundle-version", "0.8.0", + "--bundle-version", "latest", "--context", e2e.Cluster().ManagedCluster1().Context(), ) + + gomega.Expect(err).NotTo(gomega.HaveOccurred(), "klusterlet upgrade error") }) - gomega.Expect(err).NotTo(gomega.HaveOccurred(), "klusterlet upgrade error") }) diff --git a/test/e2e/util/util.go b/test/e2e/util/util.go index a9da0c361..258f91d95 100644 --- a/test/e2e/util/util.go +++ b/test/e2e/util/util.go @@ -129,6 +129,7 @@ func (tec *TestE2eConfig) ResetEnv() error { err := tec.Clusteradm().Init( "--context", tec.Cluster().Hub().Context(), "--use-bootstrap-token", + "--bundle-version=latest", "--wait", ) if err != nil {