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 ¶
- Constants
- Variables
- func IsAppNotFound(e error) bool
- func IsPluginNotFound(e error) bool
- func IsSecretNotFound(e error) bool
- func Resource(resource string) schema.GroupResource
- type AppConfig
- type AppNotFound
- type Application
- type EnvSource
- type HashedSource
- type KfDef
- func (in *KfDef) DeepCopy() *KfDef
- func (in *KfDef) DeepCopyInto(out *KfDef)
- func (in *KfDef) DeepCopyObject() runtime.Object
- func (d *KfDef) GetApplicationParameter(appName string, paramName string) (string, bool)
- func (d *KfDef) GetPluginSpec(pluginName string, s interface{}) error
- func (d *KfDef) GetSecret(name string) (string, error)
- func (d *KfDef) IsValid() (bool, string)
- func (d *KfDef) SetApplicationParameter(appName string, paramName string, value string) error
- func (d *KfDef) SetPluginSpec(pluginName string, spec interface{}) error
- func (d *KfDef) SetSecret(newSecret Secret)
- func (d *KfDef) SyncCache() error
- func (d *KfDef) WriteToFile(path string) error
- type KfDefCondition
- type KfDefConditionType
- type KfDefList
- type KfDefSpec
- type KfDefStatus
- type KsComponent
- type KsLibrary
- type KsModule
- type KsPackage
- type KsParameter
- type KsRegistry
- type KustomizeConfig
- type LibrarySpec
- type LiteralSource
- type Plugin
- type PluginNotFound
- type RegistriesConfigFile
- type Registry
- type RegistryConfig
- type Repo
- type RepoCache
- type RepoRef
- type Secret
- type SecretNotFound
- type SecretRef
- type SecretSource
Constants ¶
const DefaultCacheDir = ".cache"
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "kfdef.apps.kubeflow.org", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is required by pkg/kfdef/... AddToScheme = localSchemeBuilder.AddToScheme )
var DefaultRegistry = RegistryConfig{
Name: "kubeflow",
Repo: "https://github.com/kubeflow/kubeflow.git",
Path: "kubeflow",
}
Functions ¶
func IsAppNotFound ¶
func IsPluginNotFound ¶
func IsSecretNotFound ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource is required by pkg/kfdef/listers/...
Types ¶
type AppConfig ¶
type AppConfig struct { Registries []*RegistryConfig `json:"registries,omitempty"` Packages []KsPackage `json:"packages,omitempty"` Components []KsComponent `json:"components,omitempty"` Parameters []KsParameter `json:"parameters,omitempty"` // Parameters to apply when creating the ksonnet components ApplyParameters []KsParameter `json:"applyParameters,omitempty"` }
func (*AppConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppConfig.
func (*AppConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AppNotFound ¶
type AppNotFound struct {
Name string
}
func (*AppNotFound) DeepCopy ¶
func (in *AppNotFound) DeepCopy() *AppNotFound
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppNotFound.
func (*AppNotFound) DeepCopyInto ¶
func (in *AppNotFound) DeepCopyInto(out *AppNotFound)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppNotFound) Error ¶
func (e *AppNotFound) Error() string
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 HashedSource ¶
type HashedSource struct {
HashedValue string `json:"value,omitempty"`
}
func (*HashedSource) DeepCopy ¶
func (in *HashedSource) DeepCopy() *HashedSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HashedSource.
func (*HashedSource) DeepCopyInto ¶
func (in *HashedSource) DeepCopyInto(out *HashedSource)
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 LoadKFDefFromURI ¶
TODO: THIS FUNCTION IS DEPRECATED. PLEASE USE `LoadKFDefFromURI` in kfloader.go LoadKFDefFromURI constructs a KfDef given the path to a YAML file specifying a YAML config file. configFile is the path to the YAML file containing the KfDef spec. Can be any URI supported by hashicorp go-getter.
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) GetApplicationParameter ¶
GetApplicationParameter gets the desired application parameter.
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) SetApplicationParameter ¶
SetApplicationParameter sets the desired application parameter.
func (*KfDef) SetPluginSpec ¶
SetPluginSpec sets the requested parameter. The plugin is added if it doesn't already exist.
func (*KfDef) SetSecret ¶
SetSecret sets the specified secret; if a secret with the given name already exists it is overwritten.
func (*KfDef) SyncCache ¶
SyncCache will synchronize the local cache of any repositories. On success the status is updated with pointers to the cache.
TODO(jlewi): I'm not sure this handles head references correctly. e.g. suppose we have a URI like https://github.com/kubeflow/manifests/tarball/pull/189/head?archive=tar.gz This gets unpacked to: kubeflow-manifests-e2c1bcb where e2c1bcb is the commit. I don't think the code is currently setting the local directory for the cache correctly in that case.
Using tarball vs. archive in github links affects the download path e.g. https://github.com/kubeflow/manifests/tarball/master?archive=tar.gz
unpacks to kubeflow-manifests-${COMMIT}
https://github.com/kubeflow/manifests/archive/master.tar.gz
unpacks to manifests-master
Always use archive format so that the path is predetermined.
Instructions: https://github.com/hashicorp/go-getter#protocol-specific-options
What is the correct syntax for downloading pull requests? The following doesn't seem to work https://github.com/kubeflow/manifests/archive/master.tar.gz?ref=pull/188
- Appears to download master
This appears to work https://github.com/kubeflow/manifests/tarball/pull/188/head?archive=tar.gz But unpacks it into kubeflow-manifests-${COMMIT}
func (*KfDef) WriteToFile ¶
WriteToFile write the KfDef to a file. WriteToFile will strip out any literal secrets before writing it
type KfDefCondition ¶
type KfDefCondition struct { // Type of deployment condition. Type KfDefConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=KfDefConditionType"` // Status of the condition, one of True, False, Unknown. Status v1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"` // The last time this condition was updated. LastUpdateTime metav1.Time `json:"lastUpdateTime,omitempty" protobuf:"bytes,6,opt,name=lastUpdateTime"` // Last time the condition transitioned from one status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,7,opt,name=lastTransitionTime"` // The reason for the condition's last transition. Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"` // A human readable message indicating details about the transition. Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"` }
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 ( // KfCreated means the KfDef spec has been created. KfCreated KfDefConditionType = "Created" // KfDeploying means Kubeflow is in the process of being deployed. KfDeploying KfDefConditionType = "Deploying" // KfSucceeded means Kubeflow was successfully deployed. KfSucceeded KfDefConditionType = "Succeeded" // KfFailed meansthere was a problem deploying Kubeflow. KfFailed KfDefConditionType = "Failed" // InvalidKfDefSpecReason indicates the KfDef was not valid. InvalidKfDefSpecReason = "InvalidKfDefSpec" )
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 { config.ComponentConfig `json:",inline"` // TODO(jlewi): Why is AppDir a part of the spec? AppDir is currently used // to refer to the location on disk where all the manifests are stored. // But that should be treated as a local cache and not part of the spec. // For example, if the app is checked out on a different machine the AppDir will change. // AppDir. AppDir is stored in KfDefSpec because we pass a KfDef around to // as a way to pass the information to all the KfApps that need to know the local AppDir. // A better solution might be to store AppDir in KfDef.Status to better reflect its // ephemeral nature and match K8s semantics. AppDir string `json:"appdir,omitempty"` Version string `json:"version,omitempty"` MountLocal bool `json:"mountLocal,omitempty"` // TODO(jlewi): Project, Email, IpName, Hostname, Zone and other // GCP specific values should be moved into GCP plugin. Project string `json:"project,omitempty"` Email string `json:"email,omitempty"` IpName string `json:"ipName,omitempty"` Hostname string `json:"hostname,omitempty"` Zone string `json:"zone,omitempty"` UseBasicAuth bool `json:"useBasicAuth"` SkipInitProject bool `json:"skipInitProject,omitempty"` UseIstio bool `json:"useIstio"` EnableApplications bool `json:"enableApplications"` ServerVersion string `json:"serverVersion,omitempty"` DeleteStorage bool `json:"deleteStorage,omitempty"` PackageManager string `json:"packageManager,omitempty"` Repos []Repo `json:"repos,omitempty"` Secrets []Secret `json:"secrets,omitempty"` Plugins []Plugin `json:"plugins,omitempty"` // Applications defines a list of applications to install Applications []Application `json:"applications,omitempty"` }
KfDefSpec holds common attributes used by each platform
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" protobuf:"bytes,6,rep,name=conditions"` // ReposCache is used to cache information about local caching of the URIs. ReposCache map[string]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 KsComponent ¶
type KsComponent struct { Name string `json:"name,omitempty"` Prototype string `json:"prototype,omitempty"` }
func (*KsComponent) DeepCopy ¶
func (in *KsComponent) DeepCopy() *KsComponent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KsComponent.
func (*KsComponent) DeepCopyInto ¶
func (in *KsComponent) DeepCopyInto(out *KsComponent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KsLibrary ¶
type KsLibrary struct { Name string `json:"name"` Registry string `json:"registry"` Version string `json:"version"` }
func (*KsLibrary) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KsLibrary.
func (*KsLibrary) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KsModule ¶
type KsModule struct { Name string `json:"name"` Components []*KsComponent `json:"components,omitempty"` Modules []*KsModule `json:"modules,omitempty"` }
func (*KsModule) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KsModule.
func (*KsModule) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KsPackage ¶
type KsPackage struct { Name string `json:"name,omitempty"` // Registry should be the name of the registry containing the package. Registry string `json:"registry,omitempty"` }
func (*KsPackage) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KsPackage.
func (*KsPackage) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KsParameter ¶
type KsParameter struct { // nested components are referenced as "a.b.c" where "a" or "b" may be a module name Component string `json:"component,omitempty"` Name string `json:"name,omitempty"` Value string `json:"value,omitempty"` }
func (*KsParameter) DeepCopy ¶
func (in *KsParameter) DeepCopy() *KsParameter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KsParameter.
func (*KsParameter) DeepCopyInto ¶
func (in *KsParameter) DeepCopyInto(out *KsParameter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KsRegistry ¶
type KsRegistry struct { ApiVersion string Kind string Libraries map[string]LibrarySpec }
KsRegistry corresponds to ksonnet.io/registry which is the registry.yaml file found in every registry.
func (*KsRegistry) DeepCopy ¶
func (in *KsRegistry) DeepCopy() *KsRegistry
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KsRegistry.
func (*KsRegistry) DeepCopyInto ¶
func (in *KsRegistry) DeepCopyInto(out *KsRegistry)
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 []config.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 LibrarySpec ¶
func (*LibrarySpec) DeepCopy ¶
func (in *LibrarySpec) DeepCopy() *LibrarySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LibrarySpec.
func (*LibrarySpec) DeepCopyInto ¶
func (in *LibrarySpec) DeepCopyInto(out *LibrarySpec)
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 Plugin ¶
type Plugin struct { Name string `json:"name,omitempty"` // TODO(jlewi): Should we be using runtime.Object or runtime.RawExtension Spec *runtime.RawExtension `json:"spec,omitempty"` }
Plugin can be used to customize the generation and deployment of Kubeflow TODO(jlewi): Should Plugin contain K8s TypeMeta so that we can use ApiVersion and Kind to identify what it refers to?
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 PluginNotFound ¶
type PluginNotFound struct {
Name string
}
func NewPluginNotFound ¶
func NewPluginNotFound(n string) *PluginNotFound
func (*PluginNotFound) DeepCopy ¶
func (in *PluginNotFound) DeepCopy() *PluginNotFound
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PluginNotFound.
func (*PluginNotFound) DeepCopyInto ¶
func (in *PluginNotFound) DeepCopyInto(out *PluginNotFound)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PluginNotFound) Error ¶
func (e *PluginNotFound) Error() string
type RegistriesConfigFile ¶
type RegistriesConfigFile struct { // Registries provides information about known registries. Registries []*RegistryConfig }
RegistriesConfigFile corresponds to a YAML file specifying information about known registries.
func (*RegistriesConfigFile) DeepCopy ¶
func (in *RegistriesConfigFile) DeepCopy() *RegistriesConfigFile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegistriesConfigFile.
func (*RegistriesConfigFile) DeepCopyInto ¶
func (in *RegistriesConfigFile) DeepCopyInto(out *RegistriesConfigFile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Registry ¶
type Registry struct { // Name is the user defined name of a registry. Name string `json:"-"` // Protocol is the registry protocol for this registry. Currently supported // values are `github`, `fs`, `helm`. Protocol string `json:"protocol"` // URI is the location of the registry. URI string `json:"uri"` }
func (*Registry) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Registry.
func (*Registry) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RegistryConfig ¶
type RegistryConfig struct { Name string `json:"name,omitempty"` Repo string `json:"repo,omitempty"` Version string `json:"version,omitempty"` Path string `json:"path,omitempty"` RegUri string `json:"reguri,omitempty"` }
RegistryConfig is used for two purposes:
- used during image build, to configure registries that should be baked into the bootstrapper docker image. (See: https://github.com/kubeflow/kubeflow/blob/master/bootstrap/image_registries.yaml)
- used during app create rpc call, specifies a registry to be added to an app. required info for registry: Name, Repo, Version, Path Additionally if any of required fields is blank we will try to map with one of the registries baked into the Docker image using the name.
func GetDefaultRegistry ¶
func GetDefaultRegistry() *RegistryConfig
GetDefaultRegistry return reference of a newly copied Default Registry
func (*RegistryConfig) DeepCopy ¶
func (in *RegistryConfig) DeepCopy() *RegistryConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RegistryConfig.
func (*RegistryConfig) DeepCopyInto ¶
func (in *RegistryConfig) DeepCopyInto(out *RegistryConfig)
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"` // Root is the relative path to use as the root. // TODO(jlewi): Get rid of this field. SyncCache now takes care of setting the directory // as needed. Root string `json:"root,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 {
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 e.g. a URI so that they won't be serialized as part of the KfDefSpec which is intended to be written into source control.
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 SecretNotFound ¶
type SecretNotFound struct {
Name string
}
func NewSecretNotFound ¶
func NewSecretNotFound(n string) *SecretNotFound
func (*SecretNotFound) DeepCopy ¶
func (in *SecretNotFound) DeepCopy() *SecretNotFound
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretNotFound.
func (*SecretNotFound) DeepCopyInto ¶
func (in *SecretNotFound) DeepCopyInto(out *SecretNotFound)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SecretNotFound) Error ¶
func (e *SecretNotFound) Error() string
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"` HashedSource *HashedSource `json:"hashedSource,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.