This repository has been archived on 2026-01-10. You can view files and clone it, but cannot push or open issues or pull requests.
coder-templates/python.tf.jinja
Steve McMaster c9140b6681
Some checks failed
continuous-integration/drone/push Build is failing
test
2023-08-05 00:58:17 -04:00

32 lines
764 B
Django/Jinja

{% extends "base.tf.jinja" %}
{% block locals %}
alpine = ${data.coder_parameter.use_alpine.value ? "-alpine{{ alpine_version | replace(".", ",") }}" : ""}
{% endblock %}
{% block parameters %}
{{ super() }}
data "coder_parameter" "python_version" {
name = "Python Version"
description = "Python Version"
type = "string"
default = ""
mutable = true
option {
name = "Latest"
value = ""
}
{% for version in python_versions.split(",") %}
option {
name = "{{ version }}"
value = "-{{ version | replace(".", "") }}"
}
{% endfor %}
}
{% endblock %}
{% block kubernetes_pod_main_image %}
image = "{{image}}${data.coder_parameter.python_version.value}${locals.alpine}:latest"
{% endblock %}