Skip to content

Fix the openshift templates#178

Merged
phracek merged 2 commits intosclorg:masterfrom
metlos:fix-rails-postgresql
Sep 24, 2024
Merged

Fix the openshift templates#178
phracek merged 2 commits intosclorg:masterfrom
metlos:fix-rails-postgresql

Conversation

@metlos
Copy link
Copy Markdown
Contributor

@metlos metlos commented Sep 20, 2024

  • Specify that the postgresql images should be taken from openshift
  • Use an init container in the rails-postgresql template to init the database

* Specify that the postgresql images should be taken from openshift
* Use an init container in the rails-postgresql template to init the
database
@phracek
Copy link
Copy Markdown
Member

phracek commented Sep 23, 2024

[test]

"description": "Defines how to deploy the database",
"template.alpha.openshift.io/wait-for-ready": "true",
"image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"postgresql:${POSTGRESQL_VERSION}\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]"
"image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"postgresql:${POSTGRESQL_VERSION}\", \"namespace\": \"openshift\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is not needed. Before testing you are already in required 'namespace'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"description": "Defines how to deploy the database",
"template.alpha.openshift.io/wait-for-ready": "true",
"image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"postgresql:12-el8\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]"
"image.openshift.io/triggers": "[{\"from\":{\"kind\":\"ImageStreamTag\",\"name\":\"postgresql:12-el8\", \"namespace\": \"openshift\"},\"fieldPath\": \"spec.template.spec.containers[0].image\"}]"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The same here with 'namespace'

…mage

and remove the recreteParams that were not exactly working well. The
intended function is done by the initContainer.
Copy link
Copy Markdown
Member

@phracek phracek left a comment

Choose a reason for hiding this comment

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

Thanks for updating this PR. Well Done.

@phracek phracek merged commit 28f2fe3 into sclorg:master Sep 24, 2024
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