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
buildArtifactCmd.Flags().StringVarP(&buildArtifactArgs.path, "path", "p", "", "Path to the directory where the Kubernetes manifests are located.")
62
64
buildArtifactCmd.Flags().StringVarP(&buildArtifactArgs.output, "output", "o", "artifact.tgz", "Path to where the artifact tgz file should be written.")
63
65
buildArtifactCmd.Flags().StringSliceVar(&buildArtifactArgs.ignorePaths, "ignore-paths", excludeOCI, "set paths to ignore in .gitignore format")
66
+
buildArtifactCmd.Flags().BoolVar(&buildArtifactArgs.resolveSymlinks, "resolve-symlinks", false, "resolve symlinks by copying their targets into the artifact")
Copy file name to clipboardExpand all lines: cmd/flux/push_artifact.go
+22-11Lines changed: 22 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -103,17 +103,18 @@ The command can read the credentials from '~/.docker/config.json' but they can a
103
103
}
104
104
105
105
typepushArtifactFlagsstruct {
106
-
pathstring
107
-
sourcestring
108
-
revisionstring
109
-
credsstring
110
-
provider flags.SourceOCIProvider
111
-
ignorePaths []string
112
-
annotations []string
113
-
outputstring
114
-
debugbool
115
-
reproduciblebool
116
-
insecurebool
106
+
pathstring
107
+
sourcestring
108
+
revisionstring
109
+
credsstring
110
+
provider flags.SourceOCIProvider
111
+
ignorePaths []string
112
+
annotations []string
113
+
outputstring
114
+
debugbool
115
+
reproduciblebool
116
+
insecurebool
117
+
resolveSymlinksbool
117
118
}
118
119
119
120
varpushArtifactArgs=newPushArtifactFlags()
@@ -137,6 +138,7 @@ func init() {
137
138
pushArtifactCmd.Flags().BoolVarP(&pushArtifactArgs.debug, "debug", "", false, "display logs from underlying library")
138
139
pushArtifactCmd.Flags().BoolVar(&pushArtifactArgs.reproducible, "reproducible", false, "ensure reproducible image digests by setting the created timestamp to '1970-01-01T00:00:00Z'")
139
140
pushArtifactCmd.Flags().BoolVar(&pushArtifactArgs.insecure, "insecure-registry", false, "allows artifacts to be pushed without TLS")
141
+
pushArtifactCmd.Flags().BoolVar(&pushArtifactArgs.resolveSymlinks, "resolve-symlinks", false, "resolve symlinks by copying their targets into the artifact")
0 commit comments