Skip to content

Commit 38e0ab9

Browse files
authored
Merge pull request #476 from chaosi-zju/dev
Add API Documents
2 parents bb33471 + d9b5251 commit 38e0ab9

27 files changed

+13223
-0
lines changed

docs/reference/karmada-api/auto-scaling-resources/cron-federated-hpa-v1alpha1.md

Lines changed: 710 additions & 0 deletions
Large diffs are not rendered by default.

docs/reference/karmada-api/auto-scaling-resources/federated-hpa-v1alpha1.md

Lines changed: 1215 additions & 0 deletions
Large diffs are not rendered by default.

docs/reference/karmada-api/cluster-resources/cluster-v1alpha1.md

Lines changed: 774 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
api_metadata:
3+
apiVersion: ""
4+
import: "k8s.io/apimachinery/pkg/apis/meta/v1"
5+
kind: "DeleteOptions"
6+
content_type: "api_reference"
7+
description: "DeleteOptions may be provided when deleting an API object."
8+
title: "DeleteOptions"
9+
weight: 1
10+
auto_generated: true
11+
---
12+
13+
[//]: # (The file is auto-generated from the Go source code of the component using a generic generator,)
14+
[//]: # (which is forked from [reference-docs](https://github.com/kubernetes-sigs/reference-docs.)
15+
[//]: # (To update the reference content, please follow the `reference-api.sh`.)
16+
17+
`import "k8s.io/apimachinery/pkg/apis/meta/v1"`
18+
19+
DeleteOptions may be provided when deleting an API object.
20+
21+
<hr/>
22+
23+
- **apiVersion** (string)
24+
25+
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
26+
27+
- **dryRun** ([]string)
28+
29+
When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
30+
31+
- **gracePeriodSeconds** (int64)
32+
33+
The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
34+
35+
- **kind** (string)
36+
37+
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
38+
39+
- **orphanDependents** (boolean)
40+
41+
Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the "orphan" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
42+
43+
- **preconditions** (Preconditions)
44+
45+
Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.
46+
47+
<a name="Preconditions"></a>
48+
49+
*Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.*
50+
51+
- **preconditions.resourceVersion** (string)
52+
53+
Specifies the target ResourceVersion
54+
55+
- **preconditions.uid** (string)
56+
57+
Specifies the target UID.
58+
59+
- **propagationPolicy** (string)
60+
61+
Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
62+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
api_metadata:
3+
apiVersion: ""
4+
import: "k8s.io/apimachinery/pkg/apis/meta/v1"
5+
kind: "LabelSelector"
6+
content_type: "api_reference"
7+
description: "A label selector is a label query over a set of resources."
8+
title: "LabelSelector"
9+
weight: 2
10+
auto_generated: true
11+
---
12+
13+
[//]: # (The file is auto-generated from the Go source code of the component using a generic generator,)
14+
[//]: # (which is forked from [reference-docs](https://github.com/kubernetes-sigs/reference-docs.)
15+
[//]: # (To update the reference content, please follow the `reference-api.sh`.)
16+
17+
`import "k8s.io/apimachinery/pkg/apis/meta/v1"`
18+
19+
A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
20+
21+
<hr/>
22+
23+
- **matchExpressions** ([]LabelSelectorRequirement)
24+
25+
matchExpressions is a list of label selector requirements. The requirements are ANDed.
26+
27+
<a name="LabelSelectorRequirement"></a>
28+
29+
*A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.*
30+
31+
- **matchExpressions.key** (string), required
32+
33+
*Patch strategy: merge on key `key`*
34+
35+
key is the label key that the selector applies to.
36+
37+
- **matchExpressions.operator** (string), required
38+
39+
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
40+
41+
- **matchExpressions.values** ([]string)
42+
43+
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
44+
45+
- **matchLabels** (map[string]string)
46+
47+
matchLabels is a map of [key,value] pairs. A single [key,value] in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
48+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
api_metadata:
3+
apiVersion: ""
4+
import: "k8s.io/apimachinery/pkg/apis/meta/v1"
5+
kind: "ListMeta"
6+
content_type: "api_reference"
7+
description: "ListMeta describes metadata that synthetic resources must have, including lists and various status objects."
8+
title: "ListMeta"
9+
weight: 3
10+
auto_generated: true
11+
---
12+
13+
[//]: # (The file is auto-generated from the Go source code of the component using a generic generator,)
14+
[//]: # (which is forked from [reference-docs](https://github.com/kubernetes-sigs/reference-docs.)
15+
[//]: # (To update the reference content, please follow the `reference-api.sh`.)
16+
17+
`import "k8s.io/apimachinery/pkg/apis/meta/v1"`
18+
19+
ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of [ObjectMeta, ListMeta].
20+
21+
<hr/>
22+
23+
- **continue** (string)
24+
25+
continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.
26+
27+
- **remainingItemCount** (int64)
28+
29+
remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.
30+
31+
- **resourceVersion** (string)
32+
33+
String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
34+
35+
- **selfLink** (string)
36+
37+
Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.
38+
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
api_metadata:
3+
apiVersion: ""
4+
import: "k8s.io/api/core/v1"
5+
kind: "NodeSelectorRequirement"
6+
content_type: "api_reference"
7+
description: "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values."
8+
title: "NodeSelectorRequirement"
9+
weight: 4
10+
auto_generated: true
11+
---
12+
13+
[//]: # (The file is auto-generated from the Go source code of the component using a generic generator,)
14+
[//]: # (which is forked from [reference-docs](https://github.com/kubernetes-sigs/reference-docs.)
15+
[//]: # (To update the reference content, please follow the `reference-api.sh`.)
16+
17+
`import "k8s.io/api/core/v1"`
18+
19+
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
20+
21+
<hr/>
22+
23+
- **key** (string), required
24+
25+
The label key that the selector applies to.
26+
27+
- **operator** (string), required
28+
29+
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
30+
31+
Possible enum values:
32+
- `"DoesNotExist"`
33+
- `"Exists"`
34+
- `"Gt"`
35+
- `"In"`
36+
- `"Lt"`
37+
- `"NotIn"`
38+
39+
- **values** ([]string)
40+
41+
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
42+

0 commit comments

Comments
 (0)