-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add BMO 0.8 e2e and drop BMO 0.4. Add ironic 25.0 and 26.0 to overlays. Signed-off-by: Tuomo Tanskanen <[email protected]>
- Loading branch information
Showing
15 changed files
with
280 additions
and
13 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
.github/workflows/e2e-test-optional-periodic-release-0.8.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Periodic E2E Test Optional release-0.8 | ||
|
||
on: | ||
schedule: | ||
# Run every day at 04:20 UTC (it is recommended to avoid running at the start of the hour) | ||
- cron: '20 4 * * *' | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
periodic-e2e-test-optional: | ||
if: github.repository == 'metal3-io/baremetal-operator' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
bmc-protocol: | ||
- redfish | ||
- redfish-virtualmedia | ||
- ipmi | ||
uses: ./.github/workflows/e2e-test.yml | ||
with: | ||
bmc-protocol: ${{ matrix.bmc-protocol }} | ||
ginkgo-focus: upgrade | ||
ref: release-0.8 | ||
permissions: | ||
contents: read |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Periodic E2E Test release-0.8 | ||
|
||
on: | ||
schedule: | ||
# Run every day at 02:20 UTC (it is recommended to avoid running at the start of the hour) | ||
- cron: '20 2 * * *' | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
periodic-e2e-test: | ||
if: github.repository == 'metal3-io/baremetal-operator' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
bmc-protocol: | ||
- redfish | ||
- redfish-virtualmedia | ||
- ipmi | ||
uses: ./.github/workflows/e2e-test.yml | ||
with: | ||
bmc-protocol: ${{ matrix.bmc-protocol }} | ||
ref: release-0.8 | ||
permissions: | ||
contents: read |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
DEPLOY_KERNEL_URL=http://192.168.222.199:6180/images/ironic-python-agent.kernel | ||
DEPLOY_RAMDISK_URL=http://192.168.222.199:6180/images/ironic-python-agent.initramfs | ||
IRONIC_ENDPOINT=https://192.168.222.199:6385/v1/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: baremetal-operator-system | ||
resources: | ||
- https://github.com/metal3-io/baremetal-operator/config/overlays/basic-auth_tls?ref=release-0.8&timeout=120s | ||
configMapGenerator: | ||
- name: ironic | ||
behavior: create | ||
envs: | ||
- ironic.env | ||
patches: | ||
- patch: | | ||
# Don't try to pull again the pre-loaded image | ||
- op: replace | ||
path: /spec/template/spec/containers/0/imagePullPolicy | ||
value: IfNotPresent | ||
target: | ||
kind: Deployment | ||
name: controller-manager | ||
images: | ||
- name: quay.io/metal3-io/baremetal-operator | ||
newTag: release-0.8 | ||
# We cannot use suffix hashes since the kustomizations we build on | ||
# cannot be aware of what suffixes we add. | ||
generatorOptions: | ||
disableNameSuffixHash: true | ||
# NOTE: These credentials are generated automatically in hack/ci-e2e.sh | ||
secretGenerator: | ||
- name: ironic-credentials | ||
files: | ||
- username=ironic-username | ||
- password=ironic-password |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- https://github.com/metal3-io/baremetal-operator/config/namespace?ref=release-0.8 | ||
- https://github.com/metal3-io/baremetal-operator/config/default?ref=release-0.8 | ||
patches: | ||
- patch: | | ||
# Enable test mode (fixture provider instead of ironic) | ||
- op: add | ||
path: /spec/template/spec/containers/0/args/- | ||
value: --test-mode | ||
# Don't try to pull again the pre-loaded image | ||
- op: replace | ||
path: /spec/template/spec/containers/0/imagePullPolicy | ||
value: IfNotPresent | ||
target: | ||
kind: Deployment | ||
name: controller-manager | ||
images: | ||
- name: quay.io/metal3-io/baremetal-operator | ||
newTag: release-0.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
ironic-deployment/overlays/e2e-release-25.0/ironic-patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: ironic | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: ironic-dnsmasq | ||
$patch: delete |
6 changes: 6 additions & 0 deletions
6
ironic-deployment/overlays/e2e-release-25.0/ironic_bmo_configmap.env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
HTTP_PORT=6180 | ||
PROVISIONING_IP=192.168.222.199 | ||
CACHEURL=http://192.168.222.199/images | ||
IRONIC_KERNEL_PARAMS=console=ttyS0 | ||
IRONIC_INSPECTOR_VLAN_INTERFACES=all | ||
USE_IRONIC_INSPECTOR=false |
45 changes: 45 additions & 0 deletions
45
ironic-deployment/overlays/e2e-release-25.0/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: baremetal-operator-system | ||
resources: | ||
- https://github.com/metal3-io/baremetal-operator/config/namespace?ref=release-0.8&timeout=120s | ||
- https://github.com/metal3-io/baremetal-operator/ironic-deployment/base?ref=release-0.8&timeout=120s | ||
|
||
components: | ||
- https://github.com/metal3-io/baremetal-operator/ironic-deployment/components/basic-auth?ref=release-0.8&timeout=120s | ||
- https://github.com/metal3-io/baremetal-operator/ironic-deployment/components/tls?ref=release-0.8&timeout=120s | ||
|
||
configMapGenerator: | ||
- envs: | ||
- ironic_bmo_configmap.env | ||
name: ironic-bmo-configmap | ||
behavior: create | ||
|
||
patches: | ||
- path: ironic-patch.yaml | ||
|
||
images: | ||
- name: quay.io/metal3-io/ironic | ||
newTag: release-25.0 | ||
|
||
# NOTE: These credentials are generated automatically in hack/ci-e2e.sh | ||
secretGenerator: | ||
- name: ironic-htpasswd | ||
behavior: create | ||
envs: | ||
- ironic-htpasswd | ||
|
||
replacements: | ||
# Replace IRONIC_HOST_IP in certificates with the PROVISIONING_IP from the configmap | ||
- source: | ||
kind: ConfigMap | ||
name: ironic-bmo-configmap | ||
fieldPath: .data.PROVISIONING_IP | ||
targets: | ||
- select: | ||
version: v1 | ||
group: cert-manager.io | ||
kind: Certificate | ||
name: | ||
fieldPaths: | ||
- .spec.ipAddresses.0 |
10 changes: 10 additions & 0 deletions
10
ironic-deployment/overlays/e2e-release-26.0/ironic-patch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: ironic | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: ironic-dnsmasq | ||
$patch: delete |
6 changes: 6 additions & 0 deletions
6
ironic-deployment/overlays/e2e-release-26.0/ironic_bmo_configmap.env
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
HTTP_PORT=6180 | ||
PROVISIONING_IP=192.168.222.199 | ||
CACHEURL=http://192.168.222.199/images | ||
IRONIC_KERNEL_PARAMS=console=ttyS0 | ||
IRONIC_INSPECTOR_VLAN_INTERFACES=all | ||
USE_IRONIC_INSPECTOR=false |
45 changes: 45 additions & 0 deletions
45
ironic-deployment/overlays/e2e-release-26.0/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: baremetal-operator-system | ||
resources: | ||
- https://github.com/metal3-io/baremetal-operator/config/namespace?ref=release-0.8&timeout=120s | ||
- https://github.com/metal3-io/baremetal-operator/ironic-deployment/base?ref=release-0.8&timeout=120s | ||
|
||
components: | ||
- https://github.com/metal3-io/baremetal-operator/ironic-deployment/components/basic-auth?ref=release-0.8&timeout=120s | ||
- https://github.com/metal3-io/baremetal-operator/ironic-deployment/components/tls?ref=release-0.8&timeout=120s | ||
|
||
configMapGenerator: | ||
- envs: | ||
- ironic_bmo_configmap.env | ||
name: ironic-bmo-configmap | ||
behavior: create | ||
|
||
patches: | ||
- path: ironic-patch.yaml | ||
|
||
images: | ||
- name: quay.io/metal3-io/ironic | ||
newTag: release-26.0 | ||
|
||
# NOTE: These credentials are generated automatically in hack/ci-e2e.sh | ||
secretGenerator: | ||
- name: ironic-htpasswd | ||
behavior: create | ||
envs: | ||
- ironic-htpasswd | ||
|
||
replacements: | ||
# Replace IRONIC_HOST_IP in certificates with the PROVISIONING_IP from the configmap | ||
- source: | ||
kind: ConfigMap | ||
name: ironic-bmo-configmap | ||
fieldPath: .data.PROVISIONING_IP | ||
targets: | ||
- select: | ||
version: v1 | ||
group: cert-manager.io | ||
kind: Certificate | ||
name: | ||
fieldPaths: | ||
- .spec.ipAddresses.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters