crossplane-contrib / crossplane-contrib/function-patch-and-transform

Add support for setting the Response Meta.Ttl field

Offen
#220 0 Kommentare 2 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Go
Sterne
46
Forks
41
Ø Merge
1 T. 10 Std.
Gemergte PRs (30 T.)
3

Beschreibung

### What problem are you facing?
With the advent of Realtime Compositions there is no standard reconciliation interval and the composition function pipeline will only be executed when a change is detected in a watched resource or when the TTL for the pipeline expires.

Since there are no watches on EnvironmentConfigs or ExtraResources, changes to these resources _will not_ trigger a reconciliation, but will be detected when the current pipeline TTL expires. By default the TTL is 1 minute for all Go SDK-based functions. Users may want to be able to set the TTL of the pipeline to a higher or lower value to detect these changes as needed.

### How could this Function help solve your problem?

The function should support the ability to set the response Meta.Ttl field as specified either by the composition developer in a function input or programmatically at runtime based on a calculation, or both.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Es werden keine Dateien oder Tests genannt. Beginne damit, zu ermitteln, wo die function response zusammengestellt wird und wo Response Meta.Ttl behandelt wird, und verfolge anschließend, wie function inputs und runtime results verarbeitet werden. Erledigt ist die Aufgabe, wenn die pipeline TTL aus dem unterstützten Input oder der Laufzeitberechnung gesetzt werden kann und das Verhalten durch Tests abgedeckt ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
go
Bereich
backend
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.