Documentation ¶
Index ¶
- Constants
- Variables
- func IgnoreNotFound(err error) error
- type Client
- func (c *Client) Apply(ctx context.Context, obj client.Object) error
- func (c *Client) ApplyTemplate(ctx context.Context, name string, data *templates.Data) error
- func (r *Client) GetPlatform(ctx context.Context, namespace string) (*v1alpha1.Platform, error)
- func (c *Client) Merge(ctx context.Context, obj client.Object) error
- type ComponentManager
- type DeploymentReconciler
- type PlatformReconciler
- type ReleaseReconciler
- type TemplateData
Constants ¶
const ( NATSImage = "ghcr.io/xigxog/nats:2.9.23" VaultImage = "ghcr.io/xigxog/vault:1.14.4-v0.2.1-alpha" )
const ( TenYears string = "87600h" HundredYears string = "876000h" )
const (
FieldOwner client.FieldOwner = "kubefox-operator"
)
Variables ¶
var ( BrokerImage = fmt.Sprintf("ghcr.io/xigxog/kubefox/broker:%s", kubefox.Version()) BootstrapImage = fmt.Sprintf("ghcr.io/xigxog/kubefox/bootstrap:%s", kubefox.Version()) )
var (
ErrNotFound = fmt.Errorf("not found")
)
Functions ¶
func IgnoreNotFound ¶
Types ¶
type ComponentManager ¶
func (*ComponentManager) ReconcileComponents ¶
func (*ComponentManager) SetupComponent ¶
func (cm *ComponentManager) SetupComponent(ctx context.Context, td *TemplateData) (bool, error)
type DeploymentReconciler ¶
type DeploymentReconciler struct { *Client Instance string Scheme *runtime.Scheme // contains filtered or unexported fields }
DeploymentReconciler reconciles a Deployment object
func (*DeploymentReconciler) Reconcile ¶
func (r *DeploymentReconciler) 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 (*DeploymentReconciler) SetupWithManager ¶
func (r *DeploymentReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type PlatformReconciler ¶
type PlatformReconciler struct { *Client Instance string Namespace string VaultAddr string Scheme *runtime.Scheme // contains filtered or unexported fields }
PlatformReconciler reconciles a Platform object
func (*PlatformReconciler) Reconcile ¶
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 (*PlatformReconciler) SetupWithManager ¶
func (r *PlatformReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ReleaseReconciler ¶
type ReleaseReconciler struct { *Client Instance string Scheme *runtime.Scheme // contains filtered or unexported fields }
ReleaseReconciler reconciles a Release object
func (*ReleaseReconciler) Reconcile ¶
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 (*ReleaseReconciler) SetupWithManager ¶
func (r *ReleaseReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.