Skip to content

Commit

Permalink
fix namespace ignore (#81)
Browse files Browse the repository at this point in the history
Signed-off-by: shubhindia <shubhindia123@gmail.com>
  • Loading branch information
shubhindia committed Sep 2, 2021
1 parent a8dcaac commit b10c6ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/lint.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func lintFile(filename string, imageTags []string) error {
}

// return here because we are ignoring namespace kind from new ridecell-controller/summon-operator manifests
if len(manifest) == 1 && manifest[0].Kind == "Namespace" {
if len(manifest) == 1 && manifest[0].Object.DeepCopyObject().GetObjectKind().GroupVersionKind().Kind == "Namespace" {
return nil
}
// we need to do this because we don't want more than two objects in manifest but we already checked for empty manifest above.
Expand Down

0 comments on commit b10c6ec

Please sign in to comment.