Skip to content

Commit

Permalink
Merge pull request #578 from Jougan-0/updateIsnameSpace
Browse files Browse the repository at this point in the history
update the isnamespace w/signoff
  • Loading branch information
Mohd Uzair authored Aug 23, 2024
2 parents d63c8af + 329e3f6 commit 169af2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/component/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ func Generate(crd string) (component.ComponentDefinition, error) {
}
scope, _ := extractCueValueFromPath(crdCue, DefaultPathConfig.ScopePath)
if scope == "Cluster" {
cmp.Metadata.AdditionalProperties["isNamespaced"] = false
cmp.Metadata.IsNamespaced = false
} else if scope == "Namespaced" {
cmp.Metadata.AdditionalProperties["isNamespaced"] = true
cmp.Metadata.IsNamespaced = true
}
cmp.Component.Kind = name
if group != "" {
Expand Down

0 comments on commit 169af2d

Please sign in to comment.