1. 23 Oct, 2018 6 commits
    • Thong Kuah's avatar
      Store version within SUPPORTED_API_GROUPS hash · 9e129d98
      Thong Kuah authored
      This removes the ability to pass in a different version. We can instead
      create a new entry in the SUPPORTED_API_GROUPS hash for a different
      version if need be.
      9e129d98
    • Thong Kuah's avatar
      DRY up *_clients methods · 128f7c88
      Thong Kuah authored
      Build using `define_method` directly from the constant, saves us writing
      api_groups strings twice.
      128f7c88
    • Thong Kuah's avatar
      Split hashed_clients into one per api_group · 9dcb2711
      Thong Kuah authored
      Essentially make #build_kubeclient do less.
      
      Should be much clearer now
      9dcb2711
    • Thong Kuah's avatar
      EE: Remove where we pass api_groups to KubeClient · bc53492b
      Thong Kuah authored
      KubeClient no longer needs the list of api_groups to be passed in - all
      groups will be supported.
      
      As the default for `#get_deployments` will be `v1beta1` (see
      KubeClient#extensions_client), we can rely entirely on #kubeclient
      instead of calling #build_kube_client!
      bc53492b
    • Thong Kuah's avatar
      Update all usages of KubeClient · d12ed308
      Thong Kuah authored
      Find and replace everywhere we pass in `api_groups` to KubeClient, as no
      longer needed
      d12ed308
    • Thong Kuah's avatar
      Remove api_groups from KubeClient constructor · 7e0cfd95
      Thong Kuah authored
      We should have access to #core_client, #rbac_client,
      and #extensions_client without having to pass in an awkward array.
      
      Also change api_version to default_api_version, which allows us to use a
      different version for an individual client. Special case for
      apis/extensions which only goes up to v1beta1.
      
      Makes #hashed_client private
      
      Removes the #clients and #discover! methods which are un-used
      7e0cfd95
  2. 22 Oct, 2018 34 commits