Skip to content
Snippets Groups Projects
  1. Sep 29, 2022
  2. Sep 08, 2022
    • Alex Ellis (OpenFaaS Ltd)'s avatar
      Use Desired Replicas when scaling from zero · 8e711b3a
      Alex Ellis (OpenFaaS Ltd) authored
      
      During some exploratory testing, I ran into an issue where
      the gateway would attempt to scale a deployment from zero
      replicas to min, despite there already being min replicas.
      
      Why?
      
      The scaling logic was looking for Available replicas when
      it should have looked for Desired replicas. So when a
      deployment had zero ready replicas due to readiness checks
      failing, the gateway was attempting to scale from zero
      to min.
      
      This logic has been corrected and separated from the
      a holding pattern where the gateway waits for a ready
      replica.
      
      Tested with KinD and an edited function which had a
      readiness probe, which was failing and no ready
      replicas. As desired, the gateway did not scale to min.
      
      However, when setting desired replicas to zero, the
      gateway did scale up as expected.
      
      This change also modifies all print statements for
      "seconds" and makes them use 4 decimal places instead of
      the default which was a longer, more verbose string for
      the logs.
      
      Signed-off-by: default avatarAlex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
      8e711b3a
  3. Jul 07, 2022
    • Alex Ellis (OpenFaaS Ltd)'s avatar
      Feature for probing functions · 88eea5f6
      Alex Ellis (OpenFaaS Ltd) authored
      
      Introduces a single-flight call to a function's health
      endpoint to verify that it is registered with an Istio
      sidecar (Envoy) before letting the invocation through.
      
      Results are cached for 5 seconds, before a probe is
      required again.
      
      Tested without Istio, with probe_functions environment
      variable set to true, I saw a probe execute in the logs.
      
      Fixes: #1721 for Istio users.
      
      Signed-off-by: default avatarAlex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
      88eea5f6
  4. Jun 01, 2022
  5. Jul 26, 2021
  6. Feb 27, 2021
  7. Jan 30, 2021
    • Vivek Singh's avatar
      Update version info endpoint · 82cd46ef
      Vivek Singh authored
      
      This commits updates version endpoint to use ProviderInfo and VersionInfo structs from
      faas-provider.GatewayInfo now uses ProviderInfo and VersionInfo structs. GatewayInfo is
      left within gateway. Consumer of this endpoint should use typed struct GatewayInfo to
      parse response.
      
      Signed-off-by: default avatarVivek Singh <vivekkmr45@yahoo.in>
      82cd46ef
  8. Jan 21, 2021
  9. Nov 02, 2020
  10. May 06, 2020
  11. Apr 22, 2020
  12. Apr 05, 2020
  13. Mar 12, 2020
  14. Feb 22, 2020
  15. Jan 24, 2020
  16. Sep 20, 2019
  17. Jul 17, 2019
  18. Jul 06, 2019
  19. Jun 14, 2019
    • Alex Ellis's avatar
      Fix error handling for ExternalAuth · e3c976a4
      Alex Ellis authored
      
      This corrects an issue where the error body was being hidden
      for the external auth handler. It also adds the ca-certs into
      the runtime Docker image for when the gateway is calling an
      external plugin exposed over HTTPS.
      
      Tested with OAuth2 plugin.
      
      Signed-off-by: default avatarAlex Ellis <alexellis2@gmail.com>
      e3c976a4
  20. Jun 09, 2019
  21. Jun 07, 2019
  22. Jun 05, 2019
Loading