INNER CODE UNIT · Go

stripOCIPullProgress

databus23/helm-diff · cmd/helm.go:522

func stripOCIPullProgress(s []byte) []byte {
	return ociPullProgressRE.ReplaceAll(s, []byte(""))
}

// serverSideFlags returns the --server-side flag(s) to forward to helm.
//
// The flag is Helm v4 only:
//   - `helm upgrade` registers it as a string accepting "true", "false", "auto".
//   - `helm template` registers it as a bool (default true); "auto" is rejected.
//
// The flag has no effect on manifest rendering in dry-run mode — both
// `helm template` and `helm upgrade --dry-run` bail out before the apply
// step where ServerSideApply is actually consulted. It is forwarded purely
// for semantic correctness and so that helm-diff can be used as a drop-in
// wrapper around `helm upgrade` with the same flags.
func serverSideFlags(isHelmV4 bool, useUpgradeDryRun bool, serverSide string) []string {
	if !isHelmV4 {
		return nil

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…