diff --git a/config/samples/e2e/bases/ipam-ipv4/child-prefix.yaml b/config/samples/e2e/bases/ipam-ipv4/child-prefix.yaml new file mode 100644 index 000000000..81da53cde --- /dev/null +++ b/config/samples/e2e/bases/ipam-ipv4/child-prefix.yaml @@ -0,0 +1,22 @@ +apiVersion: ipam.ironcore.dev/v1alpha1 +kind: Prefix +metadata: + name: customer-subnet-1 +spec: + ipFamily: IPv4 + prefixLength: 9 + parentSelector: + matchLabels: + subnet-type: public +--- +apiVersion: ipam.ironcore.dev/v1alpha1 +kind: Prefix +metadata: + name: customer-subnet-2 +spec: + ipFamily: IPv4 + prefixLength: 9 + parentSelector: + matchLabels: + subnet-type: public + diff --git a/config/samples/e2e/bases/ipam-ipv4/kustomization.yaml b/config/samples/e2e/bases/ipam-ipv4/kustomization.yaml new file mode 100644 index 000000000..157e4b08d --- /dev/null +++ b/config/samples/e2e/bases/ipam-ipv4/kustomization.yaml @@ -0,0 +1,3 @@ +resources: +- parent-prefix.yaml +- child-prefix.yaml \ No newline at end of file diff --git a/config/samples/e2e/bases/ipam-ipv4/parent-prefix.yaml b/config/samples/e2e/bases/ipam-ipv4/parent-prefix.yaml new file mode 100644 index 000000000..b9a568d29 --- /dev/null +++ b/config/samples/e2e/bases/ipam-ipv4/parent-prefix.yaml @@ -0,0 +1,8 @@ +apiVersion: ipam.ironcore.dev/v1alpha1 +kind: Prefix +metadata: + name: root-1 + labels: + subnet-type: public +spec: + prefix: 10.0.0.0/8 \ No newline at end of file diff --git a/config/samples/e2e/bases/ipam-ipv6/child-prefix.yaml b/config/samples/e2e/bases/ipam-ipv6/child-prefix.yaml new file mode 100644 index 000000000..d03280c33 --- /dev/null +++ b/config/samples/e2e/bases/ipam-ipv6/child-prefix.yaml @@ -0,0 +1,22 @@ +apiVersion: ipam.ironcore.dev/v1alpha1 +kind: Prefix +metadata: + name: customer-subnet-1 +spec: + ipFamily: IPv6 + prefixLength: 9 + parentSelector: + matchLabels: + subnet-type: public +--- +apiVersion: ipam.ironcore.dev/v1alpha1 +kind: Prefix +metadata: + name: customer-subnet-2 +spec: + ipFamily: IPv6 + prefixLength: 9 + parentSelector: + matchLabels: + subnet-type: public + diff --git a/config/samples/e2e/bases/ipam-ipv6/kustomization.yaml b/config/samples/e2e/bases/ipam-ipv6/kustomization.yaml new file mode 100644 index 000000000..157e4b08d --- /dev/null +++ b/config/samples/e2e/bases/ipam-ipv6/kustomization.yaml @@ -0,0 +1,3 @@ +resources: +- parent-prefix.yaml +- child-prefix.yaml \ No newline at end of file diff --git a/config/samples/e2e/bases/ipam-ipv6/parent-prefix.yaml b/config/samples/e2e/bases/ipam-ipv6/parent-prefix.yaml new file mode 100644 index 000000000..d98bd4bfe --- /dev/null +++ b/config/samples/e2e/bases/ipam-ipv6/parent-prefix.yaml @@ -0,0 +1,9 @@ +apiVersion: ipam.ironcore.dev/v1alpha1 +kind: Prefix +metadata: + name: root-1 + labels: + subnet-type: public +spec: + prefix: 2000::/8 + diff --git a/config/samples/e2e/ipam-ipv4/README.md b/config/samples/e2e/ipam-ipv4/README.md new file mode 100644 index 000000000..b3ca9779f --- /dev/null +++ b/config/samples/e2e/ipam-ipv4/README.md @@ -0,0 +1,10 @@ +# `IP` allocation to Subnets with `IPv4` + +This example allocates IPs of type `IPv4` to child subnets with the specified prefix length referring to the parent prefix. +The following artifacts will be deployed in your namespace: +- 1 IronCore parent `Prefix`, and 2 child `Prefixes` + +## Usage +1. Adapt the `namespace` in `kustomization.yaml` + +2. Run (`kubectl apply -k ./`) \ No newline at end of file diff --git a/config/samples/e2e/ipam-ipv4/kustomization.yaml b/config/samples/e2e/ipam-ipv4/kustomization.yaml new file mode 100644 index 000000000..fc12e834d --- /dev/null +++ b/config/samples/e2e/ipam-ipv4/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: +- ../bases/ipam-ipv4 \ No newline at end of file diff --git a/config/samples/e2e/ipam-ipv6/README.md b/config/samples/e2e/ipam-ipv6/README.md new file mode 100644 index 000000000..135a1fe0f --- /dev/null +++ b/config/samples/e2e/ipam-ipv6/README.md @@ -0,0 +1,10 @@ +# `IP` allocation to Subnets with `IPv6` + +This example allocates IPs of type `IPv6` to child subnets with the specified prefix length referring to the parent prefix. +The following artifacts will be deployed in your namespace: +- 1 IronCore parent `Prefix`, and 2 child `Prefixes` + +## Usage +1. Adapt the `namespace` in `kustomization.yaml` + +2. Run (`kubectl apply -k ./`) \ No newline at end of file diff --git a/config/samples/e2e/ipam-ipv6/kustomization.yaml b/config/samples/e2e/ipam-ipv6/kustomization.yaml new file mode 100644 index 000000000..067ce3d0b --- /dev/null +++ b/config/samples/e2e/ipam-ipv6/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: +- ../bases/ipam-ipv6 \ No newline at end of file