Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Autodiscover name doesn't work with uppercase path #13

Closed
e-minguez opened this issue Nov 27, 2019 · 1 comment
Closed

Autodiscover name doesn't work with uppercase path #13

e-minguez opened this issue Nov 27, 2019 · 1 comment

Comments

@e-minguez
Copy link
Owner

file-to-machineconfig --file 30-mtu --remote /etc/NetworkManager/dispatcher.d/30-mtu
{
  "kind": "MachineConfig",
  "apiVersion": "machineconfiguration.openshift.io/v1",
  "metadata": {
    "name": "99-worker-etc-NetworkManager-dispatcher-d-30-mtu",
    "creationTimestamp": null,
    "labels": {
      "machineconfiguration.openshift.io/role": "worker"
    }

Then

$ oc create -f mc-mtu.json 
The MachineConfig "99-worker-etc-NetworkManager-dispatcher-d-30-mtu" is invalid: metadata.name: Invalid value: "99-worker-etc-NetworkManager-dispatcher-d-30-mtu": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
@e-minguez
Copy link
Owner Author

I've just tested this and it seems to work. I've added the change here 35bbdc3

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant