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

Images and headers flags for run command #55

Merged
merged 11 commits into from
Feb 7, 2019
Merged

Images and headers flags for run command #55

merged 11 commits into from
Feb 7, 2019

Conversation

leodido
Copy link
Member

@leodido leodido commented Feb 2, 2019

Closes #53

Regards #48 too (probably needs to be rebased on top of this or the master if this will be merged, to continue to work on).

This PR introduces the following flags for the run command and behavior:

  • --imagename (defaulting to "quay.io/fntlnz/kubectl-trace-bpftrace:latest")
  • --init-imagename (defaulting to "quay.io/dalehamel/kubectl-trace-init")
  • --fetch-headers (defaulting to false)

Notice that defaults will be changed when we'll have "official" default images.

Furthermore this PR removes from version command the info about the tracerunner image in use since it is not related to the version of kubectl-trace imho.

@leodido leodido self-assigned this Feb 2, 2019
@leodido leodido requested a review from fntlnz February 2, 2019 16:47
@leodido
Copy link
Member Author

leodido commented Feb 4, 2019

Notice the GIT_COMMIT being 43b145b, thus different from b9903a3 (currently the last one of this PR).

This because of the way travis pulls the PR branch.

Ie.,

* 43b145b - (HEAD) Merge b9903a363061efb773be5a703658090c86580def into 60d78116535aba4aa959ada89fc28d4cc8cb2783

@fntlnz
Copy link
Member

fntlnz commented Feb 6, 2019

The CI fail was due to the fact that LDFLAGS can't change a constant, I pushed a fix. @leodido

fntlnz
fntlnz previously approved these changes Feb 7, 2019
Copy link
Member

@fntlnz fntlnz left a comment

Choose a reason for hiding this comment

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

LGTM

pkg/cmd/tracerunner.go Outdated Show resolved Hide resolved
Copy link
Member

@fntlnz fntlnz left a comment

Choose a reason for hiding this comment

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

LGTM

@fntlnz fntlnz merged commit 45fba8a into master Feb 7, 2019
@fntlnz fntlnz deleted the chore/cli branch February 7, 2019 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants