Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Remove startup-ordinal, use pre-generated job instances (affects bootstrap, etc)#1288

Merged
manno merged 7 commits intomasterfrom
template-render-ordinals
Mar 1, 2021
Merged

Remove startup-ordinal, use pre-generated job instances (affects bootstrap, etc)#1288
manno merged 7 commits intomasterfrom
template-render-ordinals

Conversation

@manno
Copy link
Member

@manno manno commented Feb 19, 2021

@manno manno added the wip label Feb 19, 2021
@manno manno force-pushed the template-render-ordinals branch 7 times, most recently from 0ab09b6 to 897c89f Compare February 24, 2021 17:14
@manno manno marked this pull request as ready for review February 25, 2021 09:12
@manno manno removed the wip label Feb 25, 2021
@manno manno changed the title WIP: change how job instances are selected (affects bootstrap, etc) Remove startup-ordinal, use pre-generated job instances (affects bootstrap, etc) Feb 25, 2021
@manno manno force-pushed the template-render-ordinals branch from 897c89f to edc80f3 Compare February 26, 2021 11:02
template-render uses the pre-generated jobInstances, like the instance-group resolver does.

* Removed startup-ordinal
* Add pod ordinal to trender args
* Also move calculations into RenderJobTemplates
* Add docs on args and failing test
* Fix for azIndex=1 with no AZs in manifest
* Use temp dir for unit tests, avoids conflicts when running in parallel
It's still necessary for some tests, so they wait the right amount of
time.
@manno manno force-pushed the template-render-ordinals branch from ffbc331 to f3b95f9 Compare February 26, 2021 12:25
The new quarks-statefulset-name label was used for setting the
startup-ordinal. However startup-ordinal was dropped.

Renaming the labels produced failures, when updating multi-az
deployments, as the sts selector has to match the spec.template.labels,
but can't be updated once created.
Didn't report right line numbers.
@manno manno force-pushed the template-render-ordinals branch from 648459f to 59c7138 Compare February 26, 2021 16:37
Also fixes for building with locally modified quarks-* operators.
@manno
Copy link
Member Author

manno commented Feb 26, 2021

Failed, becaued this version can't upgrade deployments from quarks-operator 7.1.3, which introduced the statefulset-name label. (statefulset's label selector can't be updated after creation).
Avoiding that label, ensures updates from 6.x work.

Adding another migration script.

@manno manno force-pushed the template-render-ordinals branch from 6e0ffa4 to 0e91e81 Compare March 1, 2021 16:38
@manno manno merged commit 05dd721 into master Mar 1, 2021
@manno manno deleted the template-render-ordinals branch March 1, 2021 17:36
@manno manno added the bug Something isn't working label Mar 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant