Documentation
¶
Overview ¶
Copyright 2022 The KubeSphere Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func NewClusterRESTClientGetter(kubeconfig, namespace string) genericclioptions.RESTClientGetter
- func NewHelmWrapper(kubeconfig, ns, rls string, options ...Option) *helmWrapper
- func NewMemoryRESTClientGetter(kubeConfig []byte, namespace string) genericclioptions.RESTClientGetter
- type HelmRes
- type HelmWrapper
- type MemoryRESTClientGetter
- func (c *MemoryRESTClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
- func (c *MemoryRESTClientGetter) ToRESTConfig() (*rest.Config, error)
- func (c *MemoryRESTClientGetter) ToRESTMapper() (meta.RESTMapper, error)
- func (c *MemoryRESTClientGetter) ToRawKubeConfigLoader() clientcmd.ClientConfig
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorTimedOutToWaitResource = errors.New("timed out waiting for resources to be ready") UninstallNotFoundFormat = "uninstall: Release not loaded: %s: release: not found" StatusNotFoundFormat = "release: not found" )
Functions ¶
func NewClusterRESTClientGetter ¶
func NewClusterRESTClientGetter(kubeconfig, namespace string) genericclioptions.RESTClientGetter
func NewHelmWrapper ¶
func NewMemoryRESTClientGetter ¶
func NewMemoryRESTClientGetter(kubeConfig []byte, namespace string) genericclioptions.RESTClientGetter
Types ¶
type HelmWrapper ¶
type HelmWrapper interface { Install(chartName, chartData, values string) error // upgrade a release Upgrade(chartName, chartData, values string) error Uninstall() error // Get manifests Manifest() (string, error) // IsReleaseReady check helm release is ready or not IsReleaseReady(timeout time.Duration) (bool, error) }
type MemoryRESTClientGetter ¶
type MemoryRESTClientGetter struct {
// contains filtered or unexported fields
}
MemoryRESTClientGetter is an implementation of the genericclioptions.RESTClientGetter,
func (*MemoryRESTClientGetter) ToDiscoveryClient ¶
func (c *MemoryRESTClientGetter) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)
func (*MemoryRESTClientGetter) ToRESTConfig ¶
func (c *MemoryRESTClientGetter) ToRESTConfig() (*rest.Config, error)
func (*MemoryRESTClientGetter) ToRESTMapper ¶
func (c *MemoryRESTClientGetter) ToRESTMapper() (meta.RESTMapper, error)
func (*MemoryRESTClientGetter) ToRawKubeConfigLoader ¶
func (c *MemoryRESTClientGetter) ToRawKubeConfigLoader() clientcmd.ClientConfig
Click to show internal directories.
Click to hide internal directories.