Skip to content

Commit acb1e52

Browse files
authored
update changelog (#281)
Signed-off-by: ycyaoxdu <[email protected]> Signed-off-by: ycyaoxdu <[email protected]>
1 parent 4f45461 commit acb1e52

File tree

8 files changed

+124
-12
lines changed

8 files changed

+124
-12
lines changed

CHANGELOG.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
[comment]: # ( Copyright Contributors to the Open Cluster Management project )
22
# Release Content
33
## Additions
4-
N/A
4+
- [build: create metrics service when installing hub](https://github.com/open-cluster-management-io/clusteradm/pull/271) @chenz402
5+
- [Added command to create a sample application](https://github.com/open-cluster-management-io/clusteradm/pull/245) @IlonaShishov
6+
- [feat: add command clusteradm get placements](https://github.com/open-cluster-management-io/clusteradm/pull/158) @ycyaoxdu
7+
- [feat: add printer supporting tree, table and yaml format](https://github.com/open-cluster-management-io/clusteradm/pull/174) @ycyaoxdu
58

69
## Breaking Changes
710
N/A
811

912
## Changes
10-
- [Add preflight checks](https://github.com/open-cluster-management-io/clusteradm/pull/250) @Promacanthu
11-
- [use applier repo](https://github.com/open-cluster-management-io/clusteradm/pull/254) @itdove
12-
- [Update README with an additional policy config-policy-controller example](https://github.com/open-cluster-management-io/clusteradm/pull/258) @mikeshng
13-
- [Add dry run for create clusterset](https://github.com/open-cluster-management-io/clusteradm/pull/253) @IlonaShishov
13+
- [allow install hub-addon specify ns](https://github.com/open-cluster-management-io/clusteradm/pull/275) @ycyaoxdu
14+
- [Remove redundant check](https://github.com/open-cluster-management-io/clusteradm/pull/268) @qiujian16
15+
- [Refactor accept for better error message](https://github.com/open-cluster-management-io/clusteradm/pull/270) @qiujian16
16+
- [Remove unnecessary files when join](https://github.com/open-cluster-management-io/clusteradm/pull/266) @qiujian16
1417

1518
## Bug Fixes
16-
- [show not exist when disable not-found addon](https://github.com/open-cluster-management-io/clusteradm/pull/241) @jichenjc
17-
- [Update the Policy Addon controller permissions](https://github.com/open-cluster-management-io/clusteradm/pull/257) @mprahl
18-
- [Load auth plugin for kube client](https://github.com/open-cluster-management-io/clusteradm/pull/263) @qiujian16
19-
- [Fix sa token issue in 1.24](https://github.com/open-cluster-management-io/clusteradm/pull/252) @qiujian16
19+
- [bug fix: apply klusterlet cr after crd applied](https://github.com/open-cluster-management-io/clusteradm/pull/282) @ycyaoxdu
20+
- [sync governance-policy-addon-controller deployment image](https://github.com/open-cluster-management-io/clusteradm/pull/279) @haoqing0110
21+
- [bug fix: cr apply before crd registered](https://github.com/open-cluster-management-io/clusteradm/pull/276) @ycyaoxdu
22+
- [fix: show crd version in command get hub-info](https://github.com/open-cluster-management-io/clusteradm/pull/272) @ycyaoxdu
2023

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.3.1
1+
v0.4.0

pkg/cmd/init/scenario/init/clustermanager.cr.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ spec:
77
registrationImagePullSpec: {{ .Hub.Registry }}/registration:{{ .BundleVersion.RegistrationImageVersion }}
88
workImagePullSpec: {{ .Hub.Registry }}/work:{{ .BundleVersion.WorkImageVersion }}
99
placementImagePullSpec: {{ .Hub.Registry }}/placement:{{ .BundleVersion.PlacementImageVersion }}
10+
registrationConfiguration:
11+
featureGates:
12+
- feature: DefaultClusterSet
13+
mode: Enable

pkg/cmd/init/scenario/init/clustermanager_cluster_role.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ rules:
3333
- apiGroups: ["apiextensions.k8s.io"]
3434
resources: ["customresourcedefinitions"]
3535
verbs: ["create", "get", "list", "update", "watch", "patch", "delete"]
36+
# Allow the registration-operator to update crds status
37+
- apiGroups: ["apiextensions.k8s.io"]
38+
resources: ["customresourcedefinitions/status"]
39+
verbs: ["update", "patch"]
3640
# Allow the registration-operator to create apiservice
3741
- apiGroups: ["apiregistration.k8s.io"]
3842
resources: ["apiservices"]

pkg/cmd/init/scenario/init/clustermanagers.crd.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,54 @@ spec:
121121
description: PlacementImagePullSpec represents the desired image configuration of placement controller/webhook installed on hub.
122122
type: string
123123
default: quay.io/open-cluster-management/placement
124+
registrationConfiguration:
125+
description: RegistrationConfiguration contains the configuration of registration
126+
type: object
127+
properties:
128+
featureGates:
129+
description: "FeatureGates represents the list of feature gates for registration If it is set empty, default feature gates will be used. If it is set, featuregate/Foo is an example of one item in FeatureGates: 1. If featuregate/Foo does not exist, registration-operator will discard it 2. If featuregate/Foo exists and is false by default. It is now possible to set featuregate/Foo=[false|true] 3. If featuregate/Foo exists and is true by default. If a cluster-admin upgrading from 1 to 2 wants to continue having featuregate/Foo=false, \the can set featuregate/Foo=false before upgrading. Let's say the cluster-admin wants featuregate/Foo=false."
130+
type: array
131+
items:
132+
type: object
133+
required:
134+
- feature
135+
properties:
136+
feature:
137+
description: Feature is the key of feature gate. e.g. featuregate/Foo.
138+
type: string
139+
mode:
140+
description: Mode is either Enable, Disable, "" where "" is Disable by default. In Enable mode, a valid feature gate `featuregate/Foo` will be set to "--featuregate/Foo=true". In Disable mode, a valid feature gate `featuregate/Foo` will be set to "--featuregate/Foo=false".
141+
type: string
142+
default: Disable
143+
enum:
144+
- Enable
145+
- Disable
124146
registrationImagePullSpec:
125147
description: RegistrationImagePullSpec represents the desired image of registration controller/webhook installed on hub.
126148
type: string
127149
default: quay.io/open-cluster-management/registration
150+
workConfiguration:
151+
description: WorkConfiguration contains the configuration of work
152+
type: object
153+
properties:
154+
featureGates:
155+
description: "FeatureGates represents the list of feature gates for work If it is set empty, default feature gates will be used. If it is set, featuregate/Foo is an example of one item in FeatureGates: 1. If featuregate/Foo does not exist, registration-operator will discard it 2. If featuregate/Foo exists and is false by default. It is now possible to set featuregate/Foo=[false|true] 3. If featuregate/Foo exists and is true by default. If a cluster-admin upgrading from 1 to 2 wants to continue having featuregate/Foo=false, \the can set featuregate/Foo=false before upgrading. Let's say the cluster-admin wants featuregate/Foo=false."
156+
type: array
157+
items:
158+
type: object
159+
required:
160+
- feature
161+
properties:
162+
feature:
163+
description: Feature is the key of feature gate. e.g. featuregate/Foo.
164+
type: string
165+
mode:
166+
description: Mode is either Enable, Disable, "" where "" is Disable by default. In Enable mode, a valid feature gate `featuregate/Foo` will be set to "--featuregate/Foo=true". In Disable mode, a valid feature gate `featuregate/Foo` will be set to "--featuregate/Foo=false".
167+
type: string
168+
default: Disable
169+
enum:
170+
- Enable
171+
- Disable
128172
workImagePullSpec:
129173
description: WorkImagePullSpec represents the desired image configuration of work controller/webhook installed on hub.
130174
type: string

pkg/cmd/join/scenario/join/klusterlets.cr.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,14 @@ spec:
1212
{{ if .Klusterlet.APIServer }}
1313
- url: {{ .Klusterlet.APIServer }}
1414
{{ end }}
15+
registrationConfiguration:
16+
featureGates:
17+
- feature: AddonManagement
18+
mode: Enable
19+
# Uncomment the following configuration lines to add hostAliases for hub api server,
20+
# if the server field in your hub cluster kubeconfig is a domain name instead of an ipv4 address.
21+
# For example, https://xxx.yyy.zzz.
22+
# This configuration is used for registration-agent and work-agent to communicate with hub api server.
23+
# hubApiServerHostAlias:
24+
# ip: "1.2.3.4"
25+
# hostname: "xxx.yyy.zzz"

pkg/cmd/join/scenario/join/klusterlets.crd.yaml

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,26 @@ spec:
5555
url:
5656
description: URL is the url of apiserver endpoint of the managed cluster.
5757
type: string
58+
hubApiServerHostAlias:
59+
description: HubApiServerHostAlias contains the host alias for hub api server. registration-agent and work-agent will use it to communicate with hub api server.
60+
type: object
61+
required:
62+
- hostname
63+
- ip
64+
properties:
65+
hostname:
66+
description: Hostname for the above IP address.
67+
type: string
68+
pattern: ^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$
69+
ip:
70+
description: IP address of the host file entry.
71+
type: string
72+
pattern: ^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$
5873
namespace:
59-
description: 'Namespace is the namespace to deploy the agent. The namespace must have a prefix of "open-cluster-management-", and if it is not set, the namespace of "open-cluster-management-agent" is used to deploy agent. Note: in Detach mode, this field will be **ignored**, the agent will be deployed to the namespace with the same name as klusterlet.'
74+
description: Namespace is the namespace to deploy the agent on the managed cluster. The namespace must have a prefix of "open-cluster-management-", and if it is not set, the namespace of "open-cluster-management-agent" is used to deploy agent. In addition, the add-ons are deployed to the namespace of "{Namespace}-addon". In the Hosted mode, this namespace still exists on the managed cluster to contain necessary resources, like service accounts, roles and rolebindings, while the agent is deployed to the namespace with the same name as klusterlet on the management cluster.
6075
type: string
76+
maxLength: 63
77+
pattern: ^open-cluster-management-[-a-z0-9]*[a-z0-9]$
6178
nodePlacement:
6279
description: NodePlacement enables explicit control over the scheduling of the deployed pods.
6380
type: object
@@ -90,6 +107,28 @@ spec:
90107
value:
91108
description: Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
92109
type: string
110+
registrationConfiguration:
111+
description: RegistrationConfiguration contains the configuration of registration
112+
type: object
113+
properties:
114+
featureGates:
115+
description: "FeatureGates represents the list of feature gates for registration If it is set empty, default feature gates will be used. If it is set, featuregate/Foo is an example of one item in FeatureGates: 1. If featuregate/Foo does not exist, registration-operator will discard it 2. If featuregate/Foo exists and is false by default. It is now possible to set featuregate/Foo=[false|true] 3. If featuregate/Foo exists and is true by default. If a cluster-admin upgrading from 1 to 2 wants to continue having featuregate/Foo=false, \the can set featuregate/Foo=false before upgrading. Let's say the cluster-admin wants featuregate/Foo=false."
116+
type: array
117+
items:
118+
type: object
119+
required:
120+
- feature
121+
properties:
122+
feature:
123+
description: Feature is the key of feature gate. e.g. featuregate/Foo.
124+
type: string
125+
mode:
126+
description: Mode is either Enable, Disable, "" where "" is Disable by default. In Enable mode, a valid feature gate `featuregate/Foo` will be set to "--featuregate/Foo=true". In Disable mode, a valid feature gate `featuregate/Foo` will be set to "--featuregate/Foo=false".
127+
type: string
128+
default: Disable
129+
enum:
130+
- Enable
131+
- Disable
93132
registrationImagePullSpec:
94133
description: RegistrationImagePullSpec represents the desired image configuration of registration agent. quay.io/open-cluster-management.io/registration:latest will be used if unspecified.
95134
type: string

pkg/helpers/version/version.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type VersionBundle struct {
1313
Operator string
1414
}
1515

16-
var defaultBundleVersion = "0.8.0"
16+
var defaultBundleVersion = "0.9.0"
1717

1818
func GetDefaultBundleVersion() string {
1919
return defaultBundleVersion
@@ -64,6 +64,13 @@ func GetVersionBundle(version string) (VersionBundle, error) {
6464
Operator: "v0.8.0",
6565
}
6666

67+
versionBundleList["0.9.0"] = VersionBundle{
68+
Registration: "v0.9.0",
69+
Placement: "v0.9.0",
70+
Work: "v0.9.0",
71+
Operator: "v0.9.0",
72+
}
73+
6774
// default
6875
versionBundleList["default"] = versionBundleList[defaultBundleVersion]
6976

0 commit comments

Comments
 (0)