23 Commits

Author SHA1 Message Date
b340b4cdbc feat:Update K8s patch version
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-20 16:35:50 +02:00
f14096e1b4 fix:Enable load_additional_components flag
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-23 16:30:02 +02:00
5efe9a0540 build:Debug SSH connection error
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-22 15:15:15 +02:00
7dfd5c9091 build:Revert image configuration
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-05-22 14:49:03 +02:00
38bae64f01 build:Test shortest possible image name
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-05-22 14:15:33 +02:00
39e0c0dae8 build:Test non-fully-qualified container image name
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-05-22 14:07:11 +02:00
04119f3078 fix:Add missing kube-vip container image (determined by CAPV version)
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-05-22 11:53:39 +02:00
b1cf73f482 Upgrade K8s minor version
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-19 12:22:55 +02:00
f0157db4c1 Replace source image
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-17 12:37:59 +02:00
4979379c51 Upgrade RHEL
Some checks failed
continuous-integration/drone/push Build is failing
2023-05-17 12:27:43 +02:00
9588786c74 Fix rpm name
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-12 16:39:50 +02:00
1be5714f67 Switch from deb to rpm packages
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-05-12 15:55:18 +02:00
4c5025fbd6 Add dependency
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-12 10:43:22 +02:00
7f15853393 Add Redhat subscription manager credentials;Replace iso
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-21 17:35:27 +02:00
bb0c1c5837 Add full path
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-04-21 15:04:43 +02:00
136226ce32 Switch to cdrom for kickstart script
Some checks reported errors
continuous-integration/drone/push Build was killed
2023-04-21 14:55:33 +02:00
1c4858f0ad Enable dhcp
Some checks reported errors
continuous-integration/drone/push Build was killed
2023-04-21 14:48:19 +02:00
dcfdca25a5 Use credentials for source url;Update checksum
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-04-21 14:02:27 +02:00
ddacf57d4a Fix source image
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-04-21 13:34:49 +02:00
bc98e03c49 Remove cloud-init reference
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-04-21 12:40:42 +02:00
4b059cccdb Switch OS
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2023-04-21 12:20:19 +02:00
e9366081c9 Fix pause image tag
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-23 13:44:59 +01:00
59956a6971 New image version
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-20 20:47:57 +01:00
11 changed files with 38 additions and 156 deletions

View File

@ -6,6 +6,9 @@ volumes:
- name: output
claim:
name: flexvolsmb-drone-output
- name: scratch
claim:
name: flexvolsmb-drone-scratch
steps:
- name: Debugging information
@ -22,17 +25,28 @@ steps:
- |
jq '.password="'"$VSPHERE_PASSWORD"'"' ./packer/ova/vsphere.json > /tmp/vsphere.json && \
mv /tmp/vsphere.json ./packer/ova/vsphere.json
jq '.repo_username="'"$REPO_USERNAME"'" | .repo_password="'"$REPO_PASSWORD"'"' --null-input > /tmp/extra_vars.json
- |
make deps-ova
- |
make build-node-ova-vsphere-ubuntu-2204
make build-node-ova-vsphere-rhel-8
- |
mv -fv ./output/**/*.ova /output
environment:
VSPHERE_PASSWORD:
from_secret: vsphere_password
IB_OVFTOOL: true
IB_OVFTOOL_ARGS: --allowExtraConfig
PACKER_FLAGS: -on-error=ask
PACKER_VAR_FILES: /tmp/extra_vars.json
REPO_USERNAME:
from_secret: repo_username
REPO_PASSWORD:
from_secret: repo_password
RHSM_USER:
from_secret: rhsm_username
RHSM_PASS:
from_secret: rhsm_password
VSPHERE_PASSWORD:
from_secret: vsphere_password
volumes:
- name: output
path: /output

View File

