@@ -256,13 +256,14 @@ func installLicenseSecret(clientset *kubernetes.Clientset, licenseSecret corev1.
256256 }
257257 appSlug = a .Slug
258258
259- // in embedded cluster, the installation is considered automated if a config values file has been provided by the user.
259+ configValues , err := kotsadmconfig .ReadConfigValuesFromInClusterSecret ()
260+ if err != nil {
261+ return errors .Wrap (err , "failed to read config values from in cluster" )
262+ }
263+
260264 isAutomated := true
261265 if util .IsEmbeddedCluster () {
262- configValues , err := kotsadmconfig .ReadConfigValuesFromInClusterSecret ()
263- if err != nil {
264- return errors .Wrap (err , "failed to read config values from in cluster" )
265- }
266+ // in embedded cluster, the installation is considered automated if a config values file has been provided by the user.
266267 isAutomated = configValues != ""
267268 }
268269
@@ -317,6 +318,7 @@ func installLicenseSecret(clientset *kubernetes.Clientset, licenseSecret corev1.
317318 RegistryPassword : registryConfig .Password ,
318319 RegistryIsReadOnly : instParams .RegistryIsReadOnly ,
319320 IsAutomated : isAutomated ,
321+ ConfigValues : configValues ,
320322 SkipPreflights : instParams .SkipPreflights ,
321323 SkipCompatibilityCheck : instParams .SkipCompatibilityCheck ,
322324 }
@@ -336,6 +338,7 @@ func installLicenseSecret(clientset *kubernetes.Clientset, licenseSecret corev1.
336338 },
337339 UpstreamURI : upstreamURI ,
338340 IsAutomated : isAutomated ,
341+ ConfigValues : configValues ,
339342 SkipPreflights : instParams .SkipPreflights ,
340343 SkipCompatibilityCheck : instParams .SkipCompatibilityCheck ,
341344 }
0 commit comments