Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NETOBSERV-1427 Added support to FLP dynamic configmap #610

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

OlivierCazade
Copy link
Contributor

Description

Added support to FLP dynamic configmap

Dependencies

FLP PR

Checklist

If you are not familiar with our processes or don't know what to answer in the list below, let us know in a comment: the maintainers will take care of that.

  • Is this PR backed with a JIRA ticket? If so, make sure it is written as a title prefix (in general, PRs affecting the NetObserv/Network Observability product should be backed with a JIRA ticket - especially if they bring user facing changes).
  • Does this PR require product documentation?
    • If so, make sure the JIRA epic is labelled with "documentation" and provides a description relevant for doc writers, such as use cases or scenarios. Any required step to activate or configure the feature should be documented there, such as new CRD knobs.
  • Does this PR require a product release notes entry?
    • If so, fill in "Release Note Text" in the JIRA.
  • Is there anything else the QE team should know before testing? E.g: configuration changes, environment setup, etc.
    • If so, make sure it is described in the JIRA ticket.
  • QE requirements (check 1 from the list):
    • Standard QE validation, with pre-merge tests unless stated otherwise.
    • Regression tests only (e.g. refactoring with no user-facing change).
    • No QE (e.g. trivial change with high reviewer's confidence, or per agreement with the QE team).

go.mod Outdated
@@ -85,3 +85,5 @@ require (
)

replace github.com/prometheus/common v0.48.0 => github.com/netobserv/prometheus-common v0.48.0-netobserv

replace github.com/netobserv/flowlogs-pipeline v0.1.12-0.20240322124726-d2b2352bfe0f => github.com/OlivierCazade/flowlogs-pipeline v0.0.2-0.20240325155329-387a8ce37ceb
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: change this once the FLP PR is merged

@OlivierCazade
Copy link
Contributor Author

/hold

Comment on lines 303 to 306
hasher := fnv.New64a()
_, _ = hasher.Write([]byte(configStr))
digest := strconv.FormatUint(hasher.Sum64(), 36)
return &configMap, digest, nil
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if I'm correct, the digest here isn't used, as digests are used to restart pods, and in the case of dynamic config we precisely don't want to restart pods?
If it's not used anywhere I'd rather not generate it, also to not bring confusion about how the reconciliation works

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks.

@jotak
Copy link
Member

jotak commented Apr 19, 2024

thanks @OlivierCazade
/lgtm

@openshift-ci openshift-ci bot added the lgtm label Apr 19, 2024
Copy link

openshift-ci bot commented Apr 19, 2024

@OlivierCazade: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-operator 2d4bd22 link false /test e2e-operator

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@memodi
Copy link
Contributor

memodi commented Apr 22, 2024

@OlivierCazade this PR has DNM label, is it ready for pre-merge testing?

@OlivierCazade
Copy link
Contributor Author

@memodi Right now the PR FLP dependency is pointing to the associated PR dev branch. This PR is ready for testing but before merging we need to merge FLP PR first and then update the dependency to point to FLP main branch.

@memodi
Copy link
Contributor

memodi commented Apr 24, 2024

/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved QE has approved this pull request label Apr 24, 2024
Copy link

openshift-ci bot commented Apr 26, 2024

New changes are detected. LGTM label has been removed.

@OlivierCazade
Copy link
Contributor Author

/approve

Copy link

openshift-ci bot commented Apr 26, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: OlivierCazade

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 216e3e6 into netobserv:main Apr 26, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm qe-approved QE has approved this pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants