-
Notifications
You must be signed in to change notification settings - Fork 58
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
Support for init container #405
Conversation
Signed-off-by: iamrz1 <[email protected]>
Signed-off-by: iamrz1 <[email protected]>
Signed-off-by: iamrz1 <[email protected]>
@@ -19,166 +19,178 @@ spec: | |||
apiVersion: catalog.kubedb.com/v1alpha1 | |||
kind: ElasticsearchVersion | |||
metadata: | |||
name: "5.6-v1" |
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.
Why was this one deleted? In general avoid making unrelated changes in a pr.
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.
Also update the chart https://github.com/kubedb/cli/tree/master/chart/kubedb-catalog/templates
Signed-off-by: iamrz1 <[email protected]>
Signed-off-by: iamrz1 <[email protected]>
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.
We may need to add initcontainers in deprecated versions too.
Otherwise, it will throw error while installation and user will get panicked.
Error from server (Invalid): error when creating "STDIN": MongoDBVersion.catalog.kubedb.com "3.6-v1" is invalid: []: Invalid value: map[string]interface {}{"spec":map[string]interface {}{"db":map[string]interface {}{"image":"maruftuhin/mongo:3.6-v1"}, "deprecated":true, "exporter":map[string]interface {}{"image":"maruftuhin/mongodb_exporter:v1.0.0"}, "tools":map[string]interface {}{"image":"maruftuhin/mongo-tools:3.6-v2"}, "version":"3.6"}, "apiVersion":"catalog.kubedb.com/v1alpha1", "kind":"MongoDBVersion", "metadata":map[string]interface {}{"creationTimestamp":"2019-03-13T08:54:46Z", "labels":map[string]interface {}{"app":"kubedb"}, "annotations":map[string]interface {}{"kubectl.kubernetes.io/last-applied-configuration":"{\"apiVersion\":\"catalog.kubedb.com/v1alpha1\",\"kind\":\"MongoDBVersion\",\"metadata\":{\"annotations\":{},\"labels\":{\"app\":\"kubedb\"},\"name\":\"3.6-v1\"},\"spec\":{\"db\":{\"image\":\"maruftuhin/mongo:3.6-v1\"},\"deprecated\":true,\"exporter\":{\"image\":\"maruftuhin/mongodb_exporter:v1.0.0\"},\"tools\":{\"image\":\"maruftuhin/mongo-tools:3.6-v2\"},\"version\":\"3.6\"}}\n"}, "generation":1, "uid":"a6d688e5-456d-11e9-8014-080027a0a2ce", "name":"3.6-v1"}}: validation failure list:
spec.initContainer in body is required
Signed-off-by: iamrz1 [email protected]