Sha256: 91eb3fd968d87ec4ea0e4b003ae3b77fa85f7802f08cbb8326947680296978ce
Contents?: true
Size: 862 Bytes
Versions: 5
Compression:
Stored size: 862 Bytes
Contents
class KuberKit::Actions::KubectlDescribe include KuberKit::Import[ "shell.kubectl_commands", "shell.local_shell", "kubernetes.resources_fetcher", "ui" ] Contract Maybe[String], Hash => Any def call(resource_name, options) kubeconfig_path = KuberKit.current_configuration.kubeconfig_path deployer_namespace = KuberKit.current_configuration.deployer_namespace if !resource_name resource_name = resources_fetcher.call("describe", include_ingresses: true, include_pods: true) end args = nil if options[:follow] args = "-f" end kubectl_commands.describe( local_shell, resource_name, args: args, kubeconfig_path: kubeconfig_path, namespace: deployer_namespace ) true rescue KuberKit::Error => e ui.print_error("Error", e.message) false end end
Version data entries
5 entries across 5 versions & 1 rubygems