Skip to content

Commit

Permalink
Separate ResourceEditor types
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Jan 18, 2024
1 parent f415526 commit 267a08d
Show file tree
Hide file tree
Showing 9 changed files with 856 additions and 4 deletions.
89 changes: 89 additions & 0 deletions apis/meta/v1alpha1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 29 additions & 4 deletions apis/meta/v1alpha1/resourceeditor_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,34 @@ limitations under the License.

package v1alpha1

import uiapi "kmodules.xyz/resource-metadata/apis/ui/v1alpha1"
import (
uiapi "kmodules.xyz/resource-metadata/apis/ui/v1alpha1"

type (
ResourceEditor = uiapi.ResourceEditor
ResourceEditorList = uiapi.ResourceEditorList
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

// +genclient
// +genclient:nonNamespaced
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// +kubebuilder:object:root=true
// +kubebuilder:resource:path=resourceeditors,singular=resourceeditor,scope=Cluster
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
type ResourceEditor struct {
metav1.TypeMeta `json:",inline"`
// +optional
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec uiapi.ResourceEditorSpec `json:"spec,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:object:root=true

type ResourceEditorList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ResourceEditor `json:"items,omitempty"`
}
60 changes: 60 additions & 0 deletions apis/meta/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions client/clientset/versioned/typed/meta/v1alpha1/meta_client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 267a08d

Please sign in to comment.