Update RBAC AND CRD as per 0.10

This commit is contained in:
Smit Thakkar 2020-11-22 16:09:10 +04:00
parent ab8f54d3c2
commit 96dd14843d
7 changed files with 225 additions and 70 deletions

View file

@ -12,8 +12,10 @@ rules:
- argoproj.io - argoproj.io
resources: resources:
- rollouts - rollouts
- rollouts/scale
- experiments - experiments
- analysistemplates - analysistemplates
- clusteranalysistemplates
- analysisruns - analysisruns
verbs: verbs:
- get - get
@ -35,8 +37,11 @@ rules:
- argoproj.io - argoproj.io
resources: resources:
- rollouts - rollouts
- rollouts/scale
- rollouts/status
- experiments - experiments
- analysistemplates - analysistemplates
- clusteranalysistemplates
- analysisruns - analysisruns
verbs: verbs:
- create - create
@ -63,8 +68,11 @@ rules:
- argoproj.io - argoproj.io
resources: resources:
- rollouts - rollouts
- rollouts/scale
- rollouts/status
- experiments - experiments
- analysistemplates - analysistemplates
- clusteranalysistemplates
- analysisruns - analysisruns
verbs: verbs:
- create - create

View file

@ -8,6 +8,42 @@ metadata:
app.kubernetes.io/name: {{ .Release.Name }}-clusterrole app.kubernetes.io/name: {{ .Release.Name }}-clusterrole
app.kubernetes.io/part-of: {{ .Release.Name }} app.kubernetes.io/part-of: {{ .Release.Name }}
rules: rules:
- apiGroups:
- argoproj.io
resources:
- rollouts
- rollouts/status
- rollouts/finalizers
verbs:
- get
- list
- watch
- update
- patch
- apiGroups:
- argoproj.io
resources:
- analysisruns
- analysisruns/finalizers
- experiments
- experiments/finalizers
verbs:
- create
- get
- list
- watch
- update
- patch
- delete
- apiGroups:
- argoproj.io
resources:
- analysistemplates
- clusteranalysistemplates
verbs:
- get
- list
- watch
- apiGroups: - apiGroups:
- apps - apps
resources: resources:
@ -38,50 +74,31 @@ rules:
- list - list
- watch - watch
- apiGroups: - apiGroups:
- argoproj.io - ""
resources: resources:
- rollouts - pods
verbs: verbs:
- get
- list - list
- watch - delete
- update
- apiGroups:
- ""
resources:
- events
verbs:
- create
- update - update
- patch - patch
- apiGroups: - apiGroups:
- argoproj.io - extensions
resources: resources:
- rollouts/finalizers - ingresses
verbs:
- update
- apiGroups:
- argoproj.io
resources:
- analysisruns
- experiments
verbs: verbs:
- create - create
- get - get
- list - list
- watch - watch
- update
- patch - patch
- delete
- apiGroups:
- argoproj.io
resources:
- analysisruns/finalizers
- experiments/finalizers
verbs:
- update
- apiGroups:
- argoproj.io
resources:
- analysistemplates
- clusteranalysistemplates
verbs:
- get
- list
- watch
- apiGroups: - apiGroups:
- batch - batch
resources: resources:
@ -94,24 +111,6 @@ rules:
- update - update
- patch - patch
- delete - delete
- apiGroups:
- extensions
resources:
- ingresses
verbs:
- create
- get
- list
- watch
- patch
- apiGroups:
- ""
resources:
- events
verbs:
- create
- update
- patch
- apiGroups: - apiGroups:
- networking.istio.io - networking.istio.io
resources: resources:
@ -131,17 +130,4 @@ rules:
- get - get
- update - update
- patch - patch
- apiGroups:
- ""
resources:
- pods
verbs:
- list
- delete
- apiGroups:
- "*"
resources:
- "*/finalizers"
verbs:
- "*"
{{- end }} {{- end }}

View file

@ -41,6 +41,13 @@ spec:
type: string type: string
valueFrom: valueFrom:
properties: properties:
fieldRef:
properties:
fieldPath:
type: string
required:
- fieldPath
type: object
secretKeyRef: secretKeyRef:
properties: properties:
key: key:
@ -81,6 +88,15 @@ spec:
type: string type: string
provider: provider:
properties: properties:
datadog:
properties:
interval:
type: string
query:
type: string
required:
- query
type: object
job: job:
properties: properties:
metadata: metadata:
@ -2053,6 +2069,8 @@ spec:
fsGroup: fsGroup:
format: int64 format: int64
type: integer type: integer
fsGroupChangePolicy:
type: string
runAsGroup: runAsGroup:
format: int64 format: int64
type: integer type: integer
@ -2679,6 +2697,15 @@ spec:
- storageAccountName - storageAccountName
- threshold - threshold
type: object type: object
newRelic:
properties:
profile:
type: string
query:
type: string
required:
- query
type: object
prometheus: prometheus:
properties: properties:
address: address:

View file

@ -35,6 +35,13 @@ spec:
type: string type: string
valueFrom: valueFrom:
properties: properties:
fieldRef:
properties:
fieldPath:
type: string
required:
- fieldPath
type: object
secretKeyRef: secretKeyRef:
properties: properties:
key: key:
@ -75,6 +82,15 @@ spec:
type: string type: string
provider: provider:
properties: properties:
datadog:
properties:
interval:
type: string
query:
type: string
required:
- query
type: object
job: job:
properties: properties:
metadata: metadata:
@ -2047,6 +2063,8 @@ spec:
fsGroup: fsGroup:
format: int64 format: int64
type: integer type: integer
fsGroupChangePolicy:
type: string
runAsGroup: runAsGroup:
format: int64 format: int64
type: integer type: integer
@ -2673,6 +2691,15 @@ spec:
- storageAccountName - storageAccountName
- threshold - threshold
type: object type: object
newRelic:
properties:
profile:
type: string
query:
type: string
required:
- query
type: object
prometheus: prometheus:
properties: properties:
address: address:

