Documentation
¶
Index ¶
- Constants
- func ApplyExtraObjects(ctx context.Context, clusterClient ClusterClient, cluster *types.Cluster, ...) error
- func GetBundlesForCluster(ctx context.Context, cluster *v1alpha1.Cluster, fetch BundlesFetch) (*v1alpha1release.Bundles, error)
- func GetEksdRelease(cliVersion version.Info, clusterConfig *eksav1alpha1.Cluster) (*v1alpha1.EksDRelease, *eksdv1alpha1.Release, error)
- func GetGitOpsForCluster(ctx context.Context, cluster *v1alpha1.Cluster, fetch GitOpsFetch) (*v1alpha1.GitOpsConfig, error)
- func LoadManagement(kubeconfig string) (*types.Cluster, error)
- type BundlesFetch
- type ClusterClient
- type GitOpsFetch
- type KubeDistro
- type KubeObjects
- type Manifest
- type ManifestReader
- type Spec
- func BuildSpecForCluster(ctx context.Context, cluster *v1alpha1.Cluster, bundlesFetch BundlesFetch, ...) (*Spec, error)
- func BuildSpecFromBundles(cluster *eksav1alpha1.Cluster, bundles *v1alpha1.Bundles, opts ...SpecOpt) (*Spec, error)
- func NewSpec(opts ...SpecOpt) *Spec
- func NewSpecFromClusterConfig(clusterConfigPath string, cliVersion version.Info, opts ...SpecOpt) (*Spec, error)
- func (s *Spec) DeepCopy() *Spec
- func (s *Spec) GetBundles(cliVersion version.Info) (*v1alpha1.Bundles, error)
- func (s *Spec) GetRelease(cliVersion version.Info) (*v1alpha1.EksARelease, error)
- func (s *Spec) GetReleaseManifestUrl() string
- func (s *Spec) KubeDistroImages() []v1alpha1.Image
- func (s *Spec) LoadManifest(manifest v1alpha1.Manifest) (*Manifest, error)
- func (cs *Spec) SetDefaultGitOps()
- type SpecOpt
- func WithEmbedFS(embedFS embed.FS) SpecOpt
- func WithGitOpsConfig(gitOpsConfig *eksav1alpha1.GitOpsConfig) SpecOpt
- func WithManagementCluster(cluster *types.Cluster) SpecOpt
- func WithOverrideBundlesManifest(fileURL string) SpecOpt
- func WithReleasesManifest(manifestURL string) SpecOpt
- func WithUserAgent(userAgent string) SpecOpt
- type VersionedRepository
- type VersionsBundle
Constants ¶
View Source
const ( FluxDefaultNamespace = "flux-system" FluxDefaultBranch = "main" )
Variables ¶
This section is empty.
Functions ¶
func ApplyExtraObjects ¶
func GetBundlesForCluster ¶ added in v0.6.0
func GetBundlesForCluster(ctx context.Context, cluster *v1alpha1.Cluster, fetch BundlesFetch) (*v1alpha1release.Bundles, error)
func GetEksdRelease ¶
func GetEksdRelease(cliVersion version.Info, clusterConfig *eksav1alpha1.Cluster) (*v1alpha1.EksDRelease, *eksdv1alpha1.Release, error)
func GetGitOpsForCluster ¶ added in v0.6.1
func GetGitOpsForCluster(ctx context.Context, cluster *v1alpha1.Cluster, fetch GitOpsFetch) (*v1alpha1.GitOpsConfig, error)
Types ¶
type BundlesFetch ¶ added in v0.6.0
type ClusterClient ¶
type GitOpsFetch ¶ added in v0.6.1
type KubeDistro ¶
type KubeDistro struct { Kubernetes VersionedRepository CoreDNS VersionedRepository Etcd VersionedRepository NodeDriverRegistrar v1alpha1.Image LivenessProbe v1alpha1.Image ExternalAttacher v1alpha1.Image ExternalProvisioner v1alpha1.Image Pause v1alpha1.Image EtcdImage v1alpha1.Image EtcdVersion string AwsIamAuthIamge v1alpha1.Image }
type KubeObjects ¶
func BuildExtraObjects ¶
func BuildExtraObjects(clusterSpec *Spec) KubeObjects
func (KubeObjects) Names ¶
func (objs KubeObjects) Names() []string
func (KubeObjects) Values ¶
func (objs KubeObjects) Values() [][]byte
type ManifestReader ¶ added in v0.6.1
func NewManifestReader ¶ added in v0.6.1
func NewManifestReader(opts ...files.ReaderOpt) *ManifestReader
func (*ManifestReader) GetBundles ¶ added in v0.6.1
func (m *ManifestReader) GetBundles(bundlesURL string) (*v1alpha1.Bundles, error)
func (*ManifestReader) GetEksdRelease ¶ added in v0.6.1
func (m *ManifestReader) GetEksdRelease(versionsBundle *v1alpha1.VersionsBundle) (*eksdv1alpha1.Release, error)
func (*ManifestReader) GetReleases ¶ added in v0.6.1
func (m *ManifestReader) GetReleases(releasesManifest string) (*v1alpha1.Release, error)
type Spec ¶
type Spec struct { *eksav1alpha1.Cluster OIDCConfig *eksav1alpha1.OIDCConfig AWSIamConfig *eksav1alpha1.AWSIamConfig GitOpsConfig *eksav1alpha1.GitOpsConfig DatacenterConfig *metav1.ObjectMeta VersionsBundle *VersionsBundle Bundles *v1alpha1.Bundles ManagementCluster *types.Cluster // contains filtered or unexported fields }
func BuildSpecForCluster ¶ added in v0.6.0
func BuildSpecForCluster(ctx context.Context, cluster *v1alpha1.Cluster, bundlesFetch BundlesFetch, gitOpsFetch GitOpsFetch) (*Spec, error)
func BuildSpecFromBundles ¶
func NewSpecFromClusterConfig ¶ added in v0.6.1
func (*Spec) GetBundles ¶ added in v0.6.0
func (*Spec) GetRelease ¶ added in v0.6.0
func (*Spec) GetReleaseManifestUrl ¶ added in v0.6.0
func (*Spec) KubeDistroImages ¶ added in v0.6.0
func (*Spec) LoadManifest ¶
func (*Spec) SetDefaultGitOps ¶
func (cs *Spec) SetDefaultGitOps()
type SpecOpt ¶
type SpecOpt func(*Spec)
func WithEmbedFS ¶
func WithGitOpsConfig ¶ added in v0.6.1
func WithGitOpsConfig(gitOpsConfig *eksav1alpha1.GitOpsConfig) SpecOpt
func WithManagementCluster ¶ added in v0.6.0
func WithOverrideBundlesManifest ¶ added in v0.6.0
func WithReleasesManifest ¶
func WithUserAgent ¶ added in v0.6.1
type VersionedRepository ¶
type VersionedRepository struct {
Repository, Tag string
}
type VersionsBundle ¶
type VersionsBundle struct { *v1alpha1.VersionsBundle KubeDistro *KubeDistro }
func (*VersionsBundle) Images ¶ added in v0.6.0
func (vb *VersionsBundle) Images() []v1alpha1.Image
func (*VersionsBundle) KubeDistroImages ¶ added in v0.7.0
func (vb *VersionsBundle) KubeDistroImages() []v1alpha1.Image
func (*VersionsBundle) Manifests ¶ added in v0.6.0
func (vb *VersionsBundle) Manifests() map[string][]v1alpha1.Manifest
func (*VersionsBundle) Ovas ¶ added in v0.6.0
func (vb *VersionsBundle) Ovas() []v1alpha1.Archive
Source Files
¶
Click to show internal directories.
Click to hide internal directories.