Skip to content

Commit efb3437

Browse files
authored
operator ack-apigateway-controller (1.3.1)
1 parent f4f6d24 commit efb3437

18 files changed

+3162
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM scratch
2+
3+
# Core bundle labels.
4+
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
5+
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
6+
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
7+
LABEL operators.operatorframework.io.bundle.package.v1=ack-apigateway-controller
8+
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
9+
LABEL operators.operatorframework.io.bundle.channel.default.v1=alpha
10+
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.28.0
11+
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
12+
LABEL operators.operatorframework.io.metrics.project_layout=unknown
13+
14+
# Labels for testing.
15+
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
16+
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/
17+
18+
# Copy files to locations specified by labels.
19+
COPY bundle/manifests /manifests/
20+
COPY bundle/metadata /metadata/
21+
COPY bundle/tests/scorecard /tests/scorecard/

operators/ack-apigateway-controller/1.3.1/manifests/ack-apigateway-controller.clusterserviceversion.yaml

Lines changed: 379 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
creationTimestamp: null
5+
name: ack-apigateway-metrics-service
6+
spec:
7+
ports:
8+
- name: metricsport
9+
port: 8080
10+
protocol: TCP
11+
targetPort: http
12+
selector:
13+
app.kubernetes.io/name: ack-apigateway-controller
14+
type: ClusterIP
15+
status:
16+
loadBalancer: {}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: Role
3+
metadata:
4+
creationTimestamp: null
5+
name: ack-apigateway-reader
6+
rules:
7+
- apiGroups:
8+
- apigateway.services.k8s.aws
9+
resources:
10+
- apiintegrationresponses
11+
- apikeys
12+
- apimethodresponses
13+
- authorizers
14+
- deployments
15+
- integrations
16+
- methods
17+
- resources
18+
- restapis
19+
- stages
20+
- vpclinks
21+
verbs:
22+
- get
23+
- list
24+
- watch
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: Role
3+
metadata:
4+
creationTimestamp: null
5+
name: ack-apigateway-writer
6+
rules:
7+
- apiGroups:
8+
- apigateway.services.k8s.aws
9+
resources:
10+
- apiintegrationresponses
11+
- apikeys
12+
- apimethodresponses
13+
- authorizers
14+
- deployments
15+
- integrations
16+
- methods
17+
- resources
18+
- restapis
19+
- stages
20+
- vpclinks
21+
verbs:
22+
- create
23+
- delete
24+
- get
25+
- list
26+
- patch
27+
- update
28+
- watch
29+
- apiGroups:
30+
- apigateway.services.k8s.aws
31+
resources:
32+
- apiintegrationresponses
33+
- apikeys
34+
- apimethodresponses
35+
- authorizers
36+
- deployments
37+
- integrations
38+
- methods
39+
- resources
40+
- restapis
41+
- stages
42+
- vpclinks
43+
verbs:
44+
- get
45+
- patch
46+
- update
Lines changed: 221 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,221 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: v0.16.2
6+
creationTimestamp: null
7+
name: apiintegrationresponses.apigateway.services.k8s.aws
8+
spec:
9+
group: apigateway.services.k8s.aws
10+
names:
11+
kind: APIIntegrationResponse
12+
listKind: APIIntegrationResponseList
13+
plural: apiintegrationresponses
14+
singular: apiintegrationresponse
15+
scope: Namespaced
16+
versions:
17+
- name: v1alpha1
18+
schema:
19+
openAPIV3Schema:
20+
description: APIIntegrationResponse is the Schema for the APIIntegrationResponses
21+
API
22+
properties:
23+
apiVersion:
24+
description: |-
25+
APIVersion defines the versioned schema of this representation of an object.
26+
Servers should convert recognized schemas to the latest internal value, and
27+
may reject unrecognized values.
28+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
29+
type: string
30+
kind:
31+
description: |-
32+
Kind is a string value representing the REST resource this object represents.
33+
Servers may infer this from the endpoint the client submits requests to.
34+
Cannot be updated.
35+
In CamelCase.
36+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
37+
type: string
38+
metadata:
39+
type: object
40+
spec:
41+
description: ApiIntegrationResponseSpec defines the desired state of ApiIntegrationResponse.
42+
properties:
43+
contentHandling:
44+
description: |-
45+
Specifies how to handle response payload content type conversions. Supported
46+
values are CONVERT_TO_BINARY and CONVERT_TO_TEXT, with the following behaviors:
47+
48+
If this property is not defined, the response payload will be passed through
49+
from the integration response to the method response without modification.
50+
type: string
51+
httpMethod:
52+
description: Specifies a put integration response request's HTTP method.
53+
type: string
54+
x-kubernetes-validations:
55+
- message: Value is immutable once set
56+
rule: self == oldSelf
57+
resourceID:
58+
description: Specifies a put integration response request's resource
59+
identifier.
60+
type: string
61+
x-kubernetes-validations:
62+
- message: Value is immutable once set
63+
rule: self == oldSelf
64+
resourceRef:
65+
description: "AWSResourceReferenceWrapper provides a wrapper around
66+
*AWSResourceReference\ntype to provide more user friendly syntax
67+
for references using 'from' field\nEx:\nAPIIDRef:\n\n\tfrom:\n\t
68+
\ name: my-api"
69+
properties:
70+
from:
71+
description: |-
72+
AWSResourceReference provides all the values necessary to reference another
73+
k8s resource for finding the identifier(Id/ARN/Name)
74+
properties:
75+
name:
76+
type: string
77+
namespace:
78+
type: string
79+
type: object
80+
type: object
81+
responseParameters:
82+
additionalProperties:
83+
type: string
84+
description: |-
85+
A key-value map specifying response parameters that are passed to the method
86+
response from the back end. The key is a method response header parameter
87+
name and the mapped value is an integration response header value, a static
88+
value enclosed within a pair of single quotes, or a JSON expression from
89+
the integration response body. The mapping key must match the pattern of
90+
method.response.header.{name}, where name is a valid and unique header name.
91+
The mapped non-static value must match the pattern of integration.response.header.{name}
92+
or integration.response.body.{JSON-expression}, where name must be a valid
93+
and unique response header name and JSON-expression a valid JSON expression
94+
without the $ prefix.
95+
type: object
96+
responseTemplates:
97+
additionalProperties:
98+
type: string
99+
description: Specifies a put integration response's templates.
100+
type: object
101+
restAPIID:
102+
description: The string identifier of the associated RestApi.
103+
type: string
104+
x-kubernetes-validations:
105+
- message: Value is immutable once set
106+
rule: self == oldSelf
107+
restAPIRef:
108+
description: "AWSResourceReferenceWrapper provides a wrapper around
109+
*AWSResourceReference\ntype to provide more user friendly syntax
110+
for references using 'from' field\nEx:\nAPIIDRef:\n\n\tfrom:\n\t
111+
\ name: my-api"
112+
properties:
113+
from:
114+
description: |-
115+
AWSResourceReference provides all the values necessary to reference another
116+
k8s resource for finding the identifier(Id/ARN/Name)
117+
properties:
118+
name:
119+
type: string
120+
namespace:
121+
type: string
122+
type: object
123+
type: object
124+
selectionPattern:
125+
description: Specifies the selection pattern of a put integration
126+
response.
127+
type: string
128+
statusCode:
129+
description: |-
130+
Specifies the status code that is used to map the integration response to
131+
an existing MethodResponse.
132+
133+
Regex Pattern: `^[1-5]\d\d$`
134+
type: string
135+
x-kubernetes-validations:
136+
- message: Value is immutable once set
137+
rule: self == oldSelf
138+
required:
139+
- httpMethod
140+
- statusCode
141+
type: object
142+
status:
143+
description: APIIntegrationResponseStatus defines the observed state of
144+
APIIntegrationResponse
145+
properties:
146+
ackResourceMetadata:
147+
description: |-
148+
All CRs managed by ACK have a common `Status.ACKResourceMetadata` member
149+
that is used to contain resource sync state, account ownership,
150+
constructed ARN for the resource
151+
properties:
152+
arn:
153+
description: |-
154+
ARN is the Amazon Resource Name for the resource. This is a
155+
globally-unique identifier and is set only by the ACK service controller
156+
once the controller has orchestrated the creation of the resource OR
157+
when it has verified that an "adopted" resource (a resource where the
158+
ARN annotation was set by the Kubernetes user on the CR) exists and
159+
matches the supplied CR's Spec field values.
160+
https://github.com/aws/aws-controllers-k8s/issues/270
161+
type: string
162+
ownerAccountID:
163+
description: |-
164+
OwnerAccountID is the AWS Account ID of the account that owns the
165+
backend AWS service API resource.
166+
type: string
167+
region:
168+
description: Region is the AWS region in which the resource exists
169+
or will exist.
170+
type: string
171+
required:
172+
- ownerAccountID
173+
- region
174+
type: object
175+
conditions:
176+
description: |-
177+
All CRs managed by ACK have a common `Status.Conditions` member that
178+
contains a collection of `ackv1alpha1.Condition` objects that describe
179+
the various terminal states of the CR and its backend AWS service API
180+
resource
181+
items:
182+
description: |-
183+
Condition is the common struct used by all CRDs managed by ACK service
184+
controllers to indicate terminal states of the CR and its backend AWS
185+
service API resource
186+
properties:
187+
lastTransitionTime:
188+
description: Last time the condition transitioned from one status
189+
to another.
190+
format: date-time
191+
type: string
192+
message:
193+
description: A human readable message indicating details about
194+
the transition.
195+
type: string
196+
reason:
197+
description: The reason for the condition's last transition.
198+
type: string
199+
status:
200+
description: Status of the condition, one of True, False, Unknown.
201+
type: string
202+
type:
203+
description: Type is the type of the Condition
204+
type: string
205+
required:
206+
- status
207+
- type
208+
type: object
209+
type: array
210+
type: object
211+
type: object
212+
served: true
213+
storage: true
214+
subresources:
215+
status: {}
216+
status:
217+
acceptedNames:
218+
kind: ""
219+
plural: ""
220+
conditions: null
221+
storedVersions: null

0 commit comments

Comments
 (0)