Skip to content

Commit 40555be

Browse files
committed
feat: add fsGroupChangePolicy to persisitentVolume configuration
1 parent 7efd515 commit 40555be

13 files changed

Lines changed: 240 additions & 209 deletions

File tree

stackgres-k8s/src/common/src/main/java/io/stackgres/common/crd/sgcluster/StackGresClusterPodsPersistentVolume.java

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public class StackGresClusterPodsPersistentVolume {
3030

3131
private String storageClass;
3232

33+
private String fsGroupChangePolicy;
34+
3335
public String getSize() {
3436
return size;
3537
}
@@ -46,9 +48,17 @@ public void setStorageClass(String storageClass) {
4648
this.storageClass = storageClass;
4749
}
4850

51+
public String getFsGroupChangePolicy() {
52+
return fsGroupChangePolicy;
53+
}
54+
55+
public void setFsGroupChangePolicy(String fsGroupChangePolicy) {
56+
this.fsGroupChangePolicy = fsGroupChangePolicy;
57+
}
58+
4959
@Override
5060
public int hashCode() {
51-
return Objects.hash(storageClass, size);
61+
return Objects.hash(fsGroupChangePolicy, size, storageClass);
5262
}
5363

5464
@Override
@@ -60,8 +70,8 @@ public boolean equals(Object obj) {
6070
return false;
6171
}
6272
StackGresClusterPodsPersistentVolume other = (StackGresClusterPodsPersistentVolume) obj;
63-
return Objects.equals(storageClass, other.storageClass)
64-
&& Objects.equals(size, other.size);
73+
return Objects.equals(fsGroupChangePolicy, other.fsGroupChangePolicy)
74+
&& Objects.equals(size, other.size) && Objects.equals(storageClass, other.storageClass);
6575
}
6676

6777
@Override

stackgres-k8s/src/common/src/main/resources/crds/SGBackup.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ spec:
358358
type: object
359359
required: ["accessKeyId", "secretAccessKey"]
360360
description: |
361-
Kubernetes [SecretKeySelector](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#secretkeyselector-v1-core)(s) to reference the Secrets that contain the information about the `awsCredentials`. Note that you may use the same or different Secrets for the `accessKeyId` and the `secretAccessKey`. In the former case, the `keys` that identify each must be, obviously, different.
361+
Kubernetes [SecretKeySelector](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.35/#secretkeyselector-v1-core)(s) to reference the Secrets that contain the information about the `awsCredentials`. Note that you may use the same or different Secrets for the `accessKeyId` and the `secretAccessKey`. In the former case, the `keys` that identify each must be, obviously, different.
362362
properties:
363363
accessKeyId:
364364
type: object
@@ -427,7 +427,7 @@ spec:
427427
type: object
428428
required: ["accessKeyId", "secretAccessKey"]
429429
description: |
430-
Kubernetes [SecretKeySelector](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#secretkeyselector-v1-core)(s) to reference the Secret(s) that contain the information about the `awsCredentials`. Note that you may use the same or different Secrets for the `accessKeyId` and the `secretAccessKey`. In the former case, the `keys` that identify each must be, obviously, different.
430+
Kubernetes [SecretKeySelector](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.35/#secretkeyselector-v1-core)(s) to reference the Secret(s) that contain the information about the `awsCredentials`. Note that you may use the same or different Secrets for the `accessKeyId` and the `secretAccessKey`. In the former case, the `keys` that identify each must be, obviously, different.
431431
properties:
432432
accessKeyId:
433433
type: object
@@ -497,7 +497,7 @@ spec:
497497
type: object
498498
required: [ "serviceAccountJSON" ]
499499
description: |
500-
A Kubernetes [SecretKeySelector](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#secretkeyselector-v1-core) to reference the Secrets that contain the information about the Service Account to access GCS.
500+
A Kubernetes [SecretKeySelector](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.35/#secretkeyselector-v1-core) to reference the Secrets that contain the information about the Service Account to access GCS.
501501
properties:
502502
serviceAccountJSON:
503503
type: object
@@ -533,7 +533,7 @@ spec:
533533
type: object
534534
required: [ "storageAccount", "accessKey" ]
535535
description: |
536-
Kubernetes [SecretKeySelector](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.34/#secretkeyselector-v1-core)(s) to reference the Secret(s) that contain the information about the `azureCredentials`. . Note that you may use the same or different Secrets for the `storageAccount` and the `accessKey`. In the former case, the `keys` that identify each must be, obviously, different.
536+
Kubernetes [SecretKeySelector](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.35/#secretkeyselector-v1-core)(s) to reference the Secret(s) that contain the information about the `azureCredentials`. . Note that you may use the same or different Secrets for the `storageAccount` and the `accessKey`. In the former case, the `keys` that identify each must be, obviously, different.
537537
properties:
538538
storageAccount:
539539
type: object

stackgres-k8s/src/common/src/main/resources/crds/SGCluster.yaml

Lines changed: 62 additions & 60 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)