Skip to content

Conversation

@aceeric
Copy link

@aceeric aceeric commented Feb 28, 2025

Summary

The Ingress template for Mattermost Teams does not presently support overriding the pathType. In order to use Nginx path-based routing with regex's etc, you need to be able to specify pathType: ImplementationSpecific

Ticket Link

Relates to #491

@mattermost-build
Copy link
Contributor

Hello @aceeric,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

@mattermost-build
Copy link
Contributor

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds support for overriding the ingress pathType for Mattermost Teams, allowing users to configure more advanced path-based routing options.

  • Introduces a new ingress.pathType field in values.yaml with a default of "Prefix".
  • Updates the ingress template to use the configurable pathType for Kubernetes networking version v1.
  • Enhances README documentation to include details on the new ingress.pathType parameter.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
charts/mattermost-team-edition/values.yaml Adds a configurable ingress.pathType value with default "Prefix".
charts/mattermost-team-edition/templates/ingress.yaml Updates template to use the new ingress.pathType parameter for Kubernetes networking v1.
charts/mattermost-team-edition/README.md Documents the new ingress.path and ingress.pathType parameters.
Comments suppressed due to low confidence (3)

charts/mattermost-team-edition/values.yaml:61

  • Consider adding a comment that explains the allowed values for ingress.pathType (e.g., 'Prefix', 'Exact', 'ImplementationSpecific') to assist future maintainers.
  pathType: Prefix

charts/mattermost-team-edition/README.md:139

  • Consider adding a brief note on the README about the available options for ingress.pathType (e.g., 'Prefix', 'Exact', 'ImplementationSpecific') to guide users in choosing the appropriate value.
`ingress.pathType`                    | The ingress path type                                                                           | `Prefix`

charts/mattermost-team-edition/templates/ingress.yaml:34

  • Verify that using the ingress.pathType parameter outside of the API version conditional block is intentional, ensuring that the newer Kubernetes version logic is clearly separated from legacy behavior.
        pathType: {{ $.Values.ingress.pathType }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants