Skip to content

Template selection by a subset of tags #583

@holmesb

Description

@holmesb

Hi,

Describe the solution you'd like
Docs say: "Passed tags must be an exact 1:1 match with the tags on the template you want to use".

I would like to match subset of tags. Ie if I have a template on every node tagged:
capmox; k8s-1-33; ubuntu24-04; containerd-1-2-3; cni-3-4-5
and specify env var: TEMPLATE_TAGS="capmox,k8s-1-33,ubuntu24-04"
then CAPMOX should pick the single eligible template, regardless that I didn't also specify containerd-1-2-3 nor cni-3-4-5.

This will allow the use of Proxmox tags purely for metadata, not for selection. Allows logic like: give me the Ubuntu 24.04 CAPMOX template for Kubernetes 1.33 and I don't care what version of containerd nor CNI it is. As long as this resolves to a single template, it shouldn't matter that I didn't specify all the tags. But tags still allow me to know the version of containerd, etc on the template if I need this info.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions