Documentation ¶
Index ¶
- Variables
- func NewRepository(namespace, piNamespace string, k8sClient client.Client, k8sConfig *rest.Config) mp_repository.Repository
- func TransformMpFromK8s(mp *v1alpha1.ModelPackaging) (*packaging.ModelPackaging, error)
- func TransformMpToK8s(mp *packaging.ModelPackaging, k8sNamespace string) (*v1alpha1.ModelPackaging, error)
- func TransformPackagingIntegrationFromK8s(pi *v1alpha1.PackagingIntegration) (*packaging.PackagingIntegration, error)
- func TransformPiToK8s(pi *packaging.PackagingIntegration, k8sNamespace string) (*v1alpha1.PackagingIntegration, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MpMaxSize = 500 MpFirstPage = 0 )
View Source
var ( MaxSize = 500 FirstPage = 0 )
Functions ¶
func NewRepository ¶
func NewRepository(namespace, piNamespace string, k8sClient client.Client, k8sConfig *rest.Config) mp_repository.Repository
func TransformMpFromK8s ¶
func TransformMpFromK8s(mp *v1alpha1.ModelPackaging) (*packaging.ModelPackaging, error)
TODO: add doc about map[string]interface{} https://github.com/kubernetes-sigs/kubebuilder/releases/tag/v2.0.0
func TransformMpToK8s ¶
func TransformMpToK8s(mp *packaging.ModelPackaging, k8sNamespace string) (*v1alpha1.ModelPackaging, error)
Take a look to the documentation of TransformPackagingIntegrationFromK8s
func TransformPackagingIntegrationFromK8s ¶
func TransformPackagingIntegrationFromK8s(pi *v1alpha1.PackagingIntegration) (*packaging.PackagingIntegration, error)
We should save the arguments structure inside json string in k8s -repository Because before < 2.0.0 kubebuilder, it can not handle interface{} field. TODO: make upgrade https://github.com/kubernetes-sigs/kubebuilder/releases/tag/v2.0.0
func TransformPiToK8s ¶
func TransformPiToK8s(pi *packaging.PackagingIntegration, k8sNamespace string) (*v1alpha1.PackagingIntegration, error)
Take a look to the documentation of TransformPackagingIntegrationFromK8s
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.