Fix: tenant-root domain always overrided to example.org - #10
Merged
Merged
Conversation
Andrei Kvapil (kvaps)
requested review from
Eduard Generalov (egeneralov) and
George Gaál (gecube)
February 9, 2024 11:59
Andrei Kvapil (kvaps)
force-pushed
the
fix-root-domain
branch
from
February 9, 2024 12:14
28577bc to
b532b97
Compare
György Gaál (gaalw)
approved these changes
Feb 9, 2024
|
|
||
| show: | ||
| helm template -n $(NAMESPACE) $(NAME) . --dry-run=server | ||
| helm template -n $(NAMESPACE) $(NAME) . --dry-run=server $$(kubectl api-versions | awk '{print "-a " $$1}') |
There was a problem hiding this comment.
I don't like interpolations with
$(bash_command)
or
`(bash_command)`
as they can lead to very difficult to debug errors. The better approach is to use xargs:
kubectl api-versions | awk '{print "-a " $$1}' | xargs -r -I{} helm template -n $(NAMESPACE) $(NAME) . --dry-run=server {}in case if awk will return empty string, xargs won't run at all.
There was a problem hiding this comment.
like bonus - you don't need to use awkward syntax like double dollar
Member
Author
There was a problem hiding this comment.
yeah, but you still need it for awk :)
Member
Author
There was a problem hiding this comment.
I still have concerns about using xargs it might work diferent on various systems, awk is always the same.
There was a problem hiding this comment.
Not 100% accurate, you have gawk and mawk :)
George Gaál (gecube)
approved these changes
Feb 9, 2024
Signed-off-by: Andrei Kvapil <[email protected]>
Andrei Kvapil (kvaps)
force-pushed
the
fix-root-domain
branch
from
February 9, 2024 12:19
b532b97 to
ddb4682
Compare
Member
Author
|
George Gaál (@gecube) I rebased the PR to use pure Makefile, without any |
This was referenced Aug 4, 2025
7 tasks done
Matthieu ROBIN (matthieu-robin)
pushed a commit
to matthieu-robin/cozystack
that referenced
this pull request
May 17, 2026
Following kvaps' review, move the ZK→KRaft migration logic out of the chart templates and into a pre-upgrade Job gated by a <release>-kafka-deployed-version ConfigMap (seaweedfs/etcd pattern). The chart now ships pure KRaft on day one: - Kafka CR always renders with strimzi.io/kraft=enabled and no spec.zookeeper block. - All lookup-based state detection is removed from kafka.yaml, kafkanodepools.yaml, metrics-configmap.yaml, workloadmonitor.yaml and dashboard-resourcemap.yaml. - The zookeeper: block is dropped from values.yaml, values.schema.json, types.go and the kafka-rd openAPISchema. Migration of existing ZK clusters is handled by a new templates/migration-hook.yaml that renders only when the version ConfigMap is missing or below "1". The Job creates broker + controller KafkaNodePools (with Helm ownership labels so the subsequent chart apply can adopt them), annotates the Kafka CR with strimzi.io/node-pools=enabled and strimzi.io/kraft=migration, polls status.kafkaMetadataState until KRaftPostMigration or later, flips the annotation to enabled and waits for KRaft. Deviation from kvaps' proposal: separate broker+controller pools instead of a combined pool. Strimzi 0.45 does not support migration into a combined pool, so a homogeneous separate-pool layout works for both fresh installs and migrations without conditional logic. Other review fixes: - _versions.tpl: sortAlpha on the allowed-versions error message (cozystack#10). - e2e: rebased on main (event-driven kubectl waits), drops zookeeper readiness checks. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Matthieu ROBIN (matthieu-robin)
pushed a commit
to matthieu-robin/cozystack
that referenced
this pull request
May 17, 2026
Following kvaps' review, move the ZK→KRaft migration logic out of the chart templates and into a pre-upgrade Job gated by a <release>-kafka-deployed-version ConfigMap (seaweedfs/etcd pattern). The chart now ships pure KRaft on day one: - Kafka CR always renders with strimzi.io/kraft=enabled and no spec.zookeeper block. - All lookup-based state detection is removed from kafka.yaml, kafkanodepools.yaml, metrics-configmap.yaml, workloadmonitor.yaml and dashboard-resourcemap.yaml. - The zookeeper: block is dropped from values.yaml, values.schema.json, types.go and the kafka-rd openAPISchema. Migration of existing ZK clusters is handled by a new templates/migration-hook.yaml that renders only when the version ConfigMap is missing or below "1". The Job creates broker + controller KafkaNodePools (with Helm ownership labels so the subsequent chart apply can adopt them), annotates the Kafka CR with strimzi.io/node-pools=enabled and strimzi.io/kraft=migration, polls status.kafkaMetadataState until KRaftPostMigration or later, flips the annotation to enabled and waits for KRaft. Deviation from kvaps' proposal: separate broker+controller pools instead of a combined pool. Strimzi 0.45 does not support migration into a combined pool, so a homogeneous separate-pool layout works for both fresh installs and migrations without conditional logic. Other review fixes: - _versions.tpl: sortAlpha on the allowed-versions error message (cozystack#10). - e2e: rebased on main (event-driven kubectl waits), drops zookeeper readiness checks. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> Signed-off-by: Matthieu <[email protected]>
4 tasks done
myasnikovdaniil
added a commit
that referenced
this pull request
Sep 25, 2026
A hand backport that carries more than one change names all of them in one phrase -- "Backport of #3938 and #4280", or "Backport of #4253 to `release-1.6`, together with #3460" for a dependency pulled along -- and the audit read only the first number after "Backport of". The rest were linked to nothing. A labelled original in second place then read as MISSING while its backport PR was still open, instead of pending, and once that PR merged it counted as landed only if the branch history happened to prove it. Read the whole reference list the phrase carries, and the together-with form this repository writes. A list counts in full only when it visibly ends: at the end of the line or the sentence, or where a "to release-X.Y" clause names the target line, with the line name a whole word: release-1.6-fixes, release-1.6.1 and release-1.6.fixes are not lines, so punctuation after the name ends it only when a space or the end of the text follows. One that runs on into anything else -- "Backport of #10, #20 is not included", or "#10, #20 to follow in a separate PR" -- may be saying something about its later items, so only its first reference, the one the phrase names directly, is kept. The issue a backport fixes, or a CI run it cites further on in the body, is never taken for an original. A reference qualified with another repository is now skipped instead of read as a local number. That also tightens the old first-number rule, which accepted any owner/repo prefix: "Backport of other/repo#20" linked local #20, so a merged backport of something unrelated could turn that PR's MISSING verdict into backported. Only a bare #N or one qualified with the repository the backport PR itself lives in, compared without regard to case, is an original. Over every PR on release-1.4, release-1.5 and release-1.6 this changes the links of exactly four: #4456 and #4421 each gain #4280, #4377 gains #4231 and #4328 gains #3460. No verdict moves today, since none of the added originals carries a backport label. Assisted-by: LLM Signed-off-by: Myasnikov Daniil <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
.Capabilities.APIVersions.Has "helm.toolkit.fluxcd.io/v2beta1does not work for Helm Template, so we must explicity pass apiversions tohelm templatecommandsee: helm/helm#10760