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

Update Result API container env #2622

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pratap0007
Copy link
Contributor

Earlier Result API container env was not getting updated if any fields in Result API properties gets updated, now this patch updates Result API container env with updated Result API properties

Changes

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

Release Notes

Update Result API container env

-->

Earlier Result API container env was not getting updated if any fields in
Result API properties gets updated, now this patch updates Result API
container env with updated Result API properties

Signed-off-by: Shiv Verma <[email protected]>
@tekton-robot tekton-robot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Mar 7, 2025
@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign vdemeester after the PR has been reviewed.
You can assign the PR to them by writing /assign @vdemeester in a comment when ready.

The full list of commands accepted by this bot can be found 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

@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Mar 7, 2025
@tekton-robot
Copy link
Contributor

The following is the coverage report on the affected files.
Say /test pull-tekton-operator-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/reconciler/kubernetes/tektonresult/transform.go 78.8% 80.5% 1.7

@l-qing
Copy link
Member

l-qing commented Mar 8, 2025

This issue #2600 is also a similar problem, where certain properties logs_api in TektonConfig are not accurately applied to TektonResults deployment.

types := reflect.TypeOf(p)
prop := make(map[string]string)

applyLokiStackConfig(prop, s.LokiStackProperties)
Copy link
Member

Choose a reason for hiding this comment

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

what happens if an error happens on applyLokiStackConfig

@@ -271,6 +272,119 @@ func updateApiConfig(s v1alpha1.TektonResultSpec) mf.Transformer {
}
}

// update the api container envs
Copy link
Member

Choose a reason for hiding this comment

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

can you add more description here to show up that it also aupdates lockistack
that it is restricted for deployment and container with specific anmes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants