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 help and usage for tink template update #587

Merged
merged 3 commits into from
Feb 9, 2022

Conversation

detiber
Copy link
Contributor

@detiber detiber commented Feb 9, 2022

Description

tink template update previously had the wrong help output (stating argument is --file instead of --path) and did not support providing the updated template data over stdin.

Why is this needed

  • sandbox users run commands through docker exec, so supporting stdin makes it easier for them to use the command
  • users should expect the help output to match the expected usage.

How Has This Been Tested?

TODO

How are existing users impacted? What migration steps/scripts do we need?

Should not affect existing users, only fix issues users are already encountering.

@codecov
Copy link

codecov bot commented Feb 9, 2022

Codecov Report

Merging #587 (239df24) into main (c047011) will decrease coverage by 0.08%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #587      +/-   ##
==========================================
- Coverage   38.52%   38.44%   -0.09%     
==========================================
  Files          53       53              
  Lines        3561     3569       +8     
==========================================
  Hits         1372     1372              
- Misses       2092     2100       +8     
  Partials       97       97              
Impacted Files Coverage Δ
cmd/tink-cli/cmd/template/update.go 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c047011...239df24. Read the comment docs.

Copy link
Contributor

@mmlb mmlb left a comment

Choose a reason for hiding this comment

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

lgtm

@mmlb mmlb added the ready-to-merge Signal to Mergify to merge the PR. label Feb 9, 2022
@mergify mergify bot merged commit 03a3d54 into tinkerbell:main Feb 9, 2022
mergify bot added a commit that referenced this pull request Feb 9, 2022
## Description

Fixes an issue with `tink template update` using stdin, follow up to #587 

## Why is this needed

#587 didn't fully add support for sdin with `tink template update`, it still threw an error if content wasn't provided using the `--path` argument.

## How Has This Been Tested?
Tested manually against a Tinkerbell environment created using HEAD of sandbox

## How are existing users impacted? What migration steps/scripts do we need?

Existing users not impacted
@displague displague added this to the 0.7.0 milestone Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Signal to Mergify to merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants