Skip to content

Commit 8f3f6b5

Browse files
committed
test: iam role selector
add test for iam role selector
1 parent 3bf4c64 commit 8f3f6b5

16 files changed

+343
-532
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
*.swp
33
*~
44
.idea
5+
.venv
56
/docs/site
67
bin
78
build

config/controller/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ spec:
4343
- "$(RECONCILE_DEFAULT_MAX_CONCURRENT_SYNCS)"
4444
- --feature-gates
4545
- "$(FEATURE_GATES)"
46+
- --enable-carm=$(ENABLE_CARM)
4647
image: controller:latest
4748
name: controller
4849
ports:
@@ -80,6 +81,8 @@ spec:
8081
value: "1"
8182
- name: "FEATURE_GATES"
8283
value: ""
84+
- name: "ENABLE_CARM"
85+
value: "true"
8386
securityContext:
8487
allowPrivilegeEscalation: false
8588
privileged: false

config/crd/bases/sqs.services.k8s.aws_queues.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.16.2
6+
controller-gen.kubebuilder.io/version: v0.19.0
77
name: queues.sqs.services.k8s.aws
88
spec:
99
group: sqs.services.k8s.aws
@@ -137,15 +137,15 @@ spec:
137137
138138
When you use queue tags, keep the following guidelines in mind:
139139
140-
* Adding more than 50 tags to a queue isn't recommended.
140+
- Adding more than 50 tags to a queue isn't recommended.
141141
142-
* Tags don't have any semantic meaning. Amazon SQS interprets tags as
143-
character strings.
142+
- Tags don't have any semantic meaning. Amazon SQS interprets tags as
143+
character strings.
144144
145-
* Tags are case-sensitive.
145+
- Tags are case-sensitive.
146146
147-
* A new tag with a key identical to that of an existing tag overwrites
148-
the existing tag.
147+
- A new tag with a key identical to that of an existing tag overwrites
148+
the existing tag.
149149
150150
For a full list of tag restrictions, see Quotas related to queues (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-limits.html#limits-queues)
151151
in the Amazon SQS Developer Guide.

config/crd/common/bases/services.k8s.aws_adoptedresources.yaml

Lines changed: 0 additions & 249 deletions
This file was deleted.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
controller-gen.kubebuilder.io/version: v0.16.2
7+
name: iamroleselectors.services.k8s.aws
8+
spec:
9+
group: services.k8s.aws
10+
names:
11+
kind: IAMRoleSelector
12+
listKind: IAMRoleSelectorList
13+
plural: iamroleselectors
14+
singular: iamroleselector
15+
scope: Namespaced
16+
versions:
17+
- name: v1alpha1
18+
schema:
19+
openAPIV3Schema:
20+
description: IAMRoleSelector is the schema for the IAMRoleSelector 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+
properties:
41+
arn:
42+
type: string
43+
namespaceSelector:
44+
description: IAMRoleSelectorSpec defines the desired state of IAMRoleSelector
45+
properties:
46+
labelSelector:
47+
description: LabelSelector is a label query over a set of resources.
48+
properties:
49+
matchLabels:
50+
additionalProperties:
51+
type: string
52+
type: object
53+
required:
54+
- matchLabels
55+
type: object
56+
name:
57+
items:
58+
type: string
59+
type: array
60+
required:
61+
- name
62+
type: object
63+
resourceTypeSelector:
64+
items:
65+
description: |-
66+
GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion
67+
to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling
68+
type: object
69+
type: array
70+
required:
71+
- arn
72+
type: object
73+
status:
74+
type: object
75+
type: object
76+
served: true
77+
storage: true
78+
subresources:
79+
status: {}

0 commit comments

Comments
 (0)