|
|
|
@ -98,7 +98,7 @@
|
|
|
|
|
branch string?]
|
|
|
|
|
(str "https://" host "/api/v1/repos/" user "/" repo "/archive/" branch ".zip"))
|
|
|
|
|
|
|
|
|
|
(defn-spec replace-all-matching-subvalues-in-string-start pred/map-or-seq?
|
|
|
|
|
(defn-spec replace-all-matching-substrings-beginning-with pred/map-or-seq?
|
|
|
|
|
[col pred/map-or-seq?
|
|
|
|
|
value-to-partly-match string?
|
|
|
|
|
value-to-inplace string?]
|
|
|
|
@ -114,7 +114,7 @@
|
|
|
|
|
(->
|
|
|
|
|
(yaml/load-as-edn resource-file)
|
|
|
|
|
(assoc-in [:metadata :labels :app.kubernetes.part-of] (generate-app-name unique-name))
|
|
|
|
|
(replace-all-matching-subvalues-in-string-start "NAME" (replace-dots-by-minus unique-name)))))
|
|
|
|
|
(replace-all-matching-substrings-beginning-with "NAME" (replace-dots-by-minus unique-name)))))
|
|
|
|
|
|
|
|
|
|
(defn-spec replace-build-data pred/map-or-seq?
|
|
|
|
|
[resource-file string?
|
|
|
|
|