Skip to content

Commit

Permalink
Fix the sidecar ci error.
Browse files Browse the repository at this point in the history
Signed-off-by: Ye Cao <[email protected]>
  • Loading branch information
dashanji committed Dec 25, 2023
1 parent 5b0ef1a commit 4b6ca21
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions k8s/pkg/templates/sidecar/injection-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ spec:
image: {{ .Spec.Vineyard.Image }}
imagePullPolicy: {{ .Spec.Vineyard.ImagePullPolicy }}
{{- if .Spec.SecurityContext }}
securityContext:
{{ toYaml .Spec.SecurityContext | indent 12 }}
securityContext:
{{ toYaml .Spec.SecurityContext | indent 8 }}
{{- end }}
env:
- name: VINEYARDD_UID
Expand Down
8 changes: 4 additions & 4 deletions k8s/test/e2e/sidecar-demo/sidecar-with-custom-sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,27 @@ metadata:
namespace: vineyard-job
spec:
replicas: 2
selector: app=job-deployment
selector: app=job-deployment-with-custom-sidecar
vineyard:
image: localhost:5001/vineyardd:latest
socket: /var/run/vineyard.sock
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: job-deployment
name: job-deployment-with-custom-sidecar
namespace: vineyard-job
spec:
selector:
matchLabels:
app: job-deployment
app: job-deployment-with-custom-sidecar
replicas: 2
template:
metadata:
annotations:
sidecar.v6d.io/name: "sidecar-sample"
labels:
app: job-deployment
app: job-deployment-with-custom-sidecar
sidecar.v6d.io/enabled: "true"
spec:
containers:
Expand Down
6 changes: 3 additions & 3 deletions k8s/test/e2e/sidecar-demo/sidecar-with-default-sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: job-deployment
name: job-deployment-with-default-sidecar
namespace: vineyard-job
spec:
selector:
matchLabels:
app: job-deployment
app: job-deployment-with-default-sidecar
replicas: 2
template:
metadata:
annotations:
sidecar.v6d.io/name: "default"
labels:
app.kubernetes.io/instance: job-deployment
app: job-deployment
app: job-deployment-with-default-sidecar
sidecar.v6d.io/enabled: "true"
spec:
containers:
Expand Down
6 changes: 3 additions & 3 deletions k8s/test/e2e/sidecar/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ setup:
--sidecar.image="localhost:5001/vineyardd:latest"| kubectl apply -f -
wait:
- namespace: vineyard-job
resource: deployment/job-deployment
resource: deployment/job-deployment-with-default-sidecar
for: condition=Available
- name: install app with default sidecar via kubectl
command: |
Expand All @@ -40,15 +40,15 @@ setup:
kubectl apply -f -
wait:
- namespace: vineyard-job1
resource: deployment/job-deployment
resource: deployment/job-deployment-with-default-sidecar
for: condition=Available
- name: install app with custom sidecar
command: |
kubectl label namespace vineyard-job sidecar-injection=enabled
kubectl apply -f k8s/test/e2e/sidecar-demo/sidecar-with-custom-sidecar.yaml
wait:
- namespace: vineyard-job
resource: deployment/job-deployment
resource: deployment/job-deployment-with-custom-sidecar
for: condition=Available
timeout: 20m

Expand Down
1 change: 1 addition & 0 deletions prometheus/grok_exporter.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
global:
config_version: 3
retention_check_interval: 5s
input:
type: file
path: /var/log/vineyard/vineyard.*.log.INFO.*
Expand Down

0 comments on commit 4b6ca21

Please sign in to comment.