@ -1,113 +0,0 @@
name: Container & Helm chart
on: [push]
jobs:
# linting:
# name: Linting
# runs-on: dind-rootless
# steps:
# - name: Check out repository code
# uses: actions/checkout@v4
# - name: yamllint
# uses: bewuethr/yamllint-action@v1
# with:
# config-file: .yamllint.yaml
semrel_dryrun:
name: Semantic Release (Dry-run)
runs-on: dind-rootless
outputs:
version: ${{ steps.sem_rel.outputs.version }}
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: |
npm install \
semantic-release \
@semantic-release/commit-analyzer \
@semantic-release/exec
- name: Semantic Release (dry-run)
id: sem_rel
run: |
npx semantic-release \
--package @semantic-release/exec \
--package semantic-release \
--branches ${{ gitea.refname }} \
--tag-format 'v${version}' \
--dry-run \
--plugins @semantic-release/commit-analyzer,@semantic-release/exec \
--analyzeCommits @semantic-release/commit-analyzer \
--verifyRelease @semantic-release/exec \
--verifyReleaseCmd 'echo "version=${nextRelease.version}" >> $GITHUB_OUTPUT'
env:
GIT_CREDENTIALS: ${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_APIKEY }}
- name: Assert semantic release output
run: |
[[ -z "${{ steps.sem_rel.outputs.version }}" ]] && {
echo 'No release tag - exiting'; exit 1
} || {
echo 'Release tag set correctly: ${{ steps.sem_rel.outputs.version }}'; exit 0
}
build_image:
name: Cluster API node template
# volumes:
# - /data:/data
# - /output:/output
runs-on: dind
# needs: [semrel_dryrun, linting]
needs: semrel_dryrun
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
uses: addnab/docker-run-action@v3
with:
image: registry.k8s.io/scl-image-builder/cluster-node-image-builder-amd64:v0.1.29
# options: --user root
options: --volumes-from ${{ env.JOB_CONTAINER_NAME }} --rm
run: |
make deps-ova
- name: Build node template
uses: addnab/docker-run-action@v3
with:
image: registry.k8s.io/scl-image-builder/cluster-node-image-builder-amd64:v0.1.29
# options: --user root
options: --volumes-from ${{ env.JOB_CONTAINER_NAME }} --rm
run: |
make build-node-ova-vsphere-ubuntu-2204
# env:
# PACKER_LOG: 1
# semrel:
# name: Semantic Release
# runs-on: dind-rootless
# needs: [build_container, build_chart]
# steps:
# - name: Check out repository code
# uses: actions/checkout@v3
# - name: Setup Node
# uses: actions/setup-node@v3
# with:
# node-version: 20
# - name: Install dependencies
# run: |
# npm install \
# semantic-release \
# @semantic-release/changelog \
# @semantic-release/commit-analyzer \
# @semantic-release/git \
# @semantic-release/release-notes-generator
# - name: Semantic Release
# run: |
# npx semantic-release \
# --branches ${{ gitea.refname }} \
# --tag-format 'v${version}' \
# --plugins @semantic-release/commit-analyzer,@semantic-release/release-notes-generator,@semantic-release/changelog,@semantic-release/git
# env:
# GIT_CREDENTIALS: ${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_APIKEY }}

View File

@ -1,11 +1,11 @@
apiVersion: kubeadm.k8s.io/v1beta3
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
imageRepository: {{ kubernetes_container_registry }}
kubernetesVersion: {{ kubernetes_semver }}
dns:
imageRepository: {{ kubernetes_container_registry }}/coredns
---
apiVersion: kubeadm.k8s.io/v1beta3
apiVersion: kubeadm.k8s.io/v1beta2
kind: InitConfiguration
nodeRegistration:
criSocket: {{ containerd_cri_socket }}

View File

@ -43,11 +43,3 @@
- { src: files/etc/networkd-dispatcher/routable.d/20-chrony.j2, dest: /etc/networkd-dispatcher/routable.d/20-chrony }
- { src: files/etc/networkd-dispatcher/off.d/20-chrony.j2, dest: /etc/networkd-dispatcher/off.d/20-chrony }
- { src: files/etc/networkd-dispatcher/no-carrier.d/20-chrony.j2, dest: /etc/networkd-dispatcher/no-carrier.d/20-chrony }
- name: Create cloud-init datasource config file
copy:
dest: /etc/cloud/ds-identify.cfg
force: true
content: |
datasource: VMware
when: ansible_distribution_version is version('22.04', '>=')

View File

@ -93,15 +93,3 @@
file:
state: absent
path: /etc/udev/rules.d/70-persistent-net.rules
- name: Remove subiquity disable cloud-init networking config
file:
path: /etc/cloud/cloud.cfg.d/subiquity-disable-cloudinit-networking.cfg
state: absent
when: ansible_distribution_version is version('22.04', '>=')
- name: Remove 99-installer.cfg which sets the cloud-init datasource to None
file:
path: /etc/cloud/cloud.cfg.d/99-installer.cfg
state: absent
when: ansible_distribution_version is version('22.04', '>=')

View File

@ -6,5 +6,5 @@
"additional_registry_images_list": "ghcr.io/kube-vip/kube-vip:v0.5.5",
"additional_url_images": "false",
"additional_url_images_list": "",
"load_additional_components": "false"
"load_additional_components": "true"
}

View File

