diff --git a/example/v1beta1/additional_config/configmap.yaml b/example/v1beta1/additional_config/configmap.yaml index f68ea80ac..d06cec022 100644 --- a/example/v1beta1/additional_config/configmap.yaml +++ b/example/v1beta1/additional_config/configmap.yaml @@ -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 diff --git a/example/v1beta1/advance_config/clusterd.yaml b/example/v1beta1/advance_config/clusterd.yaml index 305a13c19..fe06032e2 100644 --- a/example/v1beta1/advance_config/clusterd.yaml +++ b/example/v1beta1/advance_config/clusterd.yaml @@ -32,7 +32,7 @@ spec: resources: requests: storage: 1Gi - # nodeSelector: {} + # nodeSelector: {} # securityContext: {} # priorityClassName: "" # affinity: {} diff --git a/example/v1beta1/advance_config/standalone.yaml b/example/v1beta1/advance_config/standalone.yaml index e76625154..5f6cce308 100644 --- a/example/v1beta1/advance_config/standalone.yaml +++ b/example/v1beta1/advance_config/standalone.yaml @@ -28,7 +28,7 @@ spec: redisExporter: enabled: false image: quay.io/opstree/redis-exporter:v1.44.0 - # nodeSelector: {} + # nodeSelector: {} # securityContext: {} # priorityClassName: "" # affinity: {} diff --git a/example/v1beta1/affinity/clusterd.yaml b/example/v1beta1/affinity/clusterd.yaml index 535a98fde..89ae32a8e 100644 --- a/example/v1beta1/affinity/clusterd.yaml +++ b/example/v1beta1/affinity/clusterd.yaml @@ -38,7 +38,7 @@ spec: operator: In values: - redis-cluster-follower - - redis-cluster-leader + - redis-cluster-leader topologyKey: "kubernetes.io/hostname" storage: volumeClaimTemplate: diff --git a/example/v1beta1/external_service/cluster-svc.yaml b/example/v1beta1/external_service/cluster-svc.yaml index dc5dd6020..d6843917d 100644 --- a/example/v1beta1/external_service/cluster-svc.yaml +++ b/example/v1beta1/external_service/cluster-svc.yaml @@ -9,7 +9,7 @@ metadata: name: redis-cluster-leaders spec: ports: - - name: redis-client + - name: redis-client port: 6379 protocol: TCP targetPort: 6379 @@ -17,7 +17,7 @@ spec: app: redis-cluster-leader redis_setup_type: cluster role: leader -# type: LoadBalancer + # type: LoadBalancer type: NodePort --- apiVersion: v1 @@ -30,7 +30,7 @@ metadata: name: redis-cluster-followers spec: ports: - - name: redis-client + - name: redis-client port: 6379 protocol: TCP targetPort: 6379 @@ -38,5 +38,5 @@ spec: app: redis-cluster-follower redis_setup_type: cluster role: follower -# type: LoadBalancer + # type: LoadBalancer type: NodePort diff --git a/example/v1beta1/external_service/replication-svc.yaml b/example/v1beta1/external_service/replication-svc.yaml index 5e412de80..99d47f7e8 100644 --- a/example/v1beta1/external_service/replication-svc.yaml +++ b/example/v1beta1/external_service/replication-svc.yaml @@ -9,7 +9,7 @@ metadata: name: redis-replication spec: ports: - - name: redis-client + - name: redis-client port: 6379 protocol: TCP targetPort: 6379 @@ -17,5 +17,5 @@ spec: app: redis-replication redis_setup_type: replication role: replication -# type: LoadBalancer + # type: LoadBalancer type: NodePort diff --git a/example/v1beta1/external_service/standalone-svc.yaml b/example/v1beta1/external_service/standalone-svc.yaml index df4efe038..92e21be21 100644 --- a/example/v1beta1/external_service/standalone-svc.yaml +++ b/example/v1beta1/external_service/standalone-svc.yaml @@ -9,7 +9,7 @@ metadata: name: redis-standalone spec: ports: - - name: redis-client + - name: redis-client port: 6379 protocol: TCP targetPort: 6379 @@ -17,5 +17,5 @@ spec: app: redis-standalone redis_setup_type: standalone role: standalone -# type: LoadBalancer + # type: LoadBalancer type: NodePort diff --git a/example/v1beta1/password_protected/secret.yaml b/example/v1beta1/password_protected/secret.yaml index 2a91c0d81..cf1cf0a6a 100644 --- a/example/v1beta1/password_protected/secret.yaml +++ b/example/v1beta1/password_protected/secret.yaml @@ -1,8 +1,8 @@ ---- +--- apiVersion: v1 kind: Secret metadata: name: redis-secret data: - password: T3BzdHJlZUAxMjM0Cg== -type: Opaque \ No newline at end of file + password: T3BzdHJlZUAxMjM0Cg== +type: Opaque diff --git a/example/v1beta1/redis-cluster.yaml b/example/v1beta1/redis-cluster.yaml index 148c4f74b..0b8e48189 100644 --- a/example/v1beta1/redis-cluster.yaml +++ b/example/v1beta1/redis-cluster.yaml @@ -23,7 +23,7 @@ spec: redisSecret: name: redis-secret key: password - # imagePullSecrets: + # imagePullSecrets: # - name: regcred redisExporter: enabled: false @@ -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 @@ -50,7 +50,7 @@ spec: # secretKeyRef: # name: mysecret # key: username -# redisLeader: + # redisLeader: # redisConfig: # additionalRedisConfig: redis-external-config # redisFollower: @@ -64,7 +64,7 @@ spec: resources: requests: storage: 1Gi - # nodeSelector: + # nodeSelector: # kubernetes.io/hostname: minikube # priorityClassName: # Affinity: diff --git a/example/v1beta1/redis-replication.yaml b/example/v1beta1/redis-replication.yaml index 5170612f9..d13930b4a 100644 --- a/example/v1beta1/redis-replication.yaml +++ b/example/v1beta1/redis-replication.yaml @@ -2,7 +2,7 @@ apiVersion: redis.redis.opstreelabs.in/v1beta1 kind: RedisReplication metadata: - name: redis-replication + name: redis-replication spec: clusterSize: 3 securityContext: @@ -10,7 +10,7 @@ spec: fsGroup: 1000 # redisConfig: # additionalRedisConfig: redis-external-config - kubernetesConfig: + kubernetesConfig: image: quay.io/opstree/redis:v7.0.5 imagePullPolicy: IfNotPresent resources: @@ -20,7 +20,7 @@ spec: limits: cpu: 101m memory: 128Mi - # redisSecret: + # redisSecret: # name: redis-secret # key: password # imagePullSecrets: @@ -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 @@ -57,4 +57,4 @@ spec: accessModes: ["ReadWriteOnce"] resources: requests: - storage: 1Gi \ No newline at end of file + storage: 1Gi diff --git a/example/v1beta1/redis-sentinel.yaml b/example/v1beta1/redis-sentinel.yaml index 430916b6c..c6eca8fd8 100644 --- a/example/v1beta1/redis-sentinel.yaml +++ b/example/v1beta1/redis-sentinel.yaml @@ -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: diff --git a/example/v1beta1/redis-standalone.yaml b/example/v1beta1/redis-standalone.yaml index 00340ed64..b77996305 100644 --- a/example/v1beta1/redis-standalone.yaml +++ b/example/v1beta1/redis-standalone.yaml @@ -16,7 +16,7 @@ spec: limits: cpu: 101m memory: 128Mi - # redisSecret: + # redisSecret: # name: redis-secret # key: password # imagePullSecrets: @@ -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 @@ -54,7 +54,7 @@ spec: resources: requests: storage: 1Gi - # nodeSelector: + # nodeSelector: # kubernetes.io/hostname: minikube # securityContext: {} # priorityClassName: diff --git a/example/v1beta1/redis_monitoring/clusterd.yaml b/example/v1beta1/redis_monitoring/clusterd.yaml index 119d86ef2..e28737c93 100644 --- a/example/v1beta1/redis_monitoring/clusterd.yaml +++ b/example/v1beta1/redis_monitoring/clusterd.yaml @@ -26,4 +26,4 @@ spec: resources: requests: storage: 1Gi - # storageClassName: standard + # storageClassName: standard diff --git a/example/v1beta1/redis_sentinel/sentinel.yaml b/example/v1beta1/redis_sentinel/sentinel.yaml index 430916b6c..c6eca8fd8 100644 --- a/example/v1beta1/redis_sentinel/sentinel.yaml +++ b/example/v1beta1/redis_sentinel/sentinel.yaml @@ -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: diff --git a/example/v1beta1/tls_enabled/redis-replication.yaml b/example/v1beta1/tls_enabled/redis-replication.yaml index ac8b34490..42711e713 100644 --- a/example/v1beta1/tls_enabled/redis-replication.yaml +++ b/example/v1beta1/tls_enabled/redis-replication.yaml @@ -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 diff --git a/example/v1beta1/tls_enabled/redis-standalone.yaml b/example/v1beta1/tls_enabled/redis-standalone.yaml index 3e254fd65..1e213afa7 100644 --- a/example/v1beta1/tls_enabled/redis-standalone.yaml +++ b/example/v1beta1/tls_enabled/redis-standalone.yaml @@ -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 diff --git a/example/v1beta1/upgrade-strategy/standalone.yaml b/example/v1beta1/upgrade-strategy/standalone.yaml index bfc1b445e..2ce6c1757 100644 --- a/example/v1beta1/upgrade-strategy/standalone.yaml +++ b/example/v1beta1/upgrade-strategy/standalone.yaml @@ -9,7 +9,7 @@ spec: imagePullPolicy: IfNotPresent updateStrategy: type: OnDelete -# type: RollingUpdate + # type: RollingUpdate securityContext: runAsUser: 1000 fsGroup: 1000 @@ -23,4 +23,4 @@ spec: storage: 1Gi redisExporter: enabled: false - image: quay.io/opstree/redis-exporter:v1.44.0 \ No newline at end of file + image: quay.io/opstree/redis-exporter:v1.44.0 diff --git a/example/v1beta1/volume_mount/configmap.yaml b/example/v1beta1/volume_mount/configmap.yaml index eb5501a23..b6bc927f1 100644 --- a/example/v1beta1/volume_mount/configmap.yaml +++ b/example/v1beta1/volume_mount/configmap.yaml @@ -1,3 +1,4 @@ +--- apiVersion: v1 kind: ConfigMap metadata: @@ -5,4 +6,4 @@ metadata: labels: app: myapplication data: - my-key: my-value \ No newline at end of file + my-key: my-value diff --git a/example/v1beta1/volume_mount/redis-cluster.yaml b/example/v1beta1/volume_mount/redis-cluster.yaml index 03bc513e9..03851fdde 100644 --- a/example/v1beta1/volume_mount/redis-cluster.yaml +++ b/example/v1beta1/volume_mount/redis-cluster.yaml @@ -1,3 +1,4 @@ +--- apiVersion: redis.redis.opstreelabs.in/v1beta1 kind: RedisCluster metadata: @@ -22,7 +23,7 @@ spec: redisSecret: name: redis-secret key: password - # imagePullSecrets: + # imagePullSecrets: # - name: regcred redisExporter: enabled: false @@ -50,4 +51,4 @@ spec: name: example-configmap mountPath: - mountPath: /config - name: example-config \ No newline at end of file + name: example-config diff --git a/example/v1beta1/volume_mount/redis-replication.yaml b/example/v1beta1/volume_mount/redis-replication.yaml index 974e969a0..9307acea7 100644 --- a/example/v1beta1/volume_mount/redis-replication.yaml +++ b/example/v1beta1/volume_mount/redis-replication.yaml @@ -1,7 +1,8 @@ +--- apiVersion: redis.redis.opstreelabs.in/v1beta1 kind: RedisReplication metadata: - name: redis-replication + name: redis-replication spec: clusterSize: 3 # redisConfig: @@ -16,7 +17,7 @@ spec: limits: cpu: 101m memory: 128Mi - # redisSecret: + # redisSecret: # name: redis-secret # key: password # imagePullSecrets: diff --git a/example/v1beta1/volume_mount/redis-standalone.yaml b/example/v1beta1/volume_mount/redis-standalone.yaml index 1ed44c0ae..b99f1c108 100644 --- a/example/v1beta1/volume_mount/redis-standalone.yaml +++ b/example/v1beta1/volume_mount/redis-standalone.yaml @@ -1,3 +1,4 @@ +--- apiVersion: redis.redis.opstreelabs.in/v1beta1 kind: Redis metadata: @@ -15,7 +16,7 @@ spec: limits: cpu: 101m memory: 128Mi - # redisSecret: + # redisSecret: # name: redis-secret # key: password # imagePullSecrets: diff --git a/example/v1beta2/acl_config/acl-secret.yaml b/example/v1beta2/acl_config/acl-secret.yaml index 5f9bae4d7..734b4f086 100644 --- a/example/v1beta2/acl_config/acl-secret.yaml +++ b/example/v1beta2/acl_config/acl-secret.yaml @@ -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 \ No newline at end of file +type: Opaque diff --git a/example/v1beta2/acl_config/cluster.yaml b/example/v1beta2/acl_config/cluster.yaml index 71036b79d..7c138954b 100644 --- a/example/v1beta2/acl_config/cluster.yaml +++ b/example/v1beta2/acl_config/cluster.yaml @@ -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 diff --git a/example/v1beta2/acl_config/replication.yaml b/example/v1beta2/acl_config/replication.yaml index cb42e8345..9a6f5968f 100644 --- a/example/v1beta2/acl_config/replication.yaml +++ b/example/v1beta2/acl_config/replication.yaml @@ -2,7 +2,7 @@ apiVersion: redis.redis.opstreelabs.in/v1beta2 kind: RedisReplication metadata: - name: redis-replication + name: redis-replication spec: clusterSize: 3 podSecurityContext: @@ -10,7 +10,7 @@ spec: fsGroup: 1000 # redisConfig: # additionalRedisConfig: redis-external-config - kubernetesConfig: + kubernetesConfig: image: quay.io/opstree/redis:v7.0.12 imagePullPolicy: IfNotPresent resources: @@ -20,15 +20,15 @@ spec: limits: cpu: 101m memory: 128Mi - # redisSecret: + # redisSecret: # name: redis-secret # key: password # imagePullSecrets: # - name: regcred acl: - secret : + secret: secretName: acl-secret - + redisExporter: enabled: false image: quay.io/opstree/redis-exporter:v1.44.0 @@ -48,4 +48,4 @@ spec: accessModes: ["ReadWriteOnce"] resources: requests: - storage: 1Gi \ No newline at end of file + storage: 1Gi diff --git a/example/v1beta2/acl_config/standalone.yaml b/example/v1beta2/acl_config/standalone.yaml index 9fbdcf6e8..2b0968d02 100644 --- a/example/v1beta2/acl_config/standalone.yaml +++ b/example/v1beta2/acl_config/standalone.yaml @@ -16,14 +16,14 @@ spec: limits: cpu: 101m memory: 128Mi - # redisSecret: + # redisSecret: # name: redis-secret # key: password # imagePullSecrets: # - name: regcred acl: - secret: - secretName: acl-secret + secret: + secretName: acl-secret redisExporter: enabled: false diff --git a/example/v1beta2/additional_config/configmap.yaml b/example/v1beta2/additional_config/configmap.yaml index f68ea80ac..d06cec022 100644 --- a/example/v1beta2/additional_config/configmap.yaml +++ b/example/v1beta2/additional_config/configmap.yaml @@ -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 diff --git a/example/v1beta2/advance_config/clusterd.yaml b/example/v1beta2/advance_config/clusterd.yaml index 57d7ff97f..456a4f541 100644 --- a/example/v1beta2/advance_config/clusterd.yaml +++ b/example/v1beta2/advance_config/clusterd.yaml @@ -38,7 +38,7 @@ spec: resources: requests: storage: 1Gi - # nodeSelector: {} + # nodeSelector: {} # podSecurityContext: {} # priorityClassName: "" # affinity: {} diff --git a/example/v1beta2/advance_config/standalone.yaml b/example/v1beta2/advance_config/standalone.yaml index f74862b5a..88cff8bba 100644 --- a/example/v1beta2/advance_config/standalone.yaml +++ b/example/v1beta2/advance_config/standalone.yaml @@ -28,7 +28,7 @@ spec: redisExporter: enabled: false image: quay.io/opstree/redis-exporter:v1.44.0 - # nodeSelector: {} + # nodeSelector: {} # podSecurityContext: {} # priorityClassName: "" # affinity: {} diff --git a/example/v1beta2/affinity/clusterd.yaml b/example/v1beta2/affinity/clusterd.yaml index 84623e61d..d7c3f64bf 100644 --- a/example/v1beta2/affinity/clusterd.yaml +++ b/example/v1beta2/affinity/clusterd.yaml @@ -38,7 +38,7 @@ spec: operator: In values: - redis-cluster-follower - - redis-cluster-leader + - redis-cluster-leader topologyKey: "kubernetes.io/hostname" storage: volumeClaimTemplate: diff --git a/example/v1beta2/backup_restore/backup/env-secrets.yaml b/example/v1beta2/backup_restore/backup/env-secrets.yaml index ae124980b..84e1be7e9 100644 --- a/example/v1beta2/backup_restore/backup/env-secrets.yaml +++ b/example/v1beta2/backup_restore/backup/env-secrets.yaml @@ -1,3 +1,4 @@ +--- apiVersion: v1 kind: Secret metadata: @@ -15,4 +16,4 @@ stringData: AWS_S3_BUCKET: shubham-redis AWS_DEFAULT_REGION: ap-south-1 AWS_ACCESS_KEY_ID: "" - AWS_SECRET_ACCESS_KEY: "" \ No newline at end of file + AWS_SECRET_ACCESS_KEY: "" diff --git a/example/v1beta2/backup_restore/backup/job.yaml b/example/v1beta2/backup_restore/backup/job.yaml index 6b9fcdc87..a478173c3 100644 --- a/example/v1beta2/backup_restore/backup/job.yaml +++ b/example/v1beta2/backup_restore/backup/job.yaml @@ -1,3 +1,4 @@ +--- apiVersion: batch/v1 kind: Job metadata: @@ -10,11 +11,11 @@ spec: spec: serviceAccountName: backup-service-account containers: - - name: redis-operator-backup-container + - 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: + - secretRef: name: env-secrets restartPolicy: Never diff --git a/example/v1beta2/backup_restore/backup/role-binding.yaml b/example/v1beta2/backup_restore/backup/role-binding.yaml index bdab12539..a60dc5234 100644 --- a/example/v1beta2/backup_restore/backup/role-binding.yaml +++ b/example/v1beta2/backup_restore/backup/role-binding.yaml @@ -1,3 +1,4 @@ +--- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: @@ -8,4 +9,4 @@ subjects: roleRef: kind: Role name: modify-pods - apiGroup: rbac.authorization.k8s.io \ No newline at end of file + apiGroup: rbac.authorization.k8s.io diff --git a/example/v1beta2/backup_restore/backup/role.yaml b/example/v1beta2/backup_restore/backup/role.yaml index 1ab15a715..d84c34535 100644 --- a/example/v1beta2/backup_restore/backup/role.yaml +++ b/example/v1beta2/backup_restore/backup/role.yaml @@ -1,3 +1,4 @@ +--- apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: @@ -5,4 +6,4 @@ metadata: rules: - apiGroups: ["*"] resources: ["*"] - verbs: ["*"] \ No newline at end of file + verbs: ["*"] diff --git a/example/v1beta2/backup_restore/backup/service-account.yaml b/example/v1beta2/backup_restore/backup/service-account.yaml index d860c2d63..6be2a7ac8 100644 --- a/example/v1beta2/backup_restore/backup/service-account.yaml +++ b/example/v1beta2/backup_restore/backup/service-account.yaml @@ -1,4 +1,5 @@ +--- apiVersion: v1 kind: ServiceAccount metadata: - name: backup-service-account \ No newline at end of file + name: backup-service-account diff --git a/example/v1beta2/backup_restore/restore/env-secret.yaml b/example/v1beta2/backup_restore/restore/env-secret.yaml index 03748498a..9a20b1270 100644 --- a/example/v1beta2/backup_restore/restore/env-secret.yaml +++ b/example/v1beta2/backup_restore/restore/env-secret.yaml @@ -1,3 +1,4 @@ +--- apiVersion: v1 kind: Secret metadata: @@ -14,4 +15,4 @@ stringData: AWS_S3_BUCKET: shubham-redis AWS_DEFAULT_REGION: ap-south-1 AWS_ACCESS_KEY_ID: "" - AWS_SECRET_ACCESS_KEY: "" \ No newline at end of file + AWS_SECRET_ACCESS_KEY: "" diff --git a/example/v1beta2/backup_restore/restore/redis-cluster.yaml b/example/v1beta2/backup_restore/restore/redis-cluster.yaml index 50fdaea5e..ae638798a 100644 --- a/example/v1beta2/backup_restore/restore/redis-cluster.yaml +++ b/example/v1beta2/backup_restore/restore/redis-cluster.yaml @@ -20,7 +20,7 @@ spec: limits: cpu: 101m memory: 128Mi - # redisSecret: + # redisSecret: # name: redis-secret # key: password # imagePullSecrets: @@ -88,8 +88,8 @@ spec: secretKeyRef: name: env-secrets key: AWS_SECRET_ACCESS_KEY -# 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 @@ -102,7 +102,7 @@ spec: # secretKeyRef: # name: mysecret # key: username -# redisLeader: + # redisLeader: # redisConfig: # additionalRedisConfig: redis-external-config # redisFollower: @@ -130,7 +130,7 @@ spec: resources: requests: storage: 1Gi - # nodeSelector: + # nodeSelector: # kubernetes.io/hostname: minikube # priorityClassName: # Affinity: diff --git a/example/v1beta2/env_vars/redis-cluster.yaml b/example/v1beta2/env_vars/redis-cluster.yaml index 082c1ae81..4f70f0c28 100644 --- a/example/v1beta2/env_vars/redis-cluster.yaml +++ b/example/v1beta2/env_vars/redis-cluster.yaml @@ -21,10 +21,10 @@ spec: cpu: 101m memory: 128Mi env: - - name: CUSTOM_ENV_VAR_1 + - name: CUSTOM_ENV_VAR_1 value: "custom_value_1" - name: CUSTOM_ENV_VAR_2 - value: "custom_value_2" + value: "custom_value_2" # redisSecret: # name: redis-secret # key: password @@ -45,4 +45,3 @@ spec: resources: requests: storage: 1Gi - diff --git a/example/v1beta2/env_vars/redis-replication.yaml b/example/v1beta2/env_vars/redis-replication.yaml index 99214c8bc..cb85d9d2c 100644 --- a/example/v1beta2/env_vars/redis-replication.yaml +++ b/example/v1beta2/env_vars/redis-replication.yaml @@ -2,7 +2,7 @@ apiVersion: redis.redis.opstreelabs.in/v1beta2 kind: RedisReplication metadata: - name: redis-replication + name: redis-replication spec: clusterSize: 3 podSecurityContext: @@ -10,7 +10,7 @@ spec: fsGroup: 1000 # redisConfig: # additionalRedisConfig: redis-external-config - kubernetesConfig: + kubernetesConfig: image: quay.io/opstree/redis:v7.0.12 imagePullPolicy: IfNotPresent resources: @@ -23,13 +23,13 @@ spec: redisSecret: name: redis-secret key: password - # imagePullSecrets: + # imagePullSecrets: # - name: regcred env: - - name: CUSTOM_ENV_VAR_1 + - name: CUSTOM_ENV_VAR_1 value: "custom_value_1" - name: CUSTOM_ENV_VAR_2 - value: "custom_value_2" + value: "custom_value_2" storage: volumeClaimTemplate: spec: @@ -37,4 +37,4 @@ spec: accessModes: ["ReadWriteOnce"] resources: requests: - storage: 1Gi \ No newline at end of file + storage: 1Gi diff --git a/example/v1beta2/env_vars/redis-sentinel.yaml b/example/v1beta2/env_vars/redis-sentinel.yaml index 6dd84edeb..3debc7600 100644 --- a/example/v1beta2/env_vars/redis-sentinel.yaml +++ b/example/v1beta2/env_vars/redis-sentinel.yaml @@ -11,10 +11,10 @@ spec: pdb: enabled: false minAvailable: 1 - 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: @@ -24,7 +24,7 @@ spec: cpu: 101m memory: 128Mi env: - - name: CUSTOM_ENV_VAR_1 + - name: CUSTOM_ENV_VAR_1 value: "custom_value_1" - name: CUSTOM_ENV_VAR_2 - value: "custom_value_2" \ No newline at end of file + value: "custom_value_2" diff --git a/example/v1beta2/env_vars/redis-standalone.yaml b/example/v1beta2/env_vars/redis-standalone.yaml index e0dd08947..ff79207bc 100644 --- a/example/v1beta2/env_vars/redis-standalone.yaml +++ b/example/v1beta2/env_vars/redis-standalone.yaml @@ -8,7 +8,7 @@ spec: # additionalRedisConfig: redis-external-config podSecurityContext: runAsUser: 1000 - fsGroup: 1000 + fsGroup: 1000 kubernetesConfig: image: quay.io/opstree/redis:v7.0.12 imagePullPolicy: IfNotPresent @@ -19,7 +19,7 @@ spec: limits: cpu: 101m memory: 128Mi - # redisSecret: + # redisSecret: # name: redis-secret # key: password # imagePullSecrets: @@ -36,10 +36,10 @@ spec: cpu: 100m memory: 128Mi env: - - name: CUSTOM_ENV_VAR_1 + - name: CUSTOM_ENV_VAR_1 value: "custom_value_1" - name: CUSTOM_ENV_VAR_2 - value: "custom_value_2" + value: "custom_value_2" storage: volumeClaimTemplate: spec: @@ -48,7 +48,7 @@ spec: resources: requests: storage: 1Gi - # nodeSelector: + # nodeSelector: # kubernetes.io/hostname: minikube # podSecurityContext: {} # priorityClassName: diff --git a/example/v1beta2/external_service/cluster-svc.yaml b/example/v1beta2/external_service/cluster-svc.yaml index dc5dd6020..d6843917d 100644 --- a/example/v1beta2/external_service/cluster-svc.yaml +++ b/example/v1beta2/external_service/cluster-svc.yaml @@ -9,7 +9,7 @@ metadata: name: redis-cluster-leaders spec: ports: - - name: redis-client + - name: redis-client port: 6379 protocol: TCP targetPort: 6379 @@ -17,7 +17,7 @@ spec: app: redis-cluster-leader redis_setup_type: cluster role: leader -# type: LoadBalancer + # type: LoadBalancer type: NodePort --- apiVersion: v1 @@ -30,7 +30,7 @@ metadata: name: redis-cluster-followers spec: ports: - - name: redis-client + - name: redis-client port: 6379 protocol: TCP targetPort: 6379 @@ -38,5 +38,5 @@ spec: app: redis-cluster-follower redis_setup_type: cluster role: follower -# type: LoadBalancer + # type: LoadBalancer type: NodePort diff --git a/example/v1beta2/external_service/replication-svc.yaml b/example/v1beta2/external_service/replication-svc.yaml index 5e412de80..99d47f7e8 100644 --- a/example/v1beta2/external_service/replication-svc.yaml +++ b/example/v1beta2/external_service/replication-svc.yaml @@ -9,7 +9,7 @@ metadata: name: redis-replication spec: ports: - - name: redis-client + - name: redis-client port: 6379 protocol: TCP targetPort: 6379 @@ -17,5 +17,5 @@ spec: app: redis-replication redis_setup_type: replication role: replication -# type: LoadBalancer + # type: LoadBalancer type: NodePort diff --git a/example/v1beta2/external_service/standalone-svc.yaml b/example/v1beta2/external_service/standalone-svc.yaml index df4efe038..92e21be21 100644 --- a/example/v1beta2/external_service/standalone-svc.yaml +++ b/example/v1beta2/external_service/standalone-svc.yaml @@ -9,7 +9,7 @@ metadata: name: redis-standalone spec: ports: - - name: redis-client + - name: redis-client port: 6379 protocol: TCP targetPort: 6379 @@ -17,5 +17,5 @@ spec: app: redis-standalone redis_setup_type: standalone role: standalone -# type: LoadBalancer + # type: LoadBalancer type: NodePort diff --git a/example/v1beta2/password_protected/secret.yaml b/example/v1beta2/password_protected/secret.yaml index 2a91c0d81..cf1cf0a6a 100644 --- a/example/v1beta2/password_protected/secret.yaml +++ b/example/v1beta2/password_protected/secret.yaml @@ -1,8 +1,8 @@ ---- +--- apiVersion: v1 kind: Secret metadata: name: redis-secret data: - password: T3BzdHJlZUAxMjM0Cg== -type: Opaque \ No newline at end of file + password: T3BzdHJlZUAxMjM0Cg== +type: Opaque diff --git a/example/v1beta2/redis-cluster.yaml b/example/v1beta2/redis-cluster.yaml index 87b308e3a..6e956c68f 100644 --- a/example/v1beta2/redis-cluster.yaml +++ b/example/v1beta2/redis-cluster.yaml @@ -20,8 +20,8 @@ spec: limits: cpu: 101m memory: 128Mi - # redisSecret: - # name: redis-secret + # redisSecret: + # name: redis-secret # key: password # imagePullSecrets: # - name: regcred @@ -36,9 +36,9 @@ spec: limits: cpu: 100m memory: 128Mi -# Environment Variables for Redis Exporter - # env: - # - name: REDIS_EXPORTER_INCL_SYSTEM_METRICS + # Environment Variables for Redis Exporter + # env: + # - name: REDIS_EXPORTER_INCL_SYSTEM_METRICS # value: "true" # - name: UI_PROPERTIES_FILE_NAME # valueFrom: @@ -50,8 +50,8 @@ spec: # secretKeyRef: # name: mysecret # key: username -# redisLeader: -# redisConfig: + # redisLeader: + # redisConfig: # additionalRedisConfig: redis-external-config # redisFollower: # redisConfig: @@ -71,8 +71,8 @@ spec: resources: requests: storage: 1Gi - # nodeSelector: - # kubernetes.io/hostname: minikube + # nodeSelector: + # kubernetes.io/hostname: minikube # priorityClassName: # Affinity: # Tolerations: [] diff --git a/example/v1beta2/redis-replication.yaml b/example/v1beta2/redis-replication.yaml index e7a11022e..b23431171 100644 --- a/example/v1beta2/redis-replication.yaml +++ b/example/v1beta2/redis-replication.yaml @@ -2,7 +2,7 @@ apiVersion: redis.redis.opstreelabs.in/v1beta2 kind: RedisReplication metadata: - name: redis-replication + name: redis-replication spec: clusterSize: 3 podSecurityContext: @@ -10,7 +10,7 @@ spec: fsGroup: 1000 # redisConfig: # additionalRedisConfig: redis-external-config - kubernetesConfig: + kubernetesConfig: image: quay.io/opstree/redis:v7.0.12 imagePullPolicy: IfNotPresent resources: @@ -23,8 +23,8 @@ spec: redisSecret: name: redis-secret key: password - # imagePullSecrets: - # - name: regcred + # imagePullSecrets: + # - name: regcred redisExporter: enabled: false image: quay.io/opstree/redis-exporter:v1.44.0 @@ -36,9 +36,9 @@ spec: limits: cpu: 100m memory: 128Mi -# Environment Variables for Redis Exporter - # env: - # - name: REDIS_EXPORTER_INCL_SYSTEM_METRICS + # Environment Variables for Redis Exporter + # env: + # - name: REDIS_EXPORTER_INCL_SYSTEM_METRICS # value: "true" # - name: UI_PROPERTIES_FILE_NAME # valueFrom: @@ -57,4 +57,4 @@ spec: accessModes: ["ReadWriteOnce"] resources: requests: - storage: 1Gi \ No newline at end of file + storage: 1Gi diff --git a/example/v1beta2/redis-sentinel.yaml b/example/v1beta2/redis-sentinel.yaml index e53105d6e..771e66d77 100644 --- a/example/v1beta2/redis-sentinel.yaml +++ b/example/v1beta2/redis-sentinel.yaml @@ -11,10 +11,10 @@ spec: pdb: enabled: false minAvailable: 1 - 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: diff --git a/example/v1beta2/redis-standalone.yaml b/example/v1beta2/redis-standalone.yaml index 27e2b5e7f..e93eccffa 100644 --- a/example/v1beta2/redis-standalone.yaml +++ b/example/v1beta2/redis-standalone.yaml @@ -8,7 +8,7 @@ spec: # additionalRedisConfig: redis-external-config podSecurityContext: runAsUser: 1000 - fsGroup: 1000 + fsGroup: 1000 kubernetesConfig: image: quay.io/opstree/redis:v7.0.12 imagePullPolicy: IfNotPresent @@ -19,8 +19,8 @@ spec: limits: cpu: 101m memory: 128Mi - # redisSecret: - # name: redis-secret + # redisSecret: + # name: redis-secret # key: password # imagePullSecrets: # - name: regcred @@ -35,9 +35,9 @@ spec: limits: cpu: 100m memory: 128Mi -# Environment Variables for Redis Exporter - # env: - # - name: REDIS_EXPORTER_INCL_SYSTEM_METRICS + # Environment Variables for Redis Exporter + # env: + # - name: REDIS_EXPORTER_INCL_SYSTEM_METRICS # value: "true" # - name: UI_PROPERTIES_FILE_NAME # valueFrom: @@ -57,8 +57,8 @@ spec: resources: requests: storage: 1Gi - # nodeSelector: - # kubernetes.io/hostname: minikube + # nodeSelector: + # kubernetes.io/hostname: minikube # podSecurityContext: {} # priorityClassName: # affinity: diff --git a/example/v1beta2/redis_monitoring/clusterd.yaml b/example/v1beta2/redis_monitoring/clusterd.yaml index 8ba5e9ea5..82a6659f2 100644 --- a/example/v1beta2/redis_monitoring/clusterd.yaml +++ b/example/v1beta2/redis_monitoring/clusterd.yaml @@ -33,4 +33,4 @@ spec: resources: requests: storage: 1Gi - # storageClassName: standard + # storageClassName: standard diff --git a/example/v1beta2/redis_sentinel/sentinel.yaml b/example/v1beta2/redis_sentinel/sentinel.yaml index 78f838906..389bfe1a4 100644 --- a/example/v1beta2/redis_sentinel/sentinel.yaml +++ b/example/v1beta2/redis_sentinel/sentinel.yaml @@ -8,10 +8,10 @@ spec: podSecurityContext: 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: diff --git a/example/v1beta2/sidecar_features/configmap.yaml b/example/v1beta2/sidecar_features/configmap.yaml index 1dbc1c582..b6bc927f1 100644 --- a/example/v1beta2/sidecar_features/configmap.yaml +++ b/example/v1beta2/sidecar_features/configmap.yaml @@ -1,3 +1,4 @@ +--- apiVersion: v1 kind: ConfigMap metadata: @@ -6,4 +7,3 @@ metadata: app: myapplication data: my-key: my-value - \ No newline at end of file diff --git a/example/v1beta2/sidecar_features/sidecar.yaml b/example/v1beta2/sidecar_features/sidecar.yaml index 7b3b1f4f7..2dc5018c4 100644 --- a/example/v1beta2/sidecar_features/sidecar.yaml +++ b/example/v1beta2/sidecar_features/sidecar.yaml @@ -16,7 +16,7 @@ spec: limits: cpu: 101m memory: 128Mi - # redisSecret: + # redisSecret: # name: redis-secret # key: password # imagePullSecrets: @@ -38,10 +38,10 @@ spec: imagePullPolicy: Always command: ["/bin/sh", "-c", "sleep 50000"] mountPath: - - name: test + - name: test mountPath: /home ports: - - name: port + - name: port containerPort: 9000 storage: @@ -57,4 +57,4 @@ spec: - name: test configMap: name: example-configmap - terminationGracePeriodSeconds: 20 #custom terimationgraceperiodseconds + terminationGracePeriodSeconds: 20 # custom terimationgraceperiodseconds diff --git a/example/v1beta2/tls_enabled/redis-cluster.yaml b/example/v1beta2/tls_enabled/redis-cluster.yaml index 7147edd43..cae718b7b 100644 --- a/example/v1beta2/tls_enabled/redis-cluster.yaml +++ b/example/v1beta2/tls_enabled/redis-cluster.yaml @@ -55,4 +55,4 @@ spec: accessModes: ["ReadWriteOnce"] resources: requests: - storage: 1Gi \ No newline at end of file + storage: 1Gi diff --git a/example/v1beta2/tls_enabled/redis-replication.yaml b/example/v1beta2/tls_enabled/redis-replication.yaml index 743e6d7fb..72e5c3f22 100644 --- a/example/v1beta2/tls_enabled/redis-replication.yaml +++ b/example/v1beta2/tls_enabled/redis-replication.yaml @@ -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/v1beta2 diff --git a/example/v1beta2/tls_enabled/redis-standalone.yaml b/example/v1beta2/tls_enabled/redis-standalone.yaml index ca30a243c..64d85061b 100644 --- a/example/v1beta2/tls_enabled/redis-standalone.yaml +++ b/example/v1beta2/tls_enabled/redis-standalone.yaml @@ -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/v1beta2 diff --git a/example/v1beta2/upgrade-strategy/standalone.yaml b/example/v1beta2/upgrade-strategy/standalone.yaml index e8e1aacbe..0d514a497 100644 --- a/example/v1beta2/upgrade-strategy/standalone.yaml +++ b/example/v1beta2/upgrade-strategy/standalone.yaml @@ -9,7 +9,7 @@ spec: imagePullPolicy: IfNotPresent updateStrategy: type: OnDelete -# type: RollingUpdate + # type: RollingUpdate podSecurityContext: runAsUser: 1000 fsGroup: 1000 @@ -23,4 +23,4 @@ spec: storage: 1Gi redisExporter: enabled: false - image: quay.io/opstree/redis-exporter:v1.44.0 \ No newline at end of file + image: quay.io/opstree/redis-exporter:v1.44.0 diff --git a/example/v1beta2/volume_mount/configmap.yaml b/example/v1beta2/volume_mount/configmap.yaml index eb5501a23..b6bc927f1 100644 --- a/example/v1beta2/volume_mount/configmap.yaml +++ b/example/v1beta2/volume_mount/configmap.yaml @@ -1,3 +1,4 @@ +--- apiVersion: v1 kind: ConfigMap metadata: @@ -5,4 +6,4 @@ metadata: labels: app: myapplication data: - my-key: my-value \ No newline at end of file + my-key: my-value diff --git a/example/v1beta2/volume_mount/redis-cluster.yaml b/example/v1beta2/volume_mount/redis-cluster.yaml index bc294688a..e5418cfca 100644 --- a/example/v1beta2/volume_mount/redis-cluster.yaml +++ b/example/v1beta2/volume_mount/redis-cluster.yaml @@ -1,3 +1,4 @@ +--- apiVersion: redis.redis.opstreelabs.in/v1beta2 kind: RedisCluster metadata: @@ -22,7 +23,7 @@ spec: redisSecret: name: redis-secret key: password - # imagePullSecrets: + # imagePullSecrets: # - name: regcred redisExporter: enabled: false @@ -56,4 +57,4 @@ spec: name: example-configmap mountPath: - mountPath: /config - name: example-config \ No newline at end of file + name: example-config diff --git a/example/v1beta2/volume_mount/redis-replication.yaml b/example/v1beta2/volume_mount/redis-replication.yaml index f3730e0ee..0e69cdefc 100644 --- a/example/v1beta2/volume_mount/redis-replication.yaml +++ b/example/v1beta2/volume_mount/redis-replication.yaml @@ -1,7 +1,8 @@ +--- apiVersion: redis.redis.opstreelabs.in/v1beta2 kind: RedisReplication metadata: - name: redis-replication + name: redis-replication spec: clusterSize: 3 # redisConfig: @@ -16,7 +17,7 @@ spec: limits: cpu: 101m memory: 128Mi - # redisSecret: + # redisSecret: # name: redis-secret # key: password # imagePullSecrets: diff --git a/example/v1beta2/volume_mount/redis-standalone.yaml b/example/v1beta2/volume_mount/redis-standalone.yaml index 9aa9b3654..e8e6f2c46 100644 --- a/example/v1beta2/volume_mount/redis-standalone.yaml +++ b/example/v1beta2/volume_mount/redis-standalone.yaml @@ -1,3 +1,4 @@ +--- apiVersion: redis.redis.opstreelabs.in/v1beta2 kind: Redis metadata: @@ -15,7 +16,7 @@ spec: limits: cpu: 101m memory: 128Mi - # redisSecret: + # redisSecret: # name: redis-secret # key: password # imagePullSecrets: