Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Gupta <[email protected]>
  • Loading branch information
shubham-cmyk committed Oct 28, 2023
1 parent 52a28a9 commit b0ae372
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
run: sudo apt-get install -y yamllint

- name: Lint YAML files
run: find ./example -name '*.yaml' -exec yamllint {} \;
run: yamllint --strict ./example

- name: Install kubectl
run: |
Expand Down
12 changes: 6 additions & 6 deletions example/v1beta1/external_service/cluster-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ metadata:
spec:
ports:
- name: redis-client
port: 6379
protocol: TCP
targetPort: 6379
port: 6379
protocol: TCP
targetPort: 6379
selector:
app: redis-cluster-leader
redis_setup_type: cluster
Expand All @@ -31,9 +31,9 @@ metadata:
spec:
ports:
- name: redis-client
port: 6379
protocol: TCP
targetPort: 6379
port: 6379
protocol: TCP
targetPort: 6379
selector:
app: redis-cluster-follower
redis_setup_type: cluster
Expand Down
6 changes: 3 additions & 3 deletions example/v1beta1/external_service/replication-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ metadata:
spec:
ports:
- name: redis-client
port: 6379
protocol: TCP
targetPort: 6379
port: 6379
protocol: TCP
targetPort: 6379
selector:
app: redis-replication
redis_setup_type: replication
Expand Down
6 changes: 3 additions & 3 deletions example/v1beta1/external_service/standalone-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ metadata:
spec:
ports:
- name: redis-client
port: 6379
protocol: TCP
targetPort: 6379
port: 6379
protocol: TCP
targetPort: 6379
selector:
app: redis-standalone
redis_setup_type: standalone
Expand Down
12 changes: 6 additions & 6 deletions example/v1beta2/backup_restore/backup/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ spec:
serviceAccountName: backup-service-account
containers:
- name: redis-operator-backup-container
image: "quay.io/opstree/redis-operator-backup:v0.15.1"
command: ["/bin/bash", "-c", "/backup/backup.bash"]
imagePullPolicy: Always
envFrom:
- secretRef:
name: env-secrets
image: "quay.io/opstree/redis-operator-backup:v0.15.1"
command: ["/bin/bash", "-c", "/backup/backup.bash"]
imagePullPolicy: Always
envFrom:
- secretRef:
name: env-secrets
restartPolicy: Never
6 changes: 3 additions & 3 deletions example/v1beta2/env_vars/redis-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ spec:
memory: 128Mi
env:
- name: CUSTOM_ENV_VAR_1
value: "custom_value_1"
- name: CUSTOM_ENV_VAR_2
value: "custom_value_2"
value: "custom_value_1"
- name: CUSTOM_ENV_VAR_2
value: "custom_value_2"
# redisSecret:
# name: redis-secret
# key: password
Expand Down
6 changes: 3 additions & 3 deletions example/v1beta2/env_vars/redis-replication.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ spec:
# - name: regcred
env:
- name: CUSTOM_ENV_VAR_1
value: "custom_value_1"
- name: CUSTOM_ENV_VAR_2
value: "custom_value_2"
value: "custom_value_1"
- name: CUSTOM_ENV_VAR_2
value: "custom_value_2"
storage:
volumeClaimTemplate:
spec:
Expand Down
6 changes: 3 additions & 3 deletions example/v1beta2/env_vars/redis-sentinel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ spec:
memory: 128Mi
env:
- name: CUSTOM_ENV_VAR_1
value: "custom_value_1"
- name: CUSTOM_ENV_VAR_2
value: "custom_value_2"
value: "custom_value_1"
- name: CUSTOM_ENV_VAR_2
value: "custom_value_2"
6 changes: 3 additions & 3 deletions example/v1beta2/env_vars/redis-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ spec:
memory: 128Mi
env:
- name: CUSTOM_ENV_VAR_1
value: "custom_value_1"
- name: CUSTOM_ENV_VAR_2
value: "custom_value_2"
value: "custom_value_1"
- name: CUSTOM_ENV_VAR_2
value: "custom_value_2"
storage:
volumeClaimTemplate:
spec:
Expand Down
12 changes: 6 additions & 6 deletions example/v1beta2/external_service/cluster-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ metadata:
spec:
ports:
- name: redis-client
port: 6379
protocol: TCP
targetPort: 6379
port: 6379
protocol: TCP
targetPort: 6379
selector:
app: redis-cluster-leader
redis_setup_type: cluster
Expand All @@ -31,9 +31,9 @@ metadata:
spec:
ports:
- name: redis-client
port: 6379
protocol: TCP
targetPort: 6379
port: 6379
protocol: TCP
targetPort: 6379
selector:
app: redis-cluster-follower
redis_setup_type: cluster
Expand Down
6 changes: 3 additions & 3 deletions example/v1beta2/external_service/replication-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ metadata:
spec:
ports:
- name: redis-client
port: 6379
protocol: TCP
targetPort: 6379
port: 6379
protocol: TCP
targetPort: 6379
selector:
app: redis-replication
redis_setup_type: replication
Expand Down
6 changes: 3 additions & 3 deletions example/v1beta2/external_service/standalone-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ metadata:
spec:
ports:
- name: redis-client
port: 6379
protocol: TCP
targetPort: 6379
port: 6379
protocol: TCP
targetPort: 6379
selector:
app: redis-standalone
redis_setup_type: standalone
Expand Down
4 changes: 2 additions & 2 deletions example/v1beta2/sidecar_features/sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ spec:
command: ["/bin/sh", "-c", "sleep 50000"]
mountPath:
- name: test
mountPath: /home
mountPath: /home
ports:
- name: port
containerPort: 9000
containerPort: 9000

storage:
volumeClaimTemplate:
Expand Down

0 comments on commit b0ae372

Please sign in to comment.