-
Notifications
You must be signed in to change notification settings - Fork 11
Allows use of Istio and adds multi-cloud global strong scripts #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,7 @@ import ( | |
| ctrl "sigs.k8s.io/controller-runtime" | ||
| ) | ||
|
|
||
| func GetCnpgClusterSpec(req ctrl.Request, documentdb *dbpreview.DocumentDB, documentdb_image string, serviceAccountName string, log logr.Logger) *cnpgv1.Cluster { | ||
| func GetCnpgClusterSpec(req ctrl.Request, documentdb *dbpreview.DocumentDB, documentdb_image, serviceAccountName, storageClass string, log logr.Logger) *cnpgv1.Cluster { | ||
| sidecarPluginName := documentdb.Spec.SidecarInjectorPluginName | ||
| if sidecarPluginName == "" { | ||
| sidecarPluginName = util.DEFAULT_SIDECAR_INJECTOR_PLUGIN | ||
|
|
@@ -31,9 +31,9 @@ func GetCnpgClusterSpec(req ctrl.Request, documentdb *dbpreview.DocumentDB, docu | |
| } | ||
|
|
||
| // Configure storage class - use specified storage class or nil for default | ||
| var storageClass *string | ||
| if documentdb.Spec.Resource.Storage.StorageClass != "" { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We are removing this line means for single cluster setup in AWS or GKE it will fail unless we are passing it right. From the controller I see we are only passing
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I never tried AWS without a storage class, I just ran it that way because your sample scripts had a special storage class. GKE doesn't need a non-default storage class. This is so that each member cluster can have their own unique class in the membercluster list, single cluster operations shouldn't be changed by this
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For customers who want to pass a specific storageClass for single cloud/cluster setup, they will use this
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In replication_context.go line 48 |
||
| storageClass = &documentdb.Spec.Resource.Storage.StorageClass | ||
| var storageClassPointer *string | ||
| if storageClass != "" { | ||
| storageClassPointer = &storageClass | ||
| } | ||
|
|
||
| return &cnpgv1.Cluster{ | ||
|
|
@@ -56,7 +56,7 @@ func GetCnpgClusterSpec(req ctrl.Request, documentdb *dbpreview.DocumentDB, docu | |
| Instances: documentdb.Spec.InstancesPerNode, | ||
| ImageName: documentdb_image, | ||
| StorageConfiguration: cnpgv1.StorageConfiguration{ | ||
| StorageClass: storageClass, // Use configured storage class or default | ||
| StorageClass: storageClassPointer, // Use configured storage class or default | ||
| Size: documentdb.Spec.Resource.Storage.PvcSize, | ||
| }, | ||
| InheritedMetadata: getInheritedMetadataLabels(documentdb.Name), | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.