Skip to content

pkg/operator: improvements#142

Merged
invidian merged 13 commits intomasterfrom
invidian/further-improvements
Feb 23, 2022
Merged

pkg/operator: improvements#142
invidian merged 13 commits intomasterfrom
invidian/further-improvements

Conversation

@invidian
Copy link
Member

@invidian invidian commented Feb 22, 2022

Taking some experience from #116, this PR improves operator code and it's tests.

Closes #141

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
So config is before kontroller, as it is more natural to reader.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
It's use has been removed in a3c4094.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
@invidian invidian force-pushed the invidian/further-improvements branch from 3f9fb32 to 4c1d5f5 Compare February 22, 2022 12:28
This also prevents code from panicking when creating operator instance
using fake client in tests.

Also create events client in operator namespace, instead of using global
namespaces, as otherwise publishing events is broken and add test to
verify events publishing.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
This suppose to be removed in a35ae32.

This field is no longer used.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
So it is not stored in a struct, as this value is not shared in any way,
but it's just initialized when it's needed.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
So we get more information in case of a failure.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
@invidian invidian force-pushed the invidian/further-improvements branch from 4c1d5f5 to 0cb7b72 Compare February 22, 2022 12:40
This is a step to resolve #141.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
Instead, run operator and wait until it finishes the cycle.

Part of #141

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
So they can be clearly adjusted in tests.

WIP, still need to add tests for default values.

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
Closes #141

Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
Signed-off-by: Mateusz Gozdek <mgozdek@microsoft.com>
@invidian invidian force-pushed the invidian/further-improvements branch from d19ed80 to e8f68f3 Compare February 23, 2022 09:16
@invidian invidian merged commit 65f82bf into master Feb 23, 2022
@invidian invidian deleted the invidian/further-improvements branch February 23, 2022 10:08
@invidian invidian added this to the v0.9.0 milestone Jun 1, 2022
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.

Convert operator tests to blackbox tests

1 participant