-
Notifications
You must be signed in to change notification settings - Fork 233
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
Use canal #123
Use canal #123
Conversation
pkg/templates/canal/canal.go
Outdated
func Configuration(cluster *config.Cluster) (string, error) { | ||
tpl, err := template.New("base").Parse(canal) | ||
if err != nil { | ||
return "", fmt.Errorf("failed to parse calico config: %v", err) |
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.
Is calico here left as intended or it should be canal?
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.
Oups, will fix up
/lgtm holding as not sure does it also approve when lgtm-ed |
8114e2e
to
8c953c7
Compare
/hold cancel |
|
||
_, _, err := ctx.Runner.Run(`sudo kubectl create -f ./{{ .WORK_DIR }}/kube-flannel.yaml`, util.TemplateVariables{ | ||
ctx.Logger.Infoln("Applying canal CNI plugin…") | ||
_, _, err := ctx.Runner.Run(`sudo kubectl apply -f ./{{ .WORK_DIR }}/canal.yaml`, util.TemplateVariables{ |
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 did the error when I first started the migration from the ol' shellscript and now regret it. Please remove the ./
so we can, if we want, have {{ .WORK_DIR }}
be an absolute path. I already replaced it in a bunch of other places.
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.
Updated, PTAL
2c92b34
to
081d6d9
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: xmudrii 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 |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #122
Special notes for your reviewer:
Documentation:
Release note:
/assign @xrstf