MCPcopy Index your code
hub / github.com/databus23/helm-diff / getComment

Function getComment

diff/diff.go:450–456  ·  view source on GitHub ↗

return the first line of a string if its a comment. This gives as the # Source: lines from the rendering

(s string)

Source from the content-addressed store, hash-verified

448// return the first line of a string if its a comment.
449// This gives as the # Source: lines from the rendering
450func getComment(s string) string {
451 i := strings.Index(s, "\n")
452 if i < 0 || !strings.HasPrefix(s, "#") {
453 return ""
454 }
455 return s[:i+1]
456}
457
458// Releases reindex the content based on the template names and pass it to Manifests
459func Releases(oldIndex, newIndex map[string]*manifest.MappingResult, options *Options, to io.Writer) bool {

Callers 2

redactSecretsFunction · 0.85
decodeSecretsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected