Skip to content

Commit 263c04e

Browse files
authored
operators ack-lambda-controller (0.0.10)
1 parent 0598cee commit 263c04e

11 files changed

+1357
-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-lambda-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.16.0+git
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/
Lines changed: 302 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,302 @@
1+
apiVersion: operators.coreos.com/v1alpha1
2+
kind: ClusterServiceVersion
3+
metadata:
4+
annotations:
5+
alm-examples: |-
6+
[
7+
{
8+
"apiVersion": "lambda.services.k8s.aws/v1alpha1",
9+
"kind": "Alias",
10+
"metadata": {
11+
"name": "example"
12+
},
13+
"spec": {}
14+
},
15+
{
16+
"apiVersion": "lambda.services.k8s.aws/v1alpha1",
17+
"kind": "CodeSigningConfig",
18+
"metadata": {
19+
"name": "example"
20+
},
21+
"spec": {}
22+
},
23+
{
24+
"apiVersion": "lambda.services.k8s.aws/v1alpha1",
25+
"kind": "EventSourceMapping",
26+
"metadata": {
27+
"name": "example"
28+
},
29+
"spec": {}
30+
},
31+
{
32+
"apiVersion": "lambda.services.k8s.aws/v1alpha1",
33+
"kind": "Function",
34+
"metadata": {
35+
"name": "example"
36+
},
37+
"spec": {}
38+
}
39+
]
40+
capabilities: Basic Install
41+
categories: Cloud Provider
42+
certified: "false"
43+
containerImage: public.ecr.aws/aws-controllers-k8s/lambda-controller:v0.0.10
44+
createdAt: "2022-02-28 18:43:20"
45+
description: AWS Lambda controller is a service controller for managing Lambda
46+
resources in Kubernetes
47+
operatorframework.io/suggested-namespace: ack-system
48+
operators.operatorframework.io/builder: operator-sdk-v1.16.0+git
49+
operators.operatorframework.io/project_layout: unknown
50+
repository: https://github.com/aws-controllers-k8s
51+
support: Community
52+
name: ack-lambda-controller.v0.0.10
53+
namespace: placeholder
54+
spec:
55+
apiservicedefinitions: {}
56+
customresourcedefinitions:
57+
owned:
58+
- description: Alias represents the state of an AWS lambda Alias resource.
59+
displayName: Alias
60+
kind: Alias
61+
name: aliases.lambda.services.k8s.aws
62+
version: v1alpha1
63+
- description: CodeSigningConfig represents the state of an AWS lambda CodeSigningConfig
64+
resource.
65+
displayName: CodeSigningConfig
66+
kind: CodeSigningConfig
67+
name: codesigningconfigs.lambda.services.k8s.aws
68+
version: v1alpha1
69+
- description: EventSourceMapping represents the state of an AWS lambda EventSourceMapping
70+
resource.
71+
displayName: EventSourceMapping
72+
kind: EventSourceMapping
73+
name: eventsourcemappings.lambda.services.k8s.aws
74+
version: v1alpha1
75+
- description: Function represents the state of an AWS lambda Function resource.
76+
displayName: Function
77+
kind: Function
78+
name: functions.lambda.services.k8s.aws
79+
version: v1alpha1
80+
description: |-
81+
Manage Amazon Lambda resources in AWS from within your Kubernetes cluster.
82+
83+
**About Amazon Lambda**
84+
85+
Lambda is a compute service that lets you run code without provisioning or managing servers. Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. With Lambda, you can run code for virtually any type of application or backend service. All you need to do is supply your code in one of the [languages that Lambda supports](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html).
86+
87+
**About the AWS Controllers for Kubernetes**
88+
89+
This controller is a component of the [AWS Controller for Kubernetes](https://github.com/aws/aws-controllers-k8s) project. This project is currently in **developer preview**.
90+
91+
**Pre-Installation Steps**
92+
93+
Please follow the following link: [Red Hat OpenShift](https://aws-controllers-k8s.github.io/community/docs/user-docs/openshift/)
94+
displayName: AWS Controllers for Kubernetes - Amazon Lambda
95+
icon:
96+
- base64data: PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMzA0IDE4MiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzA0IDE4MjsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiMyNTJGM0U7fQoJLnN0MXtmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsOiNGRjk5MDA7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik04Ni40LDY2LjRjMCwzLjcsMC40LDYuNywxLjEsOC45YzAuOCwyLjIsMS44LDQuNiwzLjIsNy4yYzAuNSwwLjgsMC43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TTI3My41LDE0My43Yy0zMi45LDI0LjMtODAuNywzNy4yLTEyMS44LDM3LjJjLTU3LjYsMC0xMDkuNS0yMS4zLTE0OC43LTU2LjdjLTMuMS0yLjgtMC4zLTYuNiwzLjQtNC40ICAgIGM0Mi40LDI0LjYsOTQuNywzOS41LDE0OC44LDM5LjVjMzYuNSwwLDc2LjYtNy42LDExMy41LTIzLjJDMjc0LjIsMTMzLjYsMjc4LjksMTM5LjcsMjczLjUsMTQzLjd6Ii8+CgkJPHBhdGggY2xhc3M9InN0MSIgZD0iTTI4Ny4yLDEyOC4xYy00LjItNS40LTI3LjgtMi42LTM4LjUtMS4zYy0zLjIsMC40LTMuNy0yLjQtMC44LTQuNWMxOC44LTEzLjIsNDkuNy05LjQsNTMuMy01ICAgIGMzLjYsNC41LTEsMzUuNC0xOC42LDUwLjJjLTIuNywyLjMtNS4zLDEuMS00LjEtMS45QzI4Mi41LDE1NS43LDI5MS40LDEzMy40LDI4Ny4yLDEyOC4xeiIvPgoJPC9nPgo8L2c+Cjwvc3ZnPg==
97+
mediatype: image/svg+xml
98+
install:
99+
spec:
100+
clusterPermissions:
101+
- rules:
102+
- apiGroups:
103+
- ""
104+
resources:
105+
- configmaps
106+
verbs:
107+
- get
108+
- list
109+
- watch
110+
- apiGroups:
111+
- ""
112+
resources:
113+
- namespaces
114+
verbs:
115+
- get
116+
- list
117+
- watch
118+
- apiGroups:
119+
- lambda.services.k8s.aws
120+
resources:
121+
- aliases
122+
verbs:
123+
- create
124+
- delete
125+
- get
126+
- list
127+
- patch
128+
- update
129+
- watch
130+
- apiGroups:
131+
- lambda.services.k8s.aws
132+
resources:
133+
- aliases/status
134+
verbs:
135+
- get
136+
- patch
137+
- update
138+
- apiGroups:
139+
- lambda.services.k8s.aws
140+
resources:
141+
- codesigningconfigs
142+
verbs:
143+
- create
144+
- delete
145+
- get
146+
- list
147+
- patch
148+
- update
149+
- watch
150+
- apiGroups:
151+
- lambda.services.k8s.aws
152+
resources:
153+
- codesigningconfigs/status
154+
verbs:
155+
- get
156+
- patch
157+
- update
158+
- apiGroups:
159+
- lambda.services.k8s.aws
160+
resources:
161+
- eventsourcemappings
162+
verbs:
163+
- create
164+
- delete
165+
- get
166+
- list
167+
- patch
168+
- update
169+
- watch
170+
- apiGroups:
171+
- lambda.services.k8s.aws
172+
resources:
173+
- eventsourcemappings/status
174+
verbs:
175+
- get
176+
- patch
177+
- update
178+
- apiGroups:
179+
- lambda.services.k8s.aws
180+
resources:
181+
- functions
182+
verbs:
183+
- create
184+
- delete
185+
- get
186+
- list
187+
- patch
188+
- update
189+
- watch
190+
- apiGroups:
191+
- lambda.services.k8s.aws
192+
resources:
193+
- functions/status
194+
verbs:
195+
- get
196+
- patch
197+
- update
198+
- apiGroups:
199+
- services.k8s.aws
200+
resources:
201+
- adoptedresources
202+
verbs:
203+
- create
204+
- delete
205+
- get
206+
- list
207+
- patch
208+
- update
209+
- watch
210+
- apiGroups:
211+
- services.k8s.aws
212+
resources:
213+
- adoptedresources/status
214+
verbs:
215+
- get
216+
- patch
217+
- update
218+
serviceAccountName: ack-lambda-controller
219+
deployments:
220+
- name: ack-lambda-controller
221+
spec:
222+
replicas: 1
223+
selector:
224+
matchLabels:
225+
control-plane: controller
226+
strategy: {}
227+
template:
228+
metadata:
229+
labels:
230+
control-plane: controller
231+
spec:
232+
containers:
233+
- args:
234+
- --aws-region
235+
- $(AWS_REGION)
236+
- --enable-development-logging
237+
- $(ACK_ENABLE_DEVELOPMENT_LOGGING)
238+
- --log-level
239+
- $(ACK_LOG_LEVEL)
240+
- --resource-tags
241+
- $(ACK_RESOURCE_TAGS)
242+
- --watch-namespace
243+
- $(ACK_WATCH_NAMESPACE)
244+
command:
245+
- ./bin/controller
246+
env:
247+
- name: ACK_SYSTEM_NAMESPACE
248+
valueFrom:
249+
fieldRef:
250+
fieldPath: metadata.namespace
251+
envFrom:
252+
- configMapRef:
253+
name: ack-user-config
254+
optional: false
255+
- secretRef:
256+
name: ack-user-secrets
257+
optional: false
258+
image: public.ecr.aws/aws-controllers-k8s/lambda-controller:v0.0.10
259+
name: controller
260+
ports:
261+
- containerPort: 8080
262+
name: http
263+
resources:
264+
limits:
265+
cpu: 100m
266+
memory: 300Mi
267+
requests:
268+
cpu: 100m
269+
memory: 200Mi
270+
securityContext:
271+
allowPrivilegeEscalation: false
272+
capabilities:
273+
drop:
274+
- ALL
275+
privileged: false
276+
runAsNonRoot: true
277+
serviceAccountName: ack-lambda-controller
278+
terminationGracePeriodSeconds: 10
279+
strategy: deployment
280+
installModes:
281+
- supported: true
282+
type: AllNamespaces
283+
keywords:
284+
- lambda
285+
- aws
286+
- amazon
287+
- ack
288+
links:
289+
- name: AWS Controllers for Kubernetes
290+
url: https://github.com/aws-controllers-k8s/community
291+
- name: Documentation
292+
url: https://aws-controllers-k8s.github.io/community/
293+
- name: Amazon Lambda Developer Resources
294+
url: https://aws.amazon.com/lambda/resources/
295+
maintainers:
296+
297+
name: lambda maintainer team
298+
maturity: alpha
299+
provider:
300+
name: Amazon, Inc.
301+
url: https://aws.amazon.com
302+
version: 0.0.10
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-lambda-metrics-service
6+
spec:
7+
ports:
8+
- name: metricsport
9+
port: 8080
10+
protocol: TCP
11+
targetPort: http
12+
selector:
13+
control-plane: controller
14+
type: NodePort
15+
status:
16+
loadBalancer: {}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: Role
3+
metadata:
4+
creationTimestamp: null
5+
name: ack-lambda-reader
6+
rules:
7+
- apiGroups:
8+
- lambda.services.k8s.aws
9+
resources:
10+
- aliases
11+
- codesigningconfigs
12+
- eventsourcemappings
13+
- functions
14+
verbs:
15+
- get
16+
- list
17+
- watch
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: Role
3+
metadata:
4+
creationTimestamp: null
5+
name: ack-lambda-writer
6+
rules:
7+
- apiGroups:
8+
- lambda.services.k8s.aws
9+
resources:
10+
- aliases
11+
- codesigningconfigs
12+
- eventsourcemappings
13+
- functions
14+
verbs:
15+
- create
16+
- delete
17+
- get
18+
- list
19+
- patch
20+
- update
21+
- watch
22+
- apiGroups:
23+
- lambda.services.k8s.aws
24+
resources:
25+
- aliases
26+
- codesigningconfigs
27+
- eventsourcemappings
28+
- functions
29+
verbs:
30+
- get
31+
- patch
32+
- update

0 commit comments

Comments
 (0)