-
Notifications
You must be signed in to change notification settings - Fork 903
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
feat(provider/kubernetes): Deploy baked docker images #3588
feat(provider/kubernetes): Deploy baked docker images #3588
Conversation
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.
Two small comments
@@ -137,8 +137,10 @@ module.exports = angular.module('spinnaker.kubernetes.clusterCommandBuilder.serv | |||
} | |||
|
|||
function buildImageId(image) { | |||
if (image.fromContext) { | |||
if (image.fromContext && image.pattern && image.cluster) { |
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.
Does this mean it came from a findImage? I think we should be more explicit here
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.
e.g.
if (image.fromContext) {
if (image.fromBake) {
} else if (image.fromFindImage) {
} else {
// uh oh
}
} else if (image.fromTrigger && !image.tag) {
}
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.
Yeah it's meant to cover the findImage case. I agree, it's good to be clear here.
repository: current.ami_name, | ||
organization: current.organization, | ||
stageId: current.refId, | ||
registry: 'containers.schibsted.io' |
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 this meant to be hardcoded here?
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.
Oh, no that was me testing. I'll get that out 👍
Also could you double check this for me @danielpeach? |
cf73763
to
b4d043a
Compare
Thanks guys, I've addressed the comments and gotten back in sync with master. |
The objective here is to be able to deploy baked docker containers to Kubernetes, so we don't have to rely on using the docker registry trigger, and we get to keep the traceability.
I haven't synced with anyone on this approach, so I expect to have to alter worthing and/or some of the flow for this. So feel free to make suggestions for change.
This PR depends on a change to orca: spinnaker/orca#1299