Add status condition for DNS TTL

Aperta
#752 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go
Ambito
networking

Direzione di ricerca

Inizia tracciando lo stato di DNSRecord e la condizione Ready esistente, quindi determina come ottenere il TTL del record e il TTL di caching negativo di SOA. Definisci come la nuova condizione Propagated debba essere applicata a DNSRecord ed eventualmente a DNSPolicy, inclusi i relativi messaggi true e false. Il lavoro è completato quando la condizione indica in modo affidabile se è trascorso il periodo di TTL pertinente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Is your feature request related to a problem? Please describe.
In the DNS, TTL is a time value which makes changes to the zone not have an immediate impact. Therefore to be 100% sure the required dns record can be queried by all users a dns propagation must happen. First step is to ensure all nameservers contain the required zone state, still is currently handled in the Ready status condition. But additionally either TTL of the changed record or negative caching TTL (or TTL of SOA records itself, always the minimum of the values) value of time must pass to be sure that all caching recursive resolvers will flush their cache to retrieve the new changes and this will complete the DNS propagation, this can be shown in a separate "Propagated" condition.

Describe the solution you'd like
For DNSRecord (and eventually also DNSPolicy) a new status condition should be added which would track time from the most recent change until expiration of TTL of either 1. Existing DNS record TTL or 2. Negative caching TTL defined in SOA record and give two answers. Either "Propagated" or "Not propagated"

status:
  conditions:
    - lastTransitionTime: 'xxx'
      message: DNS record is propagated
      status: 'True'
      type: Propagated

or

status:
  conditions:
    - lastTransitionTime: 'xxx'
      message: DNS record is propagating, TTL=xx
      status: 'False'
      type: Propagated

This will give the user some additional information if their DnsRecord (DNSPolicy) has been applied globally.

Additionally this could also affect the Ready condition, but I think this condition can be separated.

Describe alternatives you've considered
The information for calculating the "DNS Propagation" is all contained in the DNSRecord such as lastTransitionTime and TTL of the existing record, only missing information is negative caching TTL contained in SOA record which can be retrieved from dns query. So user could calculate this information if needed, but I still think having a status condition would be a good idea.

Lingua principale
Go
Stelle
13
Fork
26
Merge medio
1g 9h
PR unite (30g)
4

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Kuadrant/dns-operator

Tutte le issue di Kuadrant/dns-operator

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.