Skip to content

Commit

Permalink
Merge pull request #2507 from Patryk-Stefanski/HOSTEDCP-1981
Browse files Browse the repository at this point in the history
HOSTEDCP-1981: Add controlplane cli image envar for use with hypershift
  • Loading branch information
openshift-merge-bot[bot] authored Sep 30, 2024
2 parents 4eec256 + 9a56d23 commit 1773dcf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/network/cloud_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ func renderCloudNetworkConfigController(conf *operv1.NetworkSpec, bootstrapResul
manifestDirs = append(manifestDirs, filepath.Join(manifestDir, "cloud-network-config-controller/common"))
if hcpCfg := hypershift.NewHyperShiftConfig(); hcpCfg.Enabled {
data.Data["CLIImage"] = os.Getenv("CLI_IMAGE")
if os.Getenv("CLI_CONTROL_PLANE_IMAGE") != "" {
data.Data["CLIImage"] = os.Getenv("CLI_CONTROL_PLANE_IMAGE")
}
data.Data["TokenMinterImage"] = os.Getenv("TOKEN_MINTER_IMAGE")
data.Data["TokenAudience"] = os.Getenv("TOKEN_AUDIENCE")
data.Data["ManagementClusterName"] = names.ManagementClusterName
Expand Down
3 changes: 3 additions & 0 deletions pkg/network/multus_admission_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ func renderMultusAdmissonControllerConfig(manifestDir string, externalControlPla
data.Data["KubernetesServiceHost"] = bootstrapResult.Infra.APIServers[bootstrap.APIServerDefaultLocal].Host
data.Data["KubernetesServicePort"] = bootstrapResult.Infra.APIServers[bootstrap.APIServerDefaultLocal].Port
data.Data["CLIImage"] = os.Getenv("CLI_IMAGE")
if os.Getenv("CLI_CONTROL_PLANE_IMAGE") != "" {
data.Data["CLIImage"] = os.Getenv("CLI_CONTROL_PLANE_IMAGE")
}
data.Data["TokenMinterImage"] = os.Getenv("TOKEN_MINTER_IMAGE")
data.Data["TokenAudience"] = os.Getenv("TOKEN_AUDIENCE")
data.Data["RunAsUser"] = hsc.RunAsUser
Expand Down
3 changes: 3 additions & 0 deletions pkg/network/node_identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ func renderNetworkNodeIdentity(conf *operv1.NetworkSpec, bootstrapResult *bootst
}
data.Data["ReleaseImage"] = hcpCfg.ReleaseImage
data.Data["CLIImage"] = os.Getenv("CLI_IMAGE")
if os.Getenv("CLI_CONTROL_PLANE_IMAGE") != "" {
data.Data["CLIImage"] = os.Getenv("CLI_CONTROL_PLANE_IMAGE")
}
data.Data["TokenMinterImage"] = os.Getenv("TOKEN_MINTER_IMAGE")
data.Data["TokenAudience"] = os.Getenv("TOKEN_AUDIENCE")
data.Data["HCPNodeSelector"] = bootstrapResult.Infra.HostedControlPlane.NodeSelector
Expand Down

0 comments on commit 1773dcf

Please sign in to comment.