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

Add Funcs() method to UpdateVirtualServerTemplate method #3870

Merged
merged 2 commits into from
May 9, 2023

Conversation

coolbry95
Copy link
Contributor

Proposed changes

Currently using a custom template for virtualservers will result in this error. This is because the helper function used does not exist when updating the virtualserver template only when using the default virtualserver template.
I0505 15:29:26.116535 1 event.go:285] Event(v1.ObjectReference{Kind:"VirtualServer", Namespace:"egress-proxy-qa", Name:"pubsub", UID:"cea53bfa-7c8f-4923-9658-4d35b370bf9e", APIVersion:"k8s.nginx.org/v1", ResourceVersion:"388565630", FieldPath:""}): type: 'Warning' reason: 'AddedOrUpdatedWithError' Configuration for egress-proxy-qa/pubsub was added or updated ; but was not applied: error when parsing the VirtualServer template: template: virtualServerTemplate:550: function "headerListToCIMap" not defined

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have updated necessary documentation
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch from my own fork

@coolbry95 coolbry95 requested a review from a team as a code owner May 5, 2023 17:16
@codecov
Copy link

codecov bot commented May 5, 2023

Codecov Report

Merging #3870 (4b0ba7e) into main (19b8ad1) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main    #3870   +/-   ##
=======================================
  Coverage   51.95%   51.95%           
=======================================
  Files          59       59           
  Lines       16759    16759           
=======================================
  Hits         8707     8707           
  Misses       7756     7756           
  Partials      296      296           
Impacted Files Coverage Δ
internal/configs/version2/template_executor.go 60.46% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@lucacome lucacome added the bug An issue reporting a potential bug label May 6, 2023
Copy link
Member

@lucacome lucacome left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @coolbry95 !

@github-actions github-actions bot removed the bug An issue reporting a potential bug label May 9, 2023
@ciarams87 ciarams87 added the bug An issue reporting a potential bug label May 9, 2023
@ciarams87 ciarams87 merged commit adba092 into nginx:main May 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue reporting a potential bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants