Sha256: bc6714cace76b6b11689cfaf5d1ee3e46d92064461306f0abb96694c0a6c185b

Contents?: true

Size: 528 Bytes

Versions: 63

Compression:

Stored size: 528 Bytes

Contents

class KuberKit::Kubernetes::ResourcesFetcher
  include KuberKit::Import[
    "shell.kubectl_commands",
    "shell.local_shell",
  ]

  Contract String => ArrayOf[String]
  def call(resource_type)
    current_configuration  = KuberKit.current_configuration
    
    kubectl_commands.get_resources(
      local_shell, resource_type, 
      jsonpath:         ".items[*].metadata.name", 
      kubeconfig_path:  current_configuration.kubeconfig_path, 
      namespace:        current_configuration.deployer_namespace
    )
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
kuber_kit-1.3.9 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.3.8 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.3.7 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.1.8 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.3.6 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.1.7 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.3.5 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.3.4 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.1.6 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.3.3 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.3.2 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.1.5 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.3.1 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.3.0 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.1.4 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.2.7 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.2.6 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.2.5 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.2.4 lib/kuber_kit/kubernetes/resources_fetcher.rb
kuber_kit-1.2.2 lib/kuber_kit/kubernetes/resources_fetcher.rb