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

enhancement(container): add execute function #69

Merged
merged 5 commits into from
May 15, 2020
Merged

Conversation

kneal
Copy link

@kneal kneal commented May 14, 2020

No description provided.

@kneal kneal added the enhancement Indicates an improvement to a feature label May 14, 2020
@kneal kneal requested a review from a team as a code owner May 14, 2020 14:15
@kneal kneal self-assigned this May 14, 2020
@codecov
Copy link

codecov bot commented May 14, 2020

Codecov Report

Merging #69 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #69   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           42        42           
  Lines         2625      2640   +15     
=========================================
+ Hits          2625      2640   +15     
Impacted Files Coverage Δ
pipeline/container.go 100.00% <100.00%> (ø)

jbrockopp
jbrockopp previously approved these changes May 14, 2020
Copy link
Contributor

@jbrockopp jbrockopp left a comment

Choose a reason for hiding this comment

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

LGTM

// Execute returns true when the provided ruledata matches
// the conditions when we should be running the container on the worker.
func (c *Container) Execute(r *RuleData) bool {
// assume you will excute a container by setting flag
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this is a typo:

// assume you will excute a container by setting flag

... will execute a ...

pipeline/container.go Outdated Show resolved Hide resolved
pipeline/container.go Outdated Show resolved Hide resolved
pipeline/container.go Outdated Show resolved Hide resolved
Copy link
Contributor

@jbrockopp jbrockopp left a comment

Choose a reason for hiding this comment

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

LGTM

@jbrockopp jbrockopp merged commit 1f27570 into master May 15, 2020
@jbrockopp jbrockopp deleted the container/execute branch May 15, 2020 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates an improvement to a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants