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
* Remove duplication
Signed-off-by: David Gageot <[email protected]>
* Remove some more duplication
Signed-off-by: David Gageot <[email protected]>
* Simplify code
Signed-off-by: David Gageot <[email protected]>
* Remove duplication
Signed-off-by: David Gageot <[email protected]>
* Fix#3405
Signed-off-by: David Gageot <[email protected]>
* Simplify code
Signed-off-by: David Gageot <[email protected]>
* Use similar code for every artifact type
Signed-off-by: David Gageot <[email protected]>
* Fix typo
Signed-off-by: David Gageot <[email protected]>
* Make sure we generate the same yaml as we used to
Signed-off-by: David Gageot <[email protected]>
// ConfiguredImage returns the target image configured by the builder, or empty string if no image is configured
81
-
func (jJib) ConfiguredImage() string {
82
-
returnj.Image
71
+
func (cArtifactConfig) ConfiguredImage() string {
72
+
returnc.Image
83
73
}
84
74
85
75
// Path returns the path to the build definition
86
-
func (jJib) Path() string {
87
-
returnj.FilePath
76
+
func (cArtifactConfig) Path() string {
77
+
returnc.File
88
78
}
89
79
90
80
// BuilderConfig contains information about inferred Jib configurations
@@ -93,8 +83,8 @@ type jibJSON struct {
93
83
Projectstring`json:"project"`
94
84
}
95
85
96
-
// ValidateJibConfig checks if a file is a valid Jib configuration. Returns the list of Config objects corresponding to each Jib project built by the file, or nil if Jib is not configured.
97
-
funcValidateJibConfig(pathstring) []Jib {
86
+
// validate checks if a file is a valid Jib configuration. Returns the list of Config objects corresponding to each Jib project built by the file, or nil if Jib is not configured.
0 commit comments