-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for locally built ironic in e2e test
this commit: - adds support for running the e2e tests with locally built ironic image - adds environment variable to enable the feature on demand Reason: There are scenarios outside the CI pipelines when developers need to run the e2e tests and run it with a custom ironic build e.g. to test new features. Signed-off-by: Adam Rozman <[email protected]>
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
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-local-ironic/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 |
27 changes: 27 additions & 0 deletions
27
ironic-deployment/overlays/e2e-local-ironic/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,27 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: baremetal-operator-system | ||
resources: | ||
- ../e2e | ||
|
||
patches: | ||
- path: ironic-patch.yaml | ||
- patch: | | ||
# Don't try to pull again the pre-loaded image | ||
- op: replace | ||
path: /spec/template/spec/containers/0/imagePullPolicy | ||
value: IfNotPresent | ||
- op: replace | ||
path: /spec/template/spec/containers/1/imagePullPolicy | ||
value: IfNotPresent | ||
- op: replace | ||
path: /spec/template/spec/containers/2/imagePullPolicy | ||
value: IfNotPresent | ||
target: | ||
kind: Deployment | ||
name: ironic | ||
|
||
images: | ||
- name: quay.io/metal3-io/ironic | ||
newTag: local | ||
|