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 9860412a0e
All checks were successful
continuous-integration/drone/push Build is passing
test
2023-08-05 01:00:05 -04:00

28 lines
604 B
Django/Jinja

{% extends "base.tf.jinja" %}
{% 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}:latest"
{% endblock %}