commit
85d3faa877
@ -266,7 +266,7 @@ in
|
|||||||
in
|
in
|
||||||
''
|
''
|
||||||
export KUBECONFIG=${clusterAdminKubeconfig}
|
export KUBECONFIG=${clusterAdminKubeconfig}
|
||||||
${kubernetes}/bin/kubectl apply -f ${concatStringsSep " \\\n -f " files}
|
${top.package}/bin/kubectl apply -f ${concatStringsSep " \\\n -f " files}
|
||||||
'';
|
'';
|
||||||
})]);
|
})]);
|
||||||
|
|
||||||
|
@ -4,8 +4,6 @@
|
|||||||
let
|
let
|
||||||
dns = import ./dns.nix { inherit system pkgs; };
|
dns = import ./dns.nix { inherit system pkgs; };
|
||||||
rbac = import ./rbac.nix { inherit system pkgs; };
|
rbac = import ./rbac.nix { inherit system pkgs; };
|
||||||
# TODO kubernetes.e2e should eventually replace kubernetes.rbac when it works
|
|
||||||
# e2e = import ./e2e.nix { inherit system pkgs; };
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
dns-single-node = dns.singlenode.test;
|
dns-single-node = dns.singlenode.test;
|
||||||
|
@ -1,40 +0,0 @@
|
|||||||
{ system ? builtins.currentSystem, pkgs ? import ../../.. { inherit system; } }:
|
|
||||||
with import ./base.nix { inherit system; };
|
|
||||||
let
|
|
||||||
domain = "my.zyx";
|
|
||||||
certs = import ./certs.nix { externalDomain = domain; kubelets = ["machine1" "machine2"]; };
|
|
||||||
kubeconfig = pkgs.writeText "kubeconfig.json" (builtins.toJSON {
|
|
||||||
apiVersion = "v1";
|
|
||||||
kind = "Config";
|
|
||||||
clusters = [{
|
|
||||||
name = "local";
|
|
||||||
cluster.certificate-authority = "${certs.master}/ca.pem";
|
|
||||||
cluster.server = "https://api.${domain}";
|
|
||||||
}];
|
|
||||||
users = [{
|
|
||||||
name = "kubelet";
|
|
||||||
user = {
|
|
||||||
client-certificate = "${certs.admin}/admin.pem";
|
|
||||||
client-key = "${certs.admin}/admin-key.pem";
|
|
||||||
};
|
|
||||||
}];
|
|
||||||
contexts = [{
|
|
||||||
context = {
|
|
||||||
cluster = "local";
|
|
||||||
user = "kubelet";
|
|
||||||
};
|
|
||||||
current-context = "kubelet-context";
|
|
||||||
}];
|
|
||||||
});
|
|
||||||
|
|
||||||
base = {
|
|
||||||
name = "e2e";
|
|
||||||
inherit domain certs;
|
|
||||||
test = ''
|
|
||||||
$machine1->succeed("e2e.test -kubeconfig ${kubeconfig} -provider local -ginkgo.focus '\\[Conformance\\]' -ginkgo.skip '\\[Flaky\\]|\\[Serial\\]'");
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
singlenode = mkKubernetesSingleNodeTest base;
|
|
||||||
multinode = mkKubernetesMultiNodeTest base;
|
|
||||||
}
|
|
@ -15,7 +15,6 @@
|
|||||||
"cmd/kube-controller-manager"
|
"cmd/kube-controller-manager"
|
||||||
"cmd/kube-proxy"
|
"cmd/kube-proxy"
|
||||||
"cmd/kube-scheduler"
|
"cmd/kube-scheduler"
|
||||||
"test/e2e/e2e.test"
|
|
||||||
]
|
]
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user