@ -1,9 +1,9 @@
{
"build_target": "virt",
"disable_public_repos": "false",
"extra_debs": "nfs-common open-iscsi",
"extra_debs": "",
"extra_repos": "",
"extra_rpms": "",
"extra_rpms": "iscsi-initiator-utils ca-certificates",
"firstboot_custom_roles_post": "",
"firstboot_custom_roles_pre": "",
"http_proxy": "",
@ -11,7 +11,7 @@
"no_proxy": "",
"node_custom_roles_post": "",
"node_custom_roles_pre": "",
"pause_image": "registry.k8s.io/pause:3.9",
"pause_image": "registry.k8s.io/pause:3.8",
"pip_conf_file": "",
"redhat_epel_rpm": "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm",
"reenable_public_repos": "true",

View File

@ -8,16 +8,16 @@
"kubernetes_container_registry": "registry.k8s.io",
"kubernetes_deb_gpg_key": "https://packages.cloud.google.com/apt/doc/apt-key.gpg",
"kubernetes_deb_repo": "\"https://apt.kubernetes.io/ kubernetes-xenial\"",
"kubernetes_deb_version": "1.27.1-00",
"kubernetes_deb_version": "1.25.10-00",
"kubernetes_http_source": "https://dl.k8s.io/release",
"kubernetes_load_additional_imgs": "false",
"kubernetes_rpm_gpg_check": "True",
"kubernetes_rpm_gpg_key": "\"https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg\"",
"kubernetes_rpm_repo": "https://packages.cloud.google.com/yum/repos/kubernetes-el7-{{user `kubernetes_rpm_repo_arch`}}",
"kubernetes_rpm_repo_arch": "x86_64",
"kubernetes_rpm_version": "1.27.1-0",
"kubernetes_semver": "v1.27.1",
"kubernetes_series": "v1.27",
"kubernetes_rpm_version": "1.25.10-0",
"kubernetes_semver": "v1.25.10",
"kubernetes_series": "v1.25",
"kubernetes_source_type": "pkg",
"systemd_prefix": "/usr/lib/systemd",
"sysusr_prefix": "/usr",

View File

@ -188,8 +188,8 @@
],
"boot_wait": "{{user `boot_wait`}}",
"cluster": "{{user `cluster`}}",
"cd_files": ["{{user `cd_file_path`}}/meta-data", "{{user `cd_file_path`}}/user-data"],
"cd_label": "cidata",
"cd_files": ["{{user `http_directory`}}"],
"cd_label": "OEMDRV",
"communicator": "ssh",
"convert_to_template": "{{user `convert_to_template`}}",
"cpu_cores": "{{user `cpu_cores`}}",
@ -221,7 +221,7 @@
}
],
"password": "{{user `password`}}",
"shutdown_command": "echo '{{user `ssh_password`}}' | sudo -S -E sh -c 'usermod -L {{user `ssh_username`}} && {{user `shutdown_command`}}'",
"shutdown_command": "echo '{{user `ssh_password`}}' | sudo -S -E sh -c '{{user `shutdown_command`}}'",
"ssh_password": "{{user `ssh_password`}}",
"ssh_timeout": "4h",
"ssh_username": "{{user `ssh_username`}}",
@ -359,7 +359,8 @@
"--extra-vars",
"{{user `ansible_user_vars`}}",
"--scp-extra-args",
"{{user `ansible_scp_extra_args`}}"
"{{user `ansible_scp_extra_args`}}",
"-vvvvv"
],
"playbook_file": "./ansible/firstboot.yml",
"type": "ansible",

View File

@ -1,7 +1,7 @@
{
"boot_command_prefix": "<up><tab> text inst.ks=",
"boot_command_suffix": "/8/ks.cfg<enter><wait>",
"boot_media_path": "http://{{ .HTTPIP }}:{{ .HTTPPort }}",
"boot_command_suffix": "packer/ova/linux/{{user `distro_name`}}/http/8/ks.cfg<enter><wait>",
"boot_media_path": "cdrom:",
"build_name": "rhel-8",
"distro_arch": "amd64",
"distro_name": "rhel",
@ -9,9 +9,9 @@
"epel_rpm_gpg_key": "https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8",
"guest_os_type": "rhel8-64",
"http_directory": "./packer/ova/linux/{{user `distro_name`}}/http/",
"iso_checksum": "48f955712454c32718dcde858dea5aca574376a1d7a4b0ed6908ac0b85597811",
"iso_checksum": "517ABCC67EE3B7212F57E180F5D30BE3E8269E7A99E127A3399B7935C7E00A09",
"iso_checksum_type": "sha256",
"iso_url": "file:///rhel-8.4-x86_64-dvd.iso",
"iso_url": "https://{{ user `repo_username` }}:{{ user `repo_password` }}@sn.itch.fyi/Repository/iso/Redhat/rhel-8.8-x86_64-dvd.iso",
"os_display_name": "RHEL 8",
"redhat_epel_rpm": "https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm",
"shutdown_command": "shutdown -P now",

View File

@ -8,9 +8,9 @@
"distro_name": "ubuntu",
"distro_version": "22.04",
"guest_os_type": "ubuntu-64",
"iso_checksum": "a4acfda10b18da50e2ec50ccaf860d7f20b389df8765611142305c0e911d16fd",
"iso_checksum": "10f19c5b2b8d6db711582e0e27f5116296c34fe4b313ba45f9b201a5007056cb",
"iso_checksum_type": "sha256",
"iso_url": "https://releases.ubuntu.com/jammy/ubuntu-22.04.3-live-server-amd64.iso",
"iso_url": "https://releases.ubuntu.com/22.04/ubuntu-22.04.1-live-server-amd64.iso",
"os_display_name": "Ubuntu 22.04",
"shutdown_command": "shutdown -P now",
"vsphere_guest_os_type": "ubuntu64Guest"