Skip to content

Commit 628b58b

Browse files
committed
Dropped the status field
Signed-off-by: michaelawyu <[email protected]>
1 parent a09cb6b commit 628b58b

File tree

8 files changed

+5
-425
lines changed

8 files changed

+5
-425
lines changed

apis/cluster/v1beta1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/placement/v1alpha1/envelope_types.go

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ type ClusterResourceEnvelope struct {
3535
// The desired state of ClusterResourceEnvelope.
3636
// +kubebuilder:validation:Required
3737
Spec EnvelopeSpec `json:"spec"`
38-
39-
// The observed status of ClusterResourceEnvelope.
40-
// +kubebuilder:validation:Optional
41-
Status ClusterResourceEnvelopeStatus `json:"status,omitempty"`
4238
}
4339

4440
// EnvelopeSpec helps wrap resources for placement.
@@ -62,38 +58,6 @@ type Manifest struct {
6258
Data runtime.RawExtension `json:"data"`
6359
}
6460

65-
// ClusterResourceEnvelopeStatus is the observed status of a ClusterResourceEnvelope.
66-
type ClusterResourceEnvelopeStatus struct {
67-
// +patchMergeKey=type
68-
// +patchStrategy=merge
69-
// +listType=map
70-
// +listMapKey=type
71-
//
72-
// Conditions is an array of current observed conditions for ClusterResourceEnvelope.
73-
// +kubebuilder:validation:Optional
74-
Conditions []metav1.Condition `json:"conditions,omitempty"`
75-
76-
// ManifestConditions is an array of current observed conditions for each manifest in the envelope.
77-
// +kubebuilder:validation:Optional
78-
ManifestConditions []ManifestCondition `json:"manifestConditions,omitempty"`
79-
}
80-
81-
// ManifestCondition is the observed conditions of a wrapped manifest.
82-
type ManifestCondition struct {
83-
// The name of the manifest.
84-
// +kubebuilder:validation:Required
85-
Name string `json:"name"`
86-
87-
// +patchMergeKey=type
88-
// +patchStrategy=merge
89-
// +listType=map
90-
// +listMapKey=type
91-
//
92-
// Conditions is an array of current observed conditions for a wrapped manifest.
93-
// +kubebuilder:validation:Optional
94-
Conditions []metav1.Condition `json:"conditions,omitempty"`
95-
}
96-
9761
// +genclient
9862
// +genclient:Namespaced
9963
// +kubebuilder:object:root=true
@@ -106,24 +70,4 @@ type ResourceEnvelope struct {
10670
// The desired state of ResourceEnvelope.
10771
// +kubebuilder:validation:Required
10872
Spec EnvelopeSpec `json:"spec"`
109-
110-
// The observed status of ResourceEnvelope.
111-
// +kubebuilder:validation:Optional
112-
Status ResourceEnvelopeStatus `json:"status,omitempty"`
113-
}
114-
115-
// ResourceEnvelopeStatus is the observed status of a ResourceEnvelope.
116-
type ResourceEnvelopeStatus struct {
117-
// +patchMergeKey=type
118-
// +patchStrategy=merge
119-
// +listType=map
120-
// +listMapKey=type
121-
//
122-
// Conditions is an array of current observed conditions for ResourceEnvelope.
123-
// +kubebuilder:validation:Optional
124-
Conditions []metav1.Condition `json:"conditions,omitempty"`
125-
126-
// ManifestConditions is an array of current observed conditions for each manifest in the envelope.
127-
// +kubebuilder:validation:Optional
128-
ManifestConditions []ManifestCondition `json:"manifestConditions,omitempty"`
12973
}

apis/placement/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/placement/v1beta1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apis/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/crd/bases/placement.kubernetes-fleet.io_clusterresourceenvelopes.yaml

