Commit 7ee9abe4 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #40339 from noseka1/master

Automatic merge from submit-queue (batch tested with PRs 40549, 40339) Invalid node names when deploying with Heat OpenStack Heat templates create Kubernetes nodes with invalid hostnames. Capital letters are not allowed in the hostnames: Unable to register node "kubernetes-node-6s8OizYe" with API server: Node "kubernetes-node-6s8OizYe" is invalid: metadata.name: Invalid value: "kubernetes-node-6s8OizYe": must match the regex [a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)* (e.g. 'example.com') This patch prevents Heat generating hostnames that contain capital letters. **What this PR does / why we need it**: **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note ```
parents 2623f7c4 307a7556
...@@ -258,6 +258,9 @@ resources: ...@@ -258,6 +258,9 @@ resources:
properties: properties:
character_classes: [{'class': 'lowercase', 'min': 1}] character_classes: [{'class': 'lowercase', 'min': 1}]
length: 8 length: 8
character_classes:
- class: lowercase
- class: digits
kube_minion: kube_minion:
type: OS::Nova::Server type: OS::Nova::Server
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment