Skip to content

Commit 19b78dc

Browse files
committed
chore: remove kaniko NoPush field from skaffold schemas as it does not work currently
1 parent 0b4bb63 commit 19b78dc

File tree

6 files changed

+0
-37
lines changed

6 files changed

+0
-37
lines changed

docs-v2/content/en/schemas/v4beta4.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2538,12 +2538,6 @@
25382538
"x-intellij-html-description": "to add timestamps to log format.",
25392539
"default": "false"
25402540
},
2541-
"noPush": {
2542-
"type": "boolean",
2543-
"description": "if you only want to build the image, without pushing to a registry.",
2544-
"x-intellij-html-description": "if you only want to build the image, without pushing to a registry.",
2545-
"default": "false"
2546-
},
25472541
"ociLayoutPath": {
25482542
"type": "string",
25492543
"description": "to specify a directory in the container where the OCI image layout of a built image will be placed. This can be used to automatically track the exact image built by kaniko.",
@@ -2651,7 +2645,6 @@
26512645
"cleanup",
26522646
"insecure",
26532647
"insecurePull",
2654-
"noPush",
26552648
"force",
26562649
"logTimestamp",
26572650
"reproducible",

pkg/skaffold/build/gcb/kaniko_test.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -194,16 +194,6 @@ func TestKanikoBuildSpec(t *testing.T) {
194194
kaniko.LogTimestampFlag,
195195
},
196196
},
197-
{
198-
description: "with NoPush",
199-
artifact: &latest.KanikoArtifact{
200-
DockerfilePath: "Dockerfile",
201-
NoPush: true,
202-
},
203-
expectedArgs: []string{
204-
kaniko.NoPushFlag,
205-
},
206-
},
207197
{
208198
description: "with OCILayoutPath",
209199
artifact: &latest.KanikoArtifact{

pkg/skaffold/build/kaniko/args.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,6 @@ func Args(artifact *latest.KanikoArtifact, tag, context string) ([]string, error
101101
args = append(args, LogTimestampFlag)
102102
}
103103

104-
if artifact.NoPush {
105-
args = append(args, NoPushFlag)
106-
}
107-
108104
if artifact.OCILayoutPath != "" {
109105
args = append(args, OCILayoutFlag, artifact.OCILayoutPath)
110106
}

pkg/skaffold/build/kaniko/args_test.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -187,17 +187,6 @@ func TestArgs(t *testing.T) {
187187
},
188188
wantErr: false,
189189
},
190-
{
191-
description: "with NoPush",
192-
artifact: &latest.KanikoArtifact{
193-
DockerfilePath: "dir/Dockerfile",
194-
NoPush: true,
195-
},
196-
expectedArgs: []string{
197-
NoPushFlag,
198-
},
199-
wantErr: false,
200-
},
201190
{
202191
description: "with OCILayoutPath",
203192
artifact: &latest.KanikoArtifact{

pkg/skaffold/build/kaniko/types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ const (
5353
LogFormatFlag = "--log-format"
5454
// LogTimestampFlag additional flag
5555
LogTimestampFlag = "--log-timestamp"
56-
// NoPushFlag additional flag
57-
NoPushFlag = "--no-push"
5856
// OCILayoutFlag additional flag
5957
OCILayoutFlag = "--oci-layout-path"
6058
// RegistryCertificateFlag additional flag

pkg/skaffold/schema/latest/config.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,9 +1344,6 @@ type KanikoArtifact struct {
13441344
// InsecurePull if you want to pull images from a plain HTTP registry.
13451345
InsecurePull bool `yaml:"insecurePull,omitempty"`
13461346

1347-
// NoPush if you only want to build the image, without pushing to a registry.
1348-
NoPush bool `yaml:"noPush,omitempty"`
1349-
13501347
// Force building outside of a container.
13511348
Force bool `yaml:"force,omitempty"`
13521349

0 commit comments

Comments
 (0)