class Orchparty::Services::SecretGeneric

Public Instance Methods

install_cmd(secret, fix_file_path=nil) click to toggle source
# File lib/orchparty/kubernetes_application.rb, line 107
def install_cmd(secret, fix_file_path=nil)
  "kubectl --namespace #{namespace} --context #{cluster_name} create secret generic --dry-run -o yaml #{secret[:name]}  #{template(value_path(secret), secret, flag: "--from-file=", fix_file_path: fix_file_path)} | kubectl apply -f -"
end
upgrade_cmd(secret, fix_file_path=nil) click to toggle source
# File lib/orchparty/kubernetes_application.rb, line 103
def upgrade_cmd(secret, fix_file_path=nil)
  "kubectl --namespace #{namespace} --context #{cluster_name} create secret generic --dry-run -o yaml #{secret[:name]}  #{template(value_path(secret), secret, flag: "--from-file=", fix_file_path: fix_file_path)} | kubectl apply -f -"
end
value_path(secret) click to toggle source
# File lib/orchparty/kubernetes_application.rb, line 99
def value_path(secret)
  secret[:from_file]
end