Skip to content

Conversation

cahartma
Copy link
Contributor

Description

This feature adds the use_apiserver_cache config to the vector.toml and a configurable rollout strategy maxUnavailable to the DS.
Both of these are currently enabled via annotations in the CLF. Future effort will move these to the forwarder spec.

Verifying

Besides collector conditions and status, the following commands can be used to verify the two options:
oc get cm/my-forwarder-config -o jsonpath='{.data.vector\.toml}' |grep use_apiserver_cache
oc get ds/my-forwarder -oyaml -o jsonpath='{.spec.updateStrategy.rollingUpdate.maxUnavailable}'

/cc @Clee2691 @vparfonov @jcantrill
/assign @xperimental

Links

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jun 26, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Jun 26, 2025

@cahartma: This pull request references LOG-7196 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.8.0" version, but no target version was set.

In response to this:

Description

This feature adds the use_apiserver_cache config to the vector.toml and a configurable rollout strategy maxUnavailable to the DS.
Both of these are currently enabled via annotations in the CLF. Future effort will move these to the forwarder spec.

Verifying

Besides collector conditions and status, the following commands can be used to verify the two options:
oc get cm/my-forwarder-config -o jsonpath='{.data.vector\.toml}' |grep use_apiserver_cache
oc get ds/my-forwarder -oyaml -o jsonpath='{.spec.updateStrategy.rollingUpdate.maxUnavailable}'

/cc @Clee2691 @vparfonov @jcantrill
/assign @xperimental

Links

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 openshift-eng/jira-lifecycle-plugin repository.

Copy link
Contributor

openshift-ci bot commented Jun 26, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cahartma

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-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 26, 2025
@anpingli
Copy link

anpingli commented Jun 26, 2025

Run some test to-cloudwatch and to-lokistack. the Vector works well when use_apiserver_cache enabled.
The DaemonSet rollingUpdate.maxUnavailable is set as what .spec.updateStrategy.rollingUpdate.maxUnavailable is specified.

@cahartma
Copy link
Contributor Author

cahartma commented Jun 26, 2025

... as what .spec.updateStrategy.rollingUpdate.maxUnavailable is specified.

@anpingli instead do you mean it matches the value set in the annotation?

@cahartma cahartma force-pushed the LOG-7196-kube-api-caching-and-rollout-annotation branch from af54a5e to c141600 Compare June 26, 2025 13:36
@cahartma cahartma force-pushed the LOG-7196-kube-api-caching-and-rollout-annotation branch from c141600 to 7aff2a7 Compare June 26, 2025 16:01
Copy link
Contributor

openshift-ci bot commented Jun 26, 2025

@cahartma: all tests passed!

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-sigs/prow repository. I understand the commands that are listed here.

@vparfonov
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 26, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 6b13ce2 into openshift:master Jun 26, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants