@@ -90,10 +90,10 @@ type ClusterUpgradeWithRuntimeSDKSpecInput struct {
90
90
// If not specified, this is a no-op.
91
91
PostUpgrade func (managementClusterProxy framework.ClusterProxy , workloadClusterNamespace , workloadClusterName string )
92
92
93
- // ExtensionNamespace is the namespace where the service for the Runtime SDK is located
93
+ // ExtensionServiceNamespace is the namespace where the service for the Runtime SDK is located
94
94
// and is used to configure in the test-namespace scoped ExtensionConfig.
95
- ExtensionNamespace string
96
- // ExtensionServiceName is the service to configure in the test-namespace scoped ExtensionConfig.
95
+ ExtensionServiceNamespace string
96
+ // ExtensionServiceName is the name of the service to configure in the test-namespace scoped ExtensionConfig.
97
97
ExtensionServiceName string
98
98
}
99
99
@@ -131,7 +131,7 @@ func ClusterUpgradeWithRuntimeSDKSpec(ctx context.Context, inputGetter func() Cl
131
131
Expect (input .E2EConfig .Variables ).To (HaveKey (KubernetesVersionUpgradeFrom ))
132
132
Expect (input .E2EConfig .Variables ).To (HaveKey (KubernetesVersionUpgradeTo ))
133
133
134
- Expect (input .ExtensionNamespace ).ToNot (BeEmpty ())
134
+ Expect (input .ExtensionServiceNamespace ).ToNot (BeEmpty ())
135
135
Expect (input .ExtensionServiceName ).ToNot (BeEmpty ())
136
136
137
137
if input .ControlPlaneMachineCount == nil {
@@ -162,7 +162,7 @@ func ClusterUpgradeWithRuntimeSDKSpec(ctx context.Context, inputGetter func() Cl
162
162
By ("Deploy Test Extension ExtensionConfig" )
163
163
164
164
Expect (input .BootstrapClusterProxy .GetClient ().Create (ctx ,
165
- extensionConfig (specName , namespace .Name , input .ExtensionNamespace , input .ExtensionServiceName ))).
165
+ extensionConfig (specName , namespace .Name , input .ExtensionServiceNamespace , input .ExtensionServiceName ))).
166
166
To (Succeed (), "Failed to create the extension config" )
167
167
168
168
By ("Creating a workload cluster; creation waits for BeforeClusterCreateHook to gate the operation" )
@@ -300,7 +300,7 @@ func ClusterUpgradeWithRuntimeSDKSpec(ctx context.Context, inputGetter func() Cl
300
300
AfterEach (func () {
301
301
// Delete the extensionConfig first to ensure the BeforeDeleteCluster hook doesn't block deletion.
302
302
Eventually (func () error {
303
- return input .BootstrapClusterProxy .GetClient ().Delete (ctx , extensionConfig (specName , namespace .Name , input .ExtensionNamespace , input .ExtensionServiceName ))
303
+ return input .BootstrapClusterProxy .GetClient ().Delete (ctx , extensionConfig (specName , namespace .Name , input .ExtensionServiceNamespace , input .ExtensionServiceName ))
304
304
}, 10 * time .Second , 1 * time .Second ).Should (Succeed (), "delete extensionConfig failed" )
305
305
306
306
// Dumps all the resources in the spec Namespace, then cleanups the cluster object and the spec Namespace itself.
@@ -410,23 +410,23 @@ func machineSetPreflightChecksTestHandler(ctx context.Context, c client.Client,
410
410
// We make sure this cluster-wide object does not conflict with others by using a random generated
411
411
// name and a NamespaceSelector selecting on the namespace of the current test.
412
412
// Thus, this object is "namespaced" to the current test even though it's a cluster-wide object.
413
- func extensionConfig (name , namespace , extensionNamespace , extensionServiceName string ) * runtimev1.ExtensionConfig {
413
+ func extensionConfig (name , namespace , extensionServiceNamespace , extensionServiceName string ) * runtimev1.ExtensionConfig {
414
414
return & runtimev1.ExtensionConfig {
415
415
ObjectMeta : metav1.ObjectMeta {
416
416
// Note: We have to use a constant name here as we have to be able to reference it in the ClusterClass
417
417
// when configuring external patches.
418
418
Name : name ,
419
419
Annotations : map [string ]string {
420
420
// Note: this assumes the test extension get deployed in the default namespace defined in its own runtime-extensions-components.yaml
421
- runtimev1 .InjectCAFromSecretAnnotation : fmt .Sprintf ("%s/%s-cert" , extensionNamespace , extensionServiceName ),
421
+ runtimev1 .InjectCAFromSecretAnnotation : fmt .Sprintf ("%s/%s-cert" , extensionServiceNamespace , extensionServiceName ),
422
422
},
423
423
},
424
424
Spec : runtimev1.ExtensionConfigSpec {
425
425
ClientConfig : runtimev1.ClientConfig {
426
426
Service : & runtimev1.ServiceReference {
427
427
Name : extensionServiceName ,
428
428
// Note: this assumes the test extension get deployed in the default namespace defined in its own runtime-extensions-components.yaml
429
- Namespace : extensionNamespace ,
429
+ Namespace : extensionServiceNamespace ,
430
430
},
431
431
},
432
432
NamespaceSelector : & metav1.LabelSelector {
0 commit comments