Skip to content

Instantly share code, notes, and snippets.

View benmoss's full-sized avatar
🙈

Ben Moss benmoss

🙈
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
metadata:
name: kappctrl
spec:
analyzers:
- clusterVersion:
outcomes:
- fail:
when: "< 1.20.0"
apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
metadata:
name: kappctrl
spec:
analyzers:
- clusterVersion:
outcomes:
- fail:
when: "< 1.20.0"
apiVersion: troubleshoot.sh/v1beta2
kind: SupportBundle
metadata:
name: kappctrl
spec:
analyzers:
- clusterVersion:
outcomes:
- fail:
when: "< 1.20.0"
-- Called before everything, even before loading plugins
-- Do things that need to happen very early such as:
-- vim.g.fzf_command_prefix = 'Fuzzy'
-- ...
require('go').setup({
lsp_cfg = {
settings = {
gopls = {
buildFlags = {
"-tags", "e2e",
$ COSIGN_EXPERIMENTAL=1 cosign sign k8s.gcr.io/kube-apiserver-amd64:v1.24.0 --output-signature foo.sig --upload=false --output-certificate foo.pem
Generating ephemeral keys...
 Retrieving signed certificate...
error opening browser: exit status 3
Go to the following link in a browser:

         https://oauth2.sigstore.dev/auth/.....
Enter verification code: ........
Successfully verified SCT...
#add10: {
in: number
out: in
}
k00: 0
k10: (#add10 & {in: k00}).y
k20: (#add10 & {in: k10}).y
k30: (#add10 & {in: k20}).y
diff --git a/pkg/build/gobuild.go b/pkg/build/gobuild.go
index bbf42a27..b6c35a56 100644
--- a/pkg/build/gobuild.go
+++ b/pkg/build/gobuild.go
@@ -708,6 +708,9 @@ func (g *gobuild) buildOne(ctx context.Context, refStr string, base v1.Image, pl
OSVersion: cf.OSVersion,
}
}
+ if !g.platformMatcher.matches(platform) {
+ return nil, fmt.Errorf("base image does not match desired platform %q", platform.String())
package hack
_oses: ["linux", "darwin"]
_arches: ["arm64", "amd64"]
#Dependency: {
name: string
version: string
repo: string
dev: *false | bool
#os: "linux"
_os: ["linux"]
#arch: "amd64" | "arm64"
_arch: ["arm64", "amd64"]
#Package: {
name: string
version: string
for os in _os {
for arch in _arch {