kubernetes-sigs/cluster-api

Add guidance on infrastructure resource names to provider implementation guides

開放

#7,030 建立於 2022年8月5日

 (10 則留言) (1 個反應) (0 位負責人)Go (1,532 個分叉)auto 404
help wantedkind/documentationpriority/backlogtriage/accepted

倉庫指標

星標
 (4,267 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

User Story

As a user, on some infrastructures when I go to deploy a cluster with names like the following, I experience some form of breakage:

Example names

  • default/longnamemorethansixtythreecharacterslong
  • default/names.using.dots.in.them
  • same cluster name, but in a different namespace ( default/cluster1 businessunit1/cluster1)

Example forms of breakage

  • The cluster infrastructure doesn't come up
  • The VM doesn't come up
  • The VM does come up but doesn't complete bootstrap, and there's complaints from cloud-init about the hostname.

Detailed Description

Provider contracts in https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/book/src/developer/providers/machine-infrastructure.md and https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/book/src/developer/providers/cluster-infrastructure.md should include guidance on how to implement the provider to accept all valid Kubernetes resource names, including techniques like conditional hashing (https://github.com/kubernetes-sigs/cluster-api-provider-aws/pull/1290).

And then after we do that, we should probably circulate this amongst provider implementers so they can check they're not affected, and maybe add appropriate E2Es according to the constraints of their infrastructure provider.

Anything else you would like to add:

A bunch of related issues:

[Miscellaneous information that will assist in solving the issue.]

/kind docs

貢獻者指南