Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the kfdef v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/kubeflow/kfctl/v3/pkg/apis/apps/kfdef +k8s:defaulter-gen=TypeMeta +groupName=kfdef.apps.kubeflow.org
Index ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type Application
- type EnvSource
- type KfDef
- func (in *KfDef) DeepCopy() *KfDef
- func (in *KfDef) DeepCopyInto(out *KfDef)
- func (in *KfDef) DeepCopyObject() runtime.Object
- func (d *KfDef) DeleteApplication(appName string)
- func (d *KfDef) GetPluginSpec(pluginKind string, s interface{}) error
- func (d *KfDef) GetSecret(name string) (string, error)
- func (d *KfDef) IsValid() (bool, string)
- func (d *KfDef) SetPluginSpec(pluginKind string, spec interface{}) error
- func (d *KfDef) SetSecret(newSecret Secret)
- type KfDefCondition
- type KfDefConditionType
- type KfDefList
- type KfDefSpec
- type KfDefStatus
- type KustomizeConfig
- type LiteralSource
- type NameValue
- type Plugin
- type Repo
- type RepoCache
- type RepoRef
- type Secret
- type SecretRef
- type SecretSource
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "kfdef.apps.kubeflow.org", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is required by pkg/kfdef/... AddToScheme = localSchemeBuilder.AddToScheme )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/kfdef/listers/...
Types ¶
type Application ¶
type Application struct { Name string `json:"name,omitempty"` KustomizeConfig *KustomizeConfig `json:"kustomizeConfig,omitempty"` }
Application defines an application to install
func (*Application) DeepCopy ¶
func (in *Application) DeepCopy() *Application
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Application.
func (*Application) DeepCopyInto ¶
func (in *Application) DeepCopyInto(out *Application)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EnvSource ¶
type EnvSource struct {
Name string `json:"name,omitempty"`
}
func (*EnvSource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvSource.
func (*EnvSource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KfDef ¶
type KfDef struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KfDefSpec `json:"spec,omitempty"` Status KfDefStatus `json:"status,omitempty"` }
KfDef is the Schema for the applications API +k8s:openapi-gen=true
func (*KfDef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KfDef.
func (*KfDef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KfDef) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KfDef) DeleteApplication ¶
func (*KfDef) GetPluginSpec ¶
GetPluginSpec will try to unmarshal the spec for the specified plugin to the supplied interface. Returns an error if the plugin isn't defined or if there is a problem unmarshaling it.
func (*KfDef) GetSecret ¶
GetSecret returns the specified secret or an error if the secret isn't specified.
func (*KfDef) IsValid ¶
IsValid returns true if the spec is a valid and complete spec. If false it will also return a string providing a message about why its invalid.
func (*KfDef) SetPluginSpec ¶
SetPluginSpec sets the requested parameter: add the plugin if it doesn't already exist, or replace existing plugin.
type KfDefCondition ¶
type KfDefCondition struct { // Type of deployment condition. Type KfDefConditionType `json:"type"` // Status of the condition, one of True, False, Unknown. Status v1.ConditionStatus `json:"status"` // The last time this condition was updated. LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty"` // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty"` // A human readable message indicating details about the transition. Message string `json:"message,omitempty"` }
func (*KfDefCondition) DeepCopy ¶
func (in *KfDefCondition) DeepCopy() *KfDefCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KfDefCondition.
func (*KfDefCondition) DeepCopyInto ¶
func (in *KfDefCondition) DeepCopyInto(out *KfDefCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KfDefConditionType ¶
type KfDefConditionType string
const ( // KfAvailable means Kubeflow is serving. KfAvailable KfDefConditionType = "Available" // KfDegraded means one or more Kubeflow services are not healthy. KfDegraded KfDefConditionType = "Degraded" // Pending means Kubeflow services is being updated. Pending KfDefConditionType = "Pending" )
type KfDefList ¶
type KfDefList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KfDef `json:"items"` }
KfDefList contains a list of KfDef
func (*KfDefList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KfDefList.
func (*KfDefList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KfDefList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KfDefSpec ¶
type KfDefSpec struct { Version string `json:"version,omitempty"` Applications []Application `json:"applications,omitempty"` Plugins []Plugin `json:"plugins,omitempty"` Secrets []Secret `json:"secrets,omitempty"` Repos []Repo `json:"repos,omitempty"` }
func (*KfDefSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KfDefSpec.
func (*KfDefSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KfDefStatus ¶
type KfDefStatus struct { Conditions []KfDefCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"` // ReposCache is used to cache information about local caching of the URIs. ReposCache []RepoCache `json:"reposCache,omitempty"` }
KfDefStatus defines the observed state of KfDef
func (*KfDefStatus) DeepCopy ¶
func (in *KfDefStatus) DeepCopy() *KfDefStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KfDefStatus.
func (*KfDefStatus) DeepCopyInto ¶
func (in *KfDefStatus) DeepCopyInto(out *KfDefStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KustomizeConfig ¶
type KustomizeConfig struct { RepoRef *RepoRef `json:"repoRef,omitempty"` Overlays []string `json:"overlays,omitempty"` Parameters []NameValue `json:"parameters,omitempty"` }
func (*KustomizeConfig) DeepCopy ¶
func (in *KustomizeConfig) DeepCopy() *KustomizeConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KustomizeConfig.
func (*KustomizeConfig) DeepCopyInto ¶
func (in *KustomizeConfig) DeepCopyInto(out *KustomizeConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LiteralSource ¶
type LiteralSource struct {
Value string `json:"value,omitempty"`
}
func (*LiteralSource) DeepCopy ¶
func (in *LiteralSource) DeepCopy() *LiteralSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LiteralSource.
func (*LiteralSource) DeepCopyInto ¶
func (in *LiteralSource) DeepCopyInto(out *LiteralSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NameValue ¶
func (*NameValue) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NameValue.
func (*NameValue) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Plugin ¶
type Plugin struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec *runtime.RawExtension `json:"spec,omitempty"` }
Plugin can be used to customize the generation and deployment of Kubeflow
func (*Plugin) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Plugin.
func (*Plugin) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Repo ¶
type Repo struct { // Name is a name to identify the repository. Name string `json:"name,omitempty"` // URI where repository can be obtained. // Can use any URI understood by go-getter: // https://github.com/hashicorp/go-getter/blob/master/README.md#installation-and-usage URI string `json:"uri,omitempty"` }
Repo provides information about a repository providing config (e.g. kustomize packages, Deployment manager configs, etc...)
func (*Repo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Repo.
func (*Repo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepoCache ¶
type RepoCache struct { Name string `json:"name,omitempty"` LocalPath string `json:"localPath,string"` }
func (*RepoCache) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepoCache.
func (*RepoCache) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepoRef ¶
func (*RepoRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepoRef.
func (*RepoRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Secret ¶
type Secret struct { Name string `json:"name,omitempty"` SecretSource *SecretSource `json:"secretSource,omitempty"` }
Secret provides information about secrets needed to configure Kubeflow. Secrets can be provided via references.
func (*Secret) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Secret.
func (*Secret) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretRef ¶
type SecretRef struct { // Name of the secret Name string `json:"name,omitempty"` }
SecretRef is a reference to a secret
func (*SecretRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef.
func (*SecretRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretSource ¶
type SecretSource struct { LiteralSource *LiteralSource `json:"literalSource,omitempty"` EnvSource *EnvSource `json:"envSource,omitempty"` }
func (*SecretSource) DeepCopy ¶
func (in *SecretSource) DeepCopy() *SecretSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretSource.
func (*SecretSource) DeepCopyInto ¶
func (in *SecretSource) DeepCopyInto(out *SecretSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.