Skip to content

[Feature]: Add InitContainer Field#458

Merged
shubham-cmyk merged 3 commits intoOT-CONTAINER-KIT:masterfrom
drivebyer:add_init_container_param
Apr 10, 2023
Merged

[Feature]: Add InitContainer Field#458
shubham-cmyk merged 3 commits intoOT-CONTAINER-KIT:masterfrom
drivebyer:add_init_container_param

Conversation

@drivebyer
Copy link
Copy Markdown
Collaborator

Description

Add initcontainer field in cr.

Init container can do task before redis startup, such as recover task. In init container, we can share volume with redis container and prepare data volume(backup set from remote S3) for it.

Fixes #ISSUE

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • Testing has been performed
  • No functionality is broken
  • Documentation updated

@drivebyer drivebyer changed the title add initcontainer field feat: add initcontainer field Mar 10, 2023
@drivebyer
Copy link
Copy Markdown
Collaborator Author

PTAL @shubham-cmyk @iamabhishek-dubey

@drivebyer drivebyer force-pushed the add_init_container_param branch from 83b5463 to c6f60a6 Compare March 14, 2023 02:02
@shubham-cmyk
Copy link
Copy Markdown
Member

shubham-cmyk commented Apr 5, 2023

It's a good idea to have an init Container for the restoration; even I was thinking the same. But we don't need here a complete container in the CR but a minimum required field.

Here is some reference to the sidecar that we can launch
image

@drivebyer

@shubham-cmyk
Copy link
Copy Markdown
Member

Restore and backup bash script is on the to-do list and I would be added in the next release.

Signed-off-by: drivebyer <yang.wu@daocloud.io>
@drivebyer drivebyer force-pushed the add_init_container_param branch from c6f60a6 to 66dd3af Compare April 6, 2023 05:40
@drivebyer
Copy link
Copy Markdown
Collaborator Author

drivebyer commented Apr 6, 2023

But we don't need here a complete container in the CR but a minimum required field.

Fixed according to suggestion. @shubham-cmyk

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Copy link
Copy Markdown
Member

@shubham-cmyk shubham-cmyk left a comment

Choose a reason for hiding this comment

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

Update the initContainer

shubham-cmyk

This comment was marked as off-topic.

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
@shubham-cmyk shubham-cmyk changed the title feat: add initcontainer field [Feature]: Add InitContainer Field Apr 10, 2023
@shubham-cmyk shubham-cmyk merged commit 832a4f7 into OT-CONTAINER-KIT:master Apr 10, 2023
Sasidharan3094 pushed a commit to Sasidharan3094/redis-operator that referenced this pull request Apr 14, 2023
* Add init container fields

Signed-off-by: drivebyer <yang.wu@daocloud.io>

* define : init Container

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>

* update : name of Init Container

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>

---------

Signed-off-by: drivebyer <yang.wu@daocloud.io>
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Co-authored-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>
shubham-cmyk added a commit that referenced this pull request Apr 17, 2023
* [Feature]: Add InitContainer Field (#458)

* Add init container fields

Signed-off-by: drivebyer <yang.wu@daocloud.io>

* define : init Container

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>

* update : name of Init Container

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>

---------

Signed-off-by: drivebyer <yang.wu@daocloud.io>
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Co-authored-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>

* initial commit

Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>

* updating

Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>

* + Sidecar features & termgraceperiodsecs

Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>

* generating manager

Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>

* PR Comments

Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>

* Feature : ACL redis via secret (#486)

* Feature : acl-redis via configmap

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>

* update : acl volume source from config to secret

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>

* update : examples

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>

---------

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>

* bugFix

Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>

* fix

---------

Signed-off-by: drivebyer <yang.wu@daocloud.io>
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>
Co-authored-by: drivebyer <yang.wu@daocloud.io>
Co-authored-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Co-authored-by: Sasidharan Gopal <sasidharan.gopal@freshworks.com>
Co-authored-by: Shubham Gupta <69793468+shubham-cmyk@users.noreply.github.com>
@drivebyer drivebyer deleted the add_init_container_param branch May 11, 2023 10:14
jiuker pushed a commit to jiuker/redis-operator-1 that referenced this pull request Jul 20, 2023
* Add init container fields

Signed-off-by: drivebyer <yang.wu@daocloud.io>

* define : init Container

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>

* update : name of Init Container

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>

---------

Signed-off-by: drivebyer <yang.wu@daocloud.io>
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Co-authored-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Signed-off-by: guozhi.li <guozhi.li@daocloud.io>
jiuker pushed a commit to jiuker/redis-operator-1 that referenced this pull request Jul 20, 2023
)

* [Feature]: Add InitContainer Field (OT-CONTAINER-KIT#458)

* Add init container fields

Signed-off-by: drivebyer <yang.wu@daocloud.io>

* define : init Container

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>

* update : name of Init Container

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>

---------

Signed-off-by: drivebyer <yang.wu@daocloud.io>
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Co-authored-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>

* initial commit

Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>

* updating

Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>

* + Sidecar features & termgraceperiodsecs

Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>

* generating manager

Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>

* PR Comments

Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>

* Feature : ACL redis via secret (OT-CONTAINER-KIT#486)

* Feature : acl-redis via configmap

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>

* update : acl volume source from config to secret

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>

* update : examples

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>

---------

Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>

* bugFix

Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>

* fix

---------

Signed-off-by: drivebyer <yang.wu@daocloud.io>
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Signed-off-by: Sasidharan-3094 <sasidharan.gopal94@gmail.com>
Co-authored-by: drivebyer <yang.wu@daocloud.io>
Co-authored-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Co-authored-by: Sasidharan Gopal <sasidharan.gopal@freshworks.com>
Co-authored-by: Shubham Gupta <69793468+shubham-cmyk@users.noreply.github.com>
Signed-off-by: guozhi.li <guozhi.li@daocloud.io>
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.

2 participants