Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

accept pull-secret when we use hack script to create a clsuter #3360

Closed
wants to merge 1 commit into from

Conversation

bitoku
Copy link
Collaborator

@bitoku bitoku commented Jan 19, 2024

Which issue this PR addresses:

N/A

What this PR does / why we need it:

There is no way to specify pull-secret when we use the hack script to create a cluster.
When testing the installer, if the installer image is hosted in quay.io, hive doesn't changes the domains of other images required during installation to ACR domain and it causes Authentication error if it doesn't have the pull-secret.

This pull-secret enables us to access to those images in quay.io and make the installer test convenient.

Test plan for issue:

I was able to create a cluster with ACR domain installer and quay.io domain installer.

Copy link
Collaborator

@mociarain mociarain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Shivkumar13
Copy link
Contributor

LGTM!

@Shivkumar13
Copy link
Contributor

/azp run e2e

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -447,6 +447,7 @@ func (c *Cluster) createCluster(ctx context.Context, vnetResourceGroup, clusterN
ResourceGroupID: fmt.Sprintf("/subscriptions/%s/resourceGroups/%s", c.env.SubscriptionID(), "aro-"+clusterName),
FipsValidatedModules: api.FipsValidatedModulesEnabled,
Version: osClusterVersion,
PullSecret: api.SecureString(os.Getenv("USER_PULL_SECRET")),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we include an accompanying docs change in this PR?

We can update this one with instructions on passing in a pull secret: https://github.com/Azure/ARO-RP/blob/master/docs/deploy-development-rp.md#run-the-rp-and-create-a-cluster

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need it, because USER_PULL_SECRET is already configured in the secret, so we don't need to set it explicitly.

And also it is not meant as a general way of configuring the pull-secret.
If we want to use other pull-secret then we can set it after creation, so we don't need to use this USER_PULL_SECRET variable.
It is only needed when we want to use a installer image stored in other place than ACR.

@bitoku
Copy link
Collaborator Author

bitoku commented Mar 18, 2024

/azp run e2e

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bitoku
Copy link
Collaborator Author

bitoku commented Mar 21, 2024

/azp run e2e

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@bitoku
Copy link
Collaborator Author

bitoku commented Mar 28, 2024

close this PR because it continues to fail E2E.
I think this is because I made the PR from my fork.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants