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 a8cfe1e commit 52a28a9
Show file tree
Hide file tree
Showing 60 changed files with 168 additions and 149 deletions.
2 changes: 1 addition & 1 deletion example/v1beta1/additional_config/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ metadata:
data:
redis-additional.conf: |
tcp-keepalive 400
slowlog-max-len 158
slowlog-max-len 158
stream-node-max-bytes 2048
2 changes: 1 addition & 1 deletion example/v1beta1/advance_config/clusterd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
resources:
requests:
storage: 1Gi
# nodeSelector: {}
# nodeSelector: {}
# securityContext: {}
# priorityClassName: ""
# affinity: {}
Expand Down
2 changes: 1 addition & 1 deletion example/v1beta1/advance_config/standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
redisExporter:
enabled: false
image: quay.io/opstree/redis-exporter:v1.44.0
# nodeSelector: {}
# nodeSelector: {}
# securityContext: {}
# priorityClassName: ""
# affinity: {}
Expand Down
2 changes: 1 addition & 1 deletion example/v1beta1/affinity/clusterd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
operator: In
values:
- redis-cluster-follower
- redis-cluster-leader
- redis-cluster-leader
topologyKey: "kubernetes.io/hostname"
storage:
volumeClaimTemplate:
Expand Down
8 changes: 4 additions & 4 deletions example/v1beta1/external_service/cluster-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ metadata:
name: redis-cluster-leaders
spec:
ports:
- name: redis-client
- name: redis-client
port: 6379
protocol: TCP
targetPort: 6379
selector:
app: redis-cluster-leader
redis_setup_type: cluster
role: leader
# type: LoadBalancer
# type: LoadBalancer
type: NodePort
---
apiVersion: v1
Expand All @@ -30,13 +30,13 @@ metadata:
name: redis-cluster-followers
spec:
ports:
- name: redis-client
- name: redis-client
port: 6379
protocol: TCP
targetPort: 6379
selector:
app: redis-cluster-follower
redis_setup_type: cluster
role: follower
# type: LoadBalancer
# type: LoadBalancer
type: NodePort
4 changes: 2 additions & 2 deletions example/v1beta1/external_service/replication-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ metadata:
name: redis-replication
spec:
ports:
- name: redis-client
- name: redis-client
port: 6379
protocol: TCP
targetPort: 6379
selector:
app: redis-replication
redis_setup_type: replication
role: replication
# type: LoadBalancer
# type: LoadBalancer
type: NodePort
4 changes: 2 additions & 2 deletions example/v1beta1/external_service/standalone-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ metadata:
name: redis-standalone
spec:
ports:
- name: redis-client
- name: redis-client
port: 6379
protocol: TCP
targetPort: 6379
selector:
app: redis-standalone
redis_setup_type: standalone
role: standalone
# type: LoadBalancer
# type: LoadBalancer
type: NodePort
6 changes: 3 additions & 3 deletions example/v1beta1/password_protected/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
---
apiVersion: v1
kind: Secret
metadata:
name: redis-secret
data:
password: T3BzdHJlZUAxMjM0Cg==
type: Opaque
password: T3BzdHJlZUAxMjM0Cg==
type: Opaque
10 changes: 5 additions & 5 deletions example/v1beta1/redis-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
redisSecret:
name: redis-secret
key: password
# imagePullSecrets:
# imagePullSecrets:
# - name: regcred
redisExporter:
enabled: false
Expand All @@ -36,8 +36,8 @@ spec:
limits:
cpu: 100m
memory: 128Mi
# Environment Variables for Redis Exporter
# env:
# Environment Variables for Redis Exporter
# env:
# - name: REDIS_EXPORTER_INCL_SYSTEM_METRICS
# value: "true"
# - name: UI_PROPERTIES_FILE_NAME
Expand All @@ -50,7 +50,7 @@ spec:
# secretKeyRef:
# name: mysecret
# key: username
# redisLeader:
# redisLeader:
# redisConfig:
# additionalRedisConfig: redis-external-config
# redisFollower:
Expand All @@ -64,7 +64,7 @@ spec:
resources:
requests:
storage: 1Gi
# nodeSelector:
# nodeSelector:
# kubernetes.io/hostname: minikube
# priorityClassName:
# Affinity:
Expand Down
12 changes: 6 additions & 6 deletions example/v1beta1/redis-replication.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
apiVersion: redis.redis.opstreelabs.in/v1beta1
kind: RedisReplication
metadata:
name: redis-replication
name: redis-replication
spec:
clusterSize: 3
securityContext:
runAsUser: 1000
fsGroup: 1000
# redisConfig:
# additionalRedisConfig: redis-external-config
kubernetesConfig:
kubernetesConfig:
image: quay.io/opstree/redis:v7.0.5
imagePullPolicy: IfNotPresent
resources:
Expand All @@ -20,7 +20,7 @@ spec:
limits:
cpu: 101m
memory: 128Mi
# redisSecret:
# redisSecret:
# name: redis-secret
# key: password
# imagePullSecrets:
Expand All @@ -36,8 +36,8 @@ spec:
limits:
cpu: 100m
memory: 128Mi
# Environment Variables for Redis Exporter
# env:
# Environment Variables for Redis Exporter
# env:
# - name: REDIS_EXPORTER_INCL_SYSTEM_METRICS
# value: "true"
# - name: UI_PROPERTIES_FILE_NAME
Expand All @@ -57,4 +57,4 @@ spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
storage: 1Gi
6 changes: 3 additions & 3 deletions example/v1beta1/redis-sentinel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ spec:
securityContext:
runAsUser: 1000
fsGroup: 1000
redisSentinelConfig:
redisReplicationName : redis-replication
redisSentinelConfig:
redisReplicationName: redis-replication
kubernetesConfig:
image: quay.io/opstree/redis-sentinel:v7.0.12
image: quay.io/opstree/redis-sentinel:v7.0.12
imagePullPolicy: IfNotPresent
resources:
requests:
Expand Down
8 changes: 4 additions & 4 deletions example/v1beta1/redis-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
limits:
cpu: 101m
memory: 128Mi
# redisSecret:
# redisSecret:
# name: redis-secret
# key: password
# imagePullSecrets:
Expand All @@ -32,8 +32,8 @@ spec:
limits:
cpu: 100m
memory: 128Mi
# Environment Variables for Redis Exporter
# env:
# Environment Variables for Redis Exporter
# env:
# - name: REDIS_EXPORTER_INCL_SYSTEM_METRICS
# value: "true"
# - name: UI_PROPERTIES_FILE_NAME
Expand All @@ -54,7 +54,7 @@ spec:
resources:
requests:
storage: 1Gi
# nodeSelector:
# nodeSelector:
# kubernetes.io/hostname: minikube
# securityContext: {}
# priorityClassName:
Expand Down
2 changes: 1 addition & 1 deletion example/v1beta1/redis_monitoring/clusterd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ spec:
resources:
requests:
storage: 1Gi
# storageClassName: standard
# storageClassName: standard
6 changes: 3 additions & 3 deletions example/v1beta1/redis_sentinel/sentinel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ spec:
securityContext:
runAsUser: 1000
fsGroup: 1000
redisSentinelConfig:
redisReplicationName : redis-replication
redisSentinelConfig:
redisReplicationName: redis-replication
kubernetesConfig:
image: quay.io/opstree/redis-sentinel:v7.0.12
image: quay.io/opstree/redis-sentinel:v7.0.12
imagePullPolicy: IfNotPresent
resources:
requests:
Expand Down
1 change: 1 addition & 0 deletions example/v1beta1/tls_enabled/redis-replication.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# yamllint disable-line rule:line-length
# Examples of creating a valid TLS certificate can be found at ./config/certmanager via Cert-manager
---
apiVersion: redis.redis.opstreelabs.in/v1beta1
Expand Down
1 change: 1 addition & 0 deletions example/v1beta1/tls_enabled/redis-standalone.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# yamllint disable-line rule:line-length
# Examples of creating a valid TLS certificate can be found at ./config/certmanager via Cert-manager
---
apiVersion: redis.redis.opstreelabs.in/v1beta1
Expand Down
4 changes: 2 additions & 2 deletions example/v1beta1/upgrade-strategy/standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
imagePullPolicy: IfNotPresent
updateStrategy:
type: OnDelete
# type: RollingUpdate
# type: RollingUpdate
securityContext:
runAsUser: 1000
fsGroup: 1000
Expand All @@ -23,4 +23,4 @@ spec:
storage: 1Gi
redisExporter:
enabled: false
image: quay.io/opstree/redis-exporter:v1.44.0
image: quay.io/opstree/redis-exporter:v1.44.0
3 changes: 2 additions & 1 deletion example/v1beta1/volume_mount/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: example-configmap
labels:
app: myapplication
data:
my-key: my-value
my-key: my-value
5 changes: 3 additions & 2 deletions example/v1beta1/volume_mount/redis-cluster.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: redis.redis.opstreelabs.in/v1beta1
kind: RedisCluster
metadata:
Expand All @@ -22,7 +23,7 @@ spec:
redisSecret:
name: redis-secret
key: password
# imagePullSecrets:
# imagePullSecrets:
# - name: regcred
redisExporter:
enabled: false
Expand Down Expand Up @@ -50,4 +51,4 @@ spec:
name: example-configmap
mountPath:
- mountPath: /config
name: example-config
name: example-config
5 changes: 3 additions & 2 deletions example/v1beta1/volume_mount/redis-replication.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
apiVersion: redis.redis.opstreelabs.in/v1beta1
kind: RedisReplication
metadata:
name: redis-replication
name: redis-replication
spec:
clusterSize: 3
# redisConfig:
Expand All @@ -16,7 +17,7 @@ spec:
limits:
cpu: 101m
memory: 128Mi
# redisSecret:
# redisSecret:
# name: redis-secret
# key: password
# imagePullSecrets:
Expand Down
3 changes: 2 additions & 1 deletion example/v1beta1/volume_mount/redis-standalone.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: redis.redis.opstreelabs.in/v1beta1
kind: Redis
metadata:
Expand All @@ -15,7 +16,7 @@ spec:
limits:
cpu: 101m
memory: 128Mi
# redisSecret:
# redisSecret:
# name: redis-secret
# key: password
# imagePullSecrets:
Expand Down
4 changes: 3 additions & 1 deletion example/v1beta2/acl_config/acl-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
apiVersion: v1
data:
# yamllint disable-line rule:line-length
user.acl: dXNlciBvcHN0cmVlIG9uIH4qICYqICtAYWxsID5hYmNAMTIzCnVzZXIgYnVpbGRwaXBlciBvbiB+KiAmKiArQGFsbCA+YWJjQDEyMwo=
kind: Secret
metadata:
name: acl-secret
namespace: default
type: Opaque
type: Opaque
4 changes: 2 additions & 2 deletions example/v1beta2/acl_config/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ spec:
limits:
cpu: 101m
memory: 128Mi
# redisSecret:
# redisSecret:
# name: redis-secret
# key: password
# imagePullSecrets:
# - name: regcred
acl:
secret :
secret:
secretName: acl-secret
redisExporter:
enabled: true
Expand Down
Loading

0 comments on commit 52a28a9

Please sign in to comment.