Skip to content

Commit

Permalink
Merge pull request #1115 from zexi/automated-cherry-pick-of-#1114-ups…
Browse files Browse the repository at this point in the history
…tream-release-3.12

Automated cherry pick of #1114: fix(operator): ensure cloud user of host deployer
  • Loading branch information
zexi authored Jul 23, 2024
2 parents 7f77905 + 413a9d6 commit daa6164
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/manager/component/host-deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ func (m *hostDeployerManager) Sync(oc *v1alpha1.OnecloudCluster) error {
return syncComponent(m, oc, oc.Spec.HostDeployer.Disable, "")
}

func (m *hostDeployerManager) getCloudUser(cfg *v1alpha1.OnecloudClusterConfig) *v1alpha1.CloudUser {
return &cfg.HostAgent.CloudUser
}

func (m *hostDeployerManager) getConfigMap(oc *v1alpha1.OnecloudCluster, cfg *v1alpha1.OnecloudClusterConfig, zone string) (*corev1.ConfigMap, bool, error) {
if oc.Spec.ProductVersion == v1alpha1.ProductVersionCMP {
return newHostManager(m.ComponentManager).(*hostManager).getConfigMap(oc, cfg, zone)
Expand Down

0 comments on commit daa6164

Please sign in to comment.