Documentation ¶
Overview ¶
Package apps contains apps API versions
Index ¶
- Constants
- func Capture() func() (string, error)
- func DownloadToCache(appDir string, repo string, version string) (string, error)
- func EmailToDefaultName(email string) string
- func GetApiExtClientset(config *rest.Config) apiext.ApiextensionsV1beta1Interface
- func GetClientset(config *rest.Config) *clientset.Clientset
- func GetConfig() *rest.Config
- func GetKubeConfig() *clientcmdapi.Config
- func GetServerVersion(c *clientset.Clientset) string
- func KubeConfigPath() string
- func LoadKfApp(name string, kfdef *kfdefsv2.KfDef) (kfapps.KfApp, error)
- func QuoteItems(items []string) []string
- func RemoveItem(defaults []string, name string) []string
- type CliOption
- type KfShow
Constants ¶
const ( DefaultNamespace = "kubeflow" // TODO: find the latest tag dynamically DefaultVersion = "v0.6.1" KfConfigFile = "app.yaml" KustomizationFile = "kustomization.yaml" KustomizationParamFile = "params.env" DefaultCacheDir = ".cache" KubeflowRepo = "kubeflow" ManifestsRepo = "manifests" DefaultConfigDir = "bootstrap/config" DefaultZone = "us-east1-d" DefaultGkeApiVer = "v1beta1" DefaultAppLabel = "app.kubernetes.io/name" DefaultAppVersion = "app.kubernetes.io/version" DefaultAppType = "kubeflow" KUBEFLOW_USERNAME = "KUBEFLOW_USERNAME" KUBEFLOW_PASSWORD = "KUBEFLOW_PASSWORD" DefaultSwaggerFile = "bootstrap/k8sSpec/v1.11.7/api/openapi-spec/swagger.json" )
const ( AWS = "aws" GCP = "gcp" MINIKUBE = "minikube" )
Platforms
const ( KSONNET = "ksonnet" KUSTOMIZE = "kustomize" )
PackageManagers
Variables ¶
This section is empty.
Functions ¶
func Capture ¶
Capture replaces os.Stdout with a writer that buffers any data written to os.Stdout. Call the returned function to cleanup and get the data as a string. This is used in cases where the API we're calling writes to stdout eg ksonnet's show
func DownloadToCache ¶
DownloadToCache will download a version of kubeflow github repo or the manifests repo where version can be
master tag pull/<ID>[/head]
It returns the local file path of where the repo was downloaded
func EmailToDefaultName ¶
Remove unvalid characters to compile a valid name for default Profile. To prevent violation to the naming length restriction, ignore everything after `@`.
func GetApiExtClientset ¶
func GetApiExtClientset(config *rest.Config) apiext.ApiextensionsV1beta1Interface
GetApiExtClientset returns a client that can query for CRDs
func GetClientset ¶
GetClientset returns a k8s clientset using .kube/config credentials
func GetKubeConfig ¶
func GetKubeConfig() *clientcmdapi.Config
GetKubeConfig returns a representation of $HOME/.kube/config
func GetServerVersion ¶
GetServerVersion returns the verison of the k8 api server
func KubeConfigPath ¶
func KubeConfigPath() string
TODO(#2586): Consolidate kubeconfig and API calls. KubeConfigPath returns the filepath to the k8 client config file
func QuoteItems ¶
QuoteItems will place quotes around the string arrays items
func RemoveItem ¶
RemoveItem will remove a string item from the string array
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package kfdef contains kfdef related types
|
Package kfdef contains kfdef related types |
v1alpha1
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/kubeflow/bootstrap/v2/pkg/apis/apps/kfdef +k8s:defaulter-gen=TypeMeta +groupName=kfdef.apps.kubeflow.org
|
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/kubeflow/bootstrap/v2/pkg/apis/apps/kfdef +k8s:defaulter-gen=TypeMeta +groupName=kfdef.apps.kubeflow.org |