-
Notifications
You must be signed in to change notification settings - Fork 104
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
removed init container for Postgres DB pod #1317
Conversation
- name: db | ||
mountPath: /var/lib/pgsql | ||
- name: noobaa-postgres-initdb-sh-volume | ||
mountPath: /init | ||
containers: |
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.
Removing all the init containers will result in this code failing as it expects init_containers[0] to exist:
noobaa-operator/pkg/system/phase2_creating.go
Line 1537 in 6ddc25e
upgradeContainer := podSpec.InitContainers[0] |
76c01ce
to
6ab46ba
Compare
Converted back to draft. Still have some work to do with respect to DB upgrades |
bb8bb50
to
5feb1dc
Compare
9869af0
to
48504c0
Compare
* The init container was used to workaround an issue with hugepages which seems to be solved. * After removing it, there is no need for privileged container and for DB scc Signed-off-by: Danny Zaken <[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.
LGTM
}, | ||
) | ||
// remove the init conatainer. It was used to workaround a hugepages issue, which was resolved in Postgres | ||
podSpec.InitContainers = nil |
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.
Do we need this?
Explain the changes
Issues: Fixed #xxx / Gap #xxx
Testing Instructions: