-
Notifications
You must be signed in to change notification settings - Fork 90
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
Fix e2e calico configuration and BMO installation workflow #277
Fix e2e calico configuration and BMO installation workflow #277
Conversation
/test-v1a5-e2e |
/test-v1a5-centos-e2e |
1 similar comment
/test-v1a5-centos-e2e |
709ac80
to
85ab354
Compare
/test-v1a5-e2e |
85ab354
to
e368b0e
Compare
/test-v1a5-e2e |
/test-integration |
1 similar comment
/test-integration |
/assign @furkatgofurov7 |
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
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.
Thanks for PR @namnx228. Few comments from my side:
cniYaml, err := os.ReadFile(calicoYaml) | ||
Expect(err).To(BeNil(), "Unable to read Calico manifest") | ||
podCIDR := os.Getenv("POD_CIDR") | ||
cniYaml = []byte(strings.Replace(string(cniYaml), "192.168.0.0/16", podCIDR, -1)) |
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.
I am not getting, what are we after here?
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.
I am trying to archive the same thing as: https://github.com/metal3-io/metal3-dev-env/blob/137e648c117cf7058f921e4fa550ef94cce620d3/vm-setup/roles/v1aX_integration_test/tasks/verify.yml#L68
However, I start to doubt if this change has any impact because the replacement takes place in a comment.
# value: "192.168.0.0/18" |
Should we remove this change?
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.
I am fine leaving it as is to be consistent with m3-dev-env task.
data, er := ioutil.ReadAll(outputPipe) | ||
Expect(er).To(BeNil(), "Cannot get the stdout from the command") | ||
if len(data) > 0 { | ||
Logf("Output of the shell: %s\n", string(data)) |
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.
maybe:
Logf("Output of the shell: %s\n", string(data)) | |
Logf("Output of the shell: %v\n", string(data)) |
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.
I would use %s in this case because we want to print out a string
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.
I asked because you have used %v a bit below for printing errorData string
e368b0e
to
e23804b
Compare
Fix Fix lint fails Fix the problem where cert-manager is required when installing BMO Fix minor
e23804b
to
5a80b1f
Compare
/test-v1a5-e2e |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kashifest 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 |
/retitle Fix e2e calico configuration and BMO installation workflow |
/hold |
/hold cancel |
/lgtm |
This PR Does the following things:
clusterctl init
before installing BMO because now this installation requires to have cert-manager.