updated the tests
This commit is contained in:
parent
6c2fa76111
commit
9f91876dd2
@ -74,11 +74,12 @@ data:
|
||||
apiVersion: formol.desmojim.fr/v1alpha1
|
||||
kind: Repo
|
||||
metadata:
|
||||
name: repo-empty
|
||||
name: repo-local
|
||||
namespace: demo
|
||||
spec:
|
||||
backend:
|
||||
nfs: "toto"
|
||||
local:
|
||||
path: /repo
|
||||
repositorySecrets: secret-minio
|
||||
---
|
||||
apiVersion: formol.desmojim.fr/v1alpha1
|
||||
@ -162,7 +163,7 @@ metadata:
|
||||
namespace: demo
|
||||
spec:
|
||||
name: maintenance-off
|
||||
command: ["/bin/bash", "-c", "echo $(date +%Y/%m/%d-%H:%M:%S) maintenance-off >> /data/logs.txt"]
|
||||
command: ["/bin/sh", "-c", "echo $(date +%Y/%m/%d-%H:%M:%S) maintenance-off >> /data/logs.txt"]
|
||||
---
|
||||
apiVersion: formol.desmojim.fr/v1alpha1
|
||||
kind: Function
|
||||
@ -171,4 +172,4 @@ metadata:
|
||||
namespace: demo
|
||||
spec:
|
||||
name: maintenance-on
|
||||
command: ["/bin/bash", "-c", "echo $(date +%Y/%m/%d-%H:%M:%S) maintenance-on >> /data/logs.txt"]
|
||||
command: ["/bin/sh", "-c", "echo $(date +%Y/%m/%d-%H:%M:%S) maintenance-on >> /data/logs.txt"]
|
||||
|
||||
@ -2,27 +2,27 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nginx-deployment
|
||||
name: apache-deployment
|
||||
namespace: demo
|
||||
labels:
|
||||
app: nginx
|
||||
app: apache
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nginx
|
||||
app: apache
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nginx
|
||||
app: apache
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
containers:
|
||||
- name: nginx
|
||||
image: docker.io/nginx:1.23.3
|
||||
- name: apache
|
||||
image: docker.io/httpd:alpine3.17
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumeMounts:
|
||||
|
||||
@ -7,7 +7,7 @@ metadata:
|
||||
spec:
|
||||
suspend: true
|
||||
image: desmo999r/formolcli:latest
|
||||
repository: repo-minio
|
||||
repository: repo-local
|
||||
schedule: "15 * * * *"
|
||||
keep:
|
||||
last: 5
|
||||
@ -18,13 +18,11 @@ spec:
|
||||
targets:
|
||||
- backupType: Online
|
||||
targetKind: Deployment
|
||||
targetName: nginx-deployment
|
||||
targetName: apache-deployment
|
||||
containers:
|
||||
- name: nginx
|
||||
- name: apache
|
||||
steps:
|
||||
- name: maintenance-on
|
||||
- name: with-env
|
||||
- name: with-envfrom
|
||||
- name: maintenance-off
|
||||
finalize: true
|
||||
paths:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user