Skip to content

Commit d18c04f

Browse files
feat: add application-networking.k8s.aws CRD schemas (#816)
1 parent d08360a commit d18c04f

5 files changed

Lines changed: 795 additions & 0 deletions

File tree

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
{
2+
"properties": {
3+
"apiVersion": {
4+
"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",
5+
"type": "string"
6+
},
7+
"kind": {
8+
"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",
9+
"type": "string"
10+
},
11+
"metadata": {
12+
"type": "object"
13+
},
14+
"spec": {
15+
"description": "AccessLogPolicySpec defines the desired state of AccessLogPolicy.",
16+
"properties": {
17+
"destinationArn": {
18+
"description": "The Amazon Resource Name (ARN) of the destination that will store access logs.\nSupported values are S3 Bucket, CloudWatch Log Group, and Firehose Delivery Stream ARNs.\n\nChanges to this value results in replacement of the VPC Lattice Access Log Subscription.",
19+
"pattern": "^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:([^/].*)?",
20+
"type": "string"
21+
},
22+
"targetRef": {
23+
"description": "TargetRef points to the Kubernetes Gateway, HTTPRoute, or GRPCRoute resource that will have this policy attached.\n\nThis field is following the guidelines of Kubernetes Gateway API policy attachment.",
24+
"properties": {
25+
"group": {
26+
"description": "Group is the group of the target resource.",
27+
"maxLength": 253,
28+
"pattern": "^$|^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$",
29+
"type": "string"
30+
},
31+
"kind": {
32+
"description": "Kind is kind of the target resource.",
33+
"maxLength": 63,
34+
"minLength": 1,
35+
"pattern": "^[a-zA-Z]([-a-zA-Z0-9]*[a-zA-Z0-9])?$",
36+
"type": "string"
37+
},
38+
"name": {
39+
"description": "Name is the name of the target resource.",
40+
"maxLength": 253,
41+
"minLength": 1,
42+
"type": "string"
43+
},
44+
"namespace": {
45+
"description": "Namespace is the namespace of the referent. When unspecified, the local\nnamespace is inferred. Even when policy targets a resource in a different\nnamespace, it MUST only apply to traffic originating from the same\nnamespace as the policy.",
46+
"maxLength": 63,
47+
"minLength": 1,
48+
"pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",
49+
"type": "string"
50+
}
51+
},
52+
"required": [
53+
"group",
54+
"kind",
55+
"name"
56+
],
57+
"type": "object",
58+
"additionalProperties": false
59+
}
60+
},
61+
"required": [
62+
"destinationArn",
63+
"targetRef"
64+
],
65+
"type": "object",
66+
"additionalProperties": false
67+
},
68+
"status": {
69+
"default": {
70+
"conditions": [
71+
{
72+
"lastTransitionTime": "1970-01-01T00:00:00Z",
73+
"message": "Waiting for controller",
74+
"reason": "NotReconciled",
75+
"status": "Unknown",
76+
"type": "Accepted"
77+
}
78+
]
79+
},
80+
"description": "Status defines the current state of AccessLogPolicy.",
81+
"properties": {
82+
"conditions": {
83+
"default": [
84+
{
85+
"lastTransitionTime": "1970-01-01T00:00:00Z",
86+
"message": "Waiting for controller",
87+
"reason": "Pending",
88+
"status": "Unknown",
89+
"type": "Accepted"
90+
},
91+
{
92+
"lastTransitionTime": "1970-01-01T00:00:00Z",
93+
"message": "Waiting for controller",
94+
"reason": "Pending",
95+
"status": "Unknown",
96+
"type": "Programmed"
97+
}
98+
],
99+
"description": "Conditions describe the current conditions of the AccessLogPolicy.\n\nImplementations should prefer to express Policy conditions\nusing the `PolicyConditionType` and `PolicyConditionReason`\nconstants so that operators and tools can converge on a common\nvocabulary to describe AccessLogPolicy state.\n\nKnown condition types are:\n\n* \"Accepted\"\n* \"Ready\"",
100+
"items": {
101+
"description": "Condition contains details for one aspect of the current state of this API Resource.",
102+
"properties": {
103+
"lastTransitionTime": {
104+
"description": "lastTransitionTime is the last time the condition transitioned from one status to another.\nThis should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.",
105+
"format": "date-time",
106+
"type": "string"
107+
},
108+
"message": {
109+
"description": "message is a human readable message indicating details about the transition.\nThis may be an empty string.",
110+
"maxLength": 32768,
111+
"type": "string"
112+
},
113+
"observedGeneration": {
114+
"description": "observedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance.",
115+
"format": "int64",
116+
"minimum": 0,
117+
"type": "integer"
118+
},
119+
"reason": {
120+
"description": "reason contains a programmatic identifier indicating the reason for the condition's last transition.\nProducers of specific condition types may define expected values and meanings for this field,\nand whether the values are considered a guaranteed API.\nThe value should be a CamelCase string.\nThis field may not be empty.",
121+
"maxLength": 1024,
122+
"minLength": 1,
123+
"pattern": "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$",
124+
"type": "string"
125+
},
126+
"status": {
127+
"description": "status of the condition, one of True, False, Unknown.",
128+
"enum": [
129+
"True",
130+
"False",
131+
"Unknown"
132+
],
133+
"type": "string"
134+
},
135+
"type": {
136+
"description": "type of condition in CamelCase or in foo.example.com/CamelCase.",
137+
"maxLength": 316,
138+
"pattern": "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$",
139+
"type": "string"
140+
}
141+
},
142+
"required": [
143+
"lastTransitionTime",
144+
"message",
145+
"reason",
146+
"status",
147+
"type"
148+
],
149+
"type": "object",
150+
"additionalProperties": false
151+
},
152+
"maxItems": 8,
153+
"type": "array",
154+
"x-kubernetes-list-map-keys": [
155+
"type"
156+
],
157+
"x-kubernetes-list-type": "map"
158+
}
159+
},
160+
"type": "object",
161+
"additionalProperties": false
162+
}
163+
},
164+
"required": [
165+
"spec"
166+
],
167+
"type": "object"
168+
}
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
{
2+
"description": "ServiceExport declares that the Service with the same name and namespace\nas this export should be consumable from other clusters.",
3+
"properties": {
4+
"apiVersion": {
5+
"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",
6+
"type": "string"
7+
},
8+
"kind": {
9+
"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",
10+
"type": "string"
11+
},
12+
"metadata": {
13+
"type": "object"
14+
},
15+
"spec": {
16+
"description": "spec defines the desired state of ServiceExport",
17+
"properties": {
18+
"exportedPorts": {
19+
"description": "exportedPorts defines which ports of the service should be exported and what route types they should be used with.\nIf not specified, the controller will use the port from the annotation \"application-networking.k8s.aws/port\"\nand create HTTP target groups for backward compatibility.",
20+
"items": {
21+
"description": "ExportedPort defines a port to be exported and the route type it should be used with",
22+
"properties": {
23+
"port": {
24+
"description": "port is the port number to export",
25+
"format": "int32",
26+
"type": "integer"
27+
},
28+
"routeType": {
29+
"description": "routeType is the type of route this port should be used with\nValid values are \"HTTP\", \"GRPC\", \"TLS\"",
30+
"enum": [
31+
"HTTP",
32+
"GRPC",
33+
"TLS"
34+
],
35+
"type": "string"
36+
}
37+
},
38+
"required": [
39+
"port",
40+
"routeType"
41+
],
42+
"type": "object",
43+
"additionalProperties": false
44+
},
45+
"type": "array"
46+
}
47+
},
48+
"type": "object",
49+
"additionalProperties": false
50+
},
51+
"status": {
52+
"description": "status describes the current state of an exported service.\nService configuration comes from the Service that had the same\nname and namespace as this ServiceExport.\nPopulated by the multi-cluster service implementation's controller.",
53+
"properties": {
54+
"conditions": {
55+
"items": {
56+
"description": "ServiceExportCondition contains details for the current condition of this\nservice export.\n\nOnce [KEP-1623](https://github.com/kubernetes/enhancements/tree/master/keps/sig-api-machinery/1623-standardize-conditions) is\nimplemented, this will be replaced by metav1.Condition.",
57+
"properties": {
58+
"lastTransitionTime": {
59+
"format": "date-time",
60+
"type": "string"
61+
},
62+
"message": {
63+
"type": "string"
64+
},
65+
"reason": {
66+
"type": "string"
67+
},
68+
"status": {
69+
"description": "Status is one of {\"True\", \"False\", \"Unknown\"}",
70+
"enum": [
71+
"True",
72+
"False",
73+
"Unknown"
74+
],
75+
"type": "string"
76+
},
77+
"type": {
78+
"description": "ServiceExportConditionType identifies a specific condition.",
79+
"type": "string"
80+
}
81+
},
82+
"required": [
83+
"status",
84+
"type"
85+
],
86+
"type": "object",
87+
"additionalProperties": false
88+
},
89+
"type": "array",
90+
"x-kubernetes-list-map-keys": [
91+
"type"
92+
],
93+
"x-kubernetes-list-type": "map"
94+
}
95+
},
96+
"type": "object",
97+
"additionalProperties": false
98+
}
99+
},
100+
"type": "object"
101+
}
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
{
2+
"description": "ServiceImport describes a service imported from clusters in a ClusterSet.",
3+
"properties": {
4+
"apiVersion": {
5+
"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",
6+
"type": "string"
7+
},
8+
"kind": {
9+
"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",
10+
"type": "string"
11+
},
12+
"metadata": {
13+
"type": "object"
14+
},
15+
"spec": {
16+
"description": "spec defines the behavior of a ServiceImport.",
17+
"properties": {
18+
"ips": {
19+
"description": "ip will be used as the VIP for this service when type is ClusterSetIP.",
20+
"items": {
21+
"type": "string"
22+
},
23+
"maxItems": 1,
24+
"type": "array"
25+
},
26+
"ports": {
27+
"items": {
28+
"description": "ServicePort represents the port on which the service is exposed",
29+
"properties": {
30+
"appProtocol": {
31+
"description": "The application protocol for this port.\nThis field follows standard Kubernetes label syntax.\nUn-prefixed names are reserved for IANA standard service names (as per\nRFC-6335 and http://www.iana.org/assignments/service-names).\nNon-standard protocols should use prefixed names such as\nmycompany.com/my-custom-protocol.\nField can be enabled with ServiceAppProtocol feature gate.",
32+
"type": "string"
33+
},
34+
"name": {
35+
"description": "The name of this port within the service. This must be a DNS_LABEL.\nAll ports within a ServiceSpec must have unique names. When considering\nthe endpoints for a Service, this must match the 'name' field in the\nEndpointPort.\nOptional if only one ServicePort is defined on this service.",
36+
"type": "string"
37+
},
38+
"port": {
39+
"description": "The port that will be exposed by this service.",
40+
"format": "int32",
41+
"type": "integer"
42+
},
43+
"protocol": {
44+
"description": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\".\nDefault is TCP.",
45+
"type": "string"
46+
}
47+
},
48+
"required": [
49+
"port"
50+
],
51+
"type": "object",
52+
"additionalProperties": false
53+
},
54+
"type": "array",
55+
"x-kubernetes-list-type": "atomic"
56+
},
57+
"sessionAffinity": {
58+
"description": "Supports \"ClientIP\" and \"None\". Used to maintain session affinity.\nEnable client IP based session affinity.\nMust be ClientIP or None.\nDefaults to None.\nIgnored when type is Headless\nMore info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies",
59+
"type": "string"
60+
},
61+
"sessionAffinityConfig": {
62+
"description": "sessionAffinityConfig contains session affinity configuration.",
63+
"properties": {
64+
"clientIP": {
65+
"description": "clientIP contains the configurations of Client IP based session affinity.",
66+
"properties": {
67+
"timeoutSeconds": {
68+
"description": "timeoutSeconds specifies the seconds of ClientIP type session sticky time.\nThe value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\".\nDefault value is 10800(for 3 hours).",
69+
"format": "int32",
70+
"type": "integer"
71+
}
72+
},
73+
"type": "object",
74+
"additionalProperties": false
75+
}
76+
},
77+
"type": "object",
78+
"additionalProperties": false
79+
},
80+
"type": {
81+
"description": "type defines the type of this service.\nMust be ClusterSetIP or Headless.",
82+
"enum": [
83+
"ClusterSetIP",
84+
"Headless"
85+
],
86+
"type": "string"
87+
}
88+
},
89+
"required": [
90+
"ports",
91+
"type"
92+
],
93+
"type": "object",
94+
"additionalProperties": false
95+
},
96+
"status": {
97+
"description": "status contains information about the exported services that form\nthe multi-cluster service referenced by this ServiceImport.",
98+
"properties": {
99+
"clusters": {
100+
"description": "clusters is the list of exporting clusters from which this service\nwas derived.",
101+
"items": {
102+
"description": "ClusterStatus contains service configuration mapped to a specific source cluster",
103+
"properties": {
104+
"cluster": {
105+
"description": "cluster is the name of the exporting cluster. Must be a valid RFC-1123 DNS\nlabel.",
106+
"type": "string"
107+
}
108+
},
109+
"required": [
110+
"cluster"
111+
],
112+
"type": "object",
113+
"additionalProperties": false
114+
},
115+
"type": "array",
116+
"x-kubernetes-list-map-keys": [
117+
"cluster"
118+
],
119+
"x-kubernetes-list-type": "map"
120+
}
121+
},
122+
"type": "object",
123+
"additionalProperties": false
124+
}
125+
},
126+
"type": "object"
127+
}

0 commit comments

Comments
 (0)