Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

add health check support for containerized.standard.oam.dev #214

Merged
merged 1 commit into from
Sep 23, 2020

Conversation

captainroy-hy
Copy link
Contributor

  • add health check support for containerized.standard.oam.dev
  • add unit tests

@wonderflow I'm not sure whether it's okay to import kubevela module as dependency, so I use unstructured type in the health checker of containerized.standard.oam.dev.

Signed-off-by: roy wang seiwy2010@gmail.com

Copy link
Member

@wonderflow wonderflow left a comment

Choose a reason for hiding this comment

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

Generally LGTM

return r
}

func checkContainerizedChildResources(ctx context.Context, c client.Client, namespace string, r *WorkloadHealthCondition, ref runtimev1alpha1.TypedReference, childRefs []runtimev1alpha1.TypedReference) {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
func checkContainerizedChildResources(ctx context.Context, c client.Client, namespace string, r *WorkloadHealthCondition, ref runtimev1alpha1.TypedReference, childRefs []runtimev1alpha1.TypedReference) {
func updateChildResourcesCondition(ctx context.Context, c client.Client, namespace string, r *WorkloadHealthCondition, ref runtimev1alpha1.TypedReference, childRefs []runtimev1alpha1.TypedReference) {

…Scope

add unit tests

Signed-off-by: roy wang <seiwy2010@gmail.com>
@wonderflow wonderflow merged commit ef46dd6 into crossplane:master Sep 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants