Add quay-kubernetes package / Add quay CD to k8s
This commit is contained in:
parent
2f750bfc87
commit
1d0313229e
45 changed files with 1129 additions and 10 deletions
16
deploy/quay-app/lib/quay.libsonnet
Normal file
16
deploy/quay-app/lib/quay.libsonnet
Normal file
|
@ -0,0 +1,16 @@
|
|||
local appr = import 'appr.libsonnet';
|
||||
|
||||
{
|
||||
# Read all files in a directory
|
||||
# @todo(ant31): replace walk by listdir
|
||||
load_stack_files(path):: (
|
||||
if appr.path_exists(path)
|
||||
then {[appr.path.basename(file)]: appr.readfile(file, encode=true) for file in appr.walkdir(path)}
|
||||
else {}
|
||||
),
|
||||
|
||||
# Create a patch to add/update annotation with a rand value.
|
||||
# Use to force a Deployment rolling-update
|
||||
rand_label():: {metadata+: {annotations+: {'resource.appr/rand': appr.randAlphaNum()}}},
|
||||
|
||||
}
|
Reference in a new issue