Files
nodepool/nodepool/tests/fixtures/static-2-nodes-multilabel.yaml
Simon Westphahl 7b4ce1be8e Consider all node types when adjusting label quota
Since nodes can have multiple other labels apart from the requested
type, we need to adjust the available quota for all labels of nodes that
were allocated to a request.

This fixes a problem where a static driver pool could pause because the
requested node types were no longer available but the request was still
accepted due to wrong label quota.

Change-Id: Ia9626ec26a66870574019ecc3f119a18e6c5022d
2022-08-24 15:40:36 +02:00

40 lines
878 B
YAML

zookeeper-servers:
- host: {zookeeper_host}
port: {zookeeper_port}
chroot: {zookeeper_chroot}
zookeeper-tls:
ca: {zookeeper_ca}
cert: {zookeeper_cert}
key: {zookeeper_key}
labels:
- name: fake-label
- name: fake-label2
- name: label-host-1
- name: label-host-2
providers:
- name: static-provider
driver: static
pools:
- name: main
nodes:
- name: fake-host-1
labels:
- fake-label
- fake-label2
- label-host-1
host-key: ssh-rsa FAKEKEY
timeout: 13
connection-port: 22022
username: zuul
- name: fake-host-2
labels:
- fake-label2
- label-host-2
host-key: ssh-rsa FAKEKEY
timeout: 13
connection-port: 22022
username: zuul