Skip to content

added ready status update when all components are ready#19

Draft
antromeo wants to merge 1 commit intomainfrom
ready-status-with-watches
Draft

added ready status update when all components are ready#19
antromeo wants to merge 1 commit intomainfrom
ready-status-with-watches

Conversation

@antromeo
Copy link
Collaborator

No description provided.

// An EntandoAppV2 deploys the components required to upgrade an Entando App. The server side
// components that are deployed include the Entando App Engine, the Entando Component Manager,
// the Entando App Builder, and the user facing application.
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=`.status.conditions[?(@.type=="Ready")].status`,description="state of EntandoApp"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adds additionalPrinterColumns to CRD, in this way it's easier to see its evolution with kubectl

// FIXME! add filter on create for EntandoAppV2 cr
For(&v1alpha1.EntandoAppV2{}).
WithEventFilter(predicate.GenerationChangedPredicate{}). //solo modifiche a spec
For(&v1alpha1.EntandoAppV2{}, utils.ForOptionCustom()).
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

custom predicates can be used in For and in Watches methods, in this way it is possible to filter the events based on the type of resource, for example different behaviors from CR and deployments events can be used

Succeeded = "Succeeded"
Ready = "Ready"
Succeeded = "Succeeded"
Initialized = "Initialized"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only used Ready and Initialized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant