Giter VIP home page Giter VIP logo

Comments (7)

mattmoor avatar mattmoor commented on June 4, 2024

Is the digest different when the image is pushed via docker_push?

It's possible that the digest is different when you publish the image with the Docker client.

If the digest is changing between docker_push and k8s_object it is very likely a bug, and may have to do with cfg = "host" vs. cfg = "target".

from rules_k8s.

mtsgrd avatar mtsgrd commented on June 4, 2024

container_push gives me c9f1edf07b2e, the expected image!

from rules_k8s.

mtsgrd avatar mtsgrd commented on June 4, 2024

It's bedtime in Stockholm so I don't have time to try this, but would adding cfg = "host" to the following line do the trick? https://github.com/bazelbuild/rules_k8s/blob/master/k8s/object.bzl#L211

from rules_k8s.

mattmoor avatar mattmoor commented on June 4, 2024

IIUC we want cfg = "target",. "host" is intended for building tools to run on the build machine, e.g. the resolver. "target" is intended for building things for the target environment.

from rules_k8s.

mattmoor avatar mattmoor commented on June 4, 2024

Are you on HEAD, because I think this was fixed.

from rules_k8s.

mtsgrd avatar mtsgrd commented on June 4, 2024

Ah yes, target was what I meant. And yes, you're right, it's fixed in head and works great. Also, I know you're paid to do this, but all of this code is so much appreciated. :)

from rules_k8s.

mattmoor avatar mattmoor commented on June 4, 2024

LOL, I'm glad! Please don't hesitate to reach out if you have any further problems.

from rules_k8s.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.