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
Copy file name to clipboardExpand all lines: internal/commands/builder_create.go
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ type BuilderCreateFlags struct {
23
23
Registrystring
24
24
Policystring
25
25
Flatten []string
26
+
Labelmap[string]string
26
27
}
27
28
28
29
// CreateBuilder creates a builder image, based on a builder config
@@ -96,6 +97,7 @@ Creating a custom builder allows you to control what buildpacks are used and wha
96
97
Registry: flags.Registry,
97
98
PullPolicy: pullPolicy,
98
99
Flatten: toFlatten,
100
+
Labels: flags.Label,
99
101
}); err!=nil {
100
102
returnerr
101
103
}
@@ -113,6 +115,7 @@ Creating a custom builder allows you to control what buildpacks are used and wha
113
115
cmd.Flags().BoolVar(&flags.Publish, "publish", false, "Publish the builder directly to the container registry specified in <image-name>, instead of the daemon.")
114
116
cmd.Flags().StringVar(&flags.Policy, "pull-policy", "", "Pull policy to use. Accepted values are always, never, and if-not-present. The default is always")
115
117
cmd.Flags().StringSliceVar(&flags.Flatten, "flatten", nil, "List of buildpacks to flatten together into a single layer (format: '<buildpack-id>@<buildpack-version>,<buildpack-id>@<buildpack-version>'")
118
+
cmd.Flags().StringToStringVarP(&flags.Label, "label", "l", nil, "Labels to add to the builder image, in the form of '<name>=<value>'")
0 commit comments