View file

@ -35,6 +35,13 @@ spec:
type: string type: string
valueFrom: valueFrom:
properties: properties:
fieldRef:
properties:
fieldPath:
type: string
required:
- fieldPath
type: object
secretKeyRef: secretKeyRef:
properties: properties:
key: key:
@ -75,6 +82,15 @@ spec:
type: string type: string
provider: provider:
properties: properties:
datadog:
properties:
interval:
type: string
query:
type: string
required:
- query
type: object
job: job:
properties: properties:
metadata: metadata:
@ -2047,6 +2063,8 @@ spec:
fsGroup: fsGroup:
format: int64 format: int64
type: integer type: integer
fsGroupChangePolicy:
type: string
runAsGroup: runAsGroup:
format: int64 format: int64
type: integer type: integer
@ -2673,6 +2691,15 @@ spec:
- storageAccountName - storageAccountName
- threshold - threshold
type: object type: object
newRelic:
properties:
profile:
type: string
query:
type: string
required:
- query
type: object
prometheus: prometheus:
properties: properties:
address: address:

View file

@ -44,6 +44,13 @@ spec:
type: string type: string
valueFrom: valueFrom:
properties: properties:
fieldRef:
properties:
fieldPath:
type: string
required:
- fieldPath
type: object
secretKeyRef: secretKeyRef:
properties: properties:
key: key:
@ -2031,6 +2038,8 @@ spec:
fsGroup: fsGroup:
format: int64 format: int64
type: integer type: integer
fsGroupChangePolicy:
type: string
runAsGroup: runAsGroup:
format: int64 format: int64
type: integer type: integer

View file

@ -39,6 +39,7 @@ spec:
labelSelectorPath: .status.selector labelSelectorPath: .status.selector
specReplicasPath: .spec.replicas specReplicasPath: .spec.replicas
statusReplicasPath: .status.HPAReplicas statusReplicasPath: .status.HPAReplicas
status: {}
validation: validation:
openAPIV3Schema: openAPIV3Schema:
properties: properties:
@ -125,6 +126,13 @@ spec:
type: string type: string
valueFrom: valueFrom:
properties: properties:
fieldRef:
properties:
fieldPath:
type: string
required:
- fieldPath
type: object
podTemplateHashValue: podTemplateHashValue:
type: string type: string
type: object type: object
@ -157,6 +165,13 @@ spec:
type: string type: string
valueFrom: valueFrom:
properties: properties:
fieldRef:
properties:
fieldPath:
type: string
required:
- fieldPath
type: object
podTemplateHashValue: podTemplateHashValue:
type: string type: string
type: object type: object
@ -205,6 +220,13 @@ spec:
type: string type: string
valueFrom: valueFrom:
properties: properties:
fieldRef:
properties:
fieldPath:
type: string
required:
- fieldPath
type: object
podTemplateHashValue: podTemplateHashValue:
type: string type: string
type: object type: object
@ -242,6 +264,17 @@ spec:
requiredDuringSchedulingIgnoredDuringExecution: requiredDuringSchedulingIgnoredDuringExecution:
type: object type: object
type: object type: object
canaryMetadata:
properties:
annotations:
additionalProperties:
type: string
type: object
labels:
additionalProperties:
type: string
type: object
type: object
canaryService: canaryService:
type: string type: string
maxSurge: maxSurge:
@ -254,6 +287,17 @@ spec:
- type: integer - type: integer
- type: string - type: string
x-kubernetes-int-or-string: true x-kubernetes-int-or-string: true
stableMetadata:
properties:
annotations:
additionalProperties:
type: string
type: object
labels:
additionalProperties:
type: string
type: object
type: object
stableService: stableService:
type: string type: string
steps: steps:
@ -270,6 +314,13 @@ spec:
type: string type: string
valueFrom: valueFrom:
properties: properties:
fieldRef:
properties:
fieldPath:
type: string
required:
- fieldPath
type: object
podTemplateHashValue: podTemplateHashValue:
type: string type: string
type: object type: object
@ -305,6 +356,13 @@ spec:
type: string type: string
valueFrom: valueFrom:
properties: properties:
fieldRef:
properties:
fieldPath:
type: string
required:
- fieldPath
type: object
podTemplateHashValue: podTemplateHashValue:
type: string type: string
type: object type: object
@ -385,6 +443,17 @@ spec:
- type: string - type: string
x-kubernetes-int-or-string: true x-kubernetes-int-or-string: true
type: object type: object
setCanaryScale:
properties:
matchTrafficWeight:
type: boolean
replicas:
format: int32
type: integer
weight:
format: int32
type: integer
type: object
setWeight: setWeight:
format: int32 format: int32
type: integer type: integer
@ -2367,6 +2436,8 @@ spec:
fsGroup: fsGroup:
format: int64 format: int64
type: integer type: integer
fsGroupChangePolicy:
type: string
runAsGroup: runAsGroup:
format: int64 format: int64
type: integer type: integer
@ -2992,8 +3063,6 @@ spec:
- name - name
- status - status
type: object type: object
stableRS:
type: string
type: object type: object
collisionCount: collisionCount:
format: int32 format: int32
@ -3048,6 +3117,8 @@ spec:
- startTime - startTime
type: object type: object
type: array type: array
promoteFull:
type: boolean
readyReplicas: readyReplicas:
format: int32 format: int32
type: integer type: integer