uint64/int64 fields in Istio CRDs cannot be set via apimachinery
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- go
- Ambito
- api, networking
Direzione di ricerca
Inizia dal messaggio ConsistentHashLB in destination_rule.proto e segui come i suoi campi int64/uint64 sono rappresentati nella CRD generata. Riproduci il problema creando la risorsa con Kubernetes client-go e analizza l’errore di validazione dell’API server. Il lavoro è completato quando la risorsa CRD interessata può essere creata senza l’errore di validazione del tipo segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bug description
If a CRD defined via protobuf contains a primitive int64/uint64 field, it will be impossible to set using kubernetes client-go. The API server will log a validation error along these lines:
spec.subsets[0].trafficPolicy.loadBalancer.consistentHash.maglev.tableSize: Invalid value: "string": spec.subsets[0].trafficPolicy.loadBalancer.consistentHash.maglev.tableSize in body must be of type integer: "string""
Affected product area (please put an X in all that apply)
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[x] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[x] User Experience
Expected behavior
The expected behavior is that the resource will be created without API errors.
I would suggest either of the following solutions:
- Add the cue-gen:DestinationRule:intOrString:xxx option
- Change the uint64 to uint32 in the destination_rule.proto file, specifically in the ConsistentHashLB message:
message ConsistentHashLB {
message RingHash {
// The minimum number of virtual nodes to use for the hash
// ring. Defaults to 1024. Larger ring sizes result in more granular
// load distributions. If the number of hosts in the load balancing
// pool is larger than the ring size, each host will be assigned a
// single virtual node.
uint32 minimum_ring_size = 1;
};
message MagLev {
// The table size for Maglev hashing. This helps in controlling the
// disruption when the backend hosts change.
// Increasing the table size reduces the amount of disruption.
// The table size must be prime number less than 5000011.
// If it is not specified, the default is 65537.
uint32 table_size = 1;
};
...
}
Steps to reproduce the bug
- Define a CRD using protobuf that includes primitive int64 or uint64 fields.(e.g. tableSize field of DestinationRule)
- Attempt to create an instance of this CRD using kubernetes client-go.
- Observe the validation error in the API server logs.
Version (include the output of istioctl version --remote and kubectl version)
- istioctl version --remote: 1.16.1
- kubectl version: v1.25.2
How was Istio installed?
istioctl
Environment where bug was observed (cloud vendor, OS, etc)
MacOS sequoia v15.1.1
Additionally, please consider attaching a cluster state archive by attaching
the dump file to this issue.
- Lingua principale
- Go
- Stelle
- 523
- Fork
- 623
- Merge medio
- 5g 20h
- PR unite (30g)
- 4
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di istio/api
-
Gateway CRD accepts both credentialName and tlsCertificates in server TLS settingsForse già presa @RaphaelFakhri l’ha presa 23 giorni fa. Apertaarea/networking area/user experience
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
area/user experience kind/docs kind/enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 40/100
I maintainer di solito rispondono entro 1 giorno
-
area/networking area/user experience kind/docs kind/enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
[release-1.29] change default of statsCompression to trueForse di nuovo libera @keithmattix l’ha presa 304 giorni fa e non c’è nessuna pull request aperta. Aperta
istio/api#3642 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
bug raised-by:verifier to:worker
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
medici-finance/assay#7835 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
golang-malawi/qatarina#496 ·
I maintainer di solito rispondono entro 2 giorni
-
hive size:simple
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
janitor: 2026-11-27 hygieneApertadocumentation stage:review
Difficoltà 1/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Type/Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
wso2/identity-customer-data-service#430 ·
I maintainer di solito rispondono entro 1 giorno