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

Fix cpinstall tag for kong-mesh #1532

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def render(context)
content = super
return "" unless content != ""
site_data = context.registers[:site].config
page = context.environments.first['page']

opts = content.strip.split("\n").map do |x|
x = site_data['set_flag_values_prefix'] + x if @prefixed
Expand All @@ -39,7 +40,7 @@ def render(context)
```
{% endtab %}
{% tab #{@tabs_name} helm %}
Before using {{site.mesh_product_name}} with helm, please follow [these steps](/docs/{{ page.version }}/production/cp-deployment/kubernetes/#helm) to configure your local helm repo.
Before using {{site.mesh_product_name}} with helm, please follow [these steps](/#{product_url_segment(page)}/{{ page.release }}/production/cp-deployment/kubernetes/#helm) to configure your local helm repo.
Automaat marked this conversation as resolved.
Show resolved Hide resolved
```shell
helm install --create-namespace --namespace {{site.mesh_namespace}} \\
#{res} \\
Expand All @@ -49,6 +50,10 @@ def render(context)
{% endtabs %}"
::Liquid::Template.parse(htmlContent).render(context)
end

def product_url_segment(page)
page['dir'].split('/')[1]
end
end
end
end
Expand Down
Loading