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

Add tooling for policy library organization. #53

Merged
merged 1 commit into from
Aug 23, 2019

Conversation

briantkennedy
Copy link
Member

@morgante please take a look.

@morgante morgante self-requested a review August 20, 2019 22:44
Copy link
Contributor

@morgante morgante left a comment

Choose a reason for hiding this comment

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

Mostly minor comments.

Also, could we add a command to the Makefile to build the policy tool?

cmd/policy-tool/status/status.go Outdated Show resolved Hide resolved
cmd/policy-tool/status/status.go Outdated Show resolved Hide resolved
cmd/policy-tool/status/status.go Outdated Show resolved Hide resolved
cmd/policy-tool/status/status.go Outdated Show resolved Hide resolved
cmd/policy-tool/status/status.go Show resolved Hide resolved
pkg/bundlemanager/bundlemanager.go Show resolved Hide resolved
var bundlePrefix = "bundles.validator.forsetisecurity.org/"

// BundleAnnotation
func BundleAnnotation(key string) bool {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we call this HasBundleAnnotation?

Copy link
Member Author

Choose a reason for hiding this comment

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

works for me, done

pkg/bundlemanager/util.go Outdated Show resolved Hide resolved
pkg/bundlemanager/util.go Show resolved Hide resolved
})
}

func ctsToStrs(
Copy link
Contributor

Choose a reason for hiding this comment

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

This name is unclear - could we make a more descriptive one?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, this name is horrible. done.

Copy link
Contributor

@morgante morgante left a comment

Choose a reason for hiding this comment

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

LGTM, only ask is that we add a command to the Makefile for building.

cmd/policy-tool/policy-tool.go Outdated Show resolved Hide resolved
cmd/policy-tool/status/status.go Show resolved Hide resolved
pkg/bundlemanager/bundlemanager.go Show resolved Hide resolved
pkg/bundlemanager/util.go Show resolved Hide resolved
@briantkennedy briantkennedy merged commit 8535d1d into GoogleCloudPlatform:master Aug 23, 2019
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