feat: display loaded_from informations

This commit is contained in:
egarette@silique.fr 2025-05-11 19:10:02 +02:00
parent e3e531bfba
commit 7646c85546
257 changed files with 987 additions and 60 deletions

View file

@ -0,0 +1 @@
ROUGAIL_UNKNOWN=1

View file

@ -0,0 +1,2 @@
ROUGAIL_FAMILY_DISABLED.VARIABLE1=test
ROUGAIL_FAMILY_DISABLED.VARIABLE2=test

View file

@ -0,0 +1 @@
ROUGAIL_VARIABLE_DISABLED=test

View file

@ -0,0 +1 @@
ROUGAIL_VARIABLE_INT=test

View file

@ -0,0 +1 @@
ROUGAIL_FAMILY_DISABLED_HIDDEN.VARIABLE1=test

View file

@ -0,0 +1 @@
ROUGAIL_SECRET=a

View file

@ -0,0 +1 @@
ROUGAIL_FAMILY=test

View file

@ -0,0 +1 @@
ROUGAIL_DYN_UNKNOWN.VARIABLE=test

View file

@ -0,0 +1,4 @@
ROUGAIL_LEADERSHIP.LEADER=test1,test2,test3
ROUGAIL_LEADERSHIP.FOLLOWER=test1,test2,test3
ROUGAIL_LEADERSHIP.FOLLOWER_DISABLED=test1,test2,test3
ROUGAIL_LEADERSHIP.FOLLOWER_DISABLED_AT_INDEX=test1,test2,test3

View file

@ -0,0 +1,2 @@
ROUGAIL_LEADERSHIP.LEADER=test
ROUGAIL_LEADERSHIP.UNKNWON=test

View file

@ -0,0 +1,2 @@
ROUGAIL_LEADERSHIP.LEADER=test
ROUGAIL_LEADERSHIP.FOLLOWER=test1,test2

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable or family \"unknown\" does not exist, it will be ignored when loading from environment variable"
]
}

View file

@ -0,0 +1,7 @@
{
"errors": [],
"warnings": [
"family \"family_disabled\" is disabled, \"family_disabled.variable1\" will be ignored when loading from environment variable",
"family \"family_disabled\" is disabled, \"family_disabled.variable2\" will be ignored when loading from environment variable"
]
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable \"variable_disabled\" is disabled, it will be ignored when loading from environment variable"
]
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"the value \"test\" is invalid for \"variable_int\", which is not an integer, it will be ignored when loading from environment variable"
]
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"family \"family_disabled_hidden\" is disabled and hidden, \"family_disabled_hidden.variable1\" will be ignored when loading from environment variable"
]
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"the value \"**********\" is invalid for \"secret\", at least 10 characters are required, it will be ignored when loading from environment variable"
]
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"cannot set the value \"test\" to the family \"family\", it will be ignored when loading from environment variable"
]
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable or family \"dyn_unknown\" does not exist, it will be ignored when loading from environment variable"
]
}

View file

@ -0,0 +1,9 @@
{
"errors": [],
"warnings": [
"variable \"leadership.follower_disabled\" at index \"0\" is disabled, it will be ignored when loading from environment variable",
"variable \"leadership.follower_disabled\" at index \"1\" is disabled, it will be ignored when loading from environment variable",
"variable \"leadership.follower_disabled\" at index \"2\" is disabled, it will be ignored when loading from environment variable",
"variable \"leadership.follower_disabled_at_index\" at index \"1\" is disabled, it will be ignored when loading from environment variable"
]
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable or family \"leadership.unknwon\" does not exist, it will be ignored when loading from environment variable"
]
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"index \"1\" is greater than the leadership length \"1\" for option \"leadership.follower\" in environment variable"
]
}

View file

@ -0,0 +1,68 @@
%YAML 1.2
---
version: 1.1
variable:
secret:
type: secret
params:
min_len: 10
variable_disabled:
disabled: true
variable_disabled_hidden:
disabled: true
hidden: true
variable_int:
type: number
family:
variable:
family_disabled:
disabled: true
variable1:
variable2:
family_disabled_hidden:
disabled: true
hidden: true
variable1:
variable2:
dyn_{{ identifier }}:
dynamic:
- var1
- var2
variable:
leadership:
type: leadership
leader:
follower:
follower_disabled:
disabled: true
follower_disabled_at_index:
disabled:
jinja: >-
{% if index == 1 %}
true
{% else %}
{% endif %}
params:
index:
type: index
...

View file

@ -0,0 +1,4 @@
{
"errors": [],
"warnings": []
}

View file

@ -0,0 +1,4 @@
{
"errors": [],
"warnings": []
}

View file

@ -0,0 +1 @@

View file

@ -0,0 +1 @@

View file

@ -0,0 +1 @@

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1 @@
{}

View file

