Repository navigation
Conversation
…andling and config selection
…onfigWorkloadBindingCleanup methods
| } | ||
|
|
||
| func (c *Operator) provisionAlertmanagerConfiguration(ctx context.Context, am *monitoringv1.Alertmanager, store *assets.StoreBuilder) error { | ||
| func (c *Operator) getAlertmanagerVersion(am *monitoringv1.Alertmanager) (semver.Version, error) { |
There was a problem hiding this comment.
(nit) it doesn't have to be an Operator method?
|
It seems that the test needs some fixing but overall LGTM. |
|
getting this error while running locally |
|
error is happening here, k is "" for alertmanagerConfig @simonpasquier |
|
I suspect that the Alertmanager controller needs to call |
|
@simonpasquier i have added the typeinfo , but now the panic is happening in UpdateStatus This is the error msg |
| return | ||
| } | ||
|
|
||
| if err := k8sutil.AddTypeInformationToObject(amConfig); err != nil { |
There was a problem hiding this comment.
it should probably happen right after c.accessor.MetaNamespaceKey() and we can also call obj.DeepCopy()
| // configurations. | ||
| type Operator struct { | ||
| kclient kubernetes.Interface | ||
| dclient dynamic.Interface |
There was a problem hiding this comment.
didn't we forget to initialize dclient?
…andling in AlertmanagerConfig selection
|
@simonpasquier I raised a new pull request for this change following the same logic with improved changes as discussed with @yp969803 on slack. |
Kindly add @yp969803 as Co-Authored By in commit message |
|
This pull request is being closed because it had no activity in the last 180 days. This is not a signal from the maintainers that the PR has no value. We appreciate the time and effort that you put into this work. If you're willing to re-open it, the maintainers will do their best to review it. |
Description
Closes: #7996
Type of change
What type of changes does your code introduce to the Prometheus operator? Put an
xin the box that apply.CHANGE(fix or feature that would cause existing functionality to not work as expected)FEATURE(non-breaking change which adds functionality)BUGFIX(non-breaking change which fixes an issue)ENHANCEMENT(non-breaking change which improves existing functionality)NONE(if none of the other choices apply. Example, tooling, build system, CI, docs, etc.)Verification
Please check the Prometheus-Operator testing guidelines for recommendations about automated tests.
Changelog entry
Please put a one-line changelog entry below. This will be copied to the changelog file during the release process.