Lines changed: 0 additions & 141 deletions
Original file line numberDiff line numberDiff line change
@@ -65,147 +65,6 @@ spec:
6565
required:
6666
- manifests
6767
type: object
68-
status:
69-
description: The observed status of ClusterResourceEnvelope.
70-
properties:
71-
conditions:
72-
description: Conditions is an array of current observed conditions
73-
for ClusterResourceEnvelope.
74-
items:
75-
description: Condition contains details for one aspect of the current
76-
state of this API Resource.
77-
properties:
78-
lastTransitionTime:
79-
description: |-
80-
lastTransitionTime is the last time the condition transitioned from one status to another.
81-
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
82-
format: date-time
83-
type: string
84-
message:
85-
description: |-
86-
message is a human readable message indicating details about the transition.
87-
This may be an empty string.
88-
maxLength: 32768
89-
type: string
90-
observedGeneration:
91-
description: |-
92-
observedGeneration represents the .metadata.generation that the condition was set based upon.
93-
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
94-
with respect to the current state of the instance.
95-
format: int64
96-
minimum: 0
97-
type: integer
98-
reason:
99-
description: |-
100-
reason contains a programmatic identifier indicating the reason for the condition's last transition.
101-
Producers of specific condition types may define expected values and meanings for this field,
102-
and whether the values are considered a guaranteed API.
103-
The value should be a CamelCase string.
104-
This field may not be empty.
105-
maxLength: 1024
106-
minLength: 1
107-
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
108-
type: string
109-
status:
110-
description: status of the condition, one of True, False, Unknown.
111-
enum:
112-
- "True"
113-
- "False"
114-
- Unknown
115-
type: string
116-
type:
117-
description: type of condition in CamelCase or in foo.example.com/CamelCase.
118-
maxLength: 316
119-
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
120-
type: string
121-
required:
122-
- lastTransitionTime
123-
- message
124-
- reason
125-
- status
126-
- type
127-
type: object
128-
type: array
129-
x-kubernetes-list-map-keys:
130-
- type
131-
x-kubernetes-list-type: map
132-
manifestConditions:
133-
description: ManifestConditions is an array of current observed conditions
134-
for each manifest in the envelope.
135-
items:
136-
description: ManifestCondition is the observed conditions of a wrapped
137-
manifest.
138-
properties:
139-
conditions:
140-
description: Conditions is an array of current observed conditions
141-
for a wrapped manifest.
142-
items:
143-
description: Condition contains details for one aspect of
144-
the current state of this API Resource.
145-
properties:
146-
lastTransitionTime:
147-
description: |-
148-
lastTransitionTime is the last time the condition transitioned from one status to another.
149-
This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
150-
format: date-time
151-
type: string
152-
message:
153-
description: |-
154-
message is a human readable message indicating details about the transition.
155-
This may be an empty string.
156-
maxLength: 32768
157-
type: string
158-
observedGeneration:
159-
description: |-
160-
observedGeneration represents the .metadata.generation that the condition was set based upon.
161-
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
162-
with respect to the current state of the instance.
163-
format: int64
164-
minimum: 0
165-
type: integer
166-
reason:
167-
description: |-
168-
reason contains a programmatic identifier indicating the reason for the condition's last transition.
169-
Producers of specific condition types may define expected values and meanings for this field,
170-
and whether the values are considered a guaranteed API.
171-
The value should be a CamelCase string.
172-
This field may not be empty.
173-
maxLength: 1024
174-
minLength: 1
175-
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
176-
type: string
177-
status:
178-
description: status of the condition, one of True, False,
179-
Unknown.
180-
enum:
181-
- "True"
182-
- "False"
183-
- Unknown
184-
type: string
185-
type:
186-
description: type of condition in CamelCase or in foo.example.com/CamelCase.
187-
maxLength: 316
188-
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
189-
type: string
190-
required:
191-
- lastTransitionTime
192-
- message
193-
- reason
194-
- status
195-
- type
196-
type: object
197-
type: array
198-
x-kubernetes-list-map-keys:
199-
- type
200-
x-kubernetes-list-type: map
201-
name:
202-
description: The name of the manifest.
203-
type: string
204-
required:
205-
- name
206-
type: object
207-
type: array
208-
type: object
20968
required:
21069
- spec
21170
type: object

0 commit comments

Comments
 (0)