1. 23 Oct, 2018 5 commits
    • Thong Kuah's avatar
      Store version within SUPPORTED_API_GROUPS hash · a5419138
      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.
      a5419138
    • Thong Kuah's avatar
      DRY up *_clients methods · 170071e3
      Thong Kuah authored
      Build using `define_method` directly from the constant, saves us writing
      api_groups strings twice.
      170071e3
    • Thong Kuah's avatar
      Split hashed_clients into one per api_group · 27979aac
      Thong Kuah authored
      Essentially make #build_kubeclient do less.
      
      Should be much clearer now
      27979aac
    • Thong Kuah's avatar
      Update all usages of KubeClient · 8d81f269
      Thong Kuah authored
      Find and replace everywhere we pass in `api_groups` to KubeClient, as no
      longer needed
      8d81f269
    • Thong Kuah's avatar
      Remove api_groups from KubeClient constructor · 983c4a50
      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 go up to v1beta1
      
      Makes #hashed_client private
      
      Removes the #clients and #discover! methods which are un-used
      983c4a50
  2. 22 Oct, 2018 35 commits