Skip to main content
Version: v1.10

Remedy v1alpha1

apiVersion: remedy.karmada.io/v1alpha1

import "github.com/karmada-io/karmada/pkg/apis/remedy/v1alpha1"

Remedyโ€‹

Remedy represents the cluster-level management strategies based on cluster conditions.


  • apiVersion: remedy.karmada.io/v1alpha1

  • kind: Remedy

  • metadata (ObjectMeta)

  • spec (RemedySpec), required

    Spec represents the desired behavior of Remedy.

RemedySpecโ€‹

RemedySpec represents the desired behavior of Remedy.


  • actions ([]string)

    Actions specifies the actions that remedy system needs to perform. If empty, no action will be performed.

  • clusterAffinity (ClusterAffinity)

    ClusterAffinity specifies the clusters that Remedy needs to pay attention to. For clusters that meet the DecisionConditions, Actions will be preformed. If empty, all clusters will be selected.

    ClusterAffinity represents the filter to select clusters.

    • clusterAffinity.clusterNames ([]string)

      ClusterNames is the list of clusters to be selected.

  • decisionMatches ([]DecisionMatch)

    DecisionMatches indicates the decision matches of triggering the remedy system to perform the actions. As long as any one DecisionMatch matches, the Actions will be preformed. If empty, the Actions will be performed immediately.

    DecisionMatch represents the decision match detail of activating the remedy system.

    • decisionMatches.clusterConditionMatch (ClusterConditionRequirement)

      ClusterConditionMatch describes the cluster condition requirement.

      ClusterConditionRequirement describes the Cluster condition requirement details.

      • decisionMatches.clusterConditionMatch.conditionStatus (string), required

        ConditionStatus specifies the ClusterStatue condition status.

      • decisionMatches.clusterConditionMatch.conditionType (string), required

        ConditionType specifies the ClusterStatus condition type.

      • decisionMatches.clusterConditionMatch.operator (string), required

        Operator represents a conditionType's relationship to a conditionStatus. Valid operators are Equal, NotEqual.

RemedyListโ€‹

RemedyList contains a list of Remedy.


  • apiVersion: remedy.karmada.io/v1alpha1

  • kind: RemedyList

  • metadata (ListMeta)

  • items ([][Remedy](../remedy-resources/remedy-v1alpha1#remedy)), required

Operationsโ€‹


get read the specified Remedyโ€‹

HTTP Requestโ€‹

GET /apis/remedy.karmada.io/v1alpha1/remedies/{name}

Parametersโ€‹

  • name (in path): string, required

    name of the Remedy

  • pretty (in query): string

    pretty

Responseโ€‹

200 (Remedy): OK

get read status of the specified Remedyโ€‹

HTTP Requestโ€‹

GET /apis/remedy.karmada.io/v1alpha1/remedies/{name}/status

Parametersโ€‹

  • name (in path): string, required

    name of the Remedy

  • pretty (in query): string

    pretty

Responseโ€‹

200 (Remedy): OK

list list or watch objects of kind Remedyโ€‹

HTTP Requestโ€‹

GET /apis/remedy.karmada.io/v1alpha1/remedies

Parametersโ€‹

Responseโ€‹

200 (RemedyList): OK

create create a Remedyโ€‹

HTTP Requestโ€‹

POST /apis/remedy.karmada.io/v1alpha1/remedies

Parametersโ€‹

Responseโ€‹

200 (Remedy): OK

201 (Remedy): Created

202 (Remedy): Accepted

update replace the specified Remedyโ€‹

HTTP Requestโ€‹

PUT /apis/remedy.karmada.io/v1alpha1/remedies/{name}

Parametersโ€‹

  • name (in path): string, required

    name of the Remedy

  • body: Remedy, required

Responseโ€‹

200 (Remedy): OK

201 (Remedy): Created

update replace status of the specified Remedyโ€‹

HTTP Requestโ€‹

PUT /apis/remedy.karmada.io/v1alpha1/remedies/{name}/status

Parametersโ€‹

  • name (in path): string, required

    name of the Remedy

  • body: Remedy, required

Responseโ€‹

200 (Remedy): OK

201 (Remedy): Created

patch partially update the specified Remedyโ€‹

HTTP Requestโ€‹

PATCH /apis/remedy.karmada.io/v1alpha1/remedies/{name}

Parametersโ€‹

  • name (in path): string, required

    name of the Remedy

  • body: Patch, required

Responseโ€‹

200 (Remedy): OK

201 (Remedy): Created

patch partially update status of the specified Remedyโ€‹

HTTP Requestโ€‹

PATCH /apis/remedy.karmada.io/v1alpha1/remedies/{name}/status

Parametersโ€‹

  • name (in path): string, required

    name of the Remedy

  • body: Patch, required

Responseโ€‹

200 (Remedy): OK

201 (Remedy): Created

delete delete a Remedyโ€‹

HTTP Requestโ€‹

DELETE /apis/remedy.karmada.io/v1alpha1/remedies/{name}

Parametersโ€‹

  • name (in path): string, required

    name of the Remedy

  • body: DeleteOptions

Responseโ€‹

200 (Status): OK

202 (Status): Accepted

deletecollection delete collection of Remedyโ€‹

HTTP Requestโ€‹

DELETE /apis/remedy.karmada.io/v1alpha1/remedies

Parametersโ€‹

Responseโ€‹

200 (Status): OK