Files
helmfile/pkg/hcllang/testdata/cidr.hcl
T
Oleh Neichev 3537f5f5c4 feat: Add IP Network to supported HCL Functions (#2426)
* Add IP Network to supported HCL Functions

This patch adds CIDR functions from the `go-cty-funcs` package to
supported HCL functions

Signed-off-by: Oleh Neichev <oleg.neichev@gmail.com>

* Test HCL CIDR Functions

Signed-off-by: Oleh Neichev <oleg.neichev@gmail.com>

---------

Signed-off-by: Oleh Neichev <oleg.neichev@gmail.com>
2026-02-26 17:20:48 +08:00

8 lines
219 B
HCL

values {
host = cidrhost("10.0.0.0/8", 2)
host_neg = cidrhost("10.0.0.0/8", -2)
netmask = cidrnetmask("10.0.0.0/16")
subnet = cidrsubnet("10.0.0.0/8", 8, 2)
subnets = cidrsubnets("10.0.0.0/8", 4, 4)
}