Skip to content

Commit

Permalink
Fixed issue att-comdev#207 by updating label's key and value for open…
Browse files Browse the repository at this point in the history
…stack-control-plane in following:docs, glance, rabbitmq, postgresql, memcached, mariadb, maas, keystone, horizon, heat, etcd, cinder and neutron
  • Loading branch information
renmak committed Mar 15, 2017
1 parent 3e62cd5 commit 2ce3100
Show file tree
Hide file tree
Showing 54 changed files with 82 additions and 82 deletions.
2 changes: 1 addition & 1 deletion cinder/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
]'
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: cinder-api
image: {{ .Values.images.api }}
Expand Down
2 changes: 1 addition & 1 deletion cinder/templates/deployment-scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
]'
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: cinder-scheduler
image: {{ .Values.images.scheduler }}
Expand Down
2 changes: 1 addition & 1 deletion cinder/templates/deployment-volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
]'
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: cinder-volume
image: {{ .Values.images.volume }}
Expand Down
2 changes: 1 addition & 1 deletion cinder/templates/job-db-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
spec:
restartPolicy: OnFailure
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: cinder-db-init
image: {{ .Values.images.db_init | quote }}
Expand Down
4 changes: 2 additions & 2 deletions cinder/templates/job-db-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ spec:
]'
spec:
restartPolicy: OnFailure
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
nodeSelector:
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: cinder-db-sync
image: {{ .Values.images.db_sync }}
Expand Down
2 changes: 1 addition & 1 deletion cinder/templates/job-ks-endpoints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
spec:
restartPolicy: OnFailure
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
{{- range $key1, $osServiceType := tuple "volume" "volumev2" "volumev3" }}
{{- range $key2, $osServiceEndPoint := tuple "admin" "internal" "public" }}
Expand Down
2 changes: 1 addition & 1 deletion cinder/templates/job-ks-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
spec:
restartPolicy: OnFailure
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
{{- range $key1, $osServiceType := tuple "volume" "volumev2" "volumev3" }}
- name: {{ $osServiceType }}-ks-service-registration
Expand Down
2 changes: 1 addition & 1 deletion cinder/templates/job-ks-user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
spec:
restartPolicy: OnFailure
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: cinder-ks-user
image: {{ .Values.images.ks_user }}
Expand Down
4 changes: 2 additions & 2 deletions cinder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ replicas:
scheduler: 1

labels:
node_selector_key: openstack-control-plane
node_selector_value: enabled
control_node_selector_key: openstack-control-plane
control_node_selector_value: enabled

images:
dep_check: quay.io/stackanetes/kubernetes-entrypoint:v0.1.0
Expand Down
20 changes: 10 additions & 10 deletions docs/helm_overrides.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ Labels are of course definable and overridable by the chart operators. Labels ar

```
labels:
node_selector_key: openstack-control-plane
node_selector_value: enabled
control_node_selector_key: openstack-control-plane
control_node_selector_value: enabled
```

