Copy the labels to the persistent data volume

Move the custom label definitions to a custom folder in the kubernetes
folder, as well as the config files
This commit is contained in:
Greg Karékinian
2019-02-05 20:29:08 +01:00
parent 871d47fff8
commit eba722992f
7 changed files with 16 additions and 8 deletions

View File

@@ -7,7 +7,7 @@ secret = `kubectl get secret gitea-config -o yaml`
yaml = YAML.load(secret)
yaml['data'].each do |key, data|
filename = File.join('kubernetes', 'config', key)
filename = File.join('kubernetes', 'custom', 'config', key)
File.open(filename, "w+") do |f|
puts "Writing #{filename}"
f.write Base64.decode64(data)