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

Adds an info log when test-all-containers is false #34

Merged

Conversation

wiardvanrij
Copy link

fixes #31

Signed-off-by: Wiard van Rij w.vanrij@fullstaq.com

fixes jetstack#31

Signed-off-by: Wiard van Rij <w.vanrij@fullstaq.com>
@jetstack-bot
Copy link
Contributor

Hi @wiardvanrij. Thanks for your PR.

I'm waiting for a jetstack member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@wiardvanrij
Copy link
Author

/assign @JoshVanL

Copy link
Contributor

@JoshVanL JoshVanL left a comment

Choose a reason for hiding this comment

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

Thanks for adding this, I have been caught out a few times myself 😅

cmd/app/app.go Outdated
@@ -87,6 +87,10 @@ func NewCommand(ctx context.Context) *cobra.Command {
}
}()

if !opts.DefaultTestAll {
log.Info("Argument test-all-containers is FALSE. Only containers with the annotation 'enable.version-checker.io' will be parsed")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: "flag --test-all-containers=%t so only containers with the annotation 'enable.version-checker.io' will be parsed"

Copy link
Author

Choose a reason for hiding this comment

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

Nice. I've even enriched it a bit more. Let me know if that's too much..

Copy link
Contributor

Choose a reason for hiding this comment

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

No that's great!

Can we also have the same only containers with the annotation "enable.version-checker.io/${my-container}=true" will be parsed for when the flag is false.

Also remove the brackets around opts.DefaultTestAll

Signed-off-by: Wiard van Rij <w.vanrij@fullstaq.com>
@JoshVanL
Copy link
Contributor

/unassign
/assign @wiardvanrij

@jetstack-bot jetstack-bot assigned wiardvanrij and unassigned JoshVanL Aug 25, 2020
Signed-off-by: Wiard van Rij <w.vanrij@fullstaq.com>
@JoshVanL
Copy link
Contributor

Cheers @wiardvanrij !

/lgtm

@JoshVanL
Copy link
Contributor

/approve
/ok-to-test

@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JoshVanL, wiardvanrij

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

@jetstack-bot jetstack-bot merged commit 662580c into jetstack:master Aug 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Give info statement on runtime if test-all-containers is false
3 participants