-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add kubevirt-ipi workflow #12765
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
openshift-merge-robot
merged 1 commit into
openshift:master
from
bardielle:kubevirt-ipi-workflow
Oct 20, 2020
Merged
Add kubevirt-ipi workflow #12765
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
| approvers: | ||
| - bardielle | ||
| - ravidbro | ||
| - nirarg | ||
| - rgolangh | ||
| - chenyosef |
12 changes: 12 additions & 0 deletions
12
ci-operator/step-registry/ipi/conf/kubevirt/ipi-conf-kubevirt-chain.metadata.json
This file contains hidden or 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,12 @@ | ||
| { | ||
| "path": "ipi/conf/kubevirt/ipi-conf-kubevirt-chain.yaml", | ||
| "owners": { | ||
| "approvers": [ | ||
| "bardielle", | ||
| "ravidbro", | ||
| "nirarg", | ||
| "rgolangh", | ||
| "chenyosef" | ||
| ] | ||
| } | ||
| } | ||
9 changes: 9 additions & 0 deletions
9
ci-operator/step-registry/ipi/conf/kubevirt/ipi-conf-kubevirt-chain.yaml
This file contains hidden or 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,9 @@ | ||
| chain: | ||
| as: ipi-conf-kubevirt | ||
| steps: | ||
| - ref: ipi-conf | ||
| - ref: ipi-conf-kubevirt | ||
| documentation: >- | ||
| This chain generates an install-config.yaml file configured to run clusters in the Kubevirt CI project. | ||
| The Kubevirt specific configs are added to the file generated by the ipi-conf steps. | ||
| This resulting file is stored in the shared directory for future consumption. |
32 changes: 32 additions & 0 deletions
32
ci-operator/step-registry/ipi/conf/kubevirt/ipi-conf-kubevirt-commands.sh
This file contains hidden or 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 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -o nounset | ||
| set -o errexit | ||
| set -o pipefail | ||
|
|
||
| CONFIG="${SHARED_DIR}/install-config.yaml" | ||
|
|
||
|
|
||
| KUBEVIRT_BASE_DOMAIN="tenant1.origin-on-kubevirt.dev.openshift.com" | ||
| KUBEVIRT_API_VIP=192.168.123.15 | ||
| KUBEVIRT_INGRESS_VIP=192.168.123.20 | ||
| KUBEVIRT_KUBECONFIG=${HOME}/.kube/config | ||
| KUBEVIRT_NAMESPACE=tenantcluster | ||
| KUBEVIRT_NETWORK_NAME=tenantcluster | ||
| KUBEVIRT_TENANT_STORAGE_CLASS_NAME=standard | ||
| KUBEVIRT_VOLUME_ACCESS_MODE=ReadWriteMany | ||
|
|
||
| cat >> "${CONFIG}" << EOF | ||
| baseDomain: ${KUBEVIRT_BASE_DOMAIN} | ||
| platform: | ||
| kubevirt: | ||
| # TODO this section is WIP - see the installer PR | ||
| IngressVIP: ${KUBEVIRT_INGRESS_VIP} | ||
| apiVIP: ${KUBEVIRT_API_VIP} | ||
| kubeconfig: ${KUBEVIRT_KUBECONFIG} | ||
| namespace: ${KUBEVIRT_NAMESPACE} | ||
| networkName: ${KUBEVIRT_NETWORK_NAME} | ||
| storageClass: ${KUBEVIRT_TENANT_STORAGE_CLASS_NAME} | ||
| persistentVolumeAccessMode: ${KUBEVIRT_VOLUME_ACCESS_MODE} | ||
| EOF | ||
|
|
12 changes: 12 additions & 0 deletions
12
ci-operator/step-registry/ipi/conf/kubevirt/ipi-conf-kubevirt-ref.metadata.json
This file contains hidden or 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,12 @@ | ||
| { | ||
| "path": "ipi/conf/kubevirt/ipi-conf-kubevirt-ref.yaml", | ||
| "owners": { | ||
| "approvers": [ | ||
| "bardielle", | ||
| "ravidbro", | ||
| "nirarg", | ||
| "rgolangh", | ||
| "chenyosef" | ||
| ] | ||
| } | ||
| } | ||
|
bardielle marked this conversation as resolved.
Outdated
|
||
13 changes: 13 additions & 0 deletions
13
ci-operator/step-registry/ipi/conf/kubevirt/ipi-conf-kubevirt-ref.yaml
This file contains hidden or 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,13 @@ | ||
| ref: | ||
| as: ipi-conf-kubevirt | ||
| from: base | ||
| commands: ipi-conf-kubevirt-commands.sh | ||
| resources: | ||
| requests: | ||
| cpu: 10m | ||
| memory: 100Mi | ||
| documentation: >- | ||
| This step configures an install-config.yaml file to depoloy to the KUBEVIRT project. | ||
| An existing install-config.yaml file should already exist in the shared directory. | ||
| The file is modified to configure the cluster to run in the KUBEVIRT project. | ||
| The resulting file remains in the shared directory for future consumption. |
This file contains hidden or 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 hidden or 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 @@ | ||
| approvers: | ||
| - bardielle | ||
| - ravidbro | ||
| - nirarg | ||
| - rgolangh | ||
| - chenyosef |
12 changes: 12 additions & 0 deletions
12
ci-operator/step-registry/ipi/kubevirt/ipi-kubevirt-workflow.metadata.json
This file contains hidden or 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,12 @@ | ||
| { | ||
| "path": "ipi/kubevirt/ipi-kubevirt-workflow.yaml", | ||
| "owners": { | ||
| "approvers": [ | ||
| "bardielle", | ||
| "ravidbro", | ||
| "nirarg", | ||
| "rgolangh", | ||
| "chenyosef" | ||
| ] | ||
| } | ||
| } | ||
|
bardielle marked this conversation as resolved.
Outdated
|
||
15 changes: 15 additions & 0 deletions
15
ci-operator/step-registry/ipi/kubevirt/ipi-kubevirt-workflow.yaml
This file contains hidden or 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,15 @@ | ||
| workflow: | ||
| as: ipi-kubevirt | ||
| steps: | ||
| pre: | ||
| - chain: ipi-kubevirt-pre | ||
| post: | ||
| - chain: ipi-kubevirt-post | ||
| documentation: |- | ||
| The IPI workflow provides pre- and post- steps that provision and | ||
| deprovision an OpenShift cluster with a default configuration on Kubevirt, | ||
| allowing job authors to inject their own end-to-end test logic. | ||
|
|
||
| All modifications to this workflow should be done by modifying the | ||
| `ipi-kubevirt-{pre,post}` chains to allow other workflows to mimic and extend | ||
| this base workflow without a need to backport changes. |
This file contains hidden or 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 @@ | ||
| approvers: | ||
| - bardielle | ||
| - ravidbro | ||
| - nirarg | ||
| - rgolangh | ||
| - chenyosef |
12 changes: 12 additions & 0 deletions
12
ci-operator/step-registry/ipi/kubevirt/post/ipi-kubevirt-post-chain.metadata.json
This file contains hidden or 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,12 @@ | ||
| { | ||
| "path": "ipi/kubevirt/post/ipi-kubevirt-post-chain.yaml", | ||
| "owners": { | ||
| "approvers": [ | ||
| "bardielle", | ||
| "ravidbro", | ||
| "nirarg", | ||
| "rgolangh", | ||
| "chenyosef" | ||
| ] | ||
| } | ||
| } | ||
|
bardielle marked this conversation as resolved.
Outdated
|
||
8 changes: 8 additions & 0 deletions
8
ci-operator/step-registry/ipi/kubevirt/post/ipi-kubevirt-post-chain.yaml
This file contains hidden or 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,8 @@ | ||
| chain: | ||
| as: ipi-kubevirt-post | ||
| steps: | ||
| - chain: ipi-conf-kubevirt | ||
| - chain: ipi-deprovision | ||
| documentation: |- | ||
| The IPI cleanup step contains all steps that deprovision an OpenShift | ||
| cluster on KubeVirt, provisioned by the `ipi-kubevirt-pre` chain. |
This file contains hidden or 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 @@ | ||
| ../OWNERS |
12 changes: 12 additions & 0 deletions
12
ci-operator/step-registry/ipi/kubevirt/pre/ipi-kubevirt-pre-chain.metadata.json
This file contains hidden or 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,12 @@ | ||
| { | ||
| "path": "ipi/kubevirt/pre/ipi-kubevirt-pre-chain.yaml", | ||
| "owners": { | ||
| "approvers": [ | ||
| "bardielle", | ||
| "ravidbro", | ||
| "nirarg", | ||
| "rgolangh", | ||
| "chenyosef" | ||
| ] | ||
| } | ||
| } | ||
|
bardielle marked this conversation as resolved.
Outdated
|
||
8 changes: 8 additions & 0 deletions
8
ci-operator/step-registry/ipi/kubevirt/pre/ipi-kubevirt-pre-chain.yaml
This file contains hidden or 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,8 @@ | ||
| chain: | ||
| as: ipi-kubevirt-pre | ||
| steps: | ||
| - chain: ipi-conf-kubevirt | ||
| - chain: ipi-install | ||
| documentation: |- | ||
| The IPI setup step contains all steps that provision an OpenShift cluster | ||
| with a default configuration on Kubevirt. |
1 change: 1 addition & 0 deletions
1
ci-operator/step-registry/ipi/kubevirt/pre/stableinitial/OWNERS
This file contains hidden or 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 @@ | ||
| ../OWNERS |
12 changes: 12 additions & 0 deletions
12
...egistry/ipi/kubevirt/pre/stableinitial/ipi-kubevirt-pre-stableinitial-chain.metadata.json
This file contains hidden or 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,12 @@ | ||
| { | ||
| "path": "ipi/kubevirt/pre/stableinitial/ipi-kubevirt-pre-stableinitial-chain.yaml", | ||
| "owners": { | ||
| "approvers": [ | ||
| "bardielle", | ||
| "ravidbro", | ||
| "nirarg", | ||
| "rgolangh", | ||
| "chenyosef" | ||
| ] | ||
| } | ||
| } | ||
|
bardielle marked this conversation as resolved.
Outdated
|
||
8 changes: 8 additions & 0 deletions
8
...or/step-registry/ipi/kubevirt/pre/stableinitial/ipi-kubevirt-pre-stableinitial-chain.yaml
This file contains hidden or 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,8 @@ | ||
| chain: | ||
| as: ipi-kubevirt-pre-stableinitial | ||
| steps: | ||
| - chain: ipi-conf-kubevirt | ||
| - chain: ipi-install-stableinitial | ||
| documentation: |- | ||
| The IPI setup step contains all steps that provision an OpenShift cluster | ||
| from stable-initial imagestream with a default configuration on KubeVirt. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.