Documentation ¶
Index ¶
- func DigToString(m dig.Mapping, keys ...string) string
- func ParseCoreComponentManifests(data []byte) (v1.HelmChart, error)
- type Addon
- type Blueprint
- type BlueprintSpec
- type CertManagement
- type ChartInfo
- type Components
- type CoreComponent
- type Host
- type Infra
- type K0s
- type K0sCluster
- type K0sClusterSpec
- type Kubernetes
- type LocalHost
- type ManifestInfo
- type Metadata
- type Resources
- type SSHHost
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Addon ¶
type Addon struct { Name string `yaml:"name" json:"name"` Kind string `yaml:"kind" json:"kind"` Enabled bool `yaml:"enabled" json:"enabled"` DryRun bool `yaml:"dryRun" json:"dryRun"` Namespace string `yaml:"namespace,omitempty" json:"namespace,omitempty"` Chart *ChartInfo `yaml:"chart,omitempty" json:"chart,omitempty"` Manifest *ManifestInfo `yaml:"manifest,omitempty" json:"manifest,omitempty"` }
Addon defines the desired state of an Addon
type Blueprint ¶
type Blueprint struct { APIVersion string `yaml:"apiVersion" json:"apiVersion"` Kind string `yaml:"kind" json:"kind"` Metadata Metadata `yaml:"metadata" json:"metadata"` Spec BlueprintSpec `yaml:"spec" json:"spec"` }
func ConvertToClusterWithK0s ¶
func ConvertToClusterWithK0s(k0s K0sCluster, components Components) Blueprint
func ConvertToClusterWithKind ¶
func ConvertToClusterWithKind(name string, components Components) Blueprint
func ParseBoundlessCluster ¶
type BlueprintSpec ¶
type BlueprintSpec struct { Version string `yaml:"version" json:"version"` Kubernetes *Kubernetes `yaml:"kubernetes,omitempty" json:"kubernetes,omitempty"` Components Components `yaml:"components" json:"components"` Resources *Resources `yaml:"resources,omitempty" json:"resources,omitempty"` }
func (*BlueprintSpec) Validate ¶
func (bs *BlueprintSpec) Validate() error
Validate checks the BlueprintSpec structure and its children
type CertManagement ¶
type CertManagement struct {
v1alpha1.CertManagement `json:",inline"`
}
CertManagement defines the desired state of cert-manager resources
func (*CertManagement) Validate ¶
func (c *CertManagement) Validate() error
Validate checks the CertManagement structure and its children
type ChartInfo ¶
type ChartInfo struct { Name string `yaml:"name" json:"name"` Repo string `yaml:"repo" json:"repo"` Version string `yaml:"version" json:"version"` Set map[string]intstr.IntOrString `yaml:"set,omitempty" json:"set,omitempty"` Values *apiextensionsv1.JSON `yaml:"values,omitempty" json:"values,omitempty"` }
ChartInfo defines the desired state of chart
type Components ¶
type Components struct {
Addons []Addon `yaml:"addons,omitempty" json:"addons,omitempty"`
}
func (*Components) Validate ¶
func (c *Components) Validate() error
Validate checks the Components structure and its children
type CoreComponent ¶
type Host ¶
type K0sCluster ¶
type K0sCluster struct { APIVersion string `yaml:"apiVersion" json:"apiVersion"` Kind string `yaml:"kind" json:"kind"` Metadata Metadata `yaml:"metadata" json:"metadata"` Spec K0sClusterSpec `yaml:"spec" json:"spec"` }
func ConvertToK0s ¶
func ConvertToK0s(cluster *Blueprint) K0sCluster
func ParseK0sCluster ¶
func ParseK0sCluster(data []byte) (K0sCluster, error)
type K0sClusterSpec ¶
type Kubernetes ¶
type Kubernetes struct { Provider string `yaml:"provider" json:"provider"` Version string `yaml:"version,omitempty" json:"version,omitempty"` Config dig.Mapping `yaml:"config,omitempty" json:"config,omitempty"` Infra *Infra `yaml:"infra,omitempty" json:"infra,omitempty"` KubeConfig string `yaml:"kubeconfig,omitempty" json:"kubeConfig,omitempty"` }
func (*Kubernetes) Validate ¶
func (k *Kubernetes) Validate() error
Validate checks the Kubernetes structure and its children
type ManifestInfo ¶
type ManifestInfo struct { URL string `yaml:"url" json:"url"` FailurePolicy string `yaml:"failurePolicy,omitempty" json:"failurePolicy,omitempty"` Timeout string `yaml:"timeout,omitempty" json:"timeout,omitempty"` Values *v1alpha1.Values `yaml:"values,omitempty" json:"values,omitempty"` }
ManifestInfo defines the desired state of manifest
func (*ManifestInfo) Validate ¶
func (mi *ManifestInfo) Validate() error
Validate checks the ManifestInfo structure and its children
type Resources ¶
type Resources struct {
CertManagement CertManagement `yaml:"certManagement,omitempty" json:"certManagement,omitempty"`
}
Resources defines the desired state of k8s resources managed by BOP
Click to show internal directories.
Click to hide internal directories.