Skip to content

Commit f669776

Browse files
authored
ack-athena-controller artifacts for version 0.0.1 (redhat-openshift-ecosystem#5552)
Signed-off-by: ack-bot <[email protected]> Co-authored-by: ack-bot <[email protected]>
1 parent b23fe0b commit f669776

9 files changed

+818
-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-athena-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/
Lines changed: 270 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,270 @@
1+
apiVersion: operators.coreos.com/v1alpha1
2+
kind: ClusterServiceVersion
3+
metadata:
4+
annotations:
5+
alm-examples: |-
6+
[
7+
{
8+
"apiVersion": "athena.services.k8s.aws/v1alpha1",
9+
"kind": "WorkGroup",
10+
"metadata": {
11+
"name": "example"
12+
},
13+
"spec": {}
14+
}
15+
]
16+
capabilities: Basic Install
17+
categories: Cloud Provider
18+
certified: "false"
19+
containerImage: public.ecr.aws/aws-controllers-k8s/athena-controller:0.0.1
20+
createdAt: "2024-11-26T02:21:20Z"
21+
description: AWS Athena controller is a service controller for managing Athena
22+
resources in Kubernetes
23+
operatorframework.io/suggested-namespace: ack-system
24+
operators.operatorframework.io/builder: operator-sdk-v1.28.0
25+
operators.operatorframework.io/project_layout: unknown
26+
repository: https://github.com/aws-controllers-k8s
27+
support: Community
28+
labels:
29+
operatorframework.io/arch.amd64: supported
30+
operatorframework.io/arch.arm64: supported
31+
operatorframework.io/os.linux: supported
32+
name: ack-athena-controller.v0.0.1
33+
namespace: placeholder
34+
spec:
35+
apiservicedefinitions: {}
36+
customresourcedefinitions:
37+
owned:
38+
- description: PreparedStatement represents the state of an AWS athena PreparedStatement
39+
resource.
40+
displayName: PreparedStatement
41+
kind: PreparedStatement
42+
name: preparedstatements.athena.services.k8s.aws
43+
version: v1alpha1
44+
- description: WorkGroup represents the state of an AWS athena WorkGroup resource.
45+
displayName: WorkGroup
46+
kind: WorkGroup
47+
name: workgroups.athena.services.k8s.aws
48+
version: v1alpha1
49+
description: |-
50+
Manage Amazon Athena resources in AWS from within your Kubernetes cluster.
51+
52+
**About Amazon Athena**
53+
54+
Amazon Athena is an interactive query service that makes it easy to analyze data directly in Amazon Simple Storage Service (Amazon S3) using standard SQL. With a few actions in the AWS Management Console, you can point Athena at your data stored in Amazon S3 and begin using standard SQL to run ad-hoc queries and get results in seconds.
55+
56+
**About the AWS Controllers for Kubernetes**
57+
58+
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**.
59+
60+
**Pre-Installation Steps**
61+
62+
Please follow the following link: [Red Hat OpenShift](https://aws-controllers-k8s.github.io/community/docs/user-docs/openshift/)
63+
displayName: AWS Controllers for Kubernetes - Amazon Athena
64+
icon:
65+
- base64data: PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZH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yLjMtNS4zLDEuMS00LjEtMS45QzI4Mi41LDE1NS43LDI5MS40LDEzMy40LDI4Ny4yLDEyOC4xeiIvPgoJPC9nPgo8L2c+Cjwvc3ZnPg==
66+
mediatype: image/svg+xml
67+
install:
68+
spec:
69+
clusterPermissions:
70+
- rules:
71+
- apiGroups:
72+
- ""
73+
resources:
74+
- configmaps
75+
- secrets
76+
verbs:
77+
- get
78+
- list
79+
- patch
80+
- watch
81+
- apiGroups:
82+
- ""
83+
resources:
84+
- namespaces
85+
verbs:
86+
- get
87+
- list
88+
- watch
89+
- apiGroups:
90+
- athena.services.k8s.aws
91+
resources:
92+
- preparedstatements
93+
- workgroups
94+
verbs:
95+
- create
96+
- delete
97+
- get
98+
- list
99+
- patch
100+
- update
101+
- watch
102+
- apiGroups:
103+
- athena.services.k8s.aws
104+
resources:
105+
- preparedstatements/status
106+
- workgroups/status
107+
verbs:
108+
- get
109+
- patch
110+
- update
111+
- apiGroups:
112+
- services.k8s.aws
113+
resources:
114+
- adoptedresources
115+
- fieldexports
116+
verbs:
117+
- create
118+
- delete
119+
- get
120+
- list
121+
- patch
122+
- update
123+
- watch
124+
- apiGroups:
125+
- services.k8s.aws
126+
resources:
127+
- adoptedresources/status
128+
- fieldexports/status
129+
verbs:
130+
- get
131+
- patch
132+
- update
133+
serviceAccountName: ack-athena-controller
134+
deployments:
135+
- label:
136+
app.kubernetes.io/name: ack-athena-controller
137+
app.kubernetes.io/part-of: ack-system
138+
name: ack-athena-controller
139+
spec:
140+
replicas: 1
141+
selector:
142+
matchLabels:
143+
app.kubernetes.io/name: ack-athena-controller
144+
strategy: {}
145+
template:
146+
metadata:
147+
labels:
148+
app.kubernetes.io/name: ack-athena-controller
149+
spec:
150+
containers:
151+
- args:
152+
- --aws-region
153+
- $(AWS_REGION)
154+
- --aws-endpoint-url
155+
- $(AWS_ENDPOINT_URL)
156+
- --enable-development-logging=$(ACK_ENABLE_DEVELOPMENT_LOGGING)
157+
- --log-level
158+
- $(ACK_LOG_LEVEL)
159+
- --resource-tags
160+
- $(ACK_RESOURCE_TAGS)
161+
- --watch-namespace
162+
- $(ACK_WATCH_NAMESPACE)
163+
- --enable-leader-election=$(ENABLE_LEADER_ELECTION)
164+
- --leader-election-namespace
165+
- $(LEADER_ELECTION_NAMESPACE)
166+
- --reconcile-default-max-concurrent-syncs
167+
- $(RECONCILE_DEFAULT_MAX_CONCURRENT_SYNCS)
168+
command:
169+
- ./bin/controller
170+
env:
171+
- name: ACK_SYSTEM_NAMESPACE
172+
valueFrom:
173+
fieldRef:
174+
fieldPath: metadata.namespace
175+
envFrom:
176+
- configMapRef:
177+
name: ack-athena-user-config
178+
optional: false
179+
- secretRef:
180+
name: ack-athena-user-secrets
181+
optional: true
182+
image: public.ecr.aws/aws-controllers-k8s/athena-controller:0.0.1
183+
livenessProbe:
184+
httpGet:
185+
path: /healthz
186+
port: 8081
187+
initialDelaySeconds: 15
188+
periodSeconds: 20
189+
name: controller
190+
ports:
191+
- containerPort: 8080
192+
name: http
193+
readinessProbe:
194+
httpGet:
195+
path: /readyz
196+
port: 8081
197+
initialDelaySeconds: 5
198+
periodSeconds: 10
199+
resources:
200+
limits:
201+
cpu: 100m
202+
memory: 300Mi
203+
requests:
204+
cpu: 100m
205+
memory: 200Mi
206+
securityContext:
207+
allowPrivilegeEscalation: false
208+
capabilities:
209+
drop:
210+
- ALL
211+
privileged: false
212+
runAsNonRoot: true
213+
dnsPolicy: ClusterFirst
214+
securityContext:
215+
seccompProfile:
216+
type: RuntimeDefault
217+
serviceAccountName: ack-athena-controller
218+
terminationGracePeriodSeconds: 10
219+
permissions:
220+
- rules:
221+
- apiGroups:
222+
- coordination.k8s.io
223+
resources:
224+
- leases
225+
verbs:
226+
- get
227+
- list
228+
- watch
229+
- create
230+
- update
231+
- patch
232+
- delete
233+
- apiGroups:
234+
- ""
235+
resources:
236+
- events
237+
verbs:
238+
- create
239+
- patch
240+
serviceAccountName: ack-athena-controller
241+
strategy: deployment
242+
installModes:
243+
- supported: true
244+
type: OwnNamespace
245+
- supported: true
246+
type: SingleNamespace
247+
- supported: true
248+
type: MultiNamespace
249+
- supported: true
250+
type: AllNamespaces
251+
keywords:
252+
- athena
253+
- aws
254+
- amazon
255+
- ack
256+
links:
257+
- name: AWS Controllers for Kubernetes
258+
url: https://github.com/aws-controllers-k8s/community
259+
- name: Documentation
260+
url: https://aws-controllers-k8s.github.io/community/
261+
- name: Amazon Athena Developer Resources
262+
url: https://aws.amazon.com/athena/resources/
263+
maintainers:
264+
265+
name: athena maintainer team
266+
maturity: alpha
267+
provider:
268+
name: Amazon, Inc.
269+
url: https://aws.amazon.com
270+
version: 0.0.1
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-athena-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-athena-controller
14+
type: NodePort
15+
status:
16+
loadBalancer: {}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: Role
3+
metadata:
4+
creationTimestamp: null
5+
name: ack-athena-reader
6+
rules:
7+
- apiGroups:
8+
- athena.services.k8s.aws
9+
resources:
10+
- preparedstatements
11+
- workgroups
12+
verbs:
13+
- get
14+
- list
15+
- watch
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: Role
3+
metadata:
4+
creationTimestamp: null
5+
name: ack-athena-writer
6+
rules:
7+
- apiGroups:
8+
- athena.services.k8s.aws
9+
resources:
10+
- preparedstatements
11+
- workgroups
12+
verbs:
13+
- create
14+
- delete
15+
- get
16+
- list
17+
- patch
18+
- update
19+
- watch
20+
- apiGroups:
21+
- athena.services.k8s.aws
22+
resources:
23+
- preparedstatements
24+
- workgroups
25+
verbs:
26+
- get
27+
- patch
28+
- update

0 commit comments

Comments
 (0)