1. 22 Mar, 2019 1 commit
  2. 21 Mar, 2019 1 commit
  3. 08 Mar, 2019 1 commit
  4. 07 Mar, 2019 2 commits
  5. 06 Mar, 2019 1 commit
  6. 05 Mar, 2019 1 commit
    • João Cunha's avatar
      Creates Clusterss::ApplciationsController update endpoint · f8234d9a
      João Cunha authored
      - Creates new route
      - Creates new controller action
      - Creates call stack:
        Clusterss::ApplciationsController calls -->
        Clusters::Applications::UpdateService calls -->
        Clusters::Applications::ScheduleUpdateService calls -->
        ClusterUpdateAppWorker calls -->
        Clusters::Applications::PatchService -->
        ClusterWaitForAppInstallationWorker
      
      DRY req params
      
      Adds gcp_cluster:cluster_update_app queue
      
      Schedule_update_service is uneeded
      
      Extract common logic to a parent class (UpdateService will need it)
      
      Introduce new UpdateService
      
      Fix rescue class namespace
      
      Fix RuboCop offenses
      
      Adds BaseService for create and update services
      
      Remove request_handler code duplication
      
      Fixes update command
      
      Move update_command to ApplicationCore so all apps can use it
      
      Adds tests for Knative update_command
      
      Adds specs for PatchService
      
      Raise error if update receives an unistalled app
      
      Adds update_service spec
      
      Fix RuboCop offense
      
      Use subject in favor of go
      
      Adds update endpoint specs for project namespace
      
      Adds update endpoint specs for group namespace
      f8234d9a
  7. 22 Feb, 2019 1 commit
  8. 21 Feb, 2019 1 commit
    • Thong Kuah's avatar
      Do not allow local urls in Kubernetes form · af16fd68
      Thong Kuah authored
      Use existing `public_url` validation to block various local urls. Note
      that this validation will allow local urls if the "Allow requests to the
      local network from hooks and services" admin setting is enabled.
      
      Block KubeClient from using local addresses
      
      It will also respect `allow_local_requests_from_hooks_and_services` so
      if that is enabled KubeClinet will allow local addresses
      af16fd68
  9. 15 Feb, 2019 3 commits
  10. 14 Feb, 2019 1 commit
  11. 08 Feb, 2019 1 commit
    • Tiger's avatar
      Validate kubernetes cluster CA certificate · 73e5d3a2
      Tiger authored
      No certificate is still accepted, but if one is provided it must
      be valid. Only run validation if the certificate has changed to
      avoid making existing records invalid.
      73e5d3a2
  12. 07 Feb, 2019 4 commits
  13. 06 Feb, 2019 2 commits
    • Thong Kuah's avatar
      Update version on :installed, not :installing · e72f24d2
      Thong Kuah authored
      This makes this consistent with :updated. And also avoids a potential
      issue where an install errors which means that that the recorded version
      won't necessarily reflect the version that is actually installed.
      e72f24d2
    • Thong Kuah's avatar
      Update version column after application is updated · 8ef1128f
      Thong Kuah authored
      Note: updating version column after :updating is not ideal in the
      updating -> update_erroed case. This will mean that the application now
      records the version as the version that failed to upgrade, not the
      version that it is currently on.
      8ef1128f
  14. 04 Feb, 2019 2 commits
    • 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
  15. 24 Jan, 2019 1 commit
  16. 22 Jan, 2019 2 commits
  17. 18 Jan, 2019 1 commit
    • Thong Kuah's avatar
      Refactor some methods in Prometheus model · d87486e6
      Thong Kuah authored
      - #update_errored? method def is redundant, already defined from state
      machine
      - #update_in_progress? moved to ApplicationStatus
      - #ready_status becomes a constant. Previously it was extended in ee/ so
      maybe that was why it's a instance method
      d87486e6
  18. 14 Jan, 2019 1 commit
    • Thong Kuah's avatar
      Port generic upgrade functionality to CE · 8296ff58
      Thong Kuah authored
      Port from EE generic upgrade related functionality used to upgrade Helm
      applications
      
      Remove memoization which could be incorrect
      
      It looks like we are memoizing without regard to the method's argument
      so this could result in an incorrect upgrade_command
      
      Remove `const_get` indirection now we are no longer in EE
      8296ff58
  19. 10 Jan, 2019 2 commits
  20. 04 Jan, 2019 2 commits
  21. 03 Jan, 2019 1 commit
  22. 02 Jan, 2019 1 commit
  23. 31 Dec, 2018 1 commit
  24. 25 Dec, 2018 1 commit
  25. 21 Dec, 2018 1 commit
  26. 19 Dec, 2018 1 commit
  27. 12 Dec, 2018 1 commit
  28. 07 Dec, 2018 2 commits