[SKIP-CI] Renamed function

This commit is contained in:
Clemens 2022-12-02 12:03:48 +01:00
parent f126035e84
commit 529e7d46b6

View file

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