def api_groups!
      synchronize do
        @api_groups = @transport.get(
          '/apis',
          response_class: K8s::API::MetaV1::APIGroupList
        ).groups.flat_map{ |api_group| api_group.versions.map(&:groupVersion) }

        @api_clients.clear
      end

      @api_groups
    end
def api_groups!
      synchronize do
        @api_groups = @transport.get(
          '/apis',
          response_class: K8s::API::MetaV1::APIGroupList
        ).groups.flat_map{ |api_group| api_group.versions.map(&:groupVersion) }

        @api_clients.clear
      end

      @api_groups
    end
Force-update /apis cache.
 Required if creating new CRDs/apiservices.

 @return [Array<String>]