mirror of
https://github.com/rocky-linux/peridot.git
synced 2024-11-15 02:01:25 +00:00
17 lines
422 B
Plaintext
17 lines
422 B
Plaintext
{
|
|
KIND_ENVOYFILTER: 'EnvoyFilter',
|
|
|
|
// Types (unfinished):
|
|
// - EnvoyFilter
|
|
networking_base(info)::
|
|
local envoyFilterTest = std.assertEqual(info.kind, $.KIND_ENVOYFILTER);
|
|
|
|
local _ = if !envoyFilterTest then non_existing_value;
|
|
|
|
{
|
|
apiVersion: 'networking.istio.io/v1alpha3',
|
|
kind: info.kind,
|
|
metadata: info.metadata,
|
|
} + if std.objectHas(info, 'spec') then info.spec else {},
|
|
}
|