@ -0,0 +1,4 @@
{
"errors": [],
"warnings": []
}

View file

@ -0,0 +1,4 @@
{
"errors": [],
"warnings": []
}

View file

@ -0,0 +1,4 @@
{
"errors": [],
"warnings": []
}

View file

@ -0,0 +1,4 @@
{
"errors": [],
"warnings": []
}

View file

@ -0,0 +1,9 @@
{
"errors": [],
"warnings": [
"family \"leadership\" is hidden, \"leadership.var1\" (a first variable) will be ignored when loading from environment variable",
"family \"leadership\" is hidden, \"leadership.var2\" (a first variable) at index \"0\" will be ignored when loading from environment variable",
"index \"1\" is greater than the leadership length \"1\" for option \"leadership.var2\" (a first variable) in environment variable",
"index \"2\" is greater than the leadership length \"1\" for option \"leadership.var2\" (a first variable) in environment variable"
]
}

View file

@ -0,0 +1,4 @@
{
"errors": [],
"warnings": []
}

View file

@ -0,0 +1,3 @@
ROUGAIL_LEADERSHIP.VAR1="string1,string2,string3"
ROUGAIL_LEADERSHIP.VAR2="string1,,"
ROUGAIL_VAR2="string1"

View file

@ -0,0 +1,3 @@
ROUGAIL_LEADERSHIP.VAR1="string1,string2,string3"
ROUGAIL_LEADERSHIP.VAR2="string1,,"
ROUGAIL_VAR2="string1"

View file

@ -0,0 +1,9 @@
{
"leadership.var1": [
{
"leadership.var1": "a_value",
"leadership.var2": "a_value"
}
],
"var2": "string1"
}

View file

@ -0,0 +1,9 @@
{
"leadership.var1": [
{
"leadership.var1": "a_value",
"leadership.var2": "a_value"
}
],
"var2": "a_value"
}

View file

@ -0,0 +1,4 @@
{
"errors": [],
"warnings": []
}

View file

@ -0,0 +1,4 @@
{
"errors": [],
"warnings": []
}

View file

@ -0,0 +1,2 @@
ROUGAIL_VAR1="string1"
ROUGAIL_VAR2="string1"

View file

@ -0,0 +1,2 @@
ROUGAIL_VAR1="string1"
ROUGAIL_VAR2="string1"

View file

@ -0,0 +1 @@
ROUGAIL_VAR1="string1"

View file

@ -0,0 +1,4 @@
{
"var1": "string1",
"var2": "string1"
}

View file

@ -0,0 +1,4 @@
{
"var1": "string1",
"var2": "string1"
}

View file

@ -1,6 +1,6 @@
{ {
"errors": [], "errors": [],
"warnings": [ "warnings": [
"cannot access to option \"var2\" (a second variable) because has property \"disabled\" loaded from environment variable" "variable \"var2\" (a second variable) is disabled, it will be ignored when loading from environment variable"
] ]
} }

View file

@ -1,6 +1,6 @@
{ {
"errors": [], "errors": [],
"warnings": [ "warnings": [
"cannot access to option \"var2\" (a second variable) because has property \"disabled\" loaded from environment variable" "variable \"var2\" (a second variable) is disabled, it will be ignored when loading from environment variable"
] ]
} }

View file

@ -0,0 +1,7 @@
{
"errors": [],
"warnings": [
"variable \"var1\" (a first variable) is hidden, it will be ignored when loading from environment variable",
"variable \"var2\" (a second variable) is disabled, it will be ignored when loading from environment variable"
]
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable \"var2\" (a second variable) is disabled, it will be ignored when loading from environment variable"
]
}

View file

@ -0,0 +1,3 @@
ROUGAIL_VAR1="string1"
ROUGAIL_VAR2="string1"
ROUGAIL_VAR3="string1"

View file

@ -0,0 +1,3 @@
ROUGAIL_VAR1="string1"
ROUGAIL_VAR2="string1"
ROUGAIL_VAR3="string1"

View file

@ -0,0 +1 @@
ROUGAIL_VAR2="string1"

View file

@ -0,0 +1,4 @@
{
"var1": "value",
"var3": "string1"
}

View file

@ -0,0 +1,4 @@
{
"var1": "value",
"var3": "value"
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable \"var1\" (a first variable) is hidden, it will be ignored when loading from environment variable"
]
}

View file

@ -0,0 +1,4 @@
{
"errors": [],
"warnings": []
}

View file

@ -0,0 +1,3 @@
ROUGAIL_VAR1="string1"
ROUGAIL_VAR2="string1"
ROUGAIL_VAR3="string1"

View file

@ -0,0 +1,3 @@
ROUGAIL_VAR1="string1"
ROUGAIL_VAR2="string1"
ROUGAIL_VAR3="string1"

View file

@ -0,0 +1 @@
ROUGAIL_VAR2="string1"

View file

