Skip to content

Commit

Permalink
Drop focal, enable noble where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess committed Mar 5, 2025
1 parent 0f373b8 commit cd7cb8e
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 32 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
strategy:
matrix:
python:
- "3.8"
- "3.10"
- "3.12"
steps:
Expand Down
2 changes: 1 addition & 1 deletion bin/report
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ bucket = s3.Bucket("jenkaas")

OBJECTS = bucket.objects.all()

SERIES = ["focal", "bionic", "xenial"]
SERIES = ["noble", "jammy"]

REPORT_HOST = "https://jenkaas.s3.amazonaws.com"

Expand Down
1 change: 1 addition & 0 deletions jobs/build-charms/builder_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ class Series(Enum):
BIONIC = "18.04"
FOCAL = "20.04"
JAMMY = "22.04"
NOBLE = "24.04"

@classmethod
def from_value(cls, value: str) -> "Series":
Expand Down
2 changes: 1 addition & 1 deletion jobs/integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def pytest_addoption(parser):
parser.addoption(
"--series",
action="store",
default=os.environ.get("SERIES", "focal"),
default=os.environ.get("SERIES", "jammy"),
help="Base series",
)
parser.addoption("--cloud", action="store", help="Juju cloud to use")
Expand Down
2 changes: 1 addition & 1 deletion jobs/integration/templates/validate-dns-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
containers:
- name: ubuntu
image: rocks.canonical.com/cdk/ubuntu:focal
image: rocks.canonical.com/cdk/ubuntu:jammy
imagePullPolicy: IfNotPresent
command: ['sh', '-c', 'apt update -qqy && apt install -qqfy bind9-host && echo "validate-dns: Ready" && sleep 3600 || echo "validate-dns: Failed"']
restartPolicy: Never
6 changes: 1 addition & 5 deletions jobs/integration/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@


# note: we can't upgrade to focal until after it's released
SERIES_ORDER = [
"bionic",
"focal",
"jammy",
]
SERIES_ORDER = ["bionic", "focal", "jammy", "noble"]


def tracefunc(frame, event, arg):
Expand Down
3 changes: 0 additions & 3 deletions jobs/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
type: user-defined
name: series
values:
- focal
- jammy
builders:
- set-env:
Expand Down Expand Up @@ -89,7 +88,6 @@
type: user-defined
name: series
values:
- focal
- jammy
- axis:
type: user-defined
Expand Down Expand Up @@ -144,7 +142,6 @@
type: user-defined
name: series
values:
- focal
- jammy
- axis:
type: user-defined
Expand Down
2 changes: 1 addition & 1 deletion jobs/release/bugfix-spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ set -x
# ENV
###############################################################################
SNAP_VERSION=${1:-1.25/stable}
SERIES=${2:-focal}
SERIES=${2:-jammy}
JUJU_DEPLOY_BUNDLE=charmed-kubernetes
JUJU_DEPLOY_CHANNEL=${3:-candidate}
JUJU_CLOUD=aws/us-east-2
Expand Down
2 changes: 1 addition & 1 deletion jobs/release/release-upgrade-spec
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export CHARM_CHANNEL_UPGRADE_TO=beta
export SNAP_CHANNEL_UPGRADE_TO=${1:-1.27/beta}

