You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: Support Bazel platform mappings
This change introduces an artifact-level setting for configuring Bazel and
defines a platform mapping from Skaffold platforms to Bazel platforms.
The Bazel artifact builder then passes the --platforms flag to Bazel if applicable.
Fixes#9360.
* Update examples/bazel
* Copy examples/bazel to integration/examples/bazel
* Add unit test
* Remove bazel platforms from examples/bazel
Summary: According to ./hack/check-samples.sh,
'''
# /examples should use the latest released version
LATEST_RELEASED="skaffold/$(go run ./hack/versions/cmd/latest_released/version.go)"
'''
The new 'platforms' field is in v4beta10 and not available in a released version yet, so CI fails.
It can be added to /examples/bazel later, after a release.
Test Plan: `./hack/check-samples.sh`
* Remove yaml block that breaks docs
"description": "bazel platform target to be passed to bazel's `--platforms` flag.",
738
+
"x-intellij-html-description": "bazel platform target to be passed to bazel's <code>--platforms</code> flag."
739
+
}
740
+
},
741
+
"preferredOrder": [
742
+
"platform",
743
+
"target"
744
+
],
745
+
"additionalProperties": false,
746
+
"type": "object",
747
+
"description": "relates a skaffold platform (like 'linux/amd64') to a workspace-specific bazel platform target (e.g. '//platforms:linux_amd64').",
748
+
"x-intellij-html-description": "relates a skaffold platform (like 'linux/amd64') to a workspace-specific bazel platform target (e.g. '//platforms:linux_amd64')."
0 commit comments