-
Notifications
You must be signed in to change notification settings - Fork 606
Update Cortex to be installable on any k8s cluster on AWS and GCP #1837
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: directory manifests → chart
pkg/operator/config/config.go
Outdated
| OperatorMetadata *clusterconfig.OperatorMetadata | ||
|
|
||
| Cluster *clusterconfig.BaseConfig | ||
| fullClusterConfig *clusterconfig.InternalConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can be public
pkg/operator/config/config.go
Outdated
| Cluster *clusterconfig.BaseConfig | ||
| fullClusterConfig *clusterconfig.InternalConfig | ||
| GCPCluster *clusterconfig.GCPBaseConfig | ||
| gcpFullClusterConfig *clusterconfig.InternalGCPConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can be public
pkg/operator/config/config.go
Outdated
| return err | ||
| } | ||
| if !exists { | ||
| return errors.ErrorUnexpected("the specified bucket either does not exist", gcpFullClusterConfig.Bucket) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: revisit this error message
pkg/operator/config/config.go
Outdated
| if gcpFullClusterConfig.Bucket == "" { | ||
| gcpFullClusterConfig.Bucket = clusterconfig.GCPBucketName(gcpFullClusterConfig.ClusterName, *gcpFullClusterConfig.Project, *gcpFullClusterConfig.Zone) | ||
| err := GCP.CreateBucket(gcpFullClusterConfig.Bucket, gcp.ZoneToRegion(*gcpFullClusterConfig.Zone), true) | ||
| if err != nil { | ||
| return err | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this section
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed the helm charts in general and committed a few minor changes
Overall LGTM
closes #1808
checklist:
make testandmake lintsummary.md(view in gitbook after merging)