Skip to content
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

Merged
merged 12 commits into from
Mar 13, 2019
Merged

Support for init container #405

merged 12 commits into from
Mar 13, 2019

Conversation

iamrz1
Copy link
Contributor

@iamrz1 iamrz1 commented Mar 11, 2019

Signed-off-by: iamrz1 [email protected]

@iamrz1 iamrz1 marked this pull request as ready for review March 11, 2019 07:50
@@ -19,166 +19,178 @@ spec:
apiVersion: catalog.kubedb.com/v1alpha1
kind: ElasticsearchVersion
metadata:
name: "5.6-v1"
Copy link
Member

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.

Copy link
Member

@tamalsaha tamalsaha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@the-redback the-redback left a 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

@tamalsaha tamalsaha merged commit 92199b1 into master Mar 13, 2019
@tamalsaha tamalsaha deleted the init-cont branch March 13, 2019 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants