Skip to content

Commit 9aaef78

Browse files
authored
Add Knative Serving CRDs (v1.22.0) (#872)
1 parent 34bb164 commit 9aaef78

12 files changed

Lines changed: 5752 additions & 0 deletions

File tree

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
{
2+
"description": "Metric represents a resource to configure the metric collector with.",
3+
"type": "object",
4+
"properties": {
5+
"apiVersion": {
6+
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
7+
"type": "string"
8+
},
9+
"kind": {
10+
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
11+
"type": "string"
12+
},
13+
"metadata": {
14+
"type": "object"
15+
},
16+
"spec": {
17+
"description": "Spec holds the desired state of the Metric (from the client).",
18+
"type": "object",
19+
"required": [
20+
"panicWindow",
21+
"scrapeTarget",
22+
"stableWindow"
23+
],
24+
"properties": {
25+
"panicWindow": {
26+
"description": "PanicWindow is the aggregation window for metrics where quick reactions are needed.",
27+
"type": "integer",
28+
"format": "int64"
29+
},
30+
"scrapeTarget": {
31+
"description": "ScrapeTarget is the K8s service that publishes the metric endpoint.",
32+
"type": "string"
33+
},
34+
"stableWindow": {
35+
"description": "StableWindow is the aggregation window for metrics in a stable state.",
36+
"type": "integer",
37+
"format": "int64"
38+
}
39+
},
40+
"additionalProperties": false
41+
},
42+
"status": {
43+
"description": "Status communicates the observed state of the Metric (from the controller).",
44+
"type": "object",
45+
"properties": {
46+
"annotations": {
47+
"description": "Annotations is additional Status fields for the Resource to save some\nadditional State as well as convey more information to the user. This is\nroughly akin to Annotations on any k8s resource, just the reconciler conveying\nricher information outwards.",
48+
"type": "object",
49+
"additionalProperties": {
50+
"type": "string"
51+
}
52+
},
53+
"conditions": {
54+
"description": "Conditions the latest available observations of a resource's current state.",
55+
"type": "array",
56+
"items": {
57+
"description": "Condition defines a readiness condition for a Knative resource.\nSee: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties",
58+
"type": "object",
59+
"required": [
60+
"status",
61+
"type"
62+
],
63+
"properties": {
64+
"lastTransitionTime": {
65+
"description": "LastTransitionTime is the last time the condition transitioned from one status to another.\nWe use VolatileTime in place of metav1.Time to exclude this from creating equality.Semantic\ndifferences (all other things held constant).",
66+
"type": "string"
67+
},
68+
"message": {
69+
"description": "A human readable message indicating details about the transition.",
70+
"type": "string"
71+
},
72+
"reason": {
73+
"description": "The reason for the condition's last transition.",
74+
"type": "string"
75+
},
76+
"severity": {
77+
"description": "Severity with which to treat failures of this type of condition.\nWhen this is not specified, it defaults to Error.",
78+
"type": "string"
79+
},
80+
"status": {
81+
"description": "Status of the condition, one of True, False, Unknown.",
82+
"type": "string"
83+
},
84+
"type": {
85+
"description": "Type of condition.",
86+
"type": "string"
87+
}
88+
},
89+
"additionalProperties": false
90+
}
91+
},
92+
"observedGeneration": {
93+
"description": "ObservedGeneration is the 'Generation' of the Service that\nwas last processed by the controller.",
94+
"type": "integer",
95+
"format": "int64"
96+
}
97+
},
98+
"additionalProperties": false
99+
}
100+
}
101+
}
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
{
2+
"description": "PodAutoscaler is a Knative abstraction that encapsulates the interface by which Knative\ncomponents instantiate autoscalers. This definition is an abstraction that may be backed\nby multiple definitions. For more information, see the Knative Pluggability presentation:\nhttps://docs.google.com/presentation/d/19vW9HFZ6Puxt31biNZF3uLRejDmu82rxJIk1cWmxF7w/edit",
3+
"type": "object",
4+
"properties": {
5+
"apiVersion": {
6+
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
7+
"type": "string"
8+
},
9+
"kind": {
10+
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
11+
"type": "string"
12+
},
13+
"metadata": {
14+
"type": "object"
15+
},
16+
"spec": {
17+
"description": "Spec holds the desired state of the PodAutoscaler (from the client).",
18+
"type": "object",
19+
"required": [
20+
"protocolType",
21+
"scaleTargetRef"
22+
],
23+
"properties": {
24+
"containerConcurrency": {
25+
"description": "ContainerConcurrency specifies the maximum allowed\nin-flight (concurrent) requests per container of the Revision.\nDefaults to `0` which means unlimited concurrency.",
26+
"type": "integer",
27+
"format": "int64"
28+
},
29+
"protocolType": {
30+
"description": "The application-layer protocol. Matches `ProtocolType` inferred from the revision spec.",
31+
"type": "string"
32+
},
33+
"reachability": {
34+
"description": "Reachability specifies whether or not the `ScaleTargetRef` can be reached (ie. has a route).\nDefaults to `ReachabilityUnknown`",
35+
"type": "string"
36+
},
37+
"scaleTargetRef": {
38+
"description": "ScaleTargetRef defines the /scale-able resource that this PodAutoscaler\nis responsible for quickly right-sizing.",
39+
"type": "object",
40+
"properties": {
41+
"apiVersion": {
42+
"description": "API version of the referent.",
43+
"type": "string"
44+
},
45+
"kind": {
46+
"description": "Kind of the referent.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
47+
"type": "string"
48+
},
49+
"name": {
50+
"description": "Name of the referent.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
51+
"type": "string"
52+
}
53+
},
54+
"x-kubernetes-map-type": "atomic",
55+
"additionalProperties": false
56+
}
57+
},
58+
"additionalProperties": false
59+
},
60+
"status": {
61+
"description": "Status communicates the observed state of the PodAutoscaler (from the controller).",
62+
"type": "object",
63+
"required": [
64+
"metricsServiceName",
65+
"serviceName"
66+
],
67+
"properties": {
68+
"actualScale": {
69+
"description": "ActualScale shows the actual number of replicas for the revision.",
70+
"type": "integer",
71+
"format": "int32"
72+
},
73+
"annotations": {
74+
"description": "Annotations is additional Status fields for the Resource to save some\nadditional State as well as convey more information to the user. This is\nroughly akin to Annotations on any k8s resource, just the reconciler conveying\nricher information outwards.",
75+
"type": "object",
76+
"additionalProperties": {
77+
"type": "string"
78+
}
79+
},
80+
"conditions": {
81+
"description": "Conditions the latest available observations of a resource's current state.",
82+
"type": "array",
83+
"items": {
84+
"description": "Condition defines a readiness condition for a Knative resource.\nSee: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties",
85+
"type": "object",
86+
"required": [
87+
"status",
88+
"type"
89+
],
90+
"properties": {
91+
"lastTransitionTime": {
92+
"description": "LastTransitionTime is the last time the condition transitioned from one status to another.\nWe use VolatileTime in place of metav1.Time to exclude this from creating equality.Semantic\ndifferences (all other things held constant).",
93+
"type": "string"
94+
},
95+
"message": {
96+
"description": "A human readable message indicating details about the transition.",
97+
"type": "string"
98+
},
99+
"reason": {
100+
"description": "The reason for the condition's last transition.",
101+
"type": "string"
102+
},
103+
"severity": {
104+
"description": "Severity with which to treat failures of this type of condition.\nWhen this is not specified, it defaults to Error.",
105+
"type": "string"
106+
},
107+
"status": {
108+
"description": "Status of the condition, one of True, False, Unknown.",
109+
"type": "string"
110+
},
111+
"type": {
112+
"description": "Type of condition.",
113+
"type": "string"
114+
}
115+
},
116+
"additionalProperties": false
117+
}
118+
},
119+
"desiredScale": {
120+
"description": "DesiredScale shows the current desired number of replicas for the revision.",
121+
"type": "integer",
122+
"format": "int32"
123+
},
124+
"metricsServiceName": {
125+
"description": "MetricsServiceName is the K8s Service name that provides revision metrics.\nThe service is managed by the PA object.",
126+
"type": "string"
127+
},
128+
"observedGeneration": {
129+
"description": "ObservedGeneration is the 'Generation' of the Service that\nwas last processed by the controller.",
130+
"type": "integer",
131+
"format": "int64"
132+
},
133+
"serviceName": {
134+
"description": "ServiceName is the K8s Service name that serves the revision, scaled by this PA.\nThe service is created and owned by the ServerlessService object owned by this PA.",
135+
"type": "string"
136+
}
137+
},
138+
"additionalProperties": false
139+
}
140+
}
141+
}
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{
2+
"description": "Image is a Knative abstraction that encapsulates the interface by which Knative\ncomponents express a desire to have a particular image cached.",
3+
"type": "object",
4+
"properties": {
5+
"apiVersion": {
6+
"description": "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
7+
"type": "string"
8+
},
9+
"kind": {
10+
"description": "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
11+
"type": "string"
12+
},
13+
"metadata": {
14+
"type": "object"
15+
},
16+
"spec": {
17+
"description": "Spec holds the desired state of the Image (from the client).",
18+
"type": "object",
19+
"required": [
20+
"image"
21+
],
22+
"properties": {
23+
"image": {
24+
"description": "Image is the name of the container image url to cache across the cluster.",
25+
"type": "string"
26+
},
27+
"imagePullSecrets": {
28+
"description": "ImagePullSecrets contains the names of the Kubernetes Secrets containing login\ninformation used by the Pods which will run this container.",
29+
"type": "array",
30+
"items": {
31+
"description": "LocalObjectReference contains enough information to let you locate the\nreferenced object inside the same namespace.",
32+
"type": "object",
33+
"properties": {
34+
"name": {
35+
"description": "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names",
36+
"type": "string",
37+
"default": ""
38+
}
39+
},
40+
"x-kubernetes-map-type": "atomic",
41+
"additionalProperties": false
42+
}
43+
},
44+
"serviceAccountName": {
45+
"description": "ServiceAccountName is the name of the Kubernetes ServiceAccount as which the Pods\nwill run this container. This is potentially used to authenticate the image pull\nif the service account has attached pull secrets. For more information:\nhttps://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account",
46+
"type": "string"
47+
}
48+
},
49+
"additionalProperties": false
50+
},
51+
"status": {
52+
"description": "Status communicates the observed state of the Image (from the controller).",
53+
"type": "object",
54+
"properties": {
55+
"annotations": {
56+
"description": "Annotations is additional Status fields for the Resource to save some\nadditional State as well as convey more information to the user. This is\nroughly akin to Annotations on any k8s resource, just the reconciler conveying\nricher information outwards.",
57+
"type": "object",
58+
"additionalProperties": {
59+
"type": "string"
60+
}
61+
},
62+
"conditions": {
63+
"description": "Conditions the latest available observations of a resource's current state.",
64+
"type": "array",
65+
"items": {
66+
"description": "Condition defines a readiness condition for a Knative resource.\nSee: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties",
67+
"type": "object",
68+
"required": [
69+
"status",
70+
"type"
71+
],
72+
"properties": {
73+
"lastTransitionTime": {
74+
"description": "LastTransitionTime is the last time the condition transitioned from one status to another.\nWe use VolatileTime in place of metav1.Time to exclude this from creating equality.Semantic\ndifferences (all other things held constant).",
75+
"type": "string"
76+
},
77+
"message": {
78+
"description": "A human readable message indicating details about the transition.",
79+
"type": "string"
80+
},
81+
"reason": {
82+
"description": "The reason for the condition's last transition.",
83+
"type": "string"
84+
},
85+
"severity": {
86+
"description": "Severity with which to treat failures of this type of condition.\nWhen this is not specified, it defaults to Error.",
87+
"type": "string"
88+
},
89+
"status": {
90+
"description": "Status of the condition, one of True, False, Unknown.",
91+
"type": "string"
92+
},
93+
"type": {
94+
"description": "Type of condition.",
95+
"type": "string"
96+
}
97+
},
98+
"additionalProperties": false
99+
}
100+
},
101+
"observedGeneration": {
102+
"description": "ObservedGeneration is the 'Generation' of the Service that\nwas last processed by the controller.",
103+
"type": "integer",
104+
"format": "int64"
105+
}
106+
},
107+
"additionalProperties": false
108+
}
109+
}
110+
}

0 commit comments

Comments
 (0)