redpanda: correct Role and ClusterRole naming #927
Conversation
ac72c01 to
edf1dba
Compare
| } | ||
|
|
||
| select { | ||
| case <-time.After(10 * time.Second): |
There was a problem hiding this comment.
I'm opting to not make this configurable for now as I don't see a particularly pressing reason to do so.
| // continuously refreshed via [Ctl.Get] before calling cond. If ctx does not | ||
| // have a deadline a default of 5m will be used. | ||
| func (c *Ctl) WaitFor(ctx context.Context, obj Object, cond CondFn[Object]) error { | ||
| const timeout = 5 * time.Minute |
There was a problem hiding this comment.
This is configurable by passing in a context with a deadline attached.
This commit improves the ergonomics of the kube.Ctl struct by allowing configuration with variadic options and implementing Apply. These improvements have been carried over to the kubetest.NewEnv function as well. Most notably, this allows specifying the Scheme of the testenv which makes it useable when testing CRDs.
In 5d72f8a, the Names for `Role`s generated by the chart were mistakenly changed from `Fullname` to `Name`. This regression went by unnoticed as we did not have any tests that installed multiple instances of the chart into a single namespace. This commit corrects the regression and updates the naming of `ClusterRole`s to include the release namespace. This allows: - Installing multiple instances of the chart into a single namespace. - Installing multiple instances of the chart with the same release name into different namespaces.
edf1dba to
e9a6919
Compare
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
1 similar comment
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
|
@chris @RafalKorepta This should be backported for 2.4.x and 2.3.x as well |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
1 similar comment
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
In 5d72f8a, the Names for
Roles generated bythe chart were mistakenly changed from
FullnametoName. This regressionwent by unnoticed as we did not have any tests that installed multiple
instances of the chart into a single namespace.
This commit corrects the regression and updates the naming of
ClusterRoles toinclude the release namespace. This allows: