Skip to content

Commit b82c22b

Browse files
authored
operator ack-rds-controller (1.6.2)
1 parent e72a175 commit b82c22b

17 files changed

+6250
-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-rds-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-rds-controller/1.6.2/manifests/ack-rds-controller.clusterserviceversion.yaml

Lines changed: 361 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-rds-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-rds-controller
14+
type: ClusterIP
15+
status:
16+
loadBalancer: {}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: Role
3+
metadata:
4+
creationTimestamp: null
5+
name: ack-rds-reader
6+
rules:
7+
- apiGroups:
8+
- rds.services.k8s.aws
9+
resources:
10+
- dbclusters
11+
- dbclusterendpoints
12+
- dbclusterparametergroups
13+
- dbclustersnapshots
14+
- dbinstances
15+
- dbparametergroups
16+
- dbproxies
17+
- dbsnapshots
18+
- dbsubnetgroups
19+
- globalclusters
20+
verbs:
21+
- get
22+
- list
23+
- watch
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
apiVersion: rbac.authorization.k8s.io/v1
2+
kind: Role
3+
metadata:
4+
creationTimestamp: null
5+
name: ack-rds-writer
6+
rules:
7+
- apiGroups:
8+
- rds.services.k8s.aws
9+
resources:
10+
- dbclusters
11+
- dbclusterendpoints
12+
- dbclusterparametergroups
13+
- dbclustersnapshots
14+
- dbinstances
15+
- dbparametergroups
16+
- dbproxies
17+
- dbsnapshots
18+
- dbsubnetgroups
19+
- globalclusters
20+
verbs:
21+
- create
22+
- delete
23+
- get
24+
- list
25+
- patch
26+
- update
27+
- watch
28+
- apiGroups:
29+
- rds.services.k8s.aws
30+
resources:
31+
- dbclusters
32+
- dbclusterendpoints
33+
- dbclusterparametergroups
34+
- dbclustersnapshots
35+
- dbinstances
36+
- dbparametergroups
37+
- dbproxies
38+
- dbsnapshots
39+
- dbsubnetgroups
40+
- globalclusters
41+
verbs:
42+
- get
43+
- patch
44+
- update
Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,215 @@
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: dbclusterendpoints.rds.services.k8s.aws
8+
spec:
9+
group: rds.services.k8s.aws
10+
names:
11+
kind: DBClusterEndpoint
12+
listKind: DBClusterEndpointList
13+
plural: dbclusterendpoints
14+
singular: dbclusterendpoint
15+
scope: Namespaced
16+
versions:
17+
- name: v1alpha1
18+
schema:
19+
openAPIV3Schema:
20+
description: DBClusterEndpoint is the Schema for the DBClusterEndpoints API
21+
properties:
22+
apiVersion:
23+
description: |-
24+
APIVersion defines the versioned schema of this representation of an object.
25+
Servers should convert recognized schemas to the latest internal value, and
26+
may reject unrecognized values.
27+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
28+
type: string
29+
kind:
30+
description: |-
31+
Kind is a string value representing the REST resource this object represents.
32+
Servers may infer this from the endpoint the client submits requests to.
33+
Cannot be updated.
34+
In CamelCase.
35+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
36+
type: string
37+
metadata:
38+
type: object
39+
spec:
40+
description: |-
41+
DBClusterEndpointSpec defines the desired state of DBClusterEndpoint.
42+
43+
This data type represents the information you need to connect to an Amazon
44+
Aurora DB cluster. This data type is used as a response element in the following
45+
actions:
46+
47+
* CreateDBClusterEndpoint
48+
49+
* DescribeDBClusterEndpoints
50+
51+
* ModifyDBClusterEndpoint
52+
53+
* DeleteDBClusterEndpoint
54+
55+
For the data structure that represents Amazon RDS DB instance endpoints,
56+
see Endpoint.
57+
properties:
58+
dbClusterEndpointIdentifier:
59+
description: |-
60+
The identifier to use for the new endpoint. This parameter is stored as a
61+
lowercase string.
62+
type: string
63+
dbClusterIdentifier:
64+
description: |-
65+
The DB cluster identifier of the DB cluster associated with the endpoint.
66+
This parameter is stored as a lowercase string.
67+
type: string
68+
dbClusterIdentifierRef:
69+
description: "AWSResourceReferenceWrapper provides a wrapper around
70+
*AWSResourceReference\ntype to provide more user friendly syntax
71+
for references using 'from' field\nEx:\nAPIIDRef:\n\n\tfrom:\n\t
72+
\ name: my-api"
73+
properties:
74+
from:
75+
description: |-
76+
AWSResourceReference provides all the values necessary to reference another
77+
k8s resource for finding the identifier(Id/ARN/Name)
78+
properties:
79+
name:
80+
type: string
81+
namespace:
82+
type: string
83+
type: object
84+
type: object
85+
endpointType:
86+
description: 'The type of the endpoint, one of: READER, WRITER, ANY.'
87+
type: string
88+
excludedMembers:
89+
description: |-
90+
List of DB instance identifiers that aren't part of the custom endpoint group.
91+
All other eligible instances are reachable through the custom endpoint. This
92+
parameter is relevant only if the list of static members is empty.
93+
items:
94+
type: string
95+
type: array
96+
staticMembers:
97+
description: List of DB instance identifiers that are part of the
98+
custom endpoint group.
99+
items:
100+
type: string
101+
type: array
102+
tags:
103+
description: The tags to be assigned to the Amazon RDS resource.
104+
items:
105+
description: |-
106+
Metadata assigned to an Amazon RDS resource consisting of a key-value pair.
107+
108+
For more information, see Tagging Amazon RDS resources (https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_Tagging.html)
109+
in the Amazon RDS User Guide or Tagging Amazon Aurora and Amazon RDS resources
110+
(https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_Tagging.html)
111+
in the Amazon Aurora User Guide.
112+
properties:
113+
key:
114+
type: string
115+
value:
116+
type: string
117+
type: object
118+
type: array
119+
required:
120+
- dbClusterEndpointIdentifier
121+
type: object
122+
status:
123+
description: DBClusterEndpointStatus defines the observed state of DBClusterEndpoint
124+
properties:
125+
ackResourceMetadata:
126+
description: |-
127+
All CRs managed by ACK have a common `Status.ACKResourceMetadata` member
128+
that is used to contain resource sync state, account ownership,
129+
constructed ARN for the resource
130+
properties:
131+
arn:
132+
description: |-
133+
ARN is the Amazon Resource Name for the resource. This is a
134+
globally-unique identifier and is set only by the ACK service controller
135+
once the controller has orchestrated the creation of the resource OR
136+
when it has verified that an "adopted" resource (a resource where the
137+
ARN annotation was set by the Kubernetes user on the CR) exists and
138+
matches the supplied CR's Spec field values.
139+
https://github.com/aws/aws-controllers-k8s/issues/270
140+
type: string
141+
ownerAccountID:
142+
description: |-
143+
OwnerAccountID is the AWS Account ID of the account that owns the
144+
backend AWS service API resource.
145+
type: string
146+
region:
147+
description: Region is the AWS region in which the resource exists
148+
or will exist.
149+
type: string
150+
required:
151+
- ownerAccountID
152+
- region
153+
type: object
154+
conditions:
155+
description: |-
156+
All CRs managed by ACK have a common `Status.Conditions` member that
157+
contains a collection of `ackv1alpha1.Condition` objects that describe
158+
the various terminal states of the CR and its backend AWS service API
159+
resource
160+
items:
161+
description: |-
162+
Condition is the common struct used by all CRDs managed by ACK service
163+
controllers to indicate terminal states of the CR and its backend AWS
164+
service API resource
165+
properties:
166+
lastTransitionTime:
167+
description: Last time the condition transitioned from one status
168+
to another.
169+
format: date-time
170+
type: string
171+
message:
172+
description: A human readable message indicating details about
173+
the transition.
174+
type: string
175+
reason:
176+
description: The reason for the condition's last transition.
177+
type: string
178+
status:
179+
description: Status of the condition, one of True, False, Unknown.
180+
type: string
181+
type:
182+
description: Type is the type of the Condition
183+
type: string
184+
required:
185+
- status
186+
- type
187+
type: object
188+
type: array
189+
dbClusterEndpointResourceIdentifier:
190+
description: |-
191+
A unique system-generated identifier for an endpoint. It remains the same
192+
for the whole life of the endpoint.
193+
type: string
194+
endpoint:
195+
description: The DNS address of the endpoint.
196+
type: string
197+
status:
198+
description: |-
199+
The current status of the endpoint. One of: creating, available, deleting,
200+
inactive, modifying. The inactive state applies to an endpoint that can't
201+
be used for a certain kind of cluster, such as a writer endpoint for a read-only
202+
secondary cluster in a global database.
203+
type: string
204+
type: object
205+
type: object
206+
served: true
207+
storage: true
208+
subresources:
209+
status: {}
210+
status:
211+
acceptedNames:
212+
kind: ""
213+
plural: ""
214+
conditions: null
215+
storedVersions: null

0 commit comments

Comments
 (0)