refactor: move transforms/ into infrahub/ and update all paths (#20)

Move transforms/{queries,templates,tests} under infrahub/transforms/ so all
Infrahub-managed content lives under the dedicated infrahub/ directory,
consistent with schemas/, objects/, and menus/.

Updated paths:
- .infrahub.yml: file_path and template_path entries now prefixed with
  infrahub/transforms/
- infrahub/transforms/tests/*/test.yml: directory references updated from
  transforms/tests/* to infrahub/transforms/tests/*

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Damien
2026-02-28 18:37:07 +01:00
parent a492aa3c39
commit 87748329c8
16 changed files with 9 additions and 9 deletions

View File

@@ -19,22 +19,22 @@ objects:
queries: queries:
- name: vlan_intent - name: vlan_intent
file_path: transforms/queries/vlan_intent.gql file_path: infrahub/transforms/queries/vlan_intent.gql
- name: interface_intent - name: interface_intent
file_path: transforms/queries/interface_intent.gql file_path: infrahub/transforms/queries/interface_intent.gql
- name: vxlan_intent - name: vxlan_intent
file_path: transforms/queries/vxlan_intent.gql file_path: infrahub/transforms/queries/vxlan_intent.gql
jinja2_transforms: jinja2_transforms:
- name: vlan_yang_transform - name: vlan_yang_transform
description: "Generate VLAN configuration payload from Infrahub intent" description: "Generate VLAN configuration payload from Infrahub intent"
query: vlan_intent query: vlan_intent
template_path: transforms/templates/vlan_yang.j2 template_path: infrahub/transforms/templates/vlan_yang.j2
- name: interface_yang_transform - name: interface_yang_transform
description: "Generate interface configuration payload from Infrahub intent" description: "Generate interface configuration payload from Infrahub intent"
query: interface_intent query: interface_intent
template_path: transforms/templates/interface_yang.j2 template_path: infrahub/transforms/templates/interface_yang.j2
- name: vxlan_yang_transform - name: vxlan_yang_transform
description: "Generate VXLAN/VTEP configuration payload from Infrahub intent" description: "Generate VXLAN/VTEP configuration payload from Infrahub intent"
query: vxlan_intent query: vxlan_intent
template_path: transforms/templates/vxlan_yang.j2 template_path: infrahub/transforms/templates/vxlan_yang.j2

View File

@@ -10,6 +10,6 @@ infrahub_tests:
- name: render_leaf1 - name: render_leaf1
spec: spec:
kind: jinja2-transform-unit-render kind: jinja2-transform-unit-render
directory: transforms/tests/interface_yang directory: infrahub/transforms/tests/interface_yang
input: input.json input: input.json
output: output.json output: output.json

View File

@@ -10,6 +10,6 @@ infrahub_tests:
- name: render_leaf1 - name: render_leaf1
spec: spec:
kind: jinja2-transform-unit-render kind: jinja2-transform-unit-render
directory: transforms/tests/vlan_yang directory: infrahub/transforms/tests/vlan_yang
input: input.json input: input.json
output: output.json output: output.json

View File

@@ -10,6 +10,6 @@ infrahub_tests:
- name: render_leaf1 - name: render_leaf1
spec: spec:
kind: jinja2-transform-unit-render kind: jinja2-transform-unit-render
directory: transforms/tests/vxlan_yang directory: infrahub/transforms/tests/vxlan_yang
input: input.json input: input.json
output: output.json output: output.json