Skip to content

Commit

Permalink
Add service account selector support
Browse files Browse the repository at this point in the history
Signed-off-by: wgrayson <[email protected]>
  • Loading branch information
GraysonWu committed Dec 4, 2021
1 parent 4851df5 commit 32414cc
Show file tree
Hide file tree
Showing 17 changed files with 970 additions and 6 deletions.
112 changes: 112 additions & 0 deletions build/yamls/antrea-aks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,39 @@ spec:
matchLabels:
x-kubernetes-preserve-unknown-fields: true
type: object
serviceAccounts:
items:
properties:
name:
type: string
namespace:
type: string
selector:
properties:
matchExpressions:
items:
properties:
key:
type: string
operator:
enum:
- In
- NotIn
- Exists
- DoesNotExist
type: string
values:
items:
pattern: ^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$
type: string
type: array
type: object
type: array
matchLabels:
x-kubernetes-preserve-unknown-fields: true
type: object
type: object
type: array
type: object
type: array
egress:
Expand Down Expand Up @@ -803,6 +836,45 @@ spec:
matchLabels:
x-kubernetes-preserve-unknown-fields: true
type: object
serviceAccounts:
items:
oneOf:
- required:
- name
- namespace
- required:
- selector
properties:
name:
type: string
namespace:
type: string
selector:
properties:
matchExpressions:
items:
properties:
key:
type: string
operator:
enum:
- In
- NotIn
- Exists
- DoesNotExist
type: string
values:
items:
pattern: ^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$
type: string
type: array
type: object
type: array
matchLabels:
x-kubernetes-preserve-unknown-fields: true
type: object
type: object
type: array
type: object
type: array
toServices:
Expand Down Expand Up @@ -951,6 +1023,45 @@ spec:
matchLabels:
x-kubernetes-preserve-unknown-fields: true
type: object
serviceAccounts:
items:
oneOf:
- required:
- name
- namespace
- required:
- selector
properties:
name:
type: string
namespace:
type: string
selector:
properties:
matchExpressions:
items:
properties:
key:
type: string
operator:
enum:
- In
- NotIn
- Exists
- DoesNotExist
type: string
values:
items:
pattern: ^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$
type: string
type: array
type: object
type: array
matchLabels:
x-kubernetes-preserve-unknown-fields: true
type: object
type: object
type: array
type: object
type: array
name:
Expand Down Expand Up @@ -3606,6 +3717,7 @@ rules:
- namespaces
- services
- configmaps
- serviceaccounts
verbs:
- get
- watch
Expand Down
112 changes: 112 additions & 0 deletions build/yamls/antrea-eks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,39 @@ spec:
matchLabels:
x-kubernetes-preserve-unknown-fields: true
type: object
serviceAccounts:
items:
properties:
name:
type: string
namespace:
type: string
selector:
properties:
matchExpressions:
items:
properties:
key:
type: string
operator:
enum:
- In
- NotIn
- Exists
- DoesNotExist
type: string
values:
items:
pattern: ^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$
type: string
type: array
type: object
type: array
matchLabels:
x-kubernetes-preserve-unknown-fields: true
type: object
type: object
type: array
type: object
type: array
egress:
Expand Down Expand Up @@ -803,6 +836,45 @@ spec:
matchLabels:
x-kubernetes-preserve-unknown-fields: true
type: object
serviceAccounts:
items:
oneOf:
- required:
- name
- namespace
- required:
- selector
properties:
name:
type: string
namespace:
type: string
selector:
properties:
matchExpressions:
items:
properties:
key:
type: string
operator:
enum:
- In
- NotIn
- Exists
- DoesNotExist
type: string
values:
items:
pattern: ^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$
type: string
type: array
type: object
type: array
matchLabels:
x-kubernetes-preserve-unknown-fields: true
type: object
type: object
type: array
type: object
type: array
toServices:
Expand Down Expand Up @@ -951,6 +1023,45 @@ spec:
matchLabels:
x-kubernetes-preserve-unknown-fields: true
type: object
serviceAccounts:
items:
oneOf:
- required:
- name
- namespace
- required:
- selector
properties:
name:
type: string
namespace:
type: string
selector:
properties:
matchExpressions:
items:
properties:
key:
type: string
operator:
enum:
- In
- NotIn
- Exists
- DoesNotExist
type: string
values:
items:
pattern: ^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$
type: string
type: array
type: object
type: array
matchLabels:
x-kubernetes-preserve-unknown-fields: true
type: object
type: object
type: array
type: object
type: array
name:
Expand Down Expand Up @@ -3606,6 +3717,7 @@ rules:
- namespaces
- services
- configmaps
- serviceaccounts
verbs:
- get
- watch
Expand Down
Loading

0 comments on commit 32414cc

Please sign in to comment.