Skip to content

Commit d89c9a2

Browse files
committed
Register addon v1alpha1 and v1beta1 APIs to scheme
Signed-off-by: RokibulHasan7 <mdrokibulhasan@appscode.com>
1 parent aafd761 commit d89c9a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/manager/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ import (
3939
"open-cluster-management.io/addon-framework/pkg/addonfactory"
4040
agentapi "open-cluster-management.io/addon-framework/pkg/agent"
4141
"open-cluster-management.io/api/addon/v1alpha1"
42+
addonv1alpha1 "open-cluster-management.io/api/addon/v1alpha1"
43+
addonv1beta1 "open-cluster-management.io/api/addon/v1beta1"
4244
clusterv1 "open-cluster-management.io/api/cluster/v1"
4345
clusterv1alpha1 "open-cluster-management.io/api/cluster/v1alpha1"
4446
workv1 "open-cluster-management.io/api/work/v1"
@@ -54,6 +56,8 @@ func init() {
5456
_ = clusterv1alpha1.Install(scheme)
5557
_ = apiregistrationv1.AddToScheme(scheme)
5658
_ = monitoringv1.AddToScheme(scheme)
59+
_ = addonv1alpha1.Install(scheme)
60+
_ = addonv1beta1.Install(scheme)
5761
}
5862

5963
func GetConfigValues(kc client.Client, opts *ManagerOptions, cs *certstore.CertStore) addonfactory.GetValuesFunc {

0 commit comments

Comments
 (0)