2023-05-24 12:31:57 -05:00
|
|
|
// Code generated - EDITING IS FUTILE. DO NOT EDIT.
|
|
|
|
//
|
|
|
|
// Generated by:
|
|
|
|
// kinds/gen.go
|
|
|
|
// Using jennies:
|
2024-02-26 03:18:19 -06:00
|
|
|
// K8ResourcesJenny
|
2023-05-24 12:31:57 -05:00
|
|
|
//
|
|
|
|
// Run 'make gen-cue' from repository root to regenerate.
|
|
|
|
|
|
|
|
package role
|
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Metadata defines model for Metadata.
|
|
|
|
type Metadata struct {
|
|
|
|
CreatedBy string `json:"createdBy"`
|
|
|
|
CreationTimestamp time.Time `json:"creationTimestamp"`
|
|
|
|
DeletionTimestamp *time.Time `json:"deletionTimestamp,omitempty"`
|
|
|
|
|
|
|
|
// extraFields is reserved for any fields that are pulled from the API server metadata but do not have concrete fields in the CUE metadata
|
2023-06-16 03:54:56 -05:00
|
|
|
ExtraFields map[string]any `json:"extraFields"`
|
|
|
|
Finalizers []string `json:"finalizers"`
|
|
|
|
Labels map[string]string `json:"labels"`
|
|
|
|
ResourceVersion string `json:"resourceVersion"`
|
|
|
|
Uid string `json:"uid"`
|
|
|
|
UpdateTimestamp time.Time `json:"updateTimestamp"`
|
|
|
|
UpdatedBy string `json:"updatedBy"`
|
2023-05-24 12:31:57 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// _kubeObjectMetadata is metadata found in a kubernetes object's metadata field.
|
|
|
|
// It is not exhaustive and only includes fields which may be relevant to a kind's implementation,
|
|
|
|
// As it is also intended to be generic enough to function with any API Server.
|
|
|
|
type KubeObjectMetadata struct {
|
|
|
|
CreationTimestamp time.Time `json:"creationTimestamp"`
|
|
|
|
DeletionTimestamp *time.Time `json:"deletionTimestamp,omitempty"`
|
|
|
|
Finalizers []string `json:"finalizers"`
|
|
|
|
Labels map[string]string `json:"labels"`
|
|
|
|
ResourceVersion string `json:"resourceVersion"`
|
|
|
|
Uid string `json:"uid"`
|
|
|
|
}
|