1. 22 10月, 2019 1 次提交
  2. 15 10月, 2019 1 次提交
  3. 11 10月, 2019 1 次提交
  4. 06 10月, 2019 1 次提交
  5. 24 9月, 2019 1 次提交
  6. 18 9月, 2019 1 次提交
  7. 04 9月, 2019 1 次提交
  8. 15 8月, 2019 1 次提交
  9. 12 8月, 2019 1 次提交
  10. 07 8月, 2019 1 次提交
    • T
      Use separate Kubernetes namespaces per environment · 36a01a88
      Tiger Watson 提交于
      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
  11. 03 8月, 2019 1 次提交
  12. 02 8月, 2019 1 次提交
    • G
      Add outbound requests setting for system hooks · e5e1c907
      George Koltsov 提交于
      This MR adds new application setting to network section
      `allow_local_requests_from_system_hooks`. Prior to this change
      system hooks were allowed to do local network requests by default
      and we are adding an ability for admins to control it.
      e5e1c907
  13. 31 7月, 2019 1 次提交
    • J
      Allow knative do be uninstalled: · d7c7ebf5
      João Cunha 提交于
      - After uninstalling the knative helm chart it's necessary to also
      remove some leftover resources to allow the cluster to be clean
      and knative to be reinstalleable.
      - Adds knative uninstall disclaimer
      - Uninstall ksvc before uninstalling knative
      
      Make list of Knative and Ingres resources explicit
      
      - To avoid deleting unwanted resources we are listing exact
      which resources will be deleted rather than simply deleting any
      resource that contains istio or knative words.
      d7c7ebf5
  14. 15 7月, 2019 1 次提交
    • D
      GitLab Managed App ensure helm version uses tls opts · c9b0ac5f
      Dylan Griffith 提交于
      The TLS opts were missing from helm version command which meant that it
      was just perpetually failing and hence wasting 30s of time waiting for a
      command to be successful that was never going to be successful. This
      never actually caused any errors because this loop will happily just
      fail 30 times without breaking the overall script but it was just a
      waste of installation time so now installing apps should be ~30s faster.
      c9b0ac5f
  15. 11 7月, 2019 1 次提交
    • H
      Give Knative serving permissions to service account · 6971fd26
      Hordur Freyr Yngvason 提交于
      GitLab uses a kubernetes service account to perform deployments. For
      serverless deployments to work as expected with externally created
      clusters with their own knative installations (e.g. via Cloud Run), this
      account requires additional permissions in the serving.knative.dev API
      group.
      6971fd26
  16. 04 6月, 2019 1 次提交
    • T
      Fix connection to Tiller error while uninstalling · c7d50ddf
      Thong Kuah 提交于
      Both the `install-<app>` and `uninstall-<app>` pods loads the
      `values-content-configuration-<app>` configmap into the pod
      (see `#volume_specification`). This configmap contains the cert
      necessary to connect to Tiller. The cert though is only valid for 30
      minutes.
      
      So this fixes the bug where the configmap when uninstalling should be
      updated as well.
      c7d50ddf
  17. 27 5月, 2019 1 次提交
  18. 30 4月, 2019 1 次提交
  19. 16 4月, 2019 1 次提交
  20. 10 4月, 2019 1 次提交
  21. 06 4月, 2019 1 次提交
  22. 04 4月, 2019 1 次提交
  23. 05 3月, 2019 1 次提交
    • J
      Creates Clusterss::ApplciationsController update endpoint · f8234d9a
      João Cunha 提交于
      - 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
  24. 21 2月, 2019 1 次提交
    • T
      Do not allow local urls in Kubernetes form · af16fd68
      Thong Kuah 提交于
      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
  25. 20 2月, 2019 1 次提交
    • T
      Bump helm and kubectl versions · 80045089
      Thong Kuah 提交于
      Bump the helm and kubectl used in our Kubernetes integration, used e.g.
      to install apps.
      
      Note I have only bumped to the latest patch of the v1.11 series for
      kubectl as GKE clusters are still on 1.10/1.11
      80045089
  26. 08 2月, 2019 1 次提交
  27. 25 1月, 2019 1 次提交
    • T
      Use http_max_redirects opt to replace monkeypatch · f234aef9
      Thong Kuah 提交于
      http_max_redirects was introduced in 4.2.2, so upgrade kubeclient.
      
      The monkey-patch was global so we will have to check that all instances
      of Kubeclient::Client are handled.
      
      Spec all methods of KubeClient
      
      This should provide better confidence that we are indeed disallowing
      redirection in all cases
      f234aef9
  28. 18 1月, 2019 1 次提交
  29. 05 12月, 2018 1 次提交
    • T
      Modify service so that it can be re-run · d3866fb4
      Thong Kuah 提交于
      If the service fails mid-point, then we should be able to re-run this
      service. So, detect presence of any previously created Kubernetes
      resource and update or create accordingly.
      
      Fix specs accordingly. In the case of finalize_creation_service_spec.rb,
      I decided to stub out the async worker rather than maintaining
      individual stubs for various kubeclient calls for that worker.
      d3866fb4
  30. 04 12月, 2018 1 次提交
    • T
      Modify service so that it can be re-run · dc182720
      Thong Kuah 提交于
      If the service fails mid-point, then we should be able to re-run this
      service. So, detect presence of any previously created Kubernetes
      resource and update or create accordingly.
      
      Fix specs accordingly. In the case of finalize_creation_service_spec.rb,
      I decided to stub out the async worker rather than maintaining
      individual stubs for various kubeclient calls for that worker.
      
      Also add test cases for group clusters
      dc182720
  31. 27 11月, 2018 2 次提交
    • D
      Use JSON logging for helm install services · 7e7fb6de
      Dylan Griffith 提交于
      7e7fb6de
    • D
      Don't remove failed install pods · 6a66e4a1
      Dylan Griffith 提交于
      We want to keep failed install pods around so that it is easier to debug
      why a failure occured. With this change we also need to ensure that we
      remove a previous pod with the same name before installing so that
      re-install does not fail.
      
      Another change here is that we no longer need to catch errors from
      delete_pod! in CheckInstallationProgressService as we now catch the
      ResourceNotFoundError in Helm::Api. The catch statement in
      CheckInstallationProgressService was also probably too broad before and
      should have been narrowed down simply to ResourceNotFoundError.
      6a66e4a1
  32. 20 11月, 2018 2 次提交
  33. 17 11月, 2018 1 次提交
    • G
      Enable even more frozen string for lib/gitlab · 7ec8af50
      gfyoung 提交于
      Enables frozen string for the following:
      
      * lib/gitlab/hook_data/**/*.rb
      * lib/gitlab/i18n/**/*.rb
      * lib/gitlab/import/**/*.rb
      * lib/gitlab/import_export/**/*.rb
      * lib/gitlab/kubernetes/**/*.rb
      * lib/gitlab/legacy_github_import/**/*.rb
      * lib/gitlab/manifest_import/**/*.rb
      * lib/gitlab/metrics/**/*.rb
      * lib/gitlab/middleware/**/*.rb
      
      Partially addresses gitlab-org/gitlab-ce#47424.
      7ec8af50
  34. 16 11月, 2018 4 次提交
  35. 15 11月, 2018 1 次提交