Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
c17641b
chore: add e2e tests for cloud distros
noahpb Feb 5, 2025
4025736
lint fix
noahpb Feb 5, 2025
5ba76b0
add validate task
noahpb Feb 5, 2025
aa1c4d7
trigger workflow
noahpb Feb 5, 2025
9fca24c
mute task, make passthrough gw validation default to false
noahpb Feb 5, 2025
f3235e5
add metrics-server
noahpb Feb 5, 2025
ec770f5
exclude metrics-server on aks, group into one task
noahpb Feb 6, 2025
a80d8fc
syntax fix maybe?
noahpb Feb 6, 2025
27cb7fd
no metrics server on eks
noahpb Feb 6, 2025
391dbc0
more syntax fun
noahpb Feb 6, 2025
8ae0ab8
try differnt syntax
noahpb Feb 6, 2025
5871a11
change logic in if statement
noahpb Feb 6, 2025
6bba450
add additional entries to hosts file
noahpb Feb 6, 2025
97185ba
Merge branch 'main' into feat/e2e-test-nightly
noahpb Feb 13, 2025
3a4d424
query for hostname
noahpb Feb 13, 2025
1900b7b
get ip from hostname, lint
noahpb Feb 14, 2025
3cf1f9a
allow e2e test to be built for multiple archs
noahpb Feb 18, 2025
a2f0432
fix arch value
noahpb Feb 18, 2025
edb4d69
switch arch default
noahpb Feb 18, 2025
ea443d1
Merge branch 'main' into feat/e2e-test-nightly
noahpb Feb 18, 2025
f4c1e4c
workaround for eks e2e tests
noahpb Feb 19, 2025
9cd4b65
rm temp workaround
noahpb Feb 19, 2025
b1c9103
add aws-lb-controller to rke2, cleanup
noahpb Feb 20, 2025
7d8437f
Merge branch 'main' into feat/e2e-test-nightly
noahpb Feb 21, 2025
c4794d2
debugging
noahpb Feb 21, 2025
770b805
use `dig` instead of `curl` for ipv4 lookup
noahpb Feb 21, 2025
71398c8
switch to azure gov
noahpb Feb 21, 2025
38206c7
set azure gov env
noahpb Feb 21, 2025
ce92ce4
set audience and arm env
noahpb Feb 21, 2025
19af81a
set environment in config block
noahpb Feb 21, 2025
9766662
try access key
noahpb Feb 21, 2025
8529730
add logic for fetching az token
noahpb Feb 24, 2025
1350d44
revert using key
noahpb Feb 24, 2025
510c15d
update region
noahpb Feb 24, 2025
38a7454
add `availability_zone` for rke2 agent node(s)
noahpb Feb 24, 2025
8fbfb08
switch availability zone
noahpb Feb 24, 2025
e8cf788
Merge branch 'main' into feat/e2e-test-nightly
noahpb Feb 24, 2025
a657f9e
sku and psql dns fix
noahpb Feb 24, 2025
8aaa050
buy time to debug
noahpb Feb 24, 2025
ef7c0e2
dns fix and os disk type
noahpb Feb 24, 2025
3da3c74
switch to zone a
noahpb Feb 24, 2025
b33f8bf
update velero credentials override
noahpb Feb 24, 2025
77a216d
rm temp debug changes
noahpb Feb 24, 2025
b7503da
rm unused terraform.tfvars
noahpb Feb 24, 2025
f5f03e4
tmp disable eks e2e testing
noahpb Feb 24, 2025
e5b4c4c
increase disk space for rke2 nodes
noahpb Feb 24, 2025
87b87c1
specify `backup.velero.io` kind in `./src/velero/tasks.yaml`
noahpb Feb 25, 2025
65ca3dd
Merge branch 'main' into feat/e2e-test-nightly
noahpb Feb 25, 2025
6d20335
more disk for rke2 nodes
noahpb Feb 25, 2025
6ae6eda
Merge branch 'main' into feat/e2e-test-nightly
noahpb Feb 25, 2025
cba3465
create new task for coredns-custom cm
noahpb Feb 25, 2025
9df9e48
rm task call
noahpb Feb 25, 2025
346f8cb
Merge branch 'main' into feat/e2e-test-nightly
noahpb Mar 6, 2025
4accee0
update rke2 tasks to do coredns override
noahpb Mar 6, 2025
b00e4d1
Merge branch 'main' into feat/e2e-test-nightly
noahpb Mar 6, 2025
0591e66
fix lint
noahpb Mar 6, 2025
270f35f
address pr feedback
noahpb Mar 6, 2025
29271d9
switch to gov iam role
noahpb Mar 7, 2025
50232fd
include util task
noahpb Mar 7, 2025
5056ab4
add coredns fixes and add netpol for rke2
noahpb Mar 7, 2025
79969f5
Merge branch 'main' into feat/e2e-test-nightly
noahpb Mar 7, 2025
335353f
fix task name
noahpb Mar 7, 2025
c37402b
include nested dirs in workflow trigger for rke2 IaC
noahpb Mar 10, 2025
f7f4e22
fix: adjust network tests to work across k8s distros
noahpb Mar 11, 2025
07a437f
metrics fix for rke2 hopefully
noahpb Mar 11, 2025
1aeb6d3
add args for etcd and kube-scheduler
noahpb Mar 11, 2025
de2e1dc
add sudo
noahpb Mar 12, 2025
cafa022
fix etcd args
noahpb Mar 12, 2025
e02a1b1
add eks testing and coredns patch
noahpb Mar 12, 2025
bdbfa14
eks coredns cm patch
noahpb Mar 12, 2025
614cb57
rke2 components update
noahpb Mar 12, 2025
b11335b
Merge branch 'main' into feat/e2e-test-nightly
noahpb Mar 12, 2025
bfc9375
ignore e2e test failures on eks
noahpb Mar 13, 2025
7c291e4
switch to local path provisioner
noahpb Mar 13, 2025
1b1d7a9
dont expand vars
noahpb Mar 13, 2025
994e5aa
Merge branch 'main' into feat/e2e-test-nightly
noahpb Mar 13, 2025
bdf747c
selinux fix for local path provisioner rke2
noahpb Mar 13, 2025
c097ba9
install longhorn
noahpb Mar 14, 2025
7e885ad
no longhorn ui replicas
noahpb Mar 14, 2025
f8bee5e
Merge branch 'main' into feat/e2e-test-nightly
noahpb Mar 14, 2025
5368bb4
rm `chcon` command for local path provisioner
noahpb Mar 14, 2025
1cfa441
Merge branch 'main' into feat/e2e-test-nightly
noahpb Mar 25, 2025
ef34cf6
allow passthrough gw validation to be bypassed
noahpb Mar 25, 2025
a9a68ac
add renovate config for rke2 helmcharts
noahpb Mar 25, 2025
6ca953b
add renovate config for rke2 helmcharts
noahpb Mar 25, 2025
163f022
update wait for rke2 cluster ready logic
noahpb Mar 25, 2025
424b22b
lint fix; bash syntax fix
noahpb Mar 25, 2025
4233047
syntax fix
noahpb Mar 26, 2025
e791b8a
modify if statement
noahpb Mar 26, 2025
161d372
address feedback on checking for denied responses in network tests
noahpb Mar 26, 2025
05aa113
support templating default coredns configmap
noahpb Mar 26, 2025
a64d372
task file fix - rm default value for validate_passthrough
noahpb Mar 26, 2025
94c69eb
fix helmchart install, use native approach for customizing rke2 coredns
noahpb Mar 26, 2025
e78ff32
lint fix
noahpb Mar 26, 2025
8f482d0
rm task
noahpb Mar 26, 2025
945e6c5
Update test/jest/network.spec.ts
noahpb Mar 27, 2025
c80a256
simplify node readiness check command; clean up output
noahpb Mar 27, 2025
fa53068
add back wait command
noahpb Mar 27, 2025
77b9e25
Merge branch 'main' into feat/e2e-test-nightly
noahpb Mar 27, 2025
0d856fd
rke2 coredns configmap fix
noahpb Mar 27, 2025
7f46b5a
rm extraconfig
noahpb Mar 27, 2025
6a99333
Merge branch 'main' into feat/e2e-test-nightly
noahpb Mar 28, 2025
407fbda
chore(deps): update support-deps (#1390)
renovate[bot] Mar 28, 2025
58a465e
feat: theme customization (#1382)
slaskawi Mar 28, 2025
c67f950
fix: add delete credential keycloak secret value (#1398)
chance-coleman Mar 31, 2025
3c51efe
chore(deps): update keycloak to v0.11.1 (#1400)
renovate[bot] Mar 31, 2025
94c5651
chore(deps): update support-deps (#1392)
renovate[bot] Apr 1, 2025
f98e90e
chore(deps): update grafana (#1383)
renovate[bot] Apr 1, 2025
0b7a71c
fix: broken selectors for internal dependencies on charts (#1403)
mjnagel Apr 1, 2025
f9667b5
chore(deps): update ts-jest to v29.3.0 (#1377)
renovate[bot] Apr 1, 2025
b42cd35
chore(deps): update support dependencies to v22.13.17 (#1401)
renovate[bot] Apr 1, 2025
fbc8ce0
feat!: implement operator authorization policy management (#1384)
chance-coleman Apr 1, 2025
66af94c
chore(main): release 0.39.0 (#1373)
github-actions[bot] Apr 1, 2025
014b8fe
chore: update changelog (#1406)
chance-coleman Apr 1, 2025
b16f953
chore(docs): fix order of authpols doc (#1408)
chance-coleman Apr 1, 2025
80cff2e
adjust `failurePolicy` for longhorn chart
noahpb Apr 2, 2025
5833183
Merge branch 'main' into feat/e2e-test-nightly
noahpb Apr 2, 2025
a194ef2
timeout 10m for longhorn
noahpb Apr 2, 2025
6ecc5b7
test non-k3d w/o nv probes
noahpb Apr 2, 2025
2169b90
Merge branch 'main' into feat/e2e-test-nightly
noahpb Apr 4, 2025
2dee6be
add nv patch back
noahpb Apr 4, 2025
51e2c1a
Merge branch 'main' into feat/e2e-test-nightly
noahpb Apr 4, 2025
aa862ca
switch longhorn install method
noahpb Apr 4, 2025
4753f6e
no hooks
noahpb Apr 7, 2025
74680d6
Merge branch 'main' into feat/e2e-test-nightly
noahpb Apr 7, 2025
eae1dda
Merge branch 'main' into feat/e2e-test-nightly
noahpb Apr 7, 2025
ff6be32
Merge branch 'main' into feat/e2e-test-nightly
noahpb Apr 9, 2025
6ac523c
Merge branch 'main' into feat/e2e-test-nightly
noahpb Apr 9, 2025
8c7ed2c
Merge branch 'main' into feat/e2e-test-nightly
noahpb Apr 10, 2025
01056a3
cleanup
noahpb Apr 10, 2025
98f8c02
get helm version from renovate into tf
noahpb Apr 10, 2025
f8c1e26
continue on error for all clusters
noahpb Apr 10, 2025
5548920
tf fix
noahpb Apr 10, 2025
e65b689
wrong helm template; use right tag
noahpb Apr 10, 2025
a3afa79
lint fix
noahpb Apr 10, 2025
90ee102
update comments
noahpb Apr 11, 2025
292b4ff
Merge branch 'main' into feat/e2e-test-nightly
noahpb Apr 11, 2025
993d1cf
update renovate config
noahpb Apr 14, 2025
f00a6a9
address feedback
noahpb Apr 14, 2025
b4d843b
Merge branch 'main' into feat/e2e-test-nightly
noahpb Apr 14, 2025
fc9189d
fix typo
noahpb Apr 14, 2025
948c07b
syntax fix
noahpb Apr 14, 2025
c5ec3e2
Merge branch 'main' into feat/e2e-test-nightly
noahpb Apr 14, 2025
8d9742c
don't filter out `helm-install` pods in wait for cluster components
noahpb Apr 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/bundles/rke2/uds-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@ packages:
optionalComponents:
- metrics-server
overrides:
istio-admin-gateway:
gateway:
values:
- path: service.annotations
value:
service.beta.kubernetes.io/aws-load-balancer-scheme: "internet-facing"
service.beta.kubernetes.io/aws-load-balancer-target-node-labels: "kubernetes.io/os=linux"
istio-tenant-gateway:
gateway:
values:
- path: service.annotations
value:
service.beta.kubernetes.io/aws-load-balancer-scheme: "internet-facing"
service.beta.kubernetes.io/aws-load-balancer-target-node-labels: "kubernetes.io/os=linux"
velero:
velero:
variables:
Expand Down
2 changes: 1 addition & 1 deletion .github/test-infra/aws/rke2/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data "aws_vpc" "vpc" {

data "aws_subnet" "rke2_ci_subnet" {
vpc_id = data.aws_vpc.vpc.id
availability_zone = "${var.region}c"
availability_zone = "${var.region}a"

filter {
name = "tag:Name"
Expand Down
13 changes: 13 additions & 0 deletions .github/test-infra/aws/rke2/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,19 @@ data "aws_iam_policy_document" "aws_ccm" {
}
}

data "local_file" "helm_template" {
filename = "./scripts/helmchart-template.yaml"
}

data "http" "aws-lb-controller-iam" {
url = "https://raw.githubusercontent.com/kubernetes-sigs/aws-load-balancer-controller/v2.12.0/docs/install/iam_policy_us-gov.json"
}
resource "aws_iam_role_policy" "aws-lb-controller" {
name = "${local.cluster_name}-lb-controller"
role = aws_iam_role.rke2_server.id
policy = data.http.aws-lb-controller-iam.response_body
}

resource "aws_iam_role_policy" "s3_token" {
name = "${local.cluster_name}-server-token"
role = aws_iam_role.rke2_server.id
Expand Down
9 changes: 6 additions & 3 deletions .github/test-infra/aws/rke2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ locals {
ccm_external = true,
token_bucket = module.statestore.bucket,
token_object = module.statestore.token_object
cluster_name = local.tags.cluster_name
helm_chart_template = file("./scripts/helmchart-template.yaml")
}
}

Expand Down Expand Up @@ -95,7 +97,7 @@ resource "aws_instance" "rke2_ci_control_plane_node" {
associate_public_ip_address = true

root_block_device {
volume_size = 100
volume_size = 250
}

tags = merge(local.tags, { "kubernetes.io/cluster/${local.cluster_name}" = "owned" })
Expand All @@ -107,15 +109,16 @@ resource "aws_instance" "rke2_ci_agent_node" {
ami = data.aws_ami.rhel_rke2.image_id
instance_type = var.agent_instance_type
key_name = aws_key_pair.control_plane_key_pair.key_name
user_data = templatefile("${path.module}/scripts/user_data.sh", merge(local.userdata, { BOOTSTRAP_IP = aws_instance.rke2_ci_bootstrap_node.private_ip }))
user_data = templatefile("${path.module}/scripts/user_data.sh", merge(local.userdata, { BOOTSTRAP_IP = aws_instance.rke2_ci_bootstrap_node.private_ip, AGENT_NODE = true }))
subnet_id = data.aws_subnet.rke2_ci_subnet.id
user_data_replace_on_change = true
iam_instance_profile = aws_iam_instance_profile.rke2_server.name
vpc_security_group_ids = [aws_security_group.rke2_ci_node_sg.id]
associate_public_ip_address = true
availability_zone = "${var.region}a"

root_block_device {
volume_size = 100
volume_size = 250
}

tags = merge(local.tags, { "kubernetes.io/cluster/${local.cluster_name}" = "owned" })
Expand Down
2 changes: 1 addition & 1 deletion .github/test-infra/aws/rke2/scripts/get-kubeconfig.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ done
mkdir -p ~/.kube

# Copy kubectl from cluster node
ssh -o StrictHostKeyChecking=no -i key.pem ${node_user}@${bootstrap_ip} "mkdir -p /home/${node_user}/.kube && sudo cp /etc/rancher/rke2/rke2.yaml /home/${node_user}/.kube/config && sudo chown ${node_user} /home/${node_user}/.kube/config" > /dev/null
ssh -o StrictHostKeyChecking=no -i key.pem ${node_user}@${bootstrap_ip} "mkdir -p /home/${node_user}/.kube && sudo cp /etc/rancher/rke2/rke2.yaml /home/${node_user}/.kube/config && sudo chown ${node_user} /home/${node_user}/.kube/config" > /dev/null
scp -o StrictHostKeyChecking=no -i key.pem ${node_user}@${bootstrap_ip}:/home/${node_user}/.kube/config ./rke2-config > /dev/null

# Replace the loopback address with the cluster hostname
Expand Down
107 changes: 107 additions & 0 deletions .github/test-infra/aws/rke2/scripts/helmchart-template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# Copyright 2025 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial

apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: aws-cloud-controller-manager
namespace: kube-system
spec:
chart: aws-cloud-controller-manager
repo: https://kubernetes.github.io/cloud-provider-aws
# renovate: datasource=helm depName=aws-cloud-controller-manager versioning=helm registryUrl=https://kubernetes.github.io/cloud-provider-aws
version: 0.0.8
targetNamespace: kube-system
bootstrap: true
valuesContent: |-
nodeSelector:
node-role.kubernetes.io/control-plane: "true"
hostNetworking: true
args:
- --configure-cloud-routes=false
- --v=2
- --cloud-provider=aws
---
# aws lb controller helm values: https://github.com/kubernetes-sigs/aws-load-balancer-controller/tree/main/helm/aws-load-balancer-controller#configuration
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: aws-load-balancer-controller
namespace: kube-system
spec:
chart: aws-load-balancer-controller
repo: https://aws.github.io/eks-charts
# renovate: datasource=helm depName=aws-load-balancer-controller versioning=helm registryUrl=https://aws.github.io/eks-charts
version: 1.12.0
targetNamespace: kube-system
valuesContent: |-
clusterName: ${CLUSTER_NAME}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: coredns-custom
namespace: kube-system
data:
uds.override: |
rewrite stop {
name regex (.*\.admin\.uds\.dev) admin-ingressgateway.istio-admin-gateway.svc.cluster.local answer auto
}
rewrite stop {
name regex (.*\.uds\.dev) tenant-ingressgateway.istio-tenant-gateway.svc.cluster.local answer auto
}
---
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: rke2-coredns
namespace: kube-system
spec:
valuesContent: |-
extraVolumes:
- name: custom-config-volume
configMap:
name: coredns-custom
optional: true
extraVolumeMounts:
- name: custom-config-volume
mountPath: /etc/coredns/custom
readOnly: true
# Below we take the default kubernetes configmap for coredns and add an import statement for our custom configmap
# Ref: https://github.com/rancher/rke2-charts/blob/8078e4184e5b1730e518344aaa170a5e49e29766/charts/rke2-coredns/rke2-coredns/1.39.101/values.yaml#L104
servers:
- zones:
- zone: .
port: 53
# -- expose the service on a different port
# servicePort: 5353
# If serviceType is nodePort you can specify nodePort here
# nodePort: 30053
# hostPort: 53
plugins:
- name: errors
# Serves a /health endpoint on :8080, required for livenessProbe
- name: health
configBlock: |-
lameduck 5s
# Serves a /ready endpoint on :8181, required for readinessProbe
- name: ready
# Required to query kubernetes API for data
- name: kubernetes
parameters: cluster.local in-addr.arpa ip6.arpa
configBlock: |-
pods insecure
fallthrough in-addr.arpa ip6.arpa
ttl 30
# Serves a /metrics endpoint on :9153, required for serviceMonitor
- name: prometheus
parameters: 0.0.0.0:9153
- name: forward
parameters: . /etc/resolv.conf
- name: cache
parameters: 30
- name: loop
- name: reload
- name: loadbalance
- name: import
parameters: /etc/coredns/custom/*.override
79 changes: 22 additions & 57 deletions .github/test-infra/aws/rke2/scripts/user_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,79 +2,45 @@
# Copyright 2024 Defense Unicorns
# SPDX-License-Identifier: AGPL-3.0-or-later OR LicenseRef-Defense-Unicorns-Commercial



info() {
echo "[INFO] " "$@"
}

export CCM="${ccm}"
export CCM_EXTERNAL="${ccm_external}"
export CLUSTER_NAME="${cluster_name}"

###############################
### pre userdata
###############################
pre_userdata() {
info "Beginning user defined pre userdata"

# add aws cloud controller
info "Adding AWS cloud provider manifest."
info "Create HelmChart Resources."
mkdir -p /var/lib/rancher/rke2/server/manifests
cat > /var/lib/rancher/rke2/server/manifests/00-aws-ccm.yaml << EOM
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: aws-cloud-controller-manager
namespace: kube-system
spec:
chart: aws-cloud-controller-manager
repo: https://kubernetes.github.io/cloud-provider-aws
version: 0.0.8
targetNamespace: kube-system
bootstrap: true
valuesContent: |-
nodeSelector:
node-role.kubernetes.io/control-plane: "true"
hostNetworking: true
args:
- --configure-cloud-routes=false
- --v=2
- --cloud-provider=aws
cat > helmchart-template.yaml << EOM
${helm_chart_template}
EOM

#longhorn helm values: https://github.com/longhorn/longhorn/tree/master/chart
cat > /var/lib/rancher/rke2/server/manifests/01-longhorn.yaml << EOM
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: longhorn
namespace: kube-system
spec:
chart: longhorn
repo: https://charts.longhorn.io
version: 1.7.1
targetNamespace: kube-system
EOM

#metallb helm values: https://github.com/metallb/metallb/tree/main/charts/metallb
cat > /var/lib/rancher/rke2/server/manifests/02-metallb.yaml << EOM
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: metallb
namespace: kube-system
spec:
chart: metallb
repo: https://metallb.github.io/metallb
version: 0.14.8
targetNamespace: kube-system
EOM
envsubst < helmchart-template.yaml > /var/lib/rancher/rke2/server/manifests/00-helmcharts.yaml
# We install longhorn from a template to avoid install issues with the HelmController
# <!-- renovate: datasource=helm depName=longhorn versioning=helm registryUrl=https://charts.longhorn.io -->
LONGHORN_VERSION=1.8.1
HELM_LATEST=$(curl -L --silent --show-error --fail "https://get.helm.sh/helm-latest-version" 2>&1 || true)
curl https://get.helm.sh/helm-$HELM_LATEST-linux-amd64.tar.gz --output helm.tar.gz
tar -xvf ./helm.tar.gz && rm -rf ./helm.tar.gz
chmod +x ./linux-amd64/helm
./linux-amd64/helm repo add longhorn https://charts.longhorn.io
./linux-amd64/helm repo update
./linux-amd64/helm template longhorn longhorn/longhorn --version $LONGHORN_VERSION --set defaultSettings.deletingConfirmationFlag=true --set longhornUI.replicas=0 --set namespaceOverride=kube-system --no-hooks > /var/lib/rancher/rke2/server/manifests/01-longhorn.yaml
rm -rf ./linux-amd64

info "Installing awscli"
yum install -y unzip jq || apt-get -y install unzip jq
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
curl -L https://github.com/mikefarah/yq/releases/download/v4.40.4/yq_linux_amd64 -o yq
chmod +x yq

echo "Getting OIDC keypair"
sudo mkdir /irsa
Expand All @@ -84,19 +50,18 @@ aws secretsmanager get-secret-value --secret-id ${secret_prefix}-oidc-public-key
chcon -t svirt_sandbox_file_t /irsa/*

info "Setting up RKE2 config file"
curl -L https://github.com/mikefarah/yq/releases/download/v4.40.4/yq_linux_amd64 -o yq
chmod +x yq
./yq -i '.cloud-provider-name += "external"' /etc/rancher/rke2/config.yaml
./yq -i '.disable-cloud-controller += "true"' /etc/rancher/rke2/config.yaml
./yq -i '.kube-apiserver-arg += "service-account-key-file=/irsa/signer.key.pub"' /etc/rancher/rke2/config.yaml
./yq -i '.kube-apiserver-arg += "service-account-key-file=/irsa/signer.key.pub"' /etc/rancher/rke2/config.yaml
./yq -i '.kube-apiserver-arg += "service-account-signing-key-file=/irsa/signer.key"' /etc/rancher/rke2/config.yaml
./yq -i '.kube-apiserver-arg += "api-audiences=kubernetes.svc.default"' /etc/rancher/rke2/config.yaml
./yq -i '.kube-apiserver-arg += "service-account-issuer=https://${BUCKET_REGIONAL_DOMAIN_NAME}"' /etc/rancher/rke2/config.yaml
./yq -i '.kube-apiserver-arg += "audit-log-path=/var/log/kubernetes/audit/audit.log"' /etc/rancher/rke2/config.yaml
#Fix for metrics server scraping of kubernetes api server components
./yq -i '.kube-controller-manager-arg[2] = "bind-address=0.0.0.0"' /etc/rancher/rke2/config.yaml
./yq -i '.kube-scheduler-arg += "bind-address=0.0.0.0"' /etc/rancher/rke2/config.yaml
./yq -i '.etcd-arg += "listen-metrics-urls=http://0.0.0.0:2381"|.etcd-arg style="double"' /etc/rancher/rke2/config.yaml
rm -rf ./yq


}

pre_userdata
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test-aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,19 @@ jobs:
- name: Create IAC
run: uds run -f tasks/iac.yaml apply-tofu --no-progress --set K8S_DISTRO=aks --set CLOUD=azure

- name: Configure Cluster DNS
run: uds run -f tasks/utils.yaml aks-coredns-setup --no-progress

- name: Deploy Core Bundle
env:
UDS_CONFIG: .github/bundles/aks/uds-config.yaml
run: uds deploy .github/bundles/aks/uds-bundle-uds-core-aks-nightly-*.tar.zst --confirm
timeout-minutes: 30

- name: Test UDS Core
run: uds run -f tasks/test.yaml uds-core-non-k3d --set EXCLUDED_PACKAGES="metrics-server"
continue-on-error: true

- name: Debug Output
if: ${{ always() }}
uses: ./.github/actions/debug-output
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/test-eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,19 @@ jobs:
run: uds run -f tasks/iac.yaml create-iac --no-progress --set K8S_DISTRO=eks --set CLOUD=aws
timeout-minutes: 20

- name: Configure Cluster DNS
run: uds run -f tasks/utils.yaml eks-coredns-setup --no-progress

- name: Deploy Core Bundle
env:
UDS_CONFIG: .github/bundles/eks/uds-config.yaml
run: uds deploy .github/bundles/eks/uds-bundle-uds-core-eks-nightly-*.tar.zst --confirm
timeout-minutes: 30

- name: Test UDS Core
run: uds run -f tasks/test.yaml uds-core-non-k3d --set EXCLUDED_PACKAGES="metrics-server"
continue-on-error: true

Comment thread
mjnagel marked this conversation as resolved.
- name: Debug Output
if: ${{ always() }}
uses: ./.github/actions/debug-output
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test-rke2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ jobs:
run: uds deploy .github/bundles/rke2/uds-bundle-uds-core-rke2-nightly-*.tar.zst --confirm
timeout-minutes: 30

- name: Test UDS Core
run: uds run -f tasks/test.yaml uds-core-non-k3d
continue-on-error: true

- name: Debug Output
if: ${{ always() }}
uses: ./.github/actions/debug-output
Expand Down
2 changes: 1 addition & 1 deletion src/istio/tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tasks:
inputs:
validate_passthrough:
description: Whether to validate the passthrough gateway
default: "true"

actions:
- description: Validate the Istio Admin Gateway
wait:
Expand Down
Loading
Loading