-
Notifications
You must be signed in to change notification settings - Fork 346
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 a make dev
to output a development manifest
#131
Conversation
}; | ||
|
||
local myconf = conf(opts); | ||
local sonobuoyPod = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the open syntax kosher? dangling =
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found this really confusing at first too. I think it's basically a "let", the pod
is defined in the scope of defining sonobuoy.
Makefile
Outdated
|
||
$(DEV_OUTPUT): examples/ksonnet/dev.jsonnet examples/ksonnet/components/*.jsonnet | ||
$(KUBECFG_CMD) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can probably remove these extra lines
if opts.debug then " --debug" else "" | ||
]), | ||
], | ||
image: "gcr.io/heptio-images/sonobuoy:master", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice if the image:tag was a var at the top
"/bin/bash", | ||
"-c", | ||
std.join("", [ | ||
"/sonobuoy master --no-exit=true -v 3 --logtostderr", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-v 5 on debug
pod.mixin.spec.volumes(conf.volumes); | ||
pod.mixin.spec.volumes(myconf.volumes); | ||
|
||
local sonobuoyService = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same.
local configmaps = import "examples/ksonnet/components/10-configmaps.jsonnet"; | ||
local pod = import "examples/ksonnet/components/20-pod.jsonnet"; | ||
|
||
rbac + configmaps + pod.objects(pullPolicy="IfNotPresent", debug=true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we pass a var in from Make targets vs. default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did it this way because I don't like the idea of storing configuration in our Makefile.
24ea0ac
to
1863332
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm - Did you test a local submission with the dev.yaml and verify the results?
Refactor 20-pod.jsonnet to take a few parameters Signed-off-by: liz <[email protected]>
Refactor 20-pod.jsonnet to take a few parameters Signed-off-by: liz <[email protected]> Signed-off-by: Jesse Hamilton [email protected]
Refactor 20-pod.jsonnet to take a few parameters Signed-off-by: liz <[email protected]> Signed-off-by: Jesse Hamilton [email protected] Signed-off-by: Jesse Hamilton [email protected]
Refactor 20-pod.jsonnet to take a few parameters
Closes #107
Signed-off-by: liz [email protected]