Compare commits
39 Commits
a32a6c9c0c
...
Ubuntu2204
| Author | SHA1 | Date | |
|---|---|---|---|
| 5e4567b162 | |||
| 7febe35286 | |||
| 7f68acc95e | |||
| ca01cc7d4c | |||
| 809574dcd2 | |||
| 64ed3cd449 | |||
| bbaff25725 | |||
| c70620e88c | |||
| f25d15ed39 | |||
| 11ac815ac6 | |||
| abc231fb22 | |||
| 5c1dcf95c8 | |||
| 7e6c1d6aa9 | |||
| 24aaf55e4b | |||
| 297fb39202 | |||
| 13b8e4c43d | |||
| cc0f2bd683 | |||
| 619923b2d4 | |||
| 19628c3080 | |||
| e6c366a5be | |||
| 12ae24f950 | |||
| b94b7a2916 | |||
| 652a5d25c9 | |||
| 8b30841fc4 | |||
| af4c3a1b08 | |||
| 51f36b921d | |||
| 5d279e0e86 | |||
| 567749e74d | |||
| 3b644541dd | |||
| d29e73a424 | |||
| ad38b34ce4 | |||
| 0a2cc82e2d | |||
| e27b3f1f6f | |||
| 963930e04d | |||
| 8463a257d6 | |||
| ad8df64b13 | |||
| d828b83e0b | |||
| 139629a458 | |||
| e220c2bc24 |
21
.drone.yml
21
.drone.yml
@@ -6,22 +6,33 @@ volumes:
|
|||||||
- name: output
|
- name: output
|
||||||
claim:
|
claim:
|
||||||
name: flexvolsmb-drone-output
|
name: flexvolsmb-drone-output
|
||||||
- name: scratch
|
|
||||||
claim:
|
|
||||||
name: flexvolsmb-drone-scratch
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Debugging information
|
||||||
|
image: bv11-cr01.bessems.eu/library/packer-extended
|
||||||
|
commands:
|
||||||
|
- ansible --version
|
||||||
|
- ovftool --version
|
||||||
|
- packer --version
|
||||||
|
- yamllint --version
|
||||||
- name: Build CAPV image(s)
|
- name: Build CAPV image(s)
|
||||||
image: k8s.gcr.io/scl-image-builder/cluster-node-image-builder-amd64:v0.1.11
|
image: bv11-cr01.bessems.eu/library/packer-extended
|
||||||
pull: always
|
pull: always
|
||||||
commands:
|
commands:
|
||||||
- |
|
- |
|
||||||
ls -lash
|
jq '.password="'"$VSPHERE_PASSWORD"'"' ./packer/ova/vsphere.json > /tmp/vsphere.json && \
|
||||||
|
mv /tmp/vsphere.json ./packer/ova/vsphere.json
|
||||||
|
- |
|
||||||
|
make deps-ova
|
||||||
- |
|
- |
|
||||||
make build-node-ova-vsphere-ubuntu-2204
|
make build-node-ova-vsphere-ubuntu-2204
|
||||||
|
- |
|
||||||
|
mv -fv ./output/**/*.ova /output
|
||||||
environment:
|
environment:
|
||||||
VSPHERE_PASSWORD:
|
VSPHERE_PASSWORD:
|
||||||
from_secret: vsphere_password
|
from_secret: vsphere_password
|
||||||
|
IB_OVFTOOL: true
|
||||||
|
IB_OVFTOOL_ARGS: --allowExtraConfig
|
||||||
volumes:
|
volumes:
|
||||||
- name: output
|
- name: output
|
||||||
path: /output
|
path: /output
|
||||||
|
|||||||
113
.gitea/workflows/actions.yaml
Normal file
113
.gitea/workflows/actions.yaml
Normal file
@@ -0,0 +1,113 @@
|
|||||||
|
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 }}
|
||||||
@@ -81,7 +81,7 @@ deps-osc:
|
|||||||
hack/ensure-packer.sh
|
hack/ensure-packer.sh
|
||||||
hack/ensure-goss.sh
|
hack/ensure-goss.sh
|
||||||
packer plugins install github.com/outscale/outscale
|
packer plugins install github.com/outscale/outscale
|
||||||
|
|
||||||
.PHONY: deps-gce
|
.PHONY: deps-gce
|
||||||
deps-gce: ## Installs/checks dependencies for GCE builds
|
deps-gce: ## Installs/checks dependencies for GCE builds
|
||||||
deps-gce:
|
deps-gce:
|
||||||
@@ -93,7 +93,7 @@ deps-gce:
|
|||||||
deps-ova: ## Installs/checks dependencies for OVA builds
|
deps-ova: ## Installs/checks dependencies for OVA builds
|
||||||
deps-ova:
|
deps-ova:
|
||||||
hack/ensure-ansible.sh
|
hack/ensure-ansible.sh
|
||||||
hack/ensure-ansible-windows.sh
|
: hack/ensure-ansible-windows.sh
|
||||||
hack/ensure-packer.sh
|
hack/ensure-packer.sh
|
||||||
hack/ensure-goss.sh
|
hack/ensure-goss.sh
|
||||||
hack/ensure-ovftool.sh
|
hack/ensure-ovftool.sh
|
||||||
@@ -494,7 +494,7 @@ $(OCI_VALIDATE_TARGETS): deps-oci
|
|||||||
packer validate $(PACKER_NODE_FLAGS) -var-file="$(abspath packer/oci/$(subst validate-oci-,,$@).json)" $(ABSOLUTE_PACKER_VAR_FILES) packer/oci/packer.json
|
packer validate $(PACKER_NODE_FLAGS) -var-file="$(abspath packer/oci/$(subst validate-oci-,,$@).json)" $(ABSOLUTE_PACKER_VAR_FILES) packer/oci/packer.json
|
||||||
|
|
||||||
.PHONY: $(OSC_BUILD_TARGETS)
|
.PHONY: $(OSC_BUILD_TARGETS)
|
||||||
$(OSC_BUILD_TARGETS): deps-osc
|
$(OSC_BUILD_TARGETS): deps-osc
|
||||||
packer build $(PACKER_NODE_FLAGS) -var-file="$(abspath packer/outscale/$(subst build-osc-,,$@).json)" $(ABSOLUTE_PACKER_VAR_FILES) packer/outscale/packer.json
|
packer build $(PACKER_NODE_FLAGS) -var-file="$(abspath packer/outscale/$(subst build-osc-,,$@).json)" $(ABSOLUTE_PACKER_VAR_FILES) packer/outscale/packer.json
|
||||||
|
|
||||||
.PHONY: $(OSC_VALIDATE_TARGETS)
|
.PHONY: $(OSC_VALIDATE_TARGETS)
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
apiVersion: kubeadm.k8s.io/v1beta2
|
apiVersion: kubeadm.k8s.io/v1beta3
|
||||||
kind: ClusterConfiguration
|
kind: ClusterConfiguration
|
||||||
imageRepository: {{ kubernetes_container_registry }}
|
imageRepository: {{ kubernetes_container_registry }}
|
||||||
kubernetesVersion: {{ kubernetes_semver }}
|
kubernetesVersion: {{ kubernetes_semver }}
|
||||||
dns:
|
dns:
|
||||||
imageRepository: {{ kubernetes_container_registry }}/coredns
|
imageRepository: {{ kubernetes_container_registry }}/coredns
|
||||||
---
|
---
|
||||||
apiVersion: kubeadm.k8s.io/v1beta2
|
apiVersion: kubeadm.k8s.io/v1beta3
|
||||||
kind: InitConfiguration
|
kind: InitConfiguration
|
||||||
nodeRegistration:
|
nodeRegistration:
|
||||||
criSocket: {{ containerd_cri_socket }}
|
criSocket: {{ containerd_cri_socket }}
|
||||||
@@ -43,3 +43,11 @@
|
|||||||
- { src: files/etc/networkd-dispatcher/routable.d/20-chrony.j2, dest: /etc/networkd-dispatcher/routable.d/20-chrony }
|
- { 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/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 }
|
- { 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', '>=')
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user