Skip to content

Commit

Permalink
strip generation from metadata (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhouston authored Dec 22, 2022
1 parent 9609917 commit b51c2d1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.1.10

- Fix generation field not being stripped when using --strip

# 0.1.9

- Fix comma placement when formatting multi-line string values inside lists
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: build docker docker-push release install test clean

VERSION := 0.1.9
VERSION := 0.1.10
DOCKER_IMAGE_NAME := jrhouston/tfk8s

build:
Expand Down
1 change: 1 addition & 0 deletions tfk8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ var ignoreMetadata = []string{
"uid",
"managedFields",
"finalizers",
"generation",
}

// ignoreAnnotations is the list of annotations to strip
Expand Down
1 change: 1 addition & 0 deletions tfk8s_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ metadata:
resourceVersion: "677134"
selfLink: /api/v1/namespaces/default/configmaps/test
uid: bea6500b-0637-4d2d-b726-e0bda0b595dd
generation: 1
finalizers:
- test`

Expand Down

0 comments on commit b51c2d1

Please sign in to comment.