Documentation ¶
Index ¶
- type C7nConfiguration
- type Install
- type InstallK8s
- type InstallRunner
- func (ir *InstallRunner) GetClientSet() *kubernetes.Clientset
- func (ir *InstallRunner) InitInstallRunner(c *config.C7nConfig)
- func (ir *InstallRunner) InstallGitlabRunner(instDef *resource.InstallDefinition, namespace string) error
- func (ir *InstallRunner) RenderGitlabRunner(id *resource.InstallDefinition, namespace string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type C7nConfiguration ¶
type C7nConfiguration struct { // kubeClient is a kubernetes API client // TODO refactor kubeClient KubeClient *c7nclient.K8sClient // HelmInstall is a client for working with helm // helm3 的都是依赖于这个 // HelmClient *c7nclient.Helm3Client }
C7nConfiguration injects the dependencies that all actions shares.
func (*C7nConfiguration) CheckReleasePodRunning ¶
func (c *C7nConfiguration) CheckReleasePodRunning(rls, namespace string)
基础组件——比如 gitlab-ha ——有 app 标签,c7n 有 choerodon.io/release 标签 TODO 去掉 app label
func (*C7nConfiguration) CheckResource ¶
func (c *C7nConfiguration) CheckResource(resources *v1.ResourceRequirements) error
func (*C7nConfiguration) CreateImagePullSecret ¶
func (c *C7nConfiguration) CreateImagePullSecret(drs []resource.DockerRegistry)
func (*C7nConfiguration) Init ¶
func (c *C7nConfiguration) Init(kubeconfig, namespace string)
type Install ¶
type Install struct { ResourceClient *resource.Client Name string Namespace string // 安装资源的路径,helm 的 values.yaml 文件在其路径下的 values 文件夹中 ResourcePath string Version string HelmValues string // C7nGatewayUrl string ClientOnly bool // 以下都是初始化到 InstallDefinition 的配置项 Prefix string ImageRepository string ChartRepository string DatasourceTpl string ThinMode bool // contains filtered or unexported fields }
func NewInstall ¶
func NewInstall(cfg *C7nConfiguration) *Install
func (*Install) CheckNamespace ¶
func (*Install) InstallReleases ¶
func (i *Install) InstallReleases(inst *resource.InstallDefinition) error
type InstallK8s ¶
type InstallK8s struct { Cfg C7nConfiguration Ssh client.Host Hosts []string MasterIPs []string NodeIPs []string Version string Network string VIP string }
func (InstallK8s) RunInstallK8s ¶
func (i InstallK8s) RunInstallK8s() error
func (*InstallK8s) RunJoinNode ¶
func (i *InstallK8s) RunJoinNode()
type InstallRunner ¶
type InstallRunner struct { ResourcePath string Version string // contains filtered or unexported fields }
func NewInstallRunner ¶
func NewInstallRunner(cfg *C7nConfiguration) *InstallRunner
func (*InstallRunner) GetClientSet ¶
func (ir *InstallRunner) GetClientSet() *kubernetes.Clientset
func (*InstallRunner) InitInstallRunner ¶
func (ir *InstallRunner) InitInstallRunner(c *config.C7nConfig)
func (*InstallRunner) InstallGitlabRunner ¶
func (ir *InstallRunner) InstallGitlabRunner(instDef *resource.InstallDefinition, namespace string) error
func (*InstallRunner) RenderGitlabRunner ¶
func (ir *InstallRunner) RenderGitlabRunner(id *resource.InstallDefinition, namespace string)
Click to show internal directories.
Click to hide internal directories.