Documentation ¶
Index ¶
- func IsStatusReconciled(ec *marin3rv1alpha1.EnvoyConfig, cacheState, publishedVersion string, ...) bool
- type RevisionReconciler
- func (r *RevisionReconciler) DesiredVersion() string
- func (r *RevisionReconciler) EnvoyAPI() envoy.APIVersion
- func (r *RevisionReconciler) GetCacheState() string
- func (r *RevisionReconciler) GetRevisionList() *marin3rv1alpha1.EnvoyConfigRevisionList
- func (r *RevisionReconciler) Instance() *marin3rv1alpha1.EnvoyConfig
- func (r *RevisionReconciler) Namespace() string
- func (r *RevisionReconciler) NodeID() string
- func (r *RevisionReconciler) PublishedVersion() string
- func (r *RevisionReconciler) Reconcile() (ctrl.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsStatusReconciled ¶
func IsStatusReconciled(ec *marin3rv1alpha1.EnvoyConfig, cacheState, publishedVersion string, list *marin3rv1alpha1.EnvoyConfigRevisionList) bool
IsStatusReconciled calculates the status of the resource
Types ¶
type RevisionReconciler ¶
type RevisionReconciler struct {
// contains filtered or unexported fields
}
RevisionReconciler is a struct with methods to reconcile EnvoyConfig revisions
func NewRevisionReconciler ¶
func NewRevisionReconciler(ctx context.Context, logger logr.Logger, client client.Client, s *runtime.Scheme, ec *marin3rv1alpha1.EnvoyConfig) RevisionReconciler
NewRevisionReconciler returns a new RevisionReconciler
func (*RevisionReconciler) DesiredVersion ¶
func (r *RevisionReconciler) DesiredVersion() string
DesiredVersion returns the version of the EnvoyConfig the reconciler has been instantiated with
func (*RevisionReconciler) EnvoyAPI ¶
func (r *RevisionReconciler) EnvoyAPI() envoy.APIVersion
EnvoyAPI returns the envoy API version of the EnvoyConfig the reconciler has been instantiated with
func (*RevisionReconciler) GetCacheState ¶
func (r *RevisionReconciler) GetCacheState() string
GetCacheState returns the status of the EnvoyConfig the reconciler has been instantiated with. If Reconcile has not been successfully invoked it will return nil.
func (*RevisionReconciler) GetRevisionList ¶
func (r *RevisionReconciler) GetRevisionList() *marin3rv1alpha1.EnvoyConfigRevisionList
GetRevisionList returns the EnvoyConfigRevisionList that has been used to to computed by the Reconcile() function. If Reconcile has not been successfully invoked it will return nil.
func (*RevisionReconciler) Instance ¶
func (r *RevisionReconciler) Instance() *marin3rv1alpha1.EnvoyConfig
Instance returns the EnvoyConfig the reconciler has been instantiated with
func (*RevisionReconciler) Namespace ¶
func (r *RevisionReconciler) Namespace() string
Namespace returns the Namespace of the EnvoyConfig the reconciler has been instantiated with
func (*RevisionReconciler) NodeID ¶
func (r *RevisionReconciler) NodeID() string
NodeID returns the nodeID of the EnvoyConfig the reconciler has been instantiated with
func (*RevisionReconciler) PublishedVersion ¶
func (r *RevisionReconciler) PublishedVersion() string
PublishedVersion returns the version of the published revision. If Reconcile has not been successfully invoked it will return nil.