lib/kubes_google/secrets/fetcher/gcloud.rb in kubes_google-0.3.3 vs lib/kubes_google/secrets/fetcher/gcloud.rb in kubes_google-0.3.4

- old
+ new

@@ -1,10 +1,9 @@ class KubesGoogle::Secrets::Fetcher class Gcloud < Base include KubesGoogle::Util::Sh def fetch(short_name, version="latest") - puts "gcloud fetch #{short_name}" value = gcloud("secrets versions access #{version} --secret #{short_name}") if value.include?("ERROR") && value.include?("NOT_FOUND") logger.info "WARN: secret #{short_name} not found".color(:yellow) logger.info e.message "NOT FOUND #{short_name}" # simple string so Kubernetes YAML is valid