Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelawyu committed Nov 12, 2024
1 parent 381e56e commit 06ef6ff
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 9 deletions.
10 changes: 7 additions & 3 deletions apis/placement/v1/work_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,19 @@ type WorkResourceIdentifier struct {
// Kind is the kind of the resource.
Kind string `json:"kind,omitempty"`

// Resource is the resource type of the resource
// Resource is the resource type of the resource.
Resource string `json:"resource,omitempty"`

// Namespace is the namespace of the resource, the resource is cluster scoped if the value
// is empty
// is empty.
Namespace string `json:"namespace,omitempty"`

// Name is the name of the resource
// Name is the name of the resource.
Name string `json:"name,omitempty"`

// GenerateName is the generate name of the resource. This field will be populated if the
// object to place has a generate name only.
GenerateName string `json:"generateName,omitempty"`
}

// ManifestCondition represents the conditions of the resources deployed on
Expand Down
11 changes: 8 additions & 3 deletions config/crd/bases/placement.kubernetes-fleet.io_appliedworks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,27 +78,32 @@ spec:
AppliedResourceMeta represents the group, version, resource, name and namespace of a resource.
Since these resources have been created, they must have valid group, version, resource, namespace, and name.
properties:
generateName:
description: |-
GenerateName is the generate name of the resource. This field will be populated if the
object to place has a generate name only.
type: string
group:
description: Group is the group of the resource.
type: string
kind:
description: Kind is the kind of the resource.
type: string
name:
description: Name is the name of the resource
description: Name is the name of the resource.
type: string
namespace:
description: |-
Namespace is the namespace of the resource, the resource is cluster scoped if the value
is empty
is empty.
type: string
ordinal:
description: |-
Ordinal represents an index in manifests list, so the condition can still be linked
to a manifest even though manifest cannot be parsed successfully.
type: integer
resource:
description: Resource is the resource type of the resource
description: Resource is the resource type of the resource.
type: string
uid:
description: |-
Expand Down
11 changes: 8 additions & 3 deletions config/crd/bases/placement.kubernetes-fleet.io_works.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -266,27 +266,32 @@ spec:
description: resourceId represents a identity of a resource
linking to manifests in spec.
properties:
generateName:
description: |-
GenerateName is the generate name of the resource. This field will be populated if the
object to place has a generate name only.
type: string
group:
description: Group is the group of the resource.
type: string
kind:
description: Kind is the kind of the resource.
type: string
name:
description: Name is the name of the resource
description: Name is the name of the resource.
type: string
namespace:
description: |-
Namespace is the namespace of the resource, the resource is cluster scoped if the value
is empty
is empty.
type: string
ordinal:
description: |-
Ordinal represents an index in manifests list, so the condition can still be linked
to a manifest even though manifest cannot be parsed successfully.
type: integer
resource:
description: Resource is the resource type of the resource
description: Resource is the resource type of the resource.
type: string
version:
description: Version is the version of the resource.
Expand Down

0 comments on commit 06ef6ff

Please sign in to comment.