Fix CI registry isolation and deployment prerequisites
This commit is contained in:
1 parent
11d18c5b74
commit
c147ea0dc9
2 files changed
+3
-2
No files matched your search
@@ -7,6 +7,8 @@ namespace=${NAMESPACE:-default}
|
||||
service_account=${SERVICE_ACCOUNT:-traefik-error-pages-deployer}
|
||||
secret=${TOKEN_SECRET:-traefik-error-pages-deployer-token}
|
||||
|
||||
[[ $(kubectl config current-context) == kubernetes-admin@kubernetes ]] || { echo "Wrong Kubernetes context" >&2; exit 1; }
|
||||
kubectl apply --dry-run=server --filename "${project_dir}/ci-deployer.yaml" >&2
|
||||
kubectl apply --filename "${project_dir}/ci-deployer.yaml" >&2
|
||||
|
||||
for attempt in {1..30}; do
|
||||
|
||||
+1
-2
@@ -7,11 +7,10 @@
|
||||
"replicaCount": {"type": "integer", "minimum": 1},
|
||||
"image": {
|
||||
"type": "object",
|
||||
"required": ["repository", "tag", "digest", "pullPolicy"],
|
||||
"required": ["repository", "tag", "pullPolicy"],
|
||||
"properties": {
|
||||
"repository": {"type": "string", "minLength": 1},
|
||||
"tag": {"type": "string", "minLength": 1},
|
||||
"digest": {"type": "string", "pattern": "^sha256:[a-f0-9]{64}$"},
|
||||
"pullPolicy": {"enum": ["Always", "IfNotPresent", "Never"]}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user