Skip to content
Snippets Groups Projects
This project is mirrored from https://gitlab.com/gitlab-org/build/omnibus-mirror/consul.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Feb 08, 2024
  2. Feb 07, 2024
  3. Feb 06, 2024
  4. Feb 05, 2024
  5. Feb 03, 2024
  6. Feb 02, 2024
    • Dan Stough's avatar
    • R.B. Boyer's avatar
      catalog: improve the bound workload identity encoding on services (#20458) · deca6a49
      R.B. Boyer authored
      The endpoints controller currently encodes the list of unique workload identities 
      referenced by all workload matched by a Service into a special data-bearing 
      status condition on that Service. This allows a downstream controller to avoid an 
      expensive watch on the ServiceEndpoints type just to get this data.
      
      The current encoding does not lend itself well to machine parsing, which is what 
      the field is meant for, so this PR simplifies the encoding from:
      
          "blah blah: " + strings.Join(ids, ",") + "."
      
      to
      
          strings.Join(ids, ",")
      
      It also provides an exported utility function to easily extract this data.
      deca6a49
    • Nick Ethier's avatar
      internal/hcp: prevent write loop on telemetrystate resource updates (#20435) · 9d4ad74a
      Nick Ethier authored
      
      * internal/hcp: prevent write loop on telemetrystate resource updates
      
      * Update controller.go
      
      Co-authored-by: default avatarNick Cellino <nick.cellino@hashicorp.com>
      
      * internal/hcp: add assertion for looping controller
      
      ---------
      
      Co-authored-by: default avatarNick Cellino <nick.cellino@hashicorp.com>
      9d4ad74a
    • R.B. Boyer's avatar
      v2: ensure the controller caches are fully populated before first use (#20421) · c029b206
      R.B. Boyer authored
      The new controller caches are initialized before the DependencyMappers or the 
      Reconciler run, but importantly they are not populated. The expectation is that 
      when the WatchList call is made to the resource service it will send an initial 
      snapshot of all resources matching a single type, and then perpetually send 
      UPSERT/DELETE events afterward. This initial snapshot will cycle through the 
      caching layer and will catch it up to reflect the stored data.
      
      Critically the dependency mappers and reconcilers will race against the restoration 
      of the caches on server startup or leader election. During this time it is possible a
       mapper or reconciler will use the cache to lookup a specific relationship and 
      not find it. That very same reconciler may choose to then recompute some 
      persisted resource and in effect rewind it to a prior computed state.
      
      Change
      
      - Since we are updating the behavior of the WatchList RPC, it was aligned to 
        match that of pbsubscribe and pbpeerstream using a protobuf oneof instead of the enum+fields option.
      
      - The WatchList rpc now has 3 alternating response events: Upsert, Delete, 
        EndOfSnapshot. When set the initial batch of "snapshot" Upserts sent on a new 
        watch, those operations will be followed by an EndOfSnapshot event before beginning 
        the never-ending sequence of Upsert/Delete events.
      
      - Within the Controller startup code we will launch N+1 goroutines to execute WatchList 
        queries for the watched types. The UPSERTs will be applied to the nascent cache
         only (no mappers will execute).
      
      - Upon witnessing the END operation, those goroutines will terminate.
      
      - When all cache priming routines complete, then the normal set of N+1 long lived 
      watch routines will launch to officially witness all events in the system using the 
      primed cached.
      c029b206
    • Derek Menteer's avatar
      Debug failing CICD tests (#20455) · 266f6548
      Derek Menteer authored
      Fix CICD test flakes by locking container socket.
      266f6548
    • wangxinyi7's avatar
      missing prefix / (#20447) · fb2b696c
      wangxinyi7 authored
      * missing prefix / and fix typos
      fb2b696c
    • Eric Haberkorn's avatar
      Trigger the V1 Compat exported-services Controller when V1 Config Entries are Updated (#20456) · 543c6a30
      Eric Haberkorn authored
      * Trigger the v1 compat exported-services controller when the v1 config entry is modified.
      
      * Hook up exported-services config entries to the event publisher.
      * Add tests to the v2 exported services shim.
      * Use the local materializer trigger updates on the v1 compat exported services controller when exported-services config entries are modified.
      
      * stop sleeping when context is cancelled
      543c6a30
    • Derek Menteer's avatar
      Fix SDK iptables.Config marshalling (#20451) · 1fe0a875
      Derek Menteer authored
      This fixes behavior introduced by hashicorp/consul#20232 where
      a function was added to the iptables configuration struct. Since this
      struct is actually marshalled into json by consul-k8s, we should not be
      placing functions inside of it.
      1fe0a875
  7. Feb 01, 2024