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

feat(provider/kubernetes): Deploy baked docker images #3588

Conversation

brujoand
Copy link
Contributor

@brujoand brujoand commented Apr 26, 2017

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

Copy link
Member

@lwander lwander left a 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) {
Copy link
Member

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

Copy link
Member

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) {
}

Copy link
Contributor Author

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'
Copy link
Member

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?

Copy link
Contributor Author

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 👍

@lwander
Copy link
Member

lwander commented Apr 26, 2017

Also could you double check this for me @danielpeach?

@brujoand brujoand force-pushed the add_support_for_deploying_baked_docker_image branch from cf73763 to b4d043a Compare April 27, 2017 07:24
@brujoand
Copy link
Contributor Author

Thanks guys, I've addressed the comments and gotten back in sync with master.

@danielpeach danielpeach merged commit 7af5217 into spinnaker:master Apr 27, 2017
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.

3 participants