Skip to content

Commit

Permalink
Change QueueConsumer to not have an array for k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
t4lz committed Aug 9, 2024
1 parent ef238e9 commit 9f0e418
Showing 1 changed file with 30 additions and 46 deletions.
76 changes: 30 additions & 46 deletions mirrord-operator/templates/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,30 +114,22 @@ spec:
properties:
consumer:
description: The resource (deployment or Argo rollout) that reads from the queues.
oneOf:
- required:
- deployment
- required:
- rollout
properties:
deployment:
description: The name of the deployment and an optional container. If a container is not specified, the workload queue registry will apply to every run that targets any of the workload's containers.
items:
- type: string
- nullable: true
type: string
maxItems: 2
minItems: 2
type: array
rollout:
description: The name of the rollout and an optional container. If a container is not specified, the workload queue registry will apply to every run that targets any of the workload's containers.
items:
- type: string
- nullable: true
type: string
maxItems: 2
minItems: 2
type: array
container:
description: If a container is not specified, the workload queue registry will apply to every run that targets any of the workload's containers.
nullable: true
type: string
name:
type: string
workload_type:
description: A workload that is a consumer of a queue that is being split.
enum:
- Deployment
- Rollout
type: string
required:
- name
- workload_type
type: object
queues:
additionalProperties:
Expand Down Expand Up @@ -250,30 +242,22 @@ spec:
properties:
queueConsumer:
description: The target of this session.
oneOf:
- required:
- deployment
- required:
- rollout
properties:
deployment:
description: The name of the deployment and an optional container. If a container is not specified, the workload queue registry will apply to every run that targets any of the workload's containers.
items:
- type: string
- nullable: true
type: string
maxItems: 2
minItems: 2
type: array
rollout:
description: The name of the rollout and an optional container. If a container is not specified, the workload queue registry will apply to every run that targets any of the workload's containers.
items:
- type: string
- nullable: true
type: string
maxItems: 2
minItems: 2
type: array
container:
description: If a container is not specified, the workload queue registry will apply to every run that targets any of the workload's containers.
nullable: true
type: string
name:
type: string
workload_type:
description: A workload that is a consumer of a queue that is being split.
enum:
- Deployment
- Rollout
type: string
required:
- name
- workload_type
type: object
queueFilters:
additionalProperties:
Expand Down

0 comments on commit 9f0e418

Please sign in to comment.