Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtlasMigrationReconciler ¶ added in v0.1.7
type AtlasMigrationReconciler struct { client.Client CLI MigrateCLI Scheme *runtime.Scheme // contains filtered or unexported fields }
AtlasMigrationReconciler reconciles a AtlasMigration object
func NewAtlasMigrationReconciler ¶ added in v0.1.7
func NewAtlasMigrationReconciler(mgr manager.Manager, cli MigrateCLI) *AtlasMigrationReconciler
func (*AtlasMigrationReconciler) Reconcile ¶ added in v0.1.7
func (r *AtlasMigrationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
func (*AtlasMigrationReconciler) SetupWithManager ¶ added in v0.1.7
func (r *AtlasMigrationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type AtlasSchemaReconciler ¶
AtlasSchemaReconciler reconciles a AtlasSchema object
func NewAtlasSchemaReconciler ¶ added in v0.1.7
func NewAtlasSchemaReconciler(mgr manager.Manager, cli CLI) *AtlasSchemaReconciler
func (*AtlasSchemaReconciler) Reconcile ¶
func (r *AtlasSchemaReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile
func (*AtlasSchemaReconciler) SetupWithManager ¶
func (r *AtlasSchemaReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type CLI ¶
type CLI interface { SchemaApply(context.Context, *atlas.SchemaApplyParams) (*atlas.SchemaApply, error) SchemaInspect(ctx context.Context, data *atlas.SchemaInspectParams) (string, error) Lint(ctx context.Context, data *atlas.LintParams) (*atlas.SummaryReport, error) }
type MigrateCLI ¶ added in v0.1.7
type MigrateCLI interface { Apply(ctx context.Context, data *atlas.ApplyParams) (*atlas.ApplyReport, error) Status(ctx context.Context, data *atlas.StatusParams) (*atlas.StatusReport, error) }
CLI is the interface used to interact with Atlas CLI