Skip to content
Snippets Groups Projects
  1. Oct 22, 2019
  2. Oct 16, 2019
  3. Oct 14, 2019
  4. Sep 24, 2019
  5. Sep 23, 2019
  6. Sep 20, 2019
  7. Sep 18, 2019
  8. Sep 17, 2019
  9. Sep 13, 2019
  10. Sep 06, 2019
    • Alishan Ladhani's avatar
      Enable Knative installation on group and instance level clusters · 88904b2a
      Alishan Ladhani authored
      - Show Knative install button on group/instance cluster pages
      - Allow Knative to be installed on group/instance clusters
      - Add feature specs for installing applications on group/instance
        clusters
      - Add changelog entry
      - Update docs to reflect that Knative can now be installed on
        group-level and instance-level clusters
      88904b2a
  11. Sep 04, 2019
  12. Aug 31, 2019
  13. Aug 07, 2019
    • Tiger Watson's avatar
      Use separate Kubernetes namespaces per environment · 36a01a88
      Tiger Watson authored and Thong Kuah's avatar Thong Kuah committed
      Kubernetes deployments on new clusters will now have
      a separate namespace per project environment, instead
      of sharing a single namespace for the project.
      
      Behaviour of existing clusters is unchanged.
      
      All new functionality is controlled by the
      :kubernetes_namespace_per_environment feature flag,
      which is safe to enable/disable at any time.
      36a01a88
  14. Jul 31, 2019
  15. Jun 17, 2019
    • Tiger Watson's avatar
      Don't use Kubernetes namespaces with no token · ddd271b6
      Tiger Watson authored
      Whenever we are selecting a namespace to use for a
      deployment or to query a cluster we want to exclude
      Kubernetes namespace records that don't have a token
      set as they will not have the required permissions.
      However when configuring clusters, we want to
      use the original namespace record even if it has no
      token, as a namespace has to be unique on a cluster.
      ddd271b6
  16. Jun 07, 2019
  17. May 30, 2019
  18. May 29, 2019
    • João Cunha's avatar
      Adapt functions to work for external Knative · a2aa160c
      João Cunha authored
      Remove Kn services cache from Clusters::Application::Knative
      
      Knative function can exist even if user did not installed Knative via
      GitLab managed apps.
      
      -> Move responsibility of finding services into the Cluster
      -> Responsability is inside Clusters::Cluster::KnativeServiceFinder
      -> Projects::Serverless::FunctionsFinder now calls depends solely on a
      cluster to find the Kn services.
      -> Detect Knative by resource presence instead of service presence
      -> Mock knative_installed response temporarily for frontend to develop
      
      Display loader while `installed === 'checking'`
      
      Added frontend work to determine if Knative is installed
      
      Memoize with_reactive_cache(*args, &block) to avoid race conditions
      
      When calling with_reactive_cache more than once, it's possible that the
      second call will already have the value populated. Therefore, in cases
      where we need the sequential calls to have consistent results, we'd fall
      under a race condition.
      
      Check knative installation via Knative resource presence
      
      Only load pods if Knative is discovered
      
      Always return a response in FunctionsController#index
      
      - Always indicate if Knative is installed, not installed or checking
      - Always indicate the partial response for functions. Final response is
      guaranteed when knative_installed is either true | false.
      
      Adds specs for Clusters::Cluster#knative_services_finder
      
      Fix method name when calling on specs
      
      Add an explicit check for functions
      
      Added an explicit check to see if there are any functions available
      
      Fix Serverless feature spec
      
      - we don't find knative installation via database anymore,
      rather via Knative resource
      
      Display error message for request timeouts
      
      Display an error message if the request times out
      
      Adds feature specs for when functions exist
      
      Remove a test purposed hardcoded flag
      
      Add ability to partially load functions
      
      Added the ability to partially load functions on the frontend
      
      Add frontend unit tests
      
      Added tests for the new frontend additions
      
      Generate new translations
      
      Generated new frontend translations
      
      Address review comments
      
      Cleaned up the frontend unit test.
      Added computed prop for `isInstalled`.
      
      Move string to constant
      
      Simplify nil to array conversion
      
      Put knative_installed states in a frozen hash for better read
      
      Pluralize list of Knative states
      
      Quey services and pods filtering name
      
      This way we don't need to filter the namespace in memory.
      Also, the data we get from the network is much smaller.
      
      Simplify cache_key and fix bug
      
      - Simplifies the cache_key by removing namespace duplicate
      - Fixes a bug with reactive_cache memoization
      a2aa160c
  19. May 27, 2019
  20. May 24, 2019
  21. May 21, 2019
    • Tiger Watson's avatar
      Remove legacy Kubernetes #actual_namespace · 101c4480
      Tiger Watson authored
      When Kubernetes clusters were originally built they could only
      exist at the project level, and so there was logic included
      that assumed there would only ever be a single Kubernetes
      namespace per cluster. We now support clusters at the group
      and instance level, which allows multiple namespaces.
      
      This change consolidates various project-specific fallbacks to
      generate namespaces, and hands all responsibility to the
      Clusters::KubernetesNamespace model. There is now no concept of
      a single namespace for a Clusters::Platforms::Kubernetes; to
      retrieve a namespace a project must now be supplied in all cases.
      
      This simplifies upcoming work to use a separate Kubernetes
      namespace per project environment (instead of a namespace
      per project).
      101c4480
  22. May 06, 2019
  23. May 03, 2019
  24. Apr 01, 2019
    • João Cunha's avatar
      Dry up and remove responsibilities · 5aade0b0
      João Cunha authored and Grzegorz Bizon's avatar Grzegorz Bizon committed
      - Dry create_service.rb and update_service.rb duplicated code
      - Remove known list of applications responsibility from services
      - Refactor the complex builders->builder call from base_service.rb
      5aade0b0
  25. Mar 29, 2019
  26. Mar 28, 2019
  27. Mar 07, 2019
  28. Feb 15, 2019
  29. Feb 14, 2019
  30. Feb 07, 2019
  31. Feb 04, 2019
    • Mayra Cabrera's avatar
      Addresses backend/db review comments · 087af654
      Mayra Cabrera authored
      - Fixes multiple typos on AutoDevops script
      - Add an alias to Clusters::Cluster#domain as base_domain, so it's more
      descriptive
      - Removes unnecessary memoization on qa specs
      - Changes migration to a post migration to deal better with traffic on
      big instances (like gitlab.com)
      087af654
    • Mayra Cabrera's avatar
      Moves domain setting to Cluster setting · 8ff73614
      Mayra Cabrera authored
      Changes domain field to be on the Cluster page show, removing it from
      Auto DevOps setting. Also injects the new environment variable
      KUBE_INGRESS_BASE_DOMAIN into kubernetes#predefined_variables.
      
      Migration to move the information from ProjectAutoDevops#domain
      to Clusters::Cluster#domain. As well as necessary modifications to qa
      selectors
      
      Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52363
      8ff73614
  32. Jan 22, 2019
  33. Jan 03, 2019
  34. Dec 06, 2018
  35. Dec 04, 2018
    • Thong Kuah's avatar
      Eager load clusters to prevent N+1 · 6c642c08
      Thong Kuah authored
      This also means we need to apply the `current_scope` otherwise this
      method will return all clusters associated with the groups regardless of
      any scopes applied to this method
      6c642c08
Loading