Skip to main content
Version: v1.11

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