@ -0,0 +1,5 @@
{
"var1": "value",
"var2": "string1",
"var3": "string1"
}

View file

@ -0,0 +1,5 @@
{
"var1": "value",
"var2": "string1",
"var3": "value"
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable \"var2\" (a second variable) is hidden, it will be ignored when loading from environment variable"
]
}

View file

@ -0,0 +1,6 @@
{
"errors": [],
"warnings": [
"variable \"var3\" (a third variable) is disabled, it will be ignored when loading from environment variable"
]
}

View file

@ -0,0 +1,3 @@
ROUGAIL_VAR1="string1"
ROUGAIL_VAR2="string1"
ROUGAIL_VAR3="string1"

View file

@ -0,0 +1,3 @@
ROUGAIL_VAR1="string1"
ROUGAIL_VAR2="string1"
ROUGAIL_VAR3="string1"

View file

@ -0,0 +1 @@
ROUGAIL_VAR3="string1"

View file

@ -0,0 +1,5 @@
{
"var1": "string1",
"var2": "string1",
"var3": "string1"
}

View file

@ -0,0 +1,4 @@
{
"var1": "value",
"var2": "value"
}

View file

@ -0,0 +1,7 @@
{
"errors": [],
"warnings": [
"variable \"var2\" (a second variable) is hidden, it will be ignored when loading from environment variable",
"variable \"var3\" (a third variable) is disabled, it will be ignored when loading from environment variable"
]
}

View file

@ -0,0 +1,4 @@
{
"errors": [],
"warnings": []
}

View file

@ -0,0 +1,3 @@
ROUGAIL_VAR1="string1"
ROUGAIL_VAR2="string1"
ROUGAIL_VAR3="string1"

View file

@ -0,0 +1,3 @@
ROUGAIL_VAR1="string1"
ROUGAIL_VAR2="string1"
ROUGAIL_VAR3="string1"

View file

@ -0,0 +1 @@
ROUGAIL_VAR3="string1"

View file

@ -0,0 +1,4 @@
{
"var1": "string1",
"var2": "string1"
}

View file

@ -0,0 +1,5 @@
{
"var1": "value",
"var2": "value",
"var3": "string1"
}

View file

@ -1,6 +1,6 @@
{ {
"errors": [], "errors": [],
"warnings": [ "warnings": [
"cannot access to option \"var1\" (a first variable) because has property \"hidden\" (unknown is undefined) loaded from environment variable" "variable \"var1\" (a first variable) is hidden, it will be ignored when loading from environment variable"
] ]
} }

View file

@ -1,6 +1,6 @@
{ {
"errors": [], "errors": [],
"warnings": [ "warnings": [
"cannot access to option \"variable\" (a variable) because has property \"disabled\" loaded from environment variable" "variable \"variable\" (a variable) is disabled, it will be ignored when loading from environment variable"
] ]
} }

View file

@ -1,6 +1,6 @@
{ {
"errors": [], "errors": [],
"warnings": [ "warnings": [
"cannot access to option \"variable\" (a variable) because has property \"disabled\" loaded from environment variable" "variable \"variable\" (a variable) is disabled, it will be ignored when loading from environment variable"
] ]
} }

View file

@ -1,6 +1,6 @@
{ {
"errors": [], "errors": [],
"warnings": [ "warnings": [
"cannot access to option \"variable\" (a variable) because has property \"disabled\" loaded from environment variable" "variable \"variable\" (a variable) is disabled, it will be ignored when loading from environment variable"
] ]
} }

View file

@ -1,6 +1,6 @@
{ {
"errors": [], "errors": [],
"warnings": [ "warnings": [
"cannot access to option \"variable\" (a variable) because has property \"disabled\" loaded from environment variable" "variable \"variable\" (a variable) is disabled, it will be ignored when loading from environment variable"
] ]
} }

View file

@ -1,6 +1,6 @@
{ {
"errors": [], "errors": [],
"warnings": [ "warnings": [
"cannot access to option \"variable\" (a variable) because has property \"disabled\" loaded from environment variable" "variable \"variable\" (a variable) is disabled, it will be ignored when loading from environment variable"
] ]
} }

View file

@ -1,6 +1,6 @@
{ {
"errors": [], "errors": [],
"warnings": [ "warnings": [
"cannot access to option \"variable\" (a variable) because has property \"disabled\" loaded from environment variable" "variable \"variable\" (a variable) is disabled, it will be ignored when loading from environment variable"
] ]
} }

View file

@ -0,0 +1,4 @@
{
"errors": [],
"warnings": []
}

View file

@ -0,0 +1,4 @@
{
"errors": [],
"warnings": []
}

View file

@ -0,0 +1 @@
ROUGAIL_VAR1="0"

View file

@ -0,0 +1 @@
ROUGAIL_VAR1="0"

Some files were not shown because too many files have changed in this diff Show more