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

Fix container command quotes in macvtap.yaml.in #27

Merged
merged 1 commit into from
Sep 10, 2020

Conversation

rhrazdil
Copy link
Contributor

Use double quotes instead of single quotes in:
command: ["cp", "/macvtap-cni", "/host/opt/cni/bin/macvtap"]

What this PR does / why we need it:

Special notes for your reviewer:

Release notes:

NONE

@kubevirt-bot kubevirt-bot added dco-signoff: no Indicates the PR's author has not DCO signed all their commits. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Sep 10, 2020
@kubevirt-bot kubevirt-bot added dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/XS and removed dco-signoff: no Indicates the PR's author has not DCO signed all their commits. labels Sep 10, 2020
@phoracek
Copy link
Member

The commit message is missing the why

Use double quotes instead of single quotes in:
command: ['cp', '/macvtap-cni', '/host/opt/cni/bin/macvtap']
because we are using single quotes around template variables
and having single quotes in the above command list
blocks us from using simple sed to remove all single quotes
in the entire yaml template.

Signed-off-by: Radim Hrazdil <[email protected]>
@rhrazdil
Copy link
Contributor Author

@phoracek Updated commit message

Copy link
Member

@phoracek phoracek left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Sep 10, 2020
@kubevirt-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: phoracek, rhrazdil

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 10, 2020
@phoracek
Copy link
Member

/release-note-none

@kubevirt-bot kubevirt-bot added release-note-none Denotes a PR that doesn't merit a release note. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Sep 10, 2020
@kubevirt-bot kubevirt-bot merged commit b64a2f7 into kubevirt:master Sep 10, 2020
rhrazdil pushed a commit to rhrazdil/cluster-network-addons-operator that referenced this pull request Sep 10, 2020
It contains the following PRs:
- Change vbom.ml/util dependency with github.com/fvbommel/util [0]
    Fixes vbom dependency
- Adding quotes in macvtap.yaml.in [1]
    Allows using yq to edit macvtap.yaml.in
- Fix container command quotes in macvtap.yaml.in [2]
    Fixes single quotes in command list

[0] kubevirt/macvtap-cni#25
[1] kubevirt/macvtap-cni#24
[2] kubevirt/macvtap-cni#27

Signed-off-by: Radim Hrazdil <[email protected]>
kubevirt-bot pushed a commit to kubevirt/cluster-network-addons-operator that referenced this pull request Sep 10, 2020
* Bump macvtap dep to v0.3.1

It contains the following PRs:
- Change vbom.ml/util dependency with github.com/fvbommel/util [0]
    Fixes vbom dependency
- Adding quotes in macvtap.yaml.in [1]
    Allows using yq to edit macvtap.yaml.in
- Fix container command quotes in macvtap.yaml.in [2]
    Fixes single quotes in command list

[0] kubevirt/macvtap-cni#25
[1] kubevirt/macvtap-cni#24
[2] kubevirt/macvtap-cni#27

Signed-off-by: Radim Hrazdil <[email protected]>

* Add PlacementConfiguration for macvtap

Use Workloads PlacementConfiguration from NetworkAddonsConfig in macvtap pods.
By default, macvtap pods will be scheduled on all nodes.

Signed-off-by: Radim Hrazdil <[email protected]>
rhrazdil pushed a commit to rhrazdil/macvtap-cni that referenced this pull request Sep 16, 2020
This is a followup to PR kubevirt#27 [0]

[0] kubevirt#27

Signed-off-by: Radim Hrazdil <[email protected]>
kubevirt-bot pushed a commit that referenced this pull request Sep 17, 2020
* Bump github.com/aktau/github-release to v0.8.1

Signed-off-by: Radim Hrazdil <[email protected]>

* Bump github.com/containernetworking/cni to v0.8.0

Signed-off-by: Radim Hrazdil <[email protected]>

* Bump kubernetes to v0.19.1

Signed-off-by: Radim Hrazdil <[email protected]>

* make vendor for new go.mod

Signed-off-by: Radim Hrazdil <[email protected]>

* adjust e2e tests to client-go 1.18

Signed-off-by: Radim Hrazdil <[email protected]>

* Fix test verbose flag setting

Signed-off-by: Radim Hrazdil <[email protected]>

* Flags should be parsed in BeforeSuite

Test run otherwise fails due to unrecognized arguments

Signed-off-by: Radim Hrazdil <[email protected]>

* Update manifests based on new template

This is a followup to PR #27 [0]

[0] #27

Signed-off-by: Radim Hrazdil <[email protected]>

* Bump Go version to 1.13

Signed-off-by: Radim Hrazdil <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants