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