Skip to content

Commit

Permalink
Update description of new field Exists
Browse files Browse the repository at this point in the history
  • Loading branch information
p-se committed Aug 29, 2024
1 parent fa1581b commit 25f73d0
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
30 changes: 30 additions & 0 deletions charts/fleet-crd/templates/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,10 @@ spec:
delete:
type: boolean
exist:
description: Exist is true if the resource exists but is not
owned by us. This can happen if a resource was adopted by
another bundle whereas the first bundle still exists and
due to that reports that it does not own it.
type: boolean
kind:
nullable: true
Expand Down Expand Up @@ -2737,6 +2741,12 @@ spec:
delete:
type: boolean
exist:
description: Exist is true if the resource
exists but is not owned by us. This can
happen if a resource was adopted by another
bundle whereas the first bundle still exists
and due to that reports that it does not
own it.
type: boolean
kind:
nullable: true
Expand Down Expand Up @@ -2955,6 +2965,11 @@ spec:
delete:
type: boolean
exist:
description: Exist is true if the resource exists
but is not owned by us. This can happen if a resource
was adopted by another bundle whereas the first
bundle still exists and due to that reports that
it does not own it.
type: boolean
kind:
nullable: true
Expand Down Expand Up @@ -3389,6 +3404,11 @@ spec:
delete:
type: boolean
exist:
description: Exist is true if the resource exists
but is not owned by us. This can happen if a resource
was adopted by another bundle whereas the first
bundle still exists and due to that reports that
it does not own it.
type: boolean
kind:
nullable: true
Expand Down Expand Up @@ -5785,6 +5805,11 @@ spec:
delete:
type: boolean
exist:
description: Exist is true if the resource exists
but is not owned by us. This can happen if a resource
was adopted by another bundle whereas the first
bundle still exists and due to that reports that
it does not own it.
type: boolean
kind:
nullable: true
Expand Down Expand Up @@ -6749,6 +6774,11 @@ spec:
delete:
type: boolean
exist:
description: Exist is true if the resource exists
but is not owned by us. This can happen if a resource
was adopted by another bundle whereas the first
bundle still exists and due to that reports that
it does not own it.
type: boolean
kind:
nullable: true
Expand Down
10 changes: 6 additions & 4 deletions pkg/apis/fleet.cattle.io/v1alpha1/bundledeployment_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"fmt"
"strings"

"github.com/rancher/wrangler/v3/pkg/genericcondition"
"github.com/rancher/wrangler/v3/pkg/summary"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"

"github.com/rancher/wrangler/v3/pkg/genericcondition"
"github.com/rancher/wrangler/v3/pkg/summary"
)

const BundleDeploymentResourceNamePlural = "bundledeployments"
Expand Down Expand Up @@ -407,8 +408,9 @@ type ModifiedStatus struct {
// +nullable
Name string `json:"name,omitempty"`
Create bool `json:"missing,omitempty"`
Exist bool `json:"exist,omitempty"`
Delete bool `json:"delete,omitempty"`
// Exist is true if the resource exists but is not owned by us. This can happen if a resource was adopted by another bundle whereas the first bundle still exists and due to that reports that it does not own it.
Exist bool `json:"exist,omitempty"`
Delete bool `json:"delete,omitempty"`
// +nullable
Patch string `json:"patch,omitempty"`
}
Expand Down

0 comments on commit 25f73d0

Please sign in to comment.