Skip to content

Commit f2fd87f

Browse files
Merge pull request #366 from IrvingMg/feature/ship-0040
Add --runtime-class flag to buildrun create
2 parents 59db8e2 + c16342a commit f2fd87f

28 files changed

Lines changed: 160 additions & 53 deletions

docs/shp_build_run.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ shp build run <name> [flags]
3131
--param-value stringArray set of key-value pairs to pass as parameters to the buildStrategy (default [])
3232
--retention-ttl-after-failed duration duration to delete the BuildRun after it failed
3333
--retention-ttl-after-succeeded duration duration to delete the BuildRun after it succeeded
34+
--runtime-class string specify the runtime class to be used for the Pod
3435
--sa-name string Kubernetes service-account name
3536
--scheduler-name string specify the scheduler to be used to dispatch the Pod
3637
--timeout duration build process timeout

docs/shp_build_upload.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ shp build upload <build-name> [path/to/source|.] [flags]
4141
--param-value stringArray set of key-value pairs to pass as parameters to the buildStrategy (default [])
4242
--retention-ttl-after-failed duration duration to delete the BuildRun after it failed
4343
--retention-ttl-after-succeeded duration duration to delete the BuildRun after it succeeded
44+
--runtime-class string specify the runtime class to be used for the Pod
4445
--sa-name string Kubernetes service-account name
4546
--scheduler-name string specify the scheduler to be used to dispatch the Pod
4647
--timeout duration build process timeout

docs/shp_buildrun_create.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ shp buildrun create <name> [flags]
3030
--param-value stringArray set of key-value pairs to pass as parameters to the buildStrategy (default [])
3131
--retention-ttl-after-failed duration duration to delete the BuildRun after it failed
3232
--retention-ttl-after-succeeded duration duration to delete the BuildRun after it succeeded
33+
--runtime-class string specify the runtime class to be used for the Pod
3334
--sa-name string Kubernetes service-account name
3435
--scheduler-name string specify the scheduler to be used to dispatch the Pod
3536
--timeout duration build process timeout

go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ go 1.24.0
44

