GoogleContainerTools / GoogleContainerTools/skaffold

Friction: Using bazel with skaffold

Open
#8,606 1 comment 2 reactions 0 assignees View on GitHub
build/bazel kind/friction
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

As discussed in office hours, this is a documentation of a point of friction using both skaffold and bazel.

Skaffold expects to find its inputs in the filesystem, whether that's skaffold.yaml itself, kustomization files, or kubernetes resource yaml files.

A Bazel user expects to be able to generate any file on demand with a bazel build command, with explicit dependencies and sandboxing. The typical bazel pattern is to avoid putting generated files into the source tree.

A workaround is to have something like `bazel run` commands to generate files, then invoke skaffold over those. It works but it's friction.

Skaffold could potentially have greater awareness of inputs being generated on-demand by bazel.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.