mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-12 01:42:02 +01:00
200 lines
4.6 KiB
Nix
200 lines
4.6 KiB
Nix
|
{
|
||
|
apiVersion = "admissionregistration.k8s.io/v1";
|
||
|
kind = "MutatingWebhookConfiguration";
|
||
|
metadata = {
|
||
|
labels = {
|
||
|
app = "sidecar-injector";
|
||
|
"install.operator.istio.io/owning-resource" = "unknown";
|
||
|
"istio.io/rev" = "default";
|
||
|
"operator.istio.io/component" = "Pilot";
|
||
|
release = "istio-istiod";
|
||
|
};
|
||
|
name = "istio-sidecar-injector";
|
||
|
};
|
||
|
webhooks = [
|
||
|
{
|
||
|
admissionReviewVersions = ["v1beta1" "v1"];
|
||
|
clientConfig = {
|
||
|
service = {
|
||
|
name = "istiod";
|
||
|
namespace = "istio-system";
|
||
|
path = "/inject";
|
||
|
port = 443;
|
||
|
};
|
||
|
};
|
||
|
failurePolicy = "Fail";
|
||
|
name = "rev.namespace.sidecar-injector.istio.io";
|
||
|
namespaceSelector = {
|
||
|
matchExpressions = [
|
||
|
{
|
||
|
key = "istio.io/rev";
|
||
|
operator = "In";
|
||
|
values = ["default"];
|
||
|
}
|
||
|
{
|
||
|
key = "istio-injection";
|
||
|
operator = "DoesNotExist";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
objectSelector = {
|
||
|
matchExpressions = [
|
||
|
{
|
||
|
key = "sidecar.istio.io/inject";
|
||
|
operator = "NotIn";
|
||
|
values = ["false"];
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
reinvocationPolicy = "Never";
|
||
|
rules = [
|
||
|
{
|
||
|
apiGroups = [""];
|
||
|
apiVersions = ["v1"];
|
||
|
operations = ["CREATE"];
|
||
|
resources = ["pods"];
|
||
|
}
|
||
|
];
|
||
|
sideEffects = "None";
|
||
|
}
|
||
|
{
|
||
|
admissionReviewVersions = ["v1beta1" "v1"];
|
||
|
clientConfig = {
|
||
|
service = {
|
||
|
name = "istiod";
|
||
|
namespace = "istio-system";
|
||
|
path = "/inject";
|
||
|
port = 443;
|
||
|
};
|
||
|
};
|
||
|
failurePolicy = "Fail";
|
||
|
name = "rev.object.sidecar-injector.istio.io";
|
||
|
namespaceSelector = {
|
||
|
matchExpressions = [
|
||
|
{
|
||
|
key = "istio.io/rev";
|
||
|
operator = "DoesNotExist";
|
||
|
}
|
||
|
{
|
||
|
key = "istio-injection";
|
||
|
operator = "DoesNotExist";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
objectSelector = {
|
||
|
matchExpressions = [
|
||
|
{
|
||
|
key = "sidecar.istio.io/inject";
|
||
|
operator = "NotIn";
|
||
|
values = ["false"];
|
||
|
}
|
||
|
{
|
||
|
key = "istio.io/rev";
|
||
|
operator = "In";
|
||
|
values = ["default"];
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
reinvocationPolicy = "Never";
|
||
|
rules = [
|
||
|
{
|
||
|
apiGroups = [""];
|
||
|
apiVersions = ["v1"];
|
||
|
operations = ["CREATE"];
|
||
|
resources = ["pods"];
|
||
|
}
|
||
|
];
|
||
|
sideEffects = "None";
|
||
|
}
|
||
|
{
|
||
|
admissionReviewVersions = ["v1beta1" "v1"];
|
||
|
clientConfig = {
|
||
|
service = {
|
||
|
name = "istiod";
|
||
|
namespace = "istio-system";
|
||
|
path = "/inject";
|
||
|
port = 443;
|
||
|
};
|
||
|
};
|
||
|
failurePolicy = "Fail";
|
||
|
name = "namespace.sidecar-injector.istio.io";
|
||
|
namespaceSelector = {
|
||
|
matchExpressions = [
|
||
|
{
|
||
|
key = "istio-injection";
|
||
|
operator = "In";
|
||
|
values = ["enabled"];
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
objectSelector = {
|
||
|
matchExpressions = [
|
||
|
{
|
||
|
key = "sidecar.istio.io/inject";
|
||
|
operator = "NotIn";
|
||
|
values = ["false"];
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
reinvocationPolicy = "Never";
|
||
|
rules = [
|
||
|
{
|
||
|
apiGroups = [""];
|
||
|
apiVersions = ["v1"];
|
||
|
operations = ["CREATE"];
|
||
|
resources = ["pods"];
|
||
|
}
|
||
|
];
|
||
|
sideEffects = "None";
|
||
|
}
|
||
|
{
|
||
|
admissionReviewVersions = ["v1beta1" "v1"];
|
||
|
clientConfig = {
|
||
|
service = {
|
||
|
name = "istiod";
|
||
|
namespace = "istio-system";
|
||
|
path = "/inject";
|
||
|
port = 443;
|
||
|
};
|
||
|
};
|
||
|
failurePolicy = "Fail";
|
||
|
name = "object.sidecar-injector.istio.io";
|
||
|
namespaceSelector = {
|
||
|
matchExpressions = [
|
||
|
{
|
||
|
key = "istio-injection";
|
||
|
operator = "DoesNotExist";
|
||
|
}
|
||
|
{
|
||
|
key = "istio.io/rev";
|
||
|
operator = "DoesNotExist";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
objectSelector = {
|
||
|
matchExpressions = [
|
||
|
{
|
||
|
key = "sidecar.istio.io/inject";
|
||
|
operator = "In";
|
||
|
values = ["true"];
|
||
|
}
|
||
|
{
|
||
|
key = "istio.io/rev";
|
||
|
operator = "DoesNotExist";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
reinvocationPolicy = "Never";
|
||
|
rules = [
|
||
|
{
|
||
|
apiGroups = [""];
|
||
|
apiVersions = ["v1"];
|
||
|
operations = ["CREATE"];
|
||
|
resources = ["pods"];
|
||
|
}
|
||
|
];
|
||
|
sideEffects = "None";
|
||
|
}
|
||
|
];
|
||
|
}
|