Skip to content
This repository has been archived by the owner on Apr 17, 2019. It is now read-only.

[nginx-ingress-controller]: Add function helpers to nginx template #1711

Merged

Conversation

aledbf
Copy link
Contributor

@aledbf aledbf commented Sep 7, 2016

fixes #1695


This change is Reviewable

@aledbf
Copy link
Contributor Author

aledbf commented Sep 8, 2016

@bprashanth ping

@bprashanth
Copy link

For my own edification, can you elaboration how one leverages this, do we need a custom template (haven't parsed the entire issue)?

@aledbf
Copy link
Contributor Author

aledbf commented Sep 9, 2016

do we need a custom template (haven't parsed the entire issue)?

Yes. This PR just add new helpers to the template to avoid compiling a custom controller like in #1695

Copy link

@tjliupeng tjliupeng left a comment

Choose a reason for hiding this comment

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

That's great to enable extra string operation in the template file.

@aledbf
Copy link
Contributor Author

aledbf commented Sep 19, 2016

@bprashanth ping

@test-foxish
Copy link

recomputing cla status...

@k8s-github-robot k8s-github-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 22, 2016
Copy link

@tjliupeng tjliupeng left a comment

Choose a reason for hiding this comment

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

LGTM.

@bprashanth
Copy link

LGTM, please document an example of how one uses it so the wider community can avail of the new functions (ok to do this in a follow up pr)

@bprashanth bprashanth added the lgtm Indicates that a PR is ready to be merged. label Sep 26, 2016
@k8s-github-robot
Copy link

Automatic merge from submit-queue

@k8s-github-robot k8s-github-robot merged commit 4a7b079 into kubernetes-retired:master Sep 26, 2016
k8s-github-robot pushed a commit that referenced this pull request Sep 26, 2016
Automatic merge from submit-queue

[nginx-ingress-controller] Add docs about go template

Address #1711 (comment)
@aledbf aledbf deleted the add-helper-to-funcmap branch September 27, 2016 02:57
aledbf pushed a commit to aledbf/contrib that referenced this pull request Nov 10, 2016
…funcmap

Automatic merge from submit-queue

[nginx-ingress-controller]: Add function helpers to nginx template

fixes kubernetes-retired#1695
aledbf pushed a commit to aledbf/contrib that referenced this pull request Nov 10, 2016
Automatic merge from submit-queue

[nginx-ingress-controller] Add docs about go template

Address kubernetes-retired#1711 (comment)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Ingress] How to use regexp in nginx.tmpl?
6 participants