Expand description
Remote kustomize target helpers.
Ported from internal/backends/kustomize/remote.go. Not yet
implemented.
Functions§
- has_
pinned_ ref - Ported from
HasPinnedRef. Reports whether a remote target carries an explicit git ref (?ref=or its synonym?version=). An unpinned target builds whatever the repository’s default branch points at, which is not reproducible. - is_
remote_ target - Ported from
IsRemoteTarget. Reports whetherpathis a kustomize remote target: a URL whose scheme kustomize can resolve (http/https/ssh/file). Everything else is a local path. - redact_
credentials - Ported from
RedactCredentials. Returnstargetsafe for logging: credentials embedded in a URL-form remote target’s userinfo are removed, leaving scheme, host, path, and query. The whole userinfo goes, not just the password, because tokens are commonly passed as a bare username. Local paths are returned unchanged. - url_
scheme - Ported from
URLScheme. Returns the URL scheme ofpath, or empty whenpathhas none or does not parse as a URL. Only paths containing “://” count as URLs, so a local path with a colon in its first segment (overlays:v2/dev,c:/x) stays a local path.