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
MGMT-15405: Add a URL to infraenv to show download link from static network config #5638
Conversation
@paul-maidment: This pull request references MGMT-15405 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.15.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
1 similar comment
@paul-maidment: This pull request references MGMT-15405 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.15.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5638 +/- ##
==========================================
+ Coverage 67.71% 67.85% +0.13%
==========================================
Files 233 233
Lines 34211 34436 +225
==========================================
+ Hits 23166 23365 +199
- Misses 8982 9007 +25
- Partials 2063 2064 +1
|
a295b19
to
6828fec
Compare
api/v1beta1/infraenv_types.go
Outdated
@@ -166,6 +166,8 @@ type InfraEnvStatus struct { | |||
// BootArtifacts specifies the URLs for each boot artifact | |||
// +optional | |||
BootArtifacts BootArtifacts `json:"bootArtifacts"` | |||
// StaticNetworkDownloadURL specifies an HTTP/S URL that contains the static network config | |||
StaticNetworkDownloadURL string `json:"staticNetworkDownloadURL,omitempty"` |
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.
The ticket says it should be added to the debug info section. That makes sense because it's something used for debugging.
@@ -660,6 +683,13 @@ func (r *InfraEnvReconciler) updateInfraEnvStatus( | |||
isoUpdated = true | |||
} | |||
|
|||
if internalInfraEnv.StaticNetworkConfig != "" && internalInfraEnv.ID != nil { |
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.
- How would internalInfraEnv.ID be nil?
- You should check if infraEnv.Status.StaticNetworkDownloadURL is empty, otherwise you'll generate the same URL on every reconcile
6828fec
to
d3f20d8
Compare
…etwork config In MGMT-11443 a download link was created for static network config. This PR adds the generated URL for the static network to the infraenv if the static network config is defined.
d3f20d8
to
1f87ead
Compare
/test edge-assisted-operator-catalog-publish-verify |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: avishayt, paul-maidment The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@paul-maidment: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
In MGMT-11443 a download link was created for static network config.
This PR adds the generated URL for the static network to the infraenv if the static network config is defined.
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)Reviewers Checklist