SNAP_VERSION=${2:-1.26/stable}
SERIES=${3:-focal}
SERIES=${3:-jammy}
JUJU_CLOUD=${4:-vsphere/Boston}
JUJU_DEPLOY_BUNDLE=charmed-kubernetes
JUJU_DEPLOY_CHANNEL=stable
Expand Down
4 changes: 0 additions & 4 deletions jobs/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@
- jammy:
hour: '0' # Midnight
dow: '1,3,5' # MWF
- focal:
hour: '12' # Noon
dow: '2,4,6' # TuThSa
charm-channel:
- edge:
snap_versions:
Expand Down Expand Up @@ -124,7 +121,6 @@
type: user-defined
name: series
values:
- focal
- jammy
- axis:
type: user-defined
Expand Down
36 changes: 27 additions & 9 deletions jobs/validate/integrator-spec
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ applications:
constraints: $constraints
options:
channel: $SNAP_VERSION
allow-privileged: 'true'
kubernetes-worker:
constraints: $constraints
options:
Expand All @@ -67,6 +66,11 @@ EOF
vsphere-cloud-provider:
charm: vsphere-cloud-provider
channel: $JUJU_DEPLOY_CHANNEL
relations:
- [vsphere-cloud-provider:certificates, easyrsa:client]
- [vsphere-cloud-provider:kube-control, kubernetes-control-plane:kube-control]
- [vsphere-cloud-provider:external-cloud-provider, kubernetes-control-plane:external-cloud-provider]
- [vsphere-cloud-provider:vsphere-integration, vsphere-integrator:clients]
EOF
elif [ "$JUJU_CLOUD" = "aws/us-east-1" ]; then
# Deploy aws
Expand All @@ -80,12 +84,12 @@ EOF
charm: aws-cloud-provider
channel: $JUJU_DEPLOY_CHANNEL
relations:
- ['aws-integrator', 'kubernetes-control-plane:aws']
- ['aws-integrator', 'kubernetes-worker:aws']
- ['aws-cloud-provider:certificates', 'easyrsa:client']
- ['aws-cloud-provider:kube-control', 'kubernetes-control-plane:kube-control']
- ['aws-cloud-provider:aws-integration', 'aws-integrator:aws']
- ['aws-cloud-provider:external-cloud-provider', 'kubernetes-control-plane:external-cloud-provider']
- [aws-integrator, kubernetes-control-plane:aws]
- [aws-integrator, kubernetes-worker:aws]
- [aws-integrator, aws-cloud-provider:aws-integration]
- [aws-cloud-provider:certificates, easyrsa:client]
- [aws-cloud-provider:kube-control, kubernetes-control-plane:kube-control]
- [aws-cloud-provider:external-cloud-provider, kubernetes-control-plane:external-cloud-provider]
EOF
elif [ "$JUJU_CLOUD" = "google/us-east1" ]; then
# Deploy google
Expand All @@ -100,6 +104,13 @@ EOF
channel: $JUJU_DEPLOY_CHANNEL
options:
enable-loadbalancers: true
relations:
- [gcp-integrator, kubernetes-control-plane:gcp]
- [gcp-integrator, kubernetes-worker:gcp]
- [gcp-integrator, gcp-cloud-provider:gcp-integration]
- [gcp-cloud-provider:certificates, easyrsa:client]
- [gcp-cloud-provider:kube-control, kubernetes-control-plane:kube-control]
- [gcp-cloud-provider:external-cloud-provider, kubernetes-control-plane:external-cloud-provider]
EOF
elif [ "$JUJU_CLOUD" = "azure/centralus" ]; then
# Deploy azure
Expand All @@ -112,9 +123,16 @@ EOF
channel: $JUJU_DEPLOY_CHANNEL
num_units: 1
trust: true
azure-cloud-provider
charm: azure-cloud-provider
channel: $JUJU_DEPLOY_CHANNEL
relations:
- ['azure-integrator', 'kubernetes-control-plane:azure']
- ['azure-integrator', 'kubernetes-worker:azure']
- [azure-integrator, kubernetes-control-plane:azure]
- [azure-integrator, kubernetes-worker:azure]
- [azure-integrator, azure-cloud-provider:azure-integration]
- [azure-cloud-provider:certificates, easyrsa:client]
- [azure-cloud-provider:kube-control, kubernetes-control-plane:kube-control]
- [azure-cloud-provider:external-cloud-provider, kubernetes-control-plane:external-cloud-provider]
EOF
else
>&2 echo "Unspecified cloud"
Expand Down
6 changes: 3 additions & 3 deletions tests/data/bundles/test-kubernetes/bundle.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: test-kubernetes
description: A minimal two-machine Kubernetes cluster, appropriate for development.
series: focal
series: jammy
machines:
'0':
constraints: cores=2 mem=4G root-disk=16G
series: focal
series: jammy
'1':
constraints: cores=4 mem=4G root-disk=16G
series: focal
series: jammy
applications:
containerd:
annotations:
Expand Down
4 changes: 2 additions & 2 deletions tests/data/charms/k8s-ci-charm/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ resources:
tags:
- k8s
series:
- focal
- bionic
- noble
- jammy
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ deps =
[testenv]
deps =
{[base]deps}
pip
-r {toxinidir}/requirements.txt
setenv =
PYTHONPATH = PYTHONPATH:{toxinidir}
Expand Down

0 comments on commit cd7cb8e

Please sign in to comment.