Documentation ¶
Index ¶
- Variables
- func NewKruiseConfig() version.IVersionedConfig
- type DeployConfig
- type Deployment
- type DeploymentDesc
- type HelmChart
- type HelmDeployment
- type HelmRepository
- type KeyVal
- type KruiseConfig
- type KubectlDeployment
- type KubectlDockerRegistrySecret
- type KubectlGenericSecret
- type KubectlManifest
- type KubectlSecrets
- type LoggerConfig
- type Profile
Constants ¶
This section is empty.
Variables ¶
var Version = "v1alpha1"
Functions ¶
func NewKruiseConfig ¶
func NewKruiseConfig() version.IVersionedConfig
NewKruiseConfig represents the schema of the Kruise manifest
Types ¶
type DeployConfig ¶
type DeployConfig struct { Deployments []Deployment `mapstructure:"deployments"` Profiles []Profile `mapstructure:"profiles"` }
DeployConfig represents a map of dynamic Deployments
type Deployment ¶
type Deployment struct { Aliases []string `mapstructure:"aliases"` Description DeploymentDesc `mapstructure:"description"` Helm HelmDeployment `mapstructure:"helm"` Kubectl KubectlDeployment `mapstructure:"kubectl"` Name string `mapstructure:"name"` }
Deployment represents a flexible means of mapping multiple Helm and Kubectl installers to a single key
Aliases and Description are used to determine how the Deployment appears in the Kruise CLI
type DeploymentDesc ¶
type DeploymentDesc struct { Deploy string `mapstructure:"deploy"` Delete string `mapstructure:"delete"` }
DeploymentDesc represents the descriptions of the Deployment for the deploy and delete commands
type HelmChart ¶
type HelmChart struct { ChartName string `mapstructure:"chartName"` ReleaseName string `mapstructure:"releaseName"` RepoName string `mapstructure:"repoName"` Namespace string `mapstructure:"namespace"` Values []string `mapstructure:"values"` SetValues []string `mapstructure:"setValues"` InstallArgs []string `mapstructure:"installArgs"` UninstallArgs []string `mapstructure:"uninstallArgs"` Priority int `mapstructure:"priority"` Version string `mapstructure:"version"` Init bool `mapstructure:"init"` }
HelmChart represents Helm chart information
type HelmDeployment ¶
type HelmDeployment struct { Repositories []HelmRepository `mapstructure:"repositories"` Charts []HelmChart `mapstructure:"charts"` }
HelmDeployment represents multiple Helm repositories and Helm charts
type HelmRepository ¶
type HelmRepository struct { Url string `mapstructure:"url"` Name string `mapstructure:"name"` Private bool `mapstructure:"private"` Init bool `mapstructure:"init"` }
HelmRepository represents Helm repository information
type KruiseConfig ¶
type KruiseConfig struct { APIVersion string `mapstructure:"apiVersion"` Kind string `mapstructure:"kind"` Logger LoggerConfig `mapstructure:"logger"` Deploy DeployConfig `mapstructure:"deploy"` }
KruiseConfig represents the top level keys of the Kruise manifest file
func (*KruiseConfig) GetVersion ¶
func (c *KruiseConfig) GetVersion() string
GetVersion is used to get the apiVersion of the Kruise config
type KubectlDeployment ¶
type KubectlDeployment struct { Secrets KubectlSecrets `mapstructure:"secrets"` Manifests []KubectlManifest `mapstructure:"manifests"` }
KubectlDeployment represents multiple Kubectl secrets and Kubectl manifests
type KubectlDockerRegistrySecret ¶
type KubectlDockerRegistrySecret struct { Name string `mapstructure:"name"` Namespace string `mapstructure:"namespace"` Registry string `mapstructure:"registry"` Init bool `mapstructure:"init"` }
KubectlDockerRegistrySecret represents a docker-registry Kubernetes secret
type KubectlGenericSecret ¶
type KubectlGenericSecret struct { Name string `mapstructure:"name"` Namespace string `mapstructure:"namespace"` Literal []KeyVal `mapstructure:"literal"` Init bool `mapstructure:"init"` }
KubectlGenericSecret represents a generic Kubernetes secret
type KubectlManifest ¶
type KubectlManifest struct { Namespace string `mapstructure:"namespace"` Priority int `mapstructure:"priority"` Paths []string `mapstructure:"paths"` Init bool `mapstructure:"init"` }
KubectlManifest represents Kubectl manifest information
type KubectlSecrets ¶
type KubectlSecrets struct { Generic []KubectlGenericSecret `mapstructure:"generic"` DockerRegistry []KubectlDockerRegistrySecret `mapstructure:"dockerRegistry"` }
KubectlSecrets represents different types of Kubernetes secrets