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

Support SDT deployment via CSV #130

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Support SDT deployment via CSV #130

merged 1 commit into from
Sep 18, 2024

Conversation

baoy1
Copy link
Contributor

@baoy1 baoy1 commented Sep 12, 2024

Description

  • Add SDT related structs
  • Add RenewInstallationCookie to get valid cookie that can be used during cluster deployment
  • Replace cookie dir /home to user's home directory to avoid the case that user doesn't have write permission to /home or OS is Windows

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Backward compatibility is not broken

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

  • UT TestRenewInstallationCookie
    image

deploy.go Outdated
@@ -978,6 +987,47 @@ func (gc *GatewayClient) MoveToIdlePhase() (*types.GatewayResponse, error) {
return &gatewayResponse, nil
}

// RenewInstallationCookie is used to renew the installation cookie, i.e. LEGACYGWCOOKIE.
// Using the same LEGACYGWCOOKIE ensures that the REST requets are sent to the same GW pod.
Copy link
Collaborator

Choose a reason for hiding this comment

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

requests

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! Fixed.

- Add SDT related structs
- Add RenewInstallationCookie to get valid cookie that can be used
  during cluster deployment
- Replace cookie dir `/home` to user's home directory to avoid the case
  that user doesn't have write permission to `/home` or OS is Windows
@baoy1 baoy1 merged commit cb49451 into main Sep 18, 2024
4 checks passed
@baoy1 baoy1 deleted the sdt-csv-deploy branch October 12, 2024 11:51
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.

3 participants