Skip to content

Commit

Permalink
Removing creationTimestamp under Template object
Browse files Browse the repository at this point in the history
Signed-off-by: David Peraza <dperaza@redhat.com>
  • Loading branch information
dperaza4dustbit committed Jul 15, 2024
1 parent c680957 commit 3b5fe4e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cmd/generate/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ const header = `# --------------------------------------------------------------
func writeFile(filePath string, content []byte) error {
// https://github.com/kubernetes/kubernetes/issues/67610
contentString := strings.ReplaceAll(string(content), "\n creationTimestamp: null", "")
contentString = strings.ReplaceAll(contentString, "\n creationTimestamp: null", "")
contentString = strings.ReplaceAll(contentString, "\nuser: {}", "")
contentString = fmt.Sprintf("%s%s", header, contentString)
return os.WriteFile(filePath, []byte(contentString), 0600)
Expand Down

0 comments on commit 3b5fe4e

Please sign in to comment.