Skip to content

Conversation

@manueljishi
Copy link
Contributor

This PR builds on top of #900 to enable trusted_addresses option and bump chart version for automatic deployment


trusted_addresses:
- 127.0.0.1
- 172.18.0.0/16
Copy link
Contributor

Choose a reason for hiding this comment

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

The 172.18.0.0/16 does not appear suitable as one of the default values. I believe we can keep only 127.0.0.1.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need defaults? Should we just use empty list as default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe since this is an opt-out feature, some default values may make it more visible for the end user. So I'd leave some default values

Copy link
Contributor

Choose a reason for hiding this comment

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

It's potentially a breaking change to users, who previously didn't want to set trusted addresses

@bzp2010
Copy link
Contributor

bzp2010 commented Nov 25, 2025

BTW, you'll also need to run the make helm-docs to update the documentation. Simply execute the command and commit the changes; this will resolve the CI errors.

| apisix.status.ip | string | `"0.0.0.0"` | |
| apisix.status.port | int | `7085` | |
| apisix.stream_plugins | list | `[]` | Customize the list of APISIX stream_plugins to enable. By default, APISIX's [default stream_plugins](https://github.com/apache/apisix/blob/master/apisix/cli/config.lua#L294) are automatically used. |
| apisix.trustedAddresses[0] | string | `"127.0.0.1"` | |
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
| apisix.trustedAddresses[0] | string | `"127.0.0.1"` | |
| apisix.trustedAddresses | list | `["127.0.0.1"]` | |

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this auto generated or manually edited?

Choose a reason for hiding this comment

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

According to https://github.com/norwoodj/helm-docs, I think it was auto-generated. Adding a comment as I suggested will resolve this.

Documentation quote:

The following rules are used to determine which values will be added to the values table in the README:

  • By default, only leaf nodes, that is, fields of type int, string, float, bool, empty lists, and empty maps are added as rows in the values table. These fields will be added even if they do not have a description comment
  • Lists and maps which contain elements will not be added as rows in the values table unless they have a description comment which refers to them
  • Adding a description comment for a non-empty list or map in this way makes it so that leaf nodes underneath the described field will not be automatically added to the values table. In order to document both a non-empty list/map and a leaf node within that field, description comments must be added for both

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see, will adapt the changes in a sec

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ngclinflows as you said, after the comment, the docs show the correct type

@Baoyuantop Baoyuantop merged commit bdfe0b7 into apache:master Nov 26, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants