-
Notifications
You must be signed in to change notification settings - Fork 72
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
CLOUDP-73988: Fix version manifest update command to use the static endpoint #469
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just one minor thing to move the definition of the base url to the store package
internal/store/store.go
Outdated
@@ -200,6 +200,23 @@ func NewUnauthenticated(c Config) (*Store, error) { | |||
|
|||
return s, nil | |||
} | |||
func NewStaticPath(c Config, baseURL string) (*Store, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
related to my previous comment, baseURL
belongs in this package, it will also be nice if we can parameterize this via the config object but not necessary right now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks for adding the ability to set a custom manifest path
baseURL = "base_url" | ||
opsManagerCACertificate = "ops_manager_ca_certificate" | ||
opsManagerSkipVerify = "ops_manager_skip_verify" | ||
opsManagerVersionManifestURL = "ops_manager_version_manifest_url" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@@ -200,6 +202,27 @@ func NewUnauthenticated(c Config) (*Store, error) { | |||
|
|||
return s, nil | |||
} | |||
func NewStaticPath(c Config) (*Store, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit] missing new line here but we can fix later
Proposed changes
Jira ticket: CLOUDP-73988
Checklist
make fmt
and formatted my codeFurther comments