mirror of
https://github.com/TECHNOFAB11/kubenix.git
synced 2025-12-12 16:10:05 +01:00
fix(istio): generate definitions for config.istio.io/v1alpha2
This commit is contained in:
parent
ff66b0e0c3
commit
711073a6e6
2 changed files with 1204 additions and 1039 deletions
|
|
@ -4760,6 +4760,162 @@ in {
|
||||||
kind = "VirtualService";
|
kind = "VirtualService";
|
||||||
description = "";
|
description = "";
|
||||||
module = definitions."istio_networking_v1alpha3_VirtualService";
|
module = definitions."istio_networking_v1alpha3_VirtualService";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "apikey";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_mixer_apikey_InstanceMsg";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "authorization";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_mixer_authorization_InstanceMsg";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "bypass";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_adapter_bypass_Params";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "checknothing";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_mixer_checknothing_InstanceMsg";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "circonus";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_adapter_circonus_Params";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "denier";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_adapter_denier_Params";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "edge";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_mixer_edge_InstanceMsg";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "fluentd";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_adapter_fluentd_Params";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "kubernetesenv";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_adapter_kubernetesenv_Params";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "listentry";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_mixer_listentry_InstanceMsg";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "logentry";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_mixer_logentry_InstanceMsg";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "memquota";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_adapter_memquota_Params";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "metric";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_mixer_metric_InstanceMsg";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "opa";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_adapter_opa_Params";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "prometheus";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_adapter_prometheus_Params";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "quota";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_mixer_quota_InstanceMsg";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "rbac";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_adapter_rbac_Params";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "redisquota";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_adapter_redisquota_Params";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "reportnothing";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_mixer_reportnothing_InstanceMsg";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "servicecontrol";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_adapter_servicecontrol_Params";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "signalfx";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_adapter_signalfx_Params";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "solarwinds";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_adapter_solarwinds_Params";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "stackdriver";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_adapter_stackdriver_Params";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "statsd";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_adapter_statsd_Params";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "stdio";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_adapter_stdio_Params";
|
||||||
|
}{
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = "tracespan";
|
||||||
|
description = "";
|
||||||
|
module = definitions."istio_mixer_tracespan_InstanceMsg";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -188,7 +188,7 @@ let
|
||||||
}
|
}
|
||||||
) swagger.definitions);
|
) swagger.definitions);
|
||||||
|
|
||||||
genResources = swagger: mapAttrsToList (name: property: rec {
|
genResources = swagger: (mapAttrsToList (name: property: rec {
|
||||||
splittedType = splitString "." (removePrefix "me.snowdrop.istio.api." property.javaType);
|
splittedType = splitString "." (removePrefix "me.snowdrop.istio.api." property.javaType);
|
||||||
group = (concatStringsSep "." (take ((length splittedType) - 2) splittedType)) + ".istio.io";
|
group = (concatStringsSep "." (take ((length splittedType) - 2) splittedType)) + ".istio.io";
|
||||||
kind = removeSuffix "Spec" (last splittedType);
|
kind = removeSuffix "Spec" (last splittedType);
|
||||||
|
|
@ -196,9 +196,18 @@ let
|
||||||
ref = removePrefix "#/definitions/" property."$ref";
|
ref = removePrefix "#/definitions/" property."$ref";
|
||||||
})
|
})
|
||||||
(filterAttrs (name: property:
|
(filterAttrs (name: property:
|
||||||
hasPrefix "me.snowdrop.istio.api" property.javaType &&
|
(hasPrefix "me.snowdrop.istio.api" property.javaType) &&
|
||||||
hasSuffix "Spec" property.javaType
|
hasSuffix "Spec" property.javaType
|
||||||
) swagger.properties);
|
) swagger.properties)) ++ (mapAttrsToList (name: property: rec {
|
||||||
|
splittedType = splitString "." (removePrefix "me.snowdrop.istio.mixer." property.javaType);
|
||||||
|
group = "config.istio.io";
|
||||||
|
version = "v1alpha2";
|
||||||
|
kind = head (tail splittedType);
|
||||||
|
ref = removePrefix "#/definitions/" property."$ref";
|
||||||
|
}) (filterAttrs (name: property:
|
||||||
|
(hasPrefix "me.snowdrop.istio.mixer" property.javaType) &&
|
||||||
|
hasSuffix "Spec" property.javaType
|
||||||
|
) swagger.properties));
|
||||||
|
|
||||||
swagger = fetchSpecs spec;
|
swagger = fetchSpecs spec;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue