@@ -10,7 +10,7 @@ import (
1010 "k8s.io/apimachinery/pkg/runtime"
1111 utilrand "k8s.io/apimachinery/pkg/util/rand"
1212 "k8s.io/klog/v2"
13- addonapiv1alpha1 "open-cluster-management.io/api/addon/v1alpha1 "
13+ addonapiv1beta1 "open-cluster-management.io/api/addon/v1beta1 "
1414 fakeaddon "open-cluster-management.io/api/client/addon/clientset/versioned/fake"
1515 clusterv1 "open-cluster-management.io/api/cluster/v1"
1616
@@ -28,7 +28,7 @@ func TestManifestAddonAgent(t *testing.T) {
2828 cases := []struct {
2929 name string
3030 managedCluster * clusterv1.ManagedCluster
31- managedClusterAddOn * addonapiv1alpha1 .ManagedClusterAddOn
31+ managedClusterAddOn * addonapiv1beta1 .ManagedClusterAddOn
3232 configs []runtime.Object
3333 verifyDeployment func (t * testing.T , objs []runtime.Object )
3434 }{
@@ -59,7 +59,7 @@ func TestManifestAddonAgent(t *testing.T) {
5959 {
6060 name : "override image with annotation" ,
6161 managedCluster : addontesting .NewManagedCluster ("cluster1" ),
62- managedClusterAddOn : func () * addonapiv1alpha1 .ManagedClusterAddOn {
62+ managedClusterAddOn : func () * addonapiv1beta1 .ManagedClusterAddOn {
6363 addon := addontesting .NewAddon ("test" , "cluster1" )
6464 addon .Annotations = map [string ]string {
6565 "addon.open-cluster-management.io/values" : `{"Image":"quay.io/test:test"}` }
@@ -88,20 +88,20 @@ func TestManifestAddonAgent(t *testing.T) {
8888 {
8989 name : "with addon deployment config" ,
9090 managedCluster : addontesting .NewManagedCluster ("cluster1" ),
91- managedClusterAddOn : func () * addonapiv1alpha1 .ManagedClusterAddOn {
91+ managedClusterAddOn : func () * addonapiv1beta1 .ManagedClusterAddOn {
9292 addon := addontesting .NewAddon ("test" , "cluster1" )
93- addon .Status .ConfigReferences = []addonapiv1alpha1 .ConfigReference {
93+ addon .Status .ConfigReferences = []addonapiv1beta1 .ConfigReference {
9494 {
95- ConfigGroupResource : addonapiv1alpha1 .ConfigGroupResource {
95+ ConfigGroupResource : addonapiv1beta1 .ConfigGroupResource {
9696 Group : "addon.open-cluster-management.io" ,
9797 Resource : "addondeploymentconfigs" ,
9898 },
99- ConfigReferent : addonapiv1alpha1 .ConfigReferent {
99+ ConfigReferent : addonapiv1beta1 .ConfigReferent {
100100 Namespace : "cluster1" ,
101101 Name : "config" ,
102102 },
103- DesiredConfig : & addonapiv1alpha1 .ConfigSpecHash {
104- ConfigReferent : addonapiv1alpha1 .ConfigReferent {
103+ DesiredConfig : & addonapiv1beta1 .ConfigSpecHash {
104+ ConfigReferent : addonapiv1beta1 .ConfigReferent {
105105 Namespace : "cluster1" ,
106106 Name : "config" ,
107107 },
@@ -112,13 +112,13 @@ func TestManifestAddonAgent(t *testing.T) {
112112 return addon
113113 }(),
114114 configs : []runtime.Object {
115- & addonapiv1alpha1 .AddOnDeploymentConfig {
115+ & addonapiv1beta1 .AddOnDeploymentConfig {
116116 ObjectMeta : metav1.ObjectMeta {
117117 Name : "config" ,
118118 Namespace : "cluster1" ,
119119 },
120- Spec : addonapiv1alpha1 .AddOnDeploymentConfigSpec {
121- NodePlacement : & addonapiv1alpha1 .NodePlacement {
120+ Spec : addonapiv1beta1 .AddOnDeploymentConfigSpec {
121+ NodePlacement : & addonapiv1beta1 .NodePlacement {
122122 Tolerations : tolerations ,
123123 NodeSelector : nodeSelector ,
124124 },
0 commit comments