55
require (
66
github.com/google/go-containerregistry v0.20.7
7-
github.com/onsi/gomega v1.38.2
7+
github.com/onsi/gomega v1.39.0
88
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06
99
github.com/schollz/progressbar/v3 v3.19.0
10-
github.com/shipwright-io/build v0.18.0
10+
github.com/shipwright-io/build v0.18.2-0.20260112084729-e48a9ff9aa57
1111
github.com/spf13/cobra v1.10.2
1212
github.com/spf13/pflag v1.0.10
1313
github.com/texttheater/golang-levenshtein/levenshtein v0.0.0-20200805054039-cae8b0eaed6c
@@ -36,7 +36,7 @@ require (
3636
github.com/containerd/stargz-snapshotter/estargz v0.18.1 // indirect
3737
github.com/cpuguy83/go-md2man/v2 v2.0.7 // indirect
3838
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
39-
github.com/docker/cli v29.0.3+incompatible // indirect
39+
github.com/docker/cli v29.1.4+incompatible // indirect
4040
github.com/docker/distribution v2.8.3+incompatible // indirect
4141
github.com/docker/docker-credential-helpers v0.9.3 // indirect
4242
github.com/emicklei/go-restful/v3 v3.12.1 // indirect

go.sum

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
9393
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
9494
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
9595
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
96-
github.com/docker/cli v29.0.3+incompatible h1:8J+PZIcF2xLd6h5sHPsp5pvvJA+Sr2wGQxHkRl53a1E=
97-
github.com/docker/cli v29.0.3+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
96+
github.com/docker/cli v29.1.4+incompatible h1:AI8fwZhqsAsrqZnVv9h6lbexeW/LzNTasf6A4vcNN8M=
97+
github.com/docker/cli v29.1.4+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
9898
github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk=
9999
github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
100100
github.com/docker/docker-credential-helpers v0.9.3 h1:gAm/VtF9wgqJMoxzT3Gj5p4AqIjCBS4wrsOh9yRqcz8=
@@ -310,10 +310,10 @@ github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRW
310310
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
311311
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f h1:y5//uYreIhSUg3J1GEMiLbxo1LJaP8RfCpH6pymGZus=
312312
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw=
313-
github.com/onsi/ginkgo/v2 v2.27.2 h1:LzwLj0b89qtIy6SSASkzlNvX6WktqurSHwkk2ipF/Ns=
314-
github.com/onsi/ginkgo/v2 v2.27.2/go.mod h1:ArE1D/XhNXBXCBkKOLkbsb2c81dQHCRcF5zwn/ykDRo=
315-
github.com/onsi/gomega v1.38.2 h1:eZCjf2xjZAqe+LeWvKb5weQ+NcPwX84kqJ0cZNxok2A=
316-
github.com/onsi/gomega v1.38.2/go.mod h1:W2MJcYxRGV63b418Ai34Ud0hEdTVXq9NW9+Sx6uXf3k=
313+
github.com/onsi/ginkgo/v2 v2.27.4 h1:fcEcQW/A++6aZAZQNUmNjvA9PSOzefMJBerHJ4t8v8Y=
314+
github.com/onsi/ginkgo/v2 v2.27.4/go.mod h1:ArE1D/XhNXBXCBkKOLkbsb2c81dQHCRcF5zwn/ykDRo=
315+
github.com/onsi/gomega v1.39.0 h1:y2ROC3hKFmQZJNFeGAMeHZKkjBL65mIZcvrLQBF9k6Q=
316+
github.com/onsi/gomega v1.39.0/go.mod h1:ZCU1pkQcXDO5Sl9/VVEGlDyp+zm0m1cmeG5TOzLgdh4=
317317
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
318318
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
319319
github.com/opencontainers/image-spec v1.1.1 h1:y0fUlFfIZhPF1W537XOLg0/fcx6zcHCJwooC2xJA040=
@@ -375,8 +375,8 @@ github.com/schollz/progressbar/v3 v3.19.0 h1:Ea18xuIRQXLAUidVDox3AbwfUhD0/1Ivohy
375375
github.com/schollz/progressbar/v3 v3.19.0/go.mod h1:IsO3lpbaGuzh8zIMzgY3+J8l4C8GjO0Y9S69eFvNsec=
376376
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=
377377
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
378-
github.com/shipwright-io/build v0.18.0 h1:99rZ1f8P71zxOzJSIcQFbWEPybXm5H46eNwXm1uz94Q=
379-
github.com/shipwright-io/build v0.18.0/go.mod h1:j8DzQf7y+xlrlfxhn1+awjc6adBSqcxxRdNZCqxAo+4=
378+
github.com/shipwright-io/build v0.18.2-0.20260112084729-e48a9ff9aa57 h1:F/3mRGP1jaSrYHKKSGlTJBww+6Tb9vApn2cvI/xWj1o=
379+
github.com/shipwright-io/build v0.18.2-0.20260112084729-e48a9ff9aa57/go.mod h1:4yvBdUJGjBbDtW8CuBiuAVeLfJL0/V7X8WF129WdpBE=
380380
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
381381
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
382382
github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=

pkg/shp/cmd/build/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package build
1+
package build // nolint:revive
22

33
import (
44
"github.com/spf13/cobra"

pkg/shp/cmd/build/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package build
1+
package build // nolint:revive
22

33
import (
44
"fmt"

pkg/shp/cmd/build/delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package build
1+
package build // nolint:revive
22

33
import (
44
"fmt"

pkg/shp/cmd/build/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// Package build contains types and functions for build cobra sub-command
2-
package build
2+
package build // nolint:revive

pkg/shp/cmd/build/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package build
1+
package build // nolint:revive
22

33
import (
44
"fmt"

0 commit comments

Comments
 (0)