Skip to content

Commit

Permalink
Merge pull request #31 from DoodleScheduling/fix-remove-owner
Browse files Browse the repository at this point in the history
fix: remove ownerreferences from generated crds
  • Loading branch information
raffis committed Feb 8, 2024
2 parents dca3388 + 975b0fc commit 67e02d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/parser/parser.go
Expand Up @@ -141,6 +141,7 @@ func (p *Parser) handleResource(obj runtime.Object, gvk *schema.GroupVersionKind

crd.Kind = "CustomResourceDefinition"
crd.APIVersion = "apiextensions.k8s.io/v1"
crd.OwnerReferences = nil
out <- crd

if xcrDefinition.Spec.ClaimNames.Kind != "" {
Expand All @@ -151,6 +152,7 @@ func (p *Parser) handleResource(obj runtime.Object, gvk *schema.GroupVersionKind

crd.Kind = "CustomResourceDefinition"
crd.APIVersion = "apiextensions.k8s.io/v1"
crd.OwnerReferences = nil
out <- crd
}
}
Expand Down

0 comments on commit 67e02d3

Please sign in to comment.