In some cases, such as with the Neutron chart, a chart may need to define more then one label. In cases such as this, each element should be articulated under the `labels:` section, nesting where appropriate:
Expand All @@ -65,17 +65,17 @@ labels:
node_selector_value: enabled
agent:
dhcp:
node_selector_key: openstack-control-plane
node_selector_value: enabled
control_node_selector_key: openstack-control-plane
control_node_selector_value: enabled
l3:
node_selector_key: openstack-control-plane
node_selector_value: enabled
control_node_selector_key: openstack-control-plane
control_node_selector_value: enabled
metadata:
node_selector_key: openstack-control-plane
node_selector_value: enabled
control_node_selector_key: openstack-control-plane
control_node_selector_value: enabled
server:
node_selector_key: openstack-control-plane
node_selector_value: enabled
control_node_selector_key: openstack-control-plane
control_node_selector_value: enabled
```

These labels should be leveraged by `nodeSelector` definitions in charts for all resources, including jobs:
Expand Down
2 changes: 1 addition & 1 deletion etcd/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
app: etcd
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: etcd
image: {{ .Values.images.etcd }}
Expand Down
4 changes: 2 additions & 2 deletions etcd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ upgrades:
max_surge: 3

labels:
node_selector_key: openstack-control-plane
node_selector_value: enabled
control_node_selector_key: openstack-control-plane
control_node_selector_value: enabled

network:
port: 2379
Expand Down
2 changes: 1 addition & 1 deletion glance/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
]'
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: glance-api
image: {{ .Values.images.api }}
Expand Down
2 changes: 1 addition & 1 deletion glance/templates/deployment-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
]'
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: glance-registry
image: {{ .Values.images.registry }}
Expand Down
2 changes: 1 addition & 1 deletion glance/templates/job-db-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
spec:
restartPolicy: OnFailure
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: glance-db-init
image: {{ .Values.images.db_init }}
Expand Down
2 changes: 1 addition & 1 deletion glance/templates/job-db-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
spec:
restartPolicy: OnFailure
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: glance-db-sync
image: {{ .Values.images.db_sync }}
Expand Down
2 changes: 1 addition & 1 deletion glance/templates/job-post.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
]'
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
restartPolicy: OnFailure
containers:
- name: glance-post
Expand Down
4 changes: 2 additions & 2 deletions glance/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ development:
storage_path: /data/openstack-helm/glance/images

labels:
node_selector_key: openstack-control-plane
node_selector_value: enabled
control_node_selector_key: openstack-control-plane
control_node_selector_value: enabled

images:
db_init: quay.io/stackanetes/stackanetes-kolla-toolbox:newton
Expand Down
2 changes: 1 addition & 1 deletion heat/templates/deployment-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
]'
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: heat-api
image: {{ .Values.images.api }}
Expand Down
2 changes: 1 addition & 1 deletion heat/templates/deployment-cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
]'
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: heat-cfn
image: {{ .Values.images.cfn }}
Expand Down
2 changes: 1 addition & 1 deletion heat/templates/deployment-cloudwatch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
]'
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: heat-cloudwatch
image: {{ .Values.images.cloudwatch }}
Expand Down
2 changes: 1 addition & 1 deletion heat/templates/job-db-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
spec:
restartPolicy: OnFailure
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: heat-db-init
image: {{ .Values.images.db_init | quote }}
Expand Down
2 changes: 1 addition & 1 deletion heat/templates/job-db-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
spec:
restartPolicy: OnFailure
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: heat-db-sync
image: {{ .Values.images.db_sync }}
Expand Down
2 changes: 1 addition & 1 deletion heat/templates/job-ks-endpoints.yaml.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
spec:
restartPolicy: OnFailure
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
{{- range $key1, $osServiceType := tuple "orchestration" "cloudformation" }}
{{- range $key2, $osServiceEndPoint := tuple "admin" "internal" "public" }}
Expand Down
2 changes: 1 addition & 1 deletion heat/templates/job-ks-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
spec:
restartPolicy: OnFailure
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
{{- range $key1, $osServiceType := tuple "orchestration" "cloudformation" }}
- name: {{ $osServiceType }}-ks-service-registration
Expand Down
2 changes: 1 addition & 1 deletion heat/templates/job-ks-user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
spec:
restartPolicy: OnFailure
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: heat-ks-user
image: {{ .Values.images.ks_user }}
Expand Down
2 changes: 1 addition & 1 deletion heat/templates/statefulset-engine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
]'
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: heat-engine
image: {{ .Values.images.engine }}
Expand Down
4 changes: 2 additions & 2 deletions heat/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ replicas:
engine: 1

labels:
node_selector_key: openstack-control-plane
node_selector_value: enabled
control_node_selector_key: openstack-control-plane
control_node_selector_value: enabled

images:
dep_check: quay.io/stackanetes/kubernetes-entrypoint:v0.1.0
Expand Down
2 changes: 1 addition & 1 deletion horizon/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
]'
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: horizon
image: {{ .Values.images.horizon }}
Expand Down
4 changes: 2 additions & 2 deletions horizon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ upgrades:
max_surge: 3

labels:
node_selector_key: openstack-control-plane
node_selector_value: enabled
control_node_selector_key: openstack-control-plane
control_node_selector_value: enabled

network:
port: 80
Expand Down
2 changes: 1 addition & 1 deletion keystone/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ spec:
]'
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: keystone-api
image: {{ .Values.images.api }}
Expand Down
2 changes: 1 addition & 1 deletion keystone/templates/job-db-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
spec:
restartPolicy: OnFailure
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: keystone-db-init
image: {{ .Values.images.db_init }}
Expand Down
2 changes: 1 addition & 1 deletion keystone/templates/job-db-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
spec:
restartPolicy: OnFailure
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: keystone-db-sync
image: {{ .Values.images.db_sync }}
Expand Down
4 changes: 2 additions & 2 deletions keystone/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
replicas: 1

labels:
node_selector_key: openstack-control-plane
node_selector_value: enabled
control_node_selector_key: openstack-control-plane
control_node_selector_value: enabled

images:
db_init: quay.io/stackanetes/stackanetes-kolla-toolbox:newton
Expand Down
2 changes: 1 addition & 1 deletion maas/templates/deploy-rack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
app: maas-rack-controller
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
hostNetwork: true
dnsPolicy: ClusterFirst
containers:
Expand Down
2 changes: 1 addition & 1 deletion maas/templates/deploy-region.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ spec:
]'
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: maas-region
image: {{ .Values.images.maas_region }}
Expand Down
4 changes: 2 additions & 2 deletions maas/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ jobs:
timeout: 900

labels:
node_selector_key: openstack-control-plane
node_selector_value: enabled
control_node_selector_key: openstack-control-plane
control_node_selector_value: enabled

network:
port:
Expand Down
2 changes: 1 addition & 1 deletion mariadb/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
}
spec:
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: {{ .Values.service_name }}
image: {{ .Values.images.mariadb }}
Expand Down
2 changes: 1 addition & 1 deletion mariadb/templates/job-seed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ spec:
spec:
restartPolicy: Never
nodeSelector:
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
{{ .Values.labels.control_node_selector_key }}: {{ .Values.labels.control_node_selector_value }}
containers:
- name: mariadb-init
image: {{ .Values.images.mariadb }}
Expand Down
Loading

0 comments on commit 2ce3100

Please sign in to comment.