diff --git a/.github/workflows/create-ocp-project.yaml b/.github/workflows/create-ocp-project.yaml index 8a82b540..a5a01be6 100644 --- a/.github/workflows/create-ocp-project.yaml +++ b/.github/workflows/create-ocp-project.yaml @@ -5,7 +5,7 @@ on: push: branches: [ "main" ] paths: - - 'create-ocp-project/**' + - 'workflows/create-ocp-project/**' - 'pipeline/**' - .github/workflows/create-ocp-project.yaml - .github/workflows/main.yml diff --git a/.github/workflows/escalation.yml b/.github/workflows/escalation.yml index 7e4c568d..f071e77e 100644 --- a/.github/workflows/escalation.yml +++ b/.github/workflows/escalation.yml @@ -5,7 +5,7 @@ on: push: branches: [ "main" ] paths: - - 'escalation/**' + - 'workflows/escalation/**' - 'pipeline/**' - 'scripts/**' - .github/workflows/escalation.yml diff --git a/.github/workflows/extendable-workflow.yml b/.github/workflows/extendable-workflow.yml index 3bcbc9fe..523d2a32 100644 --- a/.github/workflows/extendable-workflow.yml +++ b/.github/workflows/extendable-workflow.yml @@ -5,7 +5,7 @@ on: push: branches: [ "main" ] paths: - - 'extendable-workflow/**' + - 'workflows/extendable-workflow/**' - 'pipeline/**' - .github/workflows/extendable-workflow.yml - .github/workflows/main.yml diff --git a/.github/workflows/greeting.yml b/.github/workflows/greeting.yml index 00cfc582..bfb53c31 100644 --- a/.github/workflows/greeting.yml +++ b/.github/workflows/greeting.yml @@ -5,7 +5,7 @@ on: push: branches: [ "main" ] paths: - - 'greeting/**' + - 'workflows/greeting/**' - 'pipeline/**' - .github/workflows/greeting.yml - .github/workflows/main.yml diff --git a/.github/workflows/jira-listener.yml b/.github/workflows/jira-listener.yml index ab02e7d9..a29ff3bc 100644 --- a/.github/workflows/jira-listener.yml +++ b/.github/workflows/jira-listener.yml @@ -5,7 +5,7 @@ on: push: branches: [ "main" ] paths: - - 'escalation/jira-listener/**' + - 'workflows/escalation/jira-listener/**' - 'pipeline/**' - 'scripts/**' - .github/workflows/jira-listener.yml diff --git a/.github/workflows/m2k-func.yaml b/.github/workflows/m2k-func.yaml index 5d54da2d..13dce995 100644 --- a/.github/workflows/m2k-func.yaml +++ b/.github/workflows/m2k-func.yaml @@ -9,7 +9,7 @@ on: default: false env: - WORKDIR: move2kube/m2k-func + WORKDIR: workflows/move2kube/m2k-func MVN_OPTS: "" WF_CONFIG_REPO: parodos-dev/serverless-workflows-config REGISTRY_REPO: orchestrator diff --git a/.github/workflows/modify-vm-resources.yaml b/.github/workflows/modify-vm-resources.yaml index 1e0a6a82..697702d3 100644 --- a/.github/workflows/modify-vm-resources.yaml +++ b/.github/workflows/modify-vm-resources.yaml @@ -5,7 +5,7 @@ on: push: branches: [ "main" ] paths: - - 'modify-vm-resources/**' + - 'workflows/modify-vm-resources/**' - 'pipeline/**' - .github/workflows/modify-vm-resources.yaml - .github/workflows/main.yml diff --git a/.github/workflows/move2kube-e2e.yaml b/.github/workflows/move2kube-e2e.yaml index 736cf0fb..cb5e2860 100644 --- a/.github/workflows/move2kube-e2e.yaml +++ b/.github/workflows/move2kube-e2e.yaml @@ -6,7 +6,7 @@ on: branches: - main paths: - - 'move2kube/**' + - 'workflows/move2kube/**' - 'pipeline/**' - .github/workflows/move2kube-e2e.yaml - .github/workflows/m2k-func.yaml diff --git a/.github/workflows/move2kube.yaml b/.github/workflows/move2kube.yaml index 3d4f4766..b2f1d888 100644 --- a/.github/workflows/move2kube.yaml +++ b/.github/workflows/move2kube.yaml @@ -5,7 +5,7 @@ on: push: branches: [ "main" ] paths: - - 'move2kube/**' + - 'workflows/move2kube/**' - 'pipeline/**' - 'e2e/move2kube.sh' - .github/workflows/move2kube-e2e.yaml diff --git a/.github/workflows/mta-v7.x-e2e.yaml b/.github/workflows/mta-v7.x-e2e.yaml index 289b95b9..b5fe0683 100644 --- a/.github/workflows/mta-v7.x-e2e.yaml +++ b/.github/workflows/mta-v7.x-e2e.yaml @@ -6,10 +6,10 @@ on: branches: - main paths: - - 'mta-v7.x/**' + - 'workflows/mta-v7.x/**' - 'pipeline/**' - '!e2e/mta-v7.x.sh' - - '!mta-v7.x/*.svg' + - '!workflows/mta-v7.x/*.svg' - .github/workflows/mta-v7.x-e2e.yaml - .github/workflows/main.yml diff --git a/.github/workflows/mta-v7.x.yml b/.github/workflows/mta-v7.x.yml index db6763a4..986b0e3a 100644 --- a/.github/workflows/mta-v7.x.yml +++ b/.github/workflows/mta-v7.x.yml @@ -5,7 +5,7 @@ on: push: branches: [ "main" ] paths: - - 'mta-v7.x/**' + - 'workflows/mta-v7.x/**' - 'pipeline/**' - .github/workflows/mta-v7.x.yml - .github/workflows/main.yml diff --git a/.github/workflows/mtv-migration.yml b/.github/workflows/mtv-migration.yml index 99c88cda..61dce50d 100644 --- a/.github/workflows/mtv-migration.yml +++ b/.github/workflows/mtv-migration.yml @@ -5,7 +5,7 @@ on: push: branches: ["main"] paths: - - "mtv-migration/**" + - "workflows/mtv-migration/**" - "pipeline/**" - .github/workflows/mtv-migration.yml - .github/workflows/main.yml diff --git a/.github/workflows/mtv-plan.yml b/.github/workflows/mtv-plan.yml index 81583c6a..9037d320 100644 --- a/.github/workflows/mtv-plan.yml +++ b/.github/workflows/mtv-plan.yml @@ -5,7 +5,7 @@ on: push: branches: ["main"] paths: - - "mtv-plan/**" + - "workflows/mtv-plan/**" - "pipeline/**" - .github/workflows/mtv-plan.yml - .github/workflows/main.yml diff --git a/.github/workflows/request-vm-cnv.yaml b/.github/workflows/request-vm-cnv.yaml index 08781c0a..9ef61c18 100644 --- a/.github/workflows/request-vm-cnv.yaml +++ b/.github/workflows/request-vm-cnv.yaml @@ -5,7 +5,7 @@ on: push: branches: [ "main" ] paths: - - 'request-vm-cnv/**' + - 'workflows/request-vm-cnv/**' - 'pipeline/**' - .github/workflows/request-vm-cnv.yaml - .github/workflows/main.yml diff --git a/.github/workflows/rpj.yml b/.github/workflows/rpj.yml index c4c95478..ff7b160b 100644 --- a/.github/workflows/rpj.yml +++ b/.github/workflows/rpj.yml @@ -5,7 +5,7 @@ on: push: branches: ["main"] paths: - - "rpj/**" + - "workflows/rpj/**" - "pipeline/**" - .github/workflows/rpj.yml - .github/workflows/main.yml diff --git a/.gitignore b/.gitignore index 5e93d32d..38146481 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # Serverless workflows generated files -*/manifests/ +workflows/*/manifests/ #Maven target/ diff --git a/Makefile b/Makefile index 5773aca3..dab6a793 100644 --- a/Makefile +++ b/Makefile @@ -108,7 +108,7 @@ prepare-workdir: @rm -rf $(WORKDIR) @mkdir -p $(WORKDIR) @cp -R . $(WORKDIR) - @cp -R $(WORKDIR)/shared $(WORKDIR)/$(WORKFLOW_ID)/shared + @cp -R $(WORKDIR)/workflows/shared $(WORKDIR)/workflows/$(WORKFLOW_ID)/shared @find $(WORKDIR) -type d -name target -prune -exec rm -rf {} \; @@ -117,7 +117,7 @@ prepare-workdir: # Depends on: prepare-workdir target. # Usage: make build-image ifeq ($(IS_WORKFLOW),true) -build-image: BUILD_ARGS=--build-arg-file=$(WORKFLOW_ID)/argfile.conf --build-arg=BUILDER_IMAGE=$(BUILDER_IMAGE) --build-arg WF_RESOURCES=$(WORKFLOW_ID) +build-image: BUILD_ARGS=--build-arg-file=workflows/$(WORKFLOW_ID)/argfile.conf --build-arg=BUILDER_IMAGE=$(BUILDER_IMAGE) --build-arg WF_RESOURCES=workflows/$(WORKFLOW_ID) endif build-image: EXTRA_ARGS=--ulimit nofile=4096:4096 build-image: prepare-workdir @@ -126,7 +126,7 @@ ifeq ($(IS_APPLICATION),true) # First build the application $(BUILD_APPLICATION_SCRIPT) $(CONTAINER_ENGINE) $(WORKDIR) $(WORKFLOW_ID) $(APPLICATION_ID) $(JDK_IMAGE) $(MVN_OPTS) # Then build the containerized image from the application source - @cd $(WORKDIR)/$(WORKFLOW_ID)/$(APPLICATION_ID) && $(CONTAINER_ENGINE) build -f $(DOCKERFILE) \ + @cd $(WORKDIR)/workflows/$(WORKFLOW_ID)/$(APPLICATION_ID) && $(CONTAINER_ENGINE) build -f $(DOCKERFILE) \ $(BUILD_ARGS) $(EXTRA_ARGS) \ --tag ${IMAGE_NAME}:${IMAGE_TAG} --tag ${IMAGE_NAME}:latest . else @@ -167,9 +167,9 @@ save-oci: build-image # Usage: make gen-manifests gen-manifests: prepare-workdir cd $(WORKDIR) - @$(CONTAINER_ENGINE) run --rm -v $(WORKDIR):/workdir:Z -w /workdir \ - $(LINUX_IMAGE) /bin/bash -c "ENABLE_PERSISTENCE=$(ENABLE_PERSISTENCE) WORKFLOW_IMAGE_TAG=$(IMAGE_TAG) ${SCRIPTS_DIR}/gen_manifests.sh $(WORKFLOW_ID)" - @echo "Manifests are available in workdir $(WORKDIR)/$(WORKFLOW_ID)/manifests" + $(CONTAINER_ENGINE) run --rm -v $(WORKDIR):/workdir:Z -w /workdir \ + $(LINUX_IMAGE) /bin/bash -c "ENABLE_PERSISTENCE=$(ENABLE_PERSISTENCE) WORKFLOW_IMAGE_TAG=$(IMAGE_TAG) ${SCRIPTS_DIR}/gen_manifests.sh workflows/$(WORKFLOW_ID)" + @echo "Manifests are available in workdir $(WORKDIR)/workflows/$(WORKFLOW_ID)/manifests" remove-trailing-whitespaces: @echo "Removing all trailing whitespaces from application.properties files" diff --git a/create-ocp-project/README.md b/workflows/create-ocp-project/README.md similarity index 100% rename from create-ocp-project/README.md rename to workflows/create-ocp-project/README.md diff --git a/create-ocp-project/application.properties b/workflows/create-ocp-project/application.properties similarity index 100% rename from create-ocp-project/application.properties rename to workflows/create-ocp-project/application.properties diff --git a/create-ocp-project/argfile.conf b/workflows/create-ocp-project/argfile.conf similarity index 100% rename from create-ocp-project/argfile.conf rename to workflows/create-ocp-project/argfile.conf diff --git a/create-ocp-project/create-ocp-project.svg b/workflows/create-ocp-project/create-ocp-project.svg similarity index 100% rename from create-ocp-project/create-ocp-project.svg rename to workflows/create-ocp-project/create-ocp-project.svg diff --git a/create-ocp-project/create-ocp-project.sw.yaml b/workflows/create-ocp-project/create-ocp-project.sw.yaml similarity index 100% rename from create-ocp-project/create-ocp-project.sw.yaml rename to workflows/create-ocp-project/create-ocp-project.sw.yaml diff --git a/create-ocp-project/schemas/create-ocp-project__main-schema.json b/workflows/create-ocp-project/schemas/create-ocp-project__main-schema.json similarity index 100% rename from create-ocp-project/schemas/create-ocp-project__main-schema.json rename to workflows/create-ocp-project/schemas/create-ocp-project__main-schema.json diff --git a/create-ocp-project/schemas/workflow-output-schema.json b/workflows/create-ocp-project/schemas/workflow-output-schema.json similarity index 100% rename from create-ocp-project/schemas/workflow-output-schema.json rename to workflows/create-ocp-project/schemas/workflow-output-schema.json diff --git a/create-ocp-project/secret.properties b/workflows/create-ocp-project/secret.properties similarity index 100% rename from create-ocp-project/secret.properties rename to workflows/create-ocp-project/secret.properties diff --git a/create-ocp-project/specs/jira-openapi.yaml b/workflows/create-ocp-project/specs/jira-openapi.yaml similarity index 100% rename from create-ocp-project/specs/jira-openapi.yaml rename to workflows/create-ocp-project/specs/jira-openapi.yaml diff --git a/create-ocp-project/specs/ocp-project-openapi.yaml b/workflows/create-ocp-project/specs/ocp-project-openapi.yaml similarity index 100% rename from create-ocp-project/specs/ocp-project-openapi.yaml rename to workflows/create-ocp-project/specs/ocp-project-openapi.yaml diff --git a/escalation/README.md b/workflows/escalation/README.md similarity index 100% rename from escalation/README.md rename to workflows/escalation/README.md diff --git a/escalation/application.properties b/workflows/escalation/application.properties similarity index 100% rename from escalation/application.properties rename to workflows/escalation/application.properties diff --git a/escalation/argfile.conf b/workflows/escalation/argfile.conf similarity index 100% rename from escalation/argfile.conf rename to workflows/escalation/argfile.conf diff --git a/escalation/jira-listener/.dockerignore b/workflows/escalation/jira-listener/.dockerignore similarity index 100% rename from escalation/jira-listener/.dockerignore rename to workflows/escalation/jira-listener/.dockerignore diff --git a/escalation/jira-listener/.gitignore b/workflows/escalation/jira-listener/.gitignore similarity index 100% rename from escalation/jira-listener/.gitignore rename to workflows/escalation/jira-listener/.gitignore diff --git a/escalation/jira-listener/.java-version b/workflows/escalation/jira-listener/.java-version similarity index 100% rename from escalation/jira-listener/.java-version rename to workflows/escalation/jira-listener/.java-version diff --git a/escalation/jira-listener/README.md b/workflows/escalation/jira-listener/README.md similarity index 100% rename from escalation/jira-listener/README.md rename to workflows/escalation/jira-listener/README.md diff --git a/escalation/jira-listener/argfile.conf b/workflows/escalation/jira-listener/argfile.conf similarity index 100% rename from escalation/jira-listener/argfile.conf rename to workflows/escalation/jira-listener/argfile.conf diff --git a/escalation/jira-listener/pom.xml b/workflows/escalation/jira-listener/pom.xml similarity index 100% rename from escalation/jira-listener/pom.xml rename to workflows/escalation/jira-listener/pom.xml diff --git a/escalation/jira-listener/src/main/docker/Dockerfile.jvm b/workflows/escalation/jira-listener/src/main/docker/Dockerfile.jvm similarity index 100% rename from escalation/jira-listener/src/main/docker/Dockerfile.jvm rename to workflows/escalation/jira-listener/src/main/docker/Dockerfile.jvm diff --git a/escalation/jira-listener/src/main/docker/Dockerfile.native b/workflows/escalation/jira-listener/src/main/docker/Dockerfile.native similarity index 100% rename from escalation/jira-listener/src/main/docker/Dockerfile.native rename to workflows/escalation/jira-listener/src/main/docker/Dockerfile.native diff --git a/escalation/jira-listener/src/main/docker/Dockerfile.native-micro b/workflows/escalation/jira-listener/src/main/docker/Dockerfile.native-micro similarity index 100% rename from escalation/jira-listener/src/main/docker/Dockerfile.native-micro rename to workflows/escalation/jira-listener/src/main/docker/Dockerfile.native-micro diff --git a/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/EventNotifier.java b/workflows/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/EventNotifier.java similarity index 100% rename from escalation/jira-listener/src/main/java/dev/parodos/jiralistener/EventNotifier.java rename to workflows/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/EventNotifier.java diff --git a/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/JiraListenerResource.java b/workflows/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/JiraListenerResource.java similarity index 100% rename from escalation/jira-listener/src/main/java/dev/parodos/jiralistener/JiraListenerResource.java rename to workflows/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/JiraListenerResource.java diff --git a/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/JiraListenerService.java b/workflows/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/JiraListenerService.java similarity index 100% rename from escalation/jira-listener/src/main/java/dev/parodos/jiralistener/JiraListenerService.java rename to workflows/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/JiraListenerService.java diff --git a/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/model/JiraIssue.java b/workflows/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/model/JiraIssue.java similarity index 100% rename from escalation/jira-listener/src/main/java/dev/parodos/jiralistener/model/JiraIssue.java rename to workflows/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/model/JiraIssue.java diff --git a/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/model/JiraTicketEventData.java b/workflows/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/model/JiraTicketEventData.java similarity index 100% rename from escalation/jira-listener/src/main/java/dev/parodos/jiralistener/model/JiraTicketEventData.java rename to workflows/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/model/JiraTicketEventData.java diff --git a/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/model/WebhookEvent.java b/workflows/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/model/WebhookEvent.java similarity index 100% rename from escalation/jira-listener/src/main/java/dev/parodos/jiralistener/model/WebhookEvent.java rename to workflows/escalation/jira-listener/src/main/java/dev/parodos/jiralistener/model/WebhookEvent.java diff --git a/escalation/jira-listener/src/main/resources/META-INF/resources/index.html b/workflows/escalation/jira-listener/src/main/resources/META-INF/resources/index.html similarity index 100% rename from escalation/jira-listener/src/main/resources/META-INF/resources/index.html rename to workflows/escalation/jira-listener/src/main/resources/META-INF/resources/index.html diff --git a/escalation/jira-listener/src/main/resources/application.properties b/workflows/escalation/jira-listener/src/main/resources/application.properties similarity index 100% rename from escalation/jira-listener/src/main/resources/application.properties rename to workflows/escalation/jira-listener/src/main/resources/application.properties diff --git a/escalation/jira-listener/src/test/java/dev/parodos/jiralistener/JiraConstants.java b/workflows/escalation/jira-listener/src/test/java/dev/parodos/jiralistener/JiraConstants.java similarity index 100% rename from escalation/jira-listener/src/test/java/dev/parodos/jiralistener/JiraConstants.java rename to workflows/escalation/jira-listener/src/test/java/dev/parodos/jiralistener/JiraConstants.java diff --git a/escalation/jira-listener/src/test/java/dev/parodos/jiralistener/JiraListenerResourceIT.java b/workflows/escalation/jira-listener/src/test/java/dev/parodos/jiralistener/JiraListenerResourceIT.java similarity index 100% rename from escalation/jira-listener/src/test/java/dev/parodos/jiralistener/JiraListenerResourceIT.java rename to workflows/escalation/jira-listener/src/test/java/dev/parodos/jiralistener/JiraListenerResourceIT.java diff --git a/escalation/jira-listener/src/test/java/dev/parodos/jiralistener/JiraListenerResourceTest.java b/workflows/escalation/jira-listener/src/test/java/dev/parodos/jiralistener/JiraListenerResourceTest.java similarity index 100% rename from escalation/jira-listener/src/test/java/dev/parodos/jiralistener/JiraListenerResourceTest.java rename to workflows/escalation/jira-listener/src/test/java/dev/parodos/jiralistener/JiraListenerResourceTest.java diff --git a/escalation/jira-listener/src/test/resources/invalid.json b/workflows/escalation/jira-listener/src/test/resources/invalid.json similarity index 100% rename from escalation/jira-listener/src/test/resources/invalid.json rename to workflows/escalation/jira-listener/src/test/resources/invalid.json diff --git a/escalation/jira-listener/src/test/resources/valid.json b/workflows/escalation/jira-listener/src/test/resources/valid.json similarity index 100% rename from escalation/jira-listener/src/test/resources/valid.json rename to workflows/escalation/jira-listener/src/test/resources/valid.json diff --git a/escalation/schemas/ticket-escalation-schema.json b/workflows/escalation/schemas/ticket-escalation-schema.json similarity index 100% rename from escalation/schemas/ticket-escalation-schema.json rename to workflows/escalation/schemas/ticket-escalation-schema.json diff --git a/escalation/schemas/ticket-escalation_sub_schema.json b/workflows/escalation/schemas/ticket-escalation_sub_schema.json similarity index 100% rename from escalation/schemas/ticket-escalation_sub_schema.json rename to workflows/escalation/schemas/ticket-escalation_sub_schema.json diff --git a/escalation/secret.properties b/workflows/escalation/secret.properties similarity index 100% rename from escalation/secret.properties rename to workflows/escalation/secret.properties diff --git a/escalation/specs/kube.yaml b/workflows/escalation/specs/kube.yaml similarity index 100% rename from escalation/specs/kube.yaml rename to workflows/escalation/specs/kube.yaml diff --git a/escalation/subflows/jiraSwf.svg b/workflows/escalation/subflows/jiraSwf.svg similarity index 100% rename from escalation/subflows/jiraSwf.svg rename to workflows/escalation/subflows/jiraSwf.svg diff --git a/escalation/subflows/jiraSwf.sw.yaml b/workflows/escalation/subflows/jiraSwf.sw.yaml similarity index 100% rename from escalation/subflows/jiraSwf.sw.yaml rename to workflows/escalation/subflows/jiraSwf.sw.yaml diff --git a/escalation/subflows/schemas/ticketing-service-schema.json b/workflows/escalation/subflows/schemas/ticketing-service-schema.json similarity index 100% rename from escalation/subflows/schemas/ticketing-service-schema.json rename to workflows/escalation/subflows/schemas/ticketing-service-schema.json diff --git a/escalation/subflows/schemas/ticketing-service_sub_schema.json b/workflows/escalation/subflows/schemas/ticketing-service_sub_schema.json similarity index 100% rename from escalation/subflows/schemas/ticketing-service_sub_schema.json rename to workflows/escalation/subflows/schemas/ticketing-service_sub_schema.json diff --git a/escalation/subflows/specs/jira.yaml b/workflows/escalation/subflows/specs/jira.yaml similarity index 100% rename from escalation/subflows/specs/jira.yaml rename to workflows/escalation/subflows/specs/jira.yaml diff --git a/escalation/ticketEscalation.svg b/workflows/escalation/ticketEscalation.svg similarity index 100% rename from escalation/ticketEscalation.svg rename to workflows/escalation/ticketEscalation.svg diff --git a/escalation/ticketEscalation.sw.yaml b/workflows/escalation/ticketEscalation.sw.yaml similarity index 100% rename from escalation/ticketEscalation.sw.yaml rename to workflows/escalation/ticketEscalation.sw.yaml diff --git a/experimental-e2e-tests-on-ubuntu-vm/cluster-up.sh b/workflows/experimental-e2e-tests-on-ubuntu-vm/cluster-up.sh similarity index 100% rename from experimental-e2e-tests-on-ubuntu-vm/cluster-up.sh rename to workflows/experimental-e2e-tests-on-ubuntu-vm/cluster-up.sh diff --git a/experimental-e2e-tests-on-ubuntu-vm/janus-idp.sh b/workflows/experimental-e2e-tests-on-ubuntu-vm/janus-idp.sh similarity index 100% rename from experimental-e2e-tests-on-ubuntu-vm/janus-idp.sh rename to workflows/experimental-e2e-tests-on-ubuntu-vm/janus-idp.sh diff --git a/experimental-e2e-tests-on-ubuntu-vm/konveyor-operator-0.2.1.sh b/workflows/experimental-e2e-tests-on-ubuntu-vm/konveyor-operator-0.2.1.sh similarity index 100% rename from experimental-e2e-tests-on-ubuntu-vm/konveyor-operator-0.2.1.sh rename to workflows/experimental-e2e-tests-on-ubuntu-vm/konveyor-operator-0.2.1.sh diff --git a/experimental-e2e-tests-on-ubuntu-vm/konveyor-operator-0.3.2.sh b/workflows/experimental-e2e-tests-on-ubuntu-vm/konveyor-operator-0.3.2.sh similarity index 100% rename from experimental-e2e-tests-on-ubuntu-vm/konveyor-operator-0.3.2.sh rename to workflows/experimental-e2e-tests-on-ubuntu-vm/konveyor-operator-0.3.2.sh diff --git a/experimental-e2e-tests-on-ubuntu-vm/mta-v7.sh b/workflows/experimental-e2e-tests-on-ubuntu-vm/mta-v7.sh similarity index 100% rename from experimental-e2e-tests-on-ubuntu-vm/mta-v7.sh rename to workflows/experimental-e2e-tests-on-ubuntu-vm/mta-v7.sh diff --git a/experimental-e2e-tests-on-ubuntu-vm/readme.md b/workflows/experimental-e2e-tests-on-ubuntu-vm/readme.md similarity index 100% rename from experimental-e2e-tests-on-ubuntu-vm/readme.md rename to workflows/experimental-e2e-tests-on-ubuntu-vm/readme.md diff --git a/experimental-e2e-tests-on-ubuntu-vm/sonata-flow.sh b/workflows/experimental-e2e-tests-on-ubuntu-vm/sonata-flow.sh similarity index 100% rename from experimental-e2e-tests-on-ubuntu-vm/sonata-flow.sh rename to workflows/experimental-e2e-tests-on-ubuntu-vm/sonata-flow.sh diff --git a/experimental-e2e-tests-on-ubuntu-vm/ubuntuvm.sh b/workflows/experimental-e2e-tests-on-ubuntu-vm/ubuntuvm.sh similarity index 100% rename from experimental-e2e-tests-on-ubuntu-vm/ubuntuvm.sh rename to workflows/experimental-e2e-tests-on-ubuntu-vm/ubuntuvm.sh diff --git a/extendable-workflow/README.md b/workflows/extendable-workflow/README.md similarity index 100% rename from extendable-workflow/README.md rename to workflows/extendable-workflow/README.md diff --git a/extendable-workflow/application.properties b/workflows/extendable-workflow/application.properties similarity index 100% rename from extendable-workflow/application.properties rename to workflows/extendable-workflow/application.properties diff --git a/extendable-workflow/argfile.conf b/workflows/extendable-workflow/argfile.conf similarity index 100% rename from extendable-workflow/argfile.conf rename to workflows/extendable-workflow/argfile.conf diff --git a/extendable-workflow/extendable-workflow.svg b/workflows/extendable-workflow/extendable-workflow.svg similarity index 100% rename from extendable-workflow/extendable-workflow.svg rename to workflows/extendable-workflow/extendable-workflow.svg diff --git a/extendable-workflow/extendable-workflow.sw.yaml b/workflows/extendable-workflow/extendable-workflow.sw.yaml similarity index 100% rename from extendable-workflow/extendable-workflow.sw.yaml rename to workflows/extendable-workflow/extendable-workflow.sw.yaml diff --git a/extendable-workflow/schemas/extendable-workflow.sw.input-schema.json b/workflows/extendable-workflow/schemas/extendable-workflow.sw.input-schema.json similarity index 100% rename from extendable-workflow/schemas/extendable-workflow.sw.input-schema.json rename to workflows/extendable-workflow/schemas/extendable-workflow.sw.input-schema.json diff --git a/extendable-workflow/schemas/workflow-output-schema.json b/workflows/extendable-workflow/schemas/workflow-output-schema.json similarity index 100% rename from extendable-workflow/schemas/workflow-output-schema.json rename to workflows/extendable-workflow/schemas/workflow-output-schema.json diff --git a/greeting/README.md b/workflows/greeting/README.md similarity index 100% rename from greeting/README.md rename to workflows/greeting/README.md diff --git a/greeting/application.properties b/workflows/greeting/application.properties similarity index 84% rename from greeting/application.properties rename to workflows/greeting/application.properties index 8c0ecf07..c2e2ea17 100644 --- a/greeting/application.properties +++ b/workflows/greeting/application.properties @@ -3,4 +3,5 @@ # Possible values: OFF, FATAL, ERROR, WARN, INFO, DEBUG, ALL. # and see https://quarkus.io/guides/logging for documentation quarkus.log.category."org.apache.http".level=INFO -quarkus.log.level=INFO \ No newline at end of file +quarkus.log.level=INFO +quarkus.flyway.migrate-at-start=true diff --git a/greeting/argfile.conf b/workflows/greeting/argfile.conf similarity index 100% rename from greeting/argfile.conf rename to workflows/greeting/argfile.conf diff --git a/greeting/greeting.svg b/workflows/greeting/greeting.svg similarity index 100% rename from greeting/greeting.svg rename to workflows/greeting/greeting.svg diff --git a/greeting/greeting.sw.yaml b/workflows/greeting/greeting.sw.yaml similarity index 100% rename from greeting/greeting.sw.yaml rename to workflows/greeting/greeting.sw.yaml diff --git a/greeting/schemas/greeting.sw.input-schema.json b/workflows/greeting/schemas/greeting.sw.input-schema.json similarity index 100% rename from greeting/schemas/greeting.sw.input-schema.json rename to workflows/greeting/schemas/greeting.sw.input-schema.json diff --git a/greeting/schemas/workflow-output-schema.json b/workflows/greeting/schemas/workflow-output-schema.json similarity index 100% rename from greeting/schemas/workflow-output-schema.json rename to workflows/greeting/schemas/workflow-output-schema.json diff --git a/modify-vm-resources/README.md b/workflows/modify-vm-resources/README.md similarity index 100% rename from modify-vm-resources/README.md rename to workflows/modify-vm-resources/README.md diff --git a/modify-vm-resources/application.properties b/workflows/modify-vm-resources/application.properties similarity index 100% rename from modify-vm-resources/application.properties rename to workflows/modify-vm-resources/application.properties diff --git a/modify-vm-resources/argfile.conf b/workflows/modify-vm-resources/argfile.conf similarity index 100% rename from modify-vm-resources/argfile.conf rename to workflows/modify-vm-resources/argfile.conf diff --git a/workflows/modify-vm-resources/manifests/01-configmap_01-modify-vm-resources-resources.yaml b/workflows/modify-vm-resources/manifests/01-configmap_01-modify-vm-resources-resources.yaml new file mode 100755 index 00000000..668fb10a --- /dev/null +++ b/workflows/modify-vm-resources/manifests/01-configmap_01-modify-vm-resources-resources.yaml @@ -0,0 +1,72 @@ +apiVersion: v1 +data: + modify-vm-resources__main-schema.json: | + { + "$id": "classpath:/schemas/modify-vm-resources-schema.json", + "title": "Data input schema", + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "properties": { + "inputs": { + "title": "Inputs", + "type": "object", + "properties": { + "projectKey": { + "title": "Project Key", + "description": "JIRA project key", + "type": "string" + }, + "vm_namespace": { + "title": "VM Namespace", + "description": "Namespace in which create the VM", + "type": "string", + "default": "default", + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + "vm_name": { + "title": "VM Name", + "description": "Name of the VM to create", + "type": "string", + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + "vm_new_memory": { + "title": "Memory", + "description": "The new guest memory of the VM", + "type": "string", + "examples": ["2Gi"] + }, + "vm_new_cpu_cores": { + "title": "CPU Cores", + "description": "The new amount of CPU cores available to the VM", + "type": "integer" + }, + "vm_new_cpu_threads": { + "title": "CPU Threads", + "description": "The new amount of CPU threads available to the VM", + "type": "integer" + }, + "vm_new_cpu_sockets": { + "title": "CPU Sockets", + "description": "The new amount of CPU sockets available to the VM", + "type": "integer" + }, + "vm_auto_restart": { + "title": "Auto-Restart VM", + "description": "Auto restart the VM to put into effect the changes", + "type": "boolean", + "default": false + } + + }, + "required": [ + "projectKey", + "vm_name", + "vm_namespace" + ] + } + } + } +kind: ConfigMap +metadata: + creationTimestamp: null + name: 01-modify-vm-resources-resources diff --git a/workflows/modify-vm-resources/manifests/01-sonataflow_modify-vm-resources.yaml b/workflows/modify-vm-resources/manifests/01-sonataflow_modify-vm-resources.yaml new file mode 100755 index 00000000..6213c525 --- /dev/null +++ b/workflows/modify-vm-resources/manifests/01-sonataflow_modify-vm-resources.yaml @@ -0,0 +1,433 @@ +apiVersion: sonataflow.org/v1alpha08 +kind: SonataFlow +metadata: + annotations: + sonataflow.org/description: Modify VM Resources (Memory/CPU) + sonataflow.org/expressionLang: jq + sonataflow.org/profile: prod + sonataflow.org/version: "1.0" + creationTimestamp: null + labels: + app: modify-vm-resources + sonataflow.org/workflow-app: modify-vm-resources + name: modify-vm-resources +spec: + flow: + dataInputSchema: + failOnValidationErrors: true + schema: schemas/modify-vm-resources__main-schema.json + functions: + - name: readNamespacedVirtualMachine + operation: specs/kubevirt-openapi.yaml#readNamespacedVirtualMachine + type: rest + - name: patchNamespacedVirtualMachine + operation: specs/kubevirt-openapi.yaml#patchNamespacedVirtualMachine + type: rest + - name: jiraCreateIssue + operation: specs/jira-openapi.json#createIssue + type: rest + - name: jiraGetIssue + operation: specs/jira-openapi.json#getIssue + type: rest + - name: createNotification + operation: specs/notifications-openapi.yaml#createNotification + type: rest + - name: print + operation: sysout + type: custom + - name: increaseVMStatusRunningRetries + operation: .vmStatusRunningRetries=.vmStatusRunningRetries + 1 + type: expression + start: + stateName: Get VM + states: + - actionMode: sequential + actions: + - actionDataFilter: + toStateData: .vm + useResults: true + functionRef: + arguments: + name: .inputs.vm_name + namespace: .inputs.vm_namespace + invoke: sync + refName: readNamespacedVirtualMachine + name: get VM + name: Get VM + transition: + nextState: Fill empty values + type: operation + - data: + empty: "" + name: Fill empty values + stateDataFilter: + output: '( . + {vm_new_memory: (if (.inputs.vm_new_memory == null or .inputs.vm_new_memory + == "") then .vm.spec.template.spec.domain.memory.guest else .inputs.vm_new_memory + end), vm_new_cpu_cores: (if .inputs.vm_new_cpu_cores == null then .vm.spec.template.spec.domain.cpu.cores + else .inputs.vm_new_cpu_cores end), vm_new_cpu_sockets: (if .inputs.vm_new_cpu_sockets + == null then .vm.spec.template.spec.domain.cpu.sockets else .inputs.vm_new_cpu_sockets + end), vm_new_cpu_threads: if .inputs.vm_new_cpu_threads == null then .vm.spec.template.spec.domain.cpu.threads + else .inputs.vm_new_cpu_threads end})' + transition: + nextState: Open issue on JIRA + type: inject + - actionMode: sequential + actions: + - actionDataFilter: + toStateData: .jiraCreateIssueResult + useResults: true + functionRef: + arguments: + fields: + description: '"Authorization request to update VM " + .inputs.vm_name + + " in namespace " + .inputs.vm_namespace + ".\nMemory: " + .vm_new_memory + + "\nCPU cores: " + (.vm_new_cpu_cores|tostring) + "\nCPU threads: + " + (.vm_new_cpu_threads|tostring) + "\nCPU sockets: " + (.vm_new_cpu_sockets|tostring) + + "\nAuto restart VM: " + (if .inputs.vm_auto_restart == true then + "yes" else "no" end)' + issuetype: + name: Task + labels: + - backstage-workflow + - '"workflowId=" + $WORKFLOW.instanceId' + project: + key: .inputs.projectKey + summary: '"Authorization request to update VM " + .inputs.vm_name + + " in namespace " + .inputs.vm_namespace' + invoke: sync + refName: jiraCreateIssue + name: callbackAction + name: Open issue on JIRA + transition: + nextState: 'Notify Backstage: JIRA ticket created' + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + actions: + - title: View on JIRA + url: $SECRET.jira_url + "/jira/servicedesk/projects/" + .inputs.projectKey + + "/issues/" + .jiraCreateIssueResult.key + message: '"JIRA ticket created to request update for VM " + .inputs.vm_name + + " in namespace " + .inputs.vm_namespace' + origin: SonataFlow + targetUsers: + - default/guest + title: '"JIRA ticket created for VM " + .inputs.vm_name' + topic: Modify VM Resources workflow + invoke: sync + refName: createNotification + name: 'Create notification: JIRA ticket created' + name: 'Notify Backstage: JIRA ticket created' + transition: + nextState: Poll issue + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + toStateData: .jiraGetIssueResult + useResults: true + functionRef: + arguments: + issueIdOrKey: .jiraCreateIssueResult.id + invoke: sync + refName: jiraGetIssue + name: get issue + sleep: + before: PT10S + name: Poll issue + transition: + nextState: Check issue done + type: operation + - dataConditions: + - condition: .jiraGetIssueResult.fields.status.statusCategory.key == "done" + and .jiraGetIssueResult.fields.resolution.name != "Done" + name: VM update denied + transition: + nextState: Notify VM update denied + - condition: .jiraGetIssueResult.fields.status.statusCategory.key == "done" + and .jiraGetIssueResult.fields.resolution.name == "Done" + name: VM update authorized + transition: + nextState: Notify VM update authorized + defaultCondition: + transition: + nextState: Poll issue + name: Check issue done + type: switch + - branches: + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: '${"VM update authorized, see Jira issue: " + $SECRET.jira_url + + "/jira/servicedesk/projects/" + .inputs.projectKey + "/issues/" + + .jiraCreateIssueResult.key + " ==> " + .inputs.vm_name}' + invoke: sync + refName: print + name: printSystemOut + name: printSystemOut + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: '"Authorization granted to update VM " + .inputs.vm_name + + " in namespace " + .inputs.vm_namespace + ". Memory: " + .vm_new_memory + + ". CPU cores: " + (.vm_new_cpu_cores|tostring) + ". CPU threads: + " + (.vm_new_cpu_threads|tostring) + ". CPU sockets: " + (.vm_new_cpu_sockets|tostring) + + ". Auto restart: " + (if .inputs.vm_auto_restart == true then "yes" + else "no" end)' + origin: SonataFlow + targetUsers: + - default/guest + title: '"Authorization granted to update VM" + .inputs.vm_name + " in + namespace " + .inputs.vm_namespace' + topic: Modify VM Resources workflow + invoke: sync + refName: createNotification + name: 'Create notification: VM update authorized' + name: 'Create notification: VM update authorized' + completionType: allOf + name: Notify VM update authorized + numCompleted: 0 + transition: + nextState: Update VM + type: parallel + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + name: .inputs.vm_name + namespace: .inputs.vm_namespace + spec: + spec: + running: (.inputs.vm_auto_restart|not) + template: + spec: + domain: + cpu: + cores: .vm_new_cpu_cores + sockets: .vm_new_cpu_sockets + threads: .vm_new_cpu_threads + memory: + guest: .vm_new_memory + invoke: sync + refName: patchNamespacedVirtualMachine + name: Update VM + transition: + nextState: Check auto restart + type: operation + - dataConditions: + - condition: .inputs.vm_auto_restart == true + name: VM autorestart enabled + transition: + nextState: Restart VM + defaultCondition: + transition: + nextState: InitVMStatusRunningRetry + name: Check auto restart + type: switch + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + name: .inputs.vm_name + namespace: .inputs.vm_namespace + spec: + spec: + running: true + invoke: sync + refName: patchNamespacedVirtualMachine + name: Restart VM + transition: + nextState: InitVMStatusRunningRetry + type: operation + - data: + vmStatusRunningRetries: 0 + name: InitVMStatusRunningRetry + transition: + nextState: Poll VM + type: inject + - actionMode: sequential + actions: + - actionDataFilter: + toStateData: .vm + useResults: true + functionRef: + arguments: + name: .inputs.vm_name + namespace: .inputs.vm_namespace + invoke: sync + refName: readNamespacedVirtualMachine + name: get VM + sleep: + before: PT10S + name: Poll VM + transition: + nextState: IncreaseVMStatusRunningRetriesRetry + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + invoke: sync + refName: increaseVMStatusRunningRetries + name: IncreaseVMStatusRunningRetriesRetry + transition: + nextState: Check VM status + type: operation + - dataConditions: + - condition: .vm.status.ready == true + name: VM running + transition: + nextState: Notify VM running + - condition: (.vmStatusRunningRetries > ($SECRET.vm_check_running_max_retries + | tonumber)) + name: VM not running + transition: + nextState: Notify VM not running + defaultCondition: + transition: + nextState: Poll VM + name: Check VM status + type: switch + - branches: + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: 'VM running: .vm' + invoke: sync + refName: print + name: printSystemOut + name: printSystemOut + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + actions: + - title: Open console + url: $SECRET.cluster_console_url + "/k8s/ns/" + .inputs.vm_namespace + + "/kubevirt.io~v1~VirtualMachine/" + .inputs.vm_name + "/console/standalone" + message: '"VM" + .inputs.vm_name + " in namespace " + .inputs.vm_namespace + + " updated."' + origin: SonataFlow + targetUsers: + - default/guest + title: '"VM" + .inputs.vm_name + " in namespace " + .inputs.vm_namespace + + " updated and ready"' + topic: Modify VM Resources workflow + invoke: sync + refName: createNotification + name: 'Create notification: VM update running' + name: 'Create notification: VM running' + completionType: allOf + end: + terminate: true + name: Notify VM running + numCompleted: 0 + type: parallel + - branches: + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: 'VM not running: .vm' + invoke: sync + refName: print + name: printSystemOut + name: printSystemOut + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: '"VM" + .inputs.vm_name + " in namespace " + .inputs.vm_namespace + + " not ready after the update atfer checking" +.vmStatusRunningRetries+" + times: " + .vm.status' + origin: SonataFlow + targetUsers: + - default/guest + title: '"VM" + .inputs.vm_name + " in namespace " + .inputs.vm_namespace + + " not ready"' + topic: Modify VM Resources workflow + invoke: sync + refName: createNotification + name: 'Create notification: VM update not running' + name: 'Create notification: VM not running' + completionType: allOf + end: + terminate: true + name: Notify VM not running + numCompleted: 0 + type: parallel + - branches: + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: '${"VM update denied, see Jira issue: " + $SECRET.jira_url + + "/jira/servicedesk/projects/" + .inputs.projectKey + "/issues/" + + .jiraCreateIssueResult.key + " ==> " + .inputs.vm_name}' + invoke: sync + refName: print + name: printSystemOut + name: printSystemOut + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + actions: + - title: View on JIRA + url: $SECRET.jira_url + "/jira/servicedesk/projects/" + .inputs.projectKey + + "/issues/" + .jiraCreateIssueResult.key + message: '"Authorization denied to update VM " + .inputs.vm_name + " + in namespace " + .inputs.vm_namespace + ". Memory: " + .vm_new_memory + + ". CPU cores: " + (.vm_new_cpu_cores|tostring) + ". CPU threads: + " + (.vm_new_cpu_threads|tostring) + ". CPU sockets: " + (.vm_new_cpu_sockets|tostring)' + origin: SonataFlow + targetUsers: + - default/guest + title: '"Authorization denied to create VM" + .inputs.vm_name + " in + namespace " + .inputs.vm_namespace' + topic: Modify VM Resources workflow + invoke: sync + refName: createNotification + name: 'Create notification: VM update denied' + name: 'Create notification: VM update denied' + completionType: allOf + end: + terminate: true + name: Notify VM update denied + numCompleted: 0 + type: parallel + podTemplate: + container: + resources: {} + image: quay.io/gfarache/serverless-workflow-modify-vm-resources:latest + resources: + configMaps: + - configMap: + name: 01-modify-vm-resources-resources + workflowPath: schemas + - configMap: + name: 02-modify-vm-resources-resources + workflowPath: specs +status: + address: {} + lastTimeRecoverAttempt: null diff --git a/workflows/modify-vm-resources/manifests/02-configmap_02-modify-vm-resources-resources.yaml b/workflows/modify-vm-resources/manifests/02-configmap_02-modify-vm-resources-resources.yaml new file mode 100755 index 00000000..519e0db7 --- /dev/null +++ b/workflows/modify-vm-resources/manifests/02-configmap_02-modify-vm-resources-resources.yaml @@ -0,0 +1,4677 @@ +apiVersion: v1 +data: + jira-openapi.json: "{\n \"openapi\": \"3.0.1\",\n \"info\": {\n \"title\": + \"JIRA Actions for BS API\",\n \"description\": \"JIRA Actions BS API\",\n + \ \"version\": \"0.0.1\"\n },\n \"paths\": {\n \"/rest/api/2/issue/{issueIdOrKey}\":{\n + \ \"get\":{\n \"deprecated\": false,\n \"security\": [\n + \ {\n \"basicAuth\": []\n }\n ],\n + \ \"description\":\"Returns the details for an issue.\\n\\nThe issue is + identified by its ID or key, however, if the identifier doesn't match an issue, + a case-insensitive search and check for moved issues is performed. If a matching + issue is found its details are returned, a 302 or other redirect is **not** returned. + The issue key returned in the response is the key of the issue found.\\n\\nThis + operation can be accessed anonymously.\\n\\n**[Permissions](#permissions) required:**\\n\\n + * *Browse projects* [project permission](https://confluence.atlassian.com/x/yodKLg) + for the project that the issue is in.\\n * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) + is configured, issue-level security permission to view the issue.\",\n \"operationId\":\"getIssue\",\n + \ \"parameters\":[\n {\n \"description\":\"The + ID or key of the issue.\",\n \"in\":\"path\",\n \"name\":\"issueIdOrKey\",\n + \ \"required\":true,\n \"schema\":{\n \"type\":\"string\"\n + \ }\n },\n {\n \"description\":\"A + list of fields to return for the issue. This parameter accepts a comma-separated + list. Use it to retrieve a subset of fields. Allowed values:\\n\\n * `*all` Returns + all fields.\\n * `*navigable` Returns navigable fields.\\n * Any issue field, + prefixed with a minus to exclude.\\n\\nExamples:\\n\\n * `summary,comment` Returns + only the summary and comments fields.\\n * `-description` Returns all (default) + fields except description.\\n * `*navigable,-comment` Returns all navigable fields + except comment.\\n\\nThis parameter may be specified multiple times. For example, + `fields=field1,field2& fields=field3`.\\n\\nNote: All fields are returned by default. + This differs from [Search for issues using JQL (GET)](#api-rest-api-2-search-get) + and [Search for issues using JQL (POST)](#api-rest-api-2-search-post) where the + default is all navigable fields.\",\n \"in\":\"query\",\n \"name\":\"fields\",\n + \ \"schema\":{\n \"items\":{\n \"default\":\"*all\",\n + \ \"type\":\"string\"\n },\n \"type\":\"array\"\n + \ }\n },\n {\n \"description\":\"Whether + fields in `fields` are referenced by keys rather than IDs. This parameter is useful + where fields have been added by a connect app and a field's key may differ from + its ID.\",\n \"in\":\"query\",\n \"name\":\"fieldsByKeys\",\n + \ \"schema\":{\n \"default\":false,\n \"type\":\"boolean\"\n + \ }\n },\n {\n \"description\":\"Use + [expand](#expansion) to include additional information about the issues in the + response. This parameter accepts a comma-separated list. Expand options include:\\n\\n + * `renderedFields` Returns field values rendered in HTML format.\\n * `names` + Returns the display name of each field.\\n * `schema` Returns the schema describing + a field type.\\n * `transitions` Returns all possible transitions for the issue.\\n + * `editmeta` Returns information about how each field can be edited.\\n * `changelog` + Returns a list of recent updates to an issue, sorted by date, starting from the + most recent.\\n * `versionedRepresentations` Returns a JSON array for each version + of a field's value, with the highest number representing the most recent version. + Note: When included in the request, the `fields` parameter is ignored.\",\n \"in\":\"query\",\n + \ \"name\":\"expand\",\n \"schema\":{\n \"type\":\"string\"\n + \ }\n },\n {\n \"description\":\"A + list of issue properties to return for the issue. This parameter accepts a comma-separated + list. Allowed values:\\n\\n * `*all` Returns all issue properties.\\n * Any + issue property key, prefixed with a minus to exclude.\\n\\nExamples:\\n\\n * `*all` + Returns all properties.\\n * `*all,-prop1` Returns all properties except `prop1`.\\n + * `prop1,prop2` Returns `prop1` and `prop2` properties.\\n\\nThis parameter may + be specified multiple times. For example, `properties=prop1,prop2& properties=prop3`.\",\n + \ \"in\":\"query\",\n \"name\":\"properties\",\n \"schema\":{\n + \ \"items\":{\n \"default\":\"null\",\n \"type\":\"string\"\n + \ },\n \"type\":\"array\"\n }\n + \ },\n {\n \"description\":\"Whether the project + in which the issue is created is added to the user's **Recently viewed** project + list, as shown under **Projects** in Jira. This also populates the [JQL issues + search](#api-rest-api-2-search-get) `lastViewed` field.\",\n \"in\":\"query\",\n + \ \"name\":\"updateHistory\",\n \"schema\":{\n \"default\":false,\n + \ \"type\":\"boolean\"\n }\n }\n ],\n + \ \"responses\":{\n \"200\":{\n \"content\":{\n + \ \"application/json\":{\n \"example\":\"{\\\"fields\\\":{\\\"watcher\\\":{\\\"isWatching\\\":false,\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/issue/EX-1/watchers\\\",\\\"watchCount\\\":1,\\\"watchers\\\":[{\\\"accountId\\\":\\\"5b10a2844c20165700ede21g\\\",\\\"active\\\":false,\\\"displayName\\\":\\\"Mia + Krystof\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g\\\"}]},\\\"attachment\\\":[{\\\"author\\\":{\\\"accountId\\\":\\\"5b10a2844c20165700ede21g\\\",\\\"accountType\\\":\\\"atlassian\\\",\\\"active\\\":false,\\\"avatarUrls\\\":{\\\"16x16\\\":\\\"https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16\\\",\\\"24x24\\\":\\\"https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24\\\",\\\"32x32\\\":\\\"https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32\\\",\\\"48x48\\\":\\\"https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48\\\"},\\\"displayName\\\":\\\"Mia + Krystof\\\",\\\"key\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g\\\"},\\\"content\\\":\\\"https://your-domain.atlassian.net/jira/rest/api/3/attachment/content/10001\\\",\\\"created\\\":\\\"2023-06-24T19:24:50.000+0000\\\",\\\"filename\\\":\\\"debuglog.txt\\\",\\\"id\\\":10001,\\\"mimeType\\\":\\\"text/plain\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/attachments/10001\\\",\\\"size\\\":2460}],\\\"sub-tasks\\\":[{\\\"id\\\":\\\"10000\\\",\\\"outwardIssue\\\":{\\\"fields\\\":{\\\"status\\\":{\\\"iconUrl\\\":\\\"https://your-domain.atlassian.net/images/icons/statuses/open.png\\\",\\\"name\\\":\\\"Open\\\"}},\\\"id\\\":\\\"10003\\\",\\\"key\\\":\\\"ED-2\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/issue/ED-2\\\"},\\\"type\\\":{\\\"id\\\":\\\"10000\\\",\\\"inward\\\":\\\"Parent\\\",\\\"name\\\":\\\"\\\",\\\"outward\\\":\\\"Sub-task\\\"}}],\\\"description\\\":\\\"Main + order flow broken\\\",\\\"project\\\":{\\\"avatarUrls\\\":{\\\"16x16\\\":\\\"https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000\\\",\\\"24x24\\\":\\\"https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000\\\",\\\"32x32\\\":\\\"https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000\\\",\\\"48x48\\\":\\\"https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000\\\"},\\\"id\\\":\\\"10000\\\",\\\"insight\\\":{\\\"lastIssueUpdateTime\\\":\\\"2021-04-22T05:37:05.000+0000\\\",\\\"totalIssueCount\\\":100},\\\"key\\\":\\\"EX\\\",\\\"name\\\":\\\"Example\\\",\\\"projectCategory\\\":{\\\"description\\\":\\\"First + Project Category\\\",\\\"id\\\":\\\"10000\\\",\\\"name\\\":\\\"FIRST\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/projectCategory/10000\\\"},\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/project/EX\\\",\\\"simplified\\\":false,\\\"style\\\":\\\"classic\\\"},\\\"comment\\\":[{\\\"author\\\":{\\\"accountId\\\":\\\"5b10a2844c20165700ede21g\\\",\\\"active\\\":false,\\\"displayName\\\":\\\"Mia + Krystof\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g\\\"},\\\"body\\\":\\\"Lorem + ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis + elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi + egestas at posuere augue semper.\\\",\\\"created\\\":\\\"2021-01-17T12:34:00.000+0000\\\",\\\"id\\\":\\\"10000\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/issue/10010/comment/10000\\\",\\\"updateAuthor\\\":{\\\"accountId\\\":\\\"5b10a2844c20165700ede21g\\\",\\\"active\\\":false,\\\"displayName\\\":\\\"Mia + Krystof\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g\\\"},\\\"updated\\\":\\\"2021-01-18T23:45:00.000+0000\\\",\\\"visibility\\\":{\\\"identifier\\\":\\\"Administrators\\\",\\\"type\\\":\\\"role\\\",\\\"value\\\":\\\"Administrators\\\"}}],\\\"issuelinks\\\":[{\\\"id\\\":\\\"10001\\\",\\\"outwardIssue\\\":{\\\"fields\\\":{\\\"status\\\":{\\\"iconUrl\\\":\\\"https://your-domain.atlassian.net/images/icons/statuses/open.png\\\",\\\"name\\\":\\\"Open\\\"}},\\\"id\\\":\\\"10004L\\\",\\\"key\\\":\\\"PR-2\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/issue/PR-2\\\"},\\\"type\\\":{\\\"id\\\":\\\"10000\\\",\\\"inward\\\":\\\"depends + on\\\",\\\"name\\\":\\\"Dependent\\\",\\\"outward\\\":\\\"is depended by\\\"}},{\\\"id\\\":\\\"10002\\\",\\\"inwardIssue\\\":{\\\"fields\\\":{\\\"status\\\":{\\\"iconUrl\\\":\\\"https://your-domain.atlassian.net/images/icons/statuses/open.png\\\",\\\"name\\\":\\\"Open\\\"}},\\\"id\\\":\\\"10004\\\",\\\"key\\\":\\\"PR-3\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/issue/PR-3\\\"},\\\"type\\\":{\\\"id\\\":\\\"10000\\\",\\\"inward\\\":\\\"depends + on\\\",\\\"name\\\":\\\"Dependent\\\",\\\"outward\\\":\\\"is depended by\\\"}}],\\\"worklog\\\":[{\\\"author\\\":{\\\"accountId\\\":\\\"5b10a2844c20165700ede21g\\\",\\\"active\\\":false,\\\"displayName\\\":\\\"Mia + Krystof\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g\\\"},\\\"comment\\\":\\\"I + did some work here.\\\",\\\"id\\\":\\\"100028\\\",\\\"issueId\\\":\\\"10002\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/issue/10010/worklog/10000\\\",\\\"started\\\":\\\"2021-01-17T12:34:00.000+0000\\\",\\\"timeSpent\\\":\\\"3h + 20m\\\",\\\"timeSpentSeconds\\\":12000,\\\"updateAuthor\\\":{\\\"accountId\\\":\\\"5b10a2844c20165700ede21g\\\",\\\"active\\\":false,\\\"displayName\\\":\\\"Mia + Krystof\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g\\\"},\\\"updated\\\":\\\"2021-01-18T23:45:00.000+0000\\\",\\\"visibility\\\":{\\\"identifier\\\":\\\"276f955c-63d7-42c8-9520-92d01dca0625\\\",\\\"type\\\":\\\"group\\\",\\\"value\\\":\\\"jira-developers\\\"}}],\\\"updated\\\":1,\\\"timetracking\\\":{\\\"originalEstimate\\\":\\\"10m\\\",\\\"originalEstimateSeconds\\\":600,\\\"remainingEstimate\\\":\\\"3m\\\",\\\"remainingEstimateSeconds\\\":200,\\\"timeSpent\\\":\\\"6m\\\",\\\"timeSpentSeconds\\\":400}},\\\"id\\\":\\\"10002\\\",\\\"key\\\":\\\"ED-1\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/issue/10002\\\"}\",\n + \ \"schema\":{\n \"$ref\":\"#/components/schemas/IssueBean\"\n + \ }\n }\n },\n \"description\":\"Returned + if the request is successful.\"\n },\n \"401\":{\n \"description\":\"Returned + if the authentication credentials are incorrect or missing.\"\n },\n + \ \"404\":{\n \"description\":\"Returned if the issue + is not found or the user does not have permission to view it.\"\n }\n + \ },\n \"summary\":\"Get issue\",\n \"tags\":[\n \"Issues\"\n + \ ],\n \"x-atlassian-connect-scope\":\"READ\"\n }\n },\n + \ \"/rest/api/2/issue\": {\n \"post\": {\n \"tags\": [\"Issues\"],\n + \ \"summary\": \"Create issue\",\n \"description\": \"Creates an + issue or, where the option to create subtasks is enabled in Jira, a subtask. A + transition may be applied, to move the issue or subtask to a workflow step other + than the default start step, and issue properties set.\\n\\nThe content of the + issue or subtask is defined using `update` and `fields`. The fields that can be + set in the issue or subtask are determined using the [ Get create issue metadata](#api-rest-api-3-issue-createmeta-get). + These are the same fields that appear on the issue's create screen. Note that + the `description`, `environment`, and any `textarea` type custom fields (multi-line + text fields) take Atlassian Document Format content. Single line custom fields + (`textfield`) accept a string and don't handle Atlassian Document Format content.\\n\\nCreating + a subtask differs from creating an issue as follows:\\n\\n * `issueType` must + be set to a subtask issue type (use [ Get create issue metadata](#api-rest-api-3-issue-createmeta-get) + to find subtask issue types).\\n * `parent` must contain the ID or key of the + parent issue.\\n\\nIn a next-gen project any issue may be made a child providing + that the parent and child are members of the same project.\\n\\n**[Permissions](#permissions) + required:** *Browse projects* and *Create issues* [project permissions](https://confluence.atlassian.com/x/yodKLg) + for the project in which the issue or subtask is created.\",\n \"operationId\": + \"createIssue\",\n \"parameters\": [\n {\n \"name\": + \"updateHistory\",\n \"in\": \"query\",\n \"description\": + \"Whether the project in which the issue is created is added to the user's **Recently + viewed** project list, as shown under **Projects** in Jira. When provided, the + issue type and request type are added to the user's history for a project. These + values are then used to provide defaults on the issue create screen.\",\n \"schema\": + {\n \"type\": \"boolean\",\n \"default\": false\n }\n + \ }\n ],\n \"requestBody\": {\n \"description\": + \"Input parameters for the action createIssue in BS\",\n \"required\": + true,\n \"content\": {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/IssueUpdateDetails\"\n }\n + \ }\n }\n },\n \"responses\": {\n \"default\": + {\n \"description\": \"Create Issue Response\",\n \"content\": + {\n \"application/json\": {\n \"schema\": {\n \"type\": + \"object\"\n }\n }\n }\n }\n },\n + \ \"deprecated\": false,\n \"security\": [\n {\n \"basicAuth\": + []\n }\n ]\n }\n }\n },\n \"components\": {\n \"schemas\": + {\n \"ChangeDetails\":{\n \"additionalProperties\":false,\n \"description\":\"A + change item.\",\n \"properties\":{\n \"field\":{\n \"description\":\"The + name of the field changed.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"fieldId\":{\n \"description\":\"The ID + of the field changed.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"fieldtype\":{\n \"description\":\"The + type of the field changed.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"from\":{\n \"description\":\"The details + of the original value.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"fromString\":{\n \"description\":\"The + details of the original value as a string.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"to\":{\n \"description\":\"The + details of the new value.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"toString\":{\n \"description\":\"The + details of the new value as a string.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"HistoryMetadataParticipant\":{\n + \ \"additionalProperties\":true,\n \"description\":\"Details of user + or system associated with a issue history metadata item.\",\n \"properties\":{\n + \ \"avatarUrl\":{\n \"description\":\"The URL to an avatar + for the user or system associated with a history record.\",\n \"type\":\"string\"\n + \ },\n \"displayName\":{\n \"description\":\"The + display name of the user or system associated with a history record.\",\n \"type\":\"string\"\n + \ },\n \"displayNameKey\":{\n \"description\":\"The + key of the display name of the user or system associated with a history record.\",\n + \ \"type\":\"string\"\n },\n \"id\":{\n \"description\":\"The + ID of the user or system associated with a history record.\",\n \"type\":\"string\"\n + \ },\n \"type\":{\n \"description\":\"The type + of the user or system associated with a history record.\",\n \"type\":\"string\"\n + \ },\n \"url\":{\n \"description\":\"The URL of + the user or system associated with a history record.\",\n \"type\":\"string\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"HistoryMetadata\":{\n + \ \"additionalProperties\":true,\n \"description\":\"Details of issue + history metadata.\",\n \"properties\":{\n \"activityDescription\":{\n + \ \"description\":\"The activity described in the history record.\",\n + \ \"type\":\"string\"\n },\n \"activityDescriptionKey\":{\n + \ \"description\":\"The key of the activity described in the history + record.\",\n \"type\":\"string\"\n },\n \"actor\":{\n + \ \"allOf\":[\n {\n \"$ref\":\"#/components/schemas/HistoryMetadataParticipant\"\n + \ }\n ],\n \"description\":\"Details + of the user whose action created the history record.\"\n },\n \"cause\":{\n + \ \"allOf\":[\n {\n \"$ref\":\"#/components/schemas/HistoryMetadataParticipant\"\n + \ }\n ],\n \"description\":\"Details + of the cause that triggered the creation the history record.\"\n },\n + \ \"description\":{\n \"description\":\"The description + of the history record.\",\n \"type\":\"string\"\n },\n + \ \"descriptionKey\":{\n \"description\":\"The description + key of the history record.\",\n \"type\":\"string\"\n },\n + \ \"emailDescription\":{\n \"description\":\"The description + of the email address associated the history record.\",\n \"type\":\"string\"\n + \ },\n \"emailDescriptionKey\":{\n \"description\":\"The + description key of the email address associated the history record.\",\n \"type\":\"string\"\n + \ },\n \"extraData\":{\n \"additionalProperties\":{\n + \ \"type\":\"string\"\n },\n \"description\":\"Additional + arbitrary information about the history record.\",\n \"type\":\"object\"\n + \ },\n \"generator\":{\n \"allOf\":[\n {\n + \ \"$ref\":\"#/components/schemas/HistoryMetadataParticipant\"\n + \ }\n ],\n \"description\":\"Details + of the system that generated the history record.\"\n },\n \"type\":{\n + \ \"description\":\"The type of the history record.\",\n \"type\":\"string\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"AvatarUrlsBean\":{\n + \ \"additionalProperties\":false,\n \"properties\":{\n \"16x16\":{\n + \ \"description\":\"The URL of the item's 16x16 pixel avatar.\",\n + \ \"format\":\"uri\",\n \"type\":\"string\"\n },\n + \ \"24x24\":{\n \"description\":\"The URL of the item's + 24x24 pixel avatar.\",\n \"format\":\"uri\",\n \"type\":\"string\"\n + \ },\n \"32x32\":{\n \"description\":\"The URL + of the item's 32x32 pixel avatar.\",\n \"format\":\"uri\",\n \"type\":\"string\"\n + \ },\n \"48x48\":{\n \"description\":\"The URL + of the item's 48x48 pixel avatar.\",\n \"format\":\"uri\",\n \"type\":\"string\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"UserDetails\":{\n + \ \"additionalProperties\":false,\n \"description\":\"User details + permitted by the user's Atlassian Account privacy settings. However, be aware + of these exceptions:\\n\\n * User record deleted from Atlassian: This occurs + as the result of a right to be forgotten request. In this case, `displayName` + provides an indication and other parameters have default values or are blank (for + example, email is blank).\\n * User record corrupted: This occurs as a results + of events such as a server import and can only happen to deleted users. In this + case, `accountId` returns *unknown* and all other parameters have fallback values.\\n + * User record unavailable: This usually occurs due to an internal service outage. + In this case, all parameters have fallback values.\",\n \"properties\":{\n + \ \"accountId\":{\n \"description\":\"The account ID of + the user, which uniquely identifies the user across all Atlassian products. For + example, *5b10ac8d82e05b22cc7d4ef5*.\",\n \"maxLength\":128,\n \"type\":\"string\"\n + \ },\n \"accountType\":{\n \"description\":\"The + type of account represented by this user. This will be one of 'atlassian' (normal + users), 'app' (application user) or 'customer' (Jira Service Desk customer user)\",\n + \ \"readOnly\":true,\n \"type\":\"string\"\n },\n + \ \"active\":{\n \"description\":\"Whether the user is active.\",\n + \ \"readOnly\":true,\n \"type\":\"boolean\"\n },\n + \ \"avatarUrls\":{\n \"allOf\":[\n {\n \"$ref\":\"#/components/schemas/AvatarUrlsBean\"\n + \ }\n ],\n \"description\":\"The avatars + of the user.\",\n \"readOnly\":true\n },\n \"displayName\":{\n + \ \"description\":\"The display name of the user. Depending on the + user’s privacy settings, this may return an alternative value.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"emailAddress\":{\n + \ \"description\":\"The email address of the user. Depending on the + user’s privacy settings, this may be returned as null.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"key\":{\n \"description\":\"This + property is no longer available and will be removed from the documentation soon. + See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) + for details.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"name\":{\n \"description\":\"This property + is no longer available and will be removed from the documentation soon. See the + [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) + for details.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"self\":{\n \"description\":\"The URL + of the user.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"timeZone\":{\n \"description\":\"The + time zone specified in the user's profile. Depending on the user’s privacy settings, + this may be returned as null.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"Changelog\":{\n + \ \"additionalProperties\":false,\n \"description\":\"A log of changes + made to issue fields. Changelogs related to workflow associations are currently + being deprecated.\",\n \"properties\":{\n \"author\":{\n \"allOf\":[\n + \ {\n \"$ref\":\"#/components/schemas/UserDetails\"\n + \ }\n ],\n \"description\":\"The user + who made the change.\",\n \"readOnly\":true\n },\n \"created\":{\n + \ \"description\":\"The date on which the change took place.\",\n + \ \"format\":\"date-time\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"historyMetadata\":{\n \"allOf\":[\n {\n + \ \"$ref\":\"#/components/schemas/HistoryMetadata\"\n }\n + \ ],\n \"description\":\"The history metadata associated + with the changed.\",\n \"readOnly\":true\n },\n \"id\":{\n + \ \"description\":\"The ID of the changelog.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"items\":{\n \"description\":\"The + list of items changed.\",\n \"items\":{\n \"$ref\":\"#/components/schemas/ChangeDetails\"\n + \ },\n \"readOnly\":true,\n \"type\":\"array\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"PageOfChangelogs\":{\n + \ \"additionalProperties\":false,\n \"description\":\"A page of changelogs.\",\n + \ \"properties\":{\n \"histories\":{\n \"description\":\"The + list of changelogs.\",\n \"items\":{\n \"$ref\":\"#/components/schemas/Changelog\"\n + \ },\n \"readOnly\":true,\n \"type\":\"array\"\n + \ },\n \"maxResults\":{\n \"description\":\"The + maximum number of results that could be on the page.\",\n \"format\":\"int32\",\n + \ \"readOnly\":true,\n \"type\":\"integer\"\n },\n + \ \"startAt\":{\n \"description\":\"The index of the first + item returned on the page.\",\n \"format\":\"int32\",\n \"readOnly\":true,\n + \ \"type\":\"integer\"\n },\n \"total\":{\n \"description\":\"The + number of results on the page.\",\n \"format\":\"int32\",\n \"readOnly\":true,\n + \ \"type\":\"integer\"\n }\n },\n \"type\":\"object\"\n + \ },\n \"IssueUpdateMetadata\":{\n \"description\":\"A list of editable + field details.\",\n \"properties\":{\n \"fields\":{\n \"additionalProperties\":{\n + \ \"$ref\":\"#/components/schemas/FieldMetadata\"\n },\n + \ \"readOnly\":true,\n \"type\":\"object\"\n }\n + \ },\n \"type\":\"object\"\n },\n \"FieldMetadata\":{\n \"additionalProperties\":false,\n + \ \"description\":\"The metadata describing an issue field.\",\n \"properties\":{\n + \ \"allowedValues\":{\n \"description\":\"The list of values + allowed in the field.\",\n \"items\":{\n \"readOnly\":true\n + \ },\n \"readOnly\":true,\n \"type\":\"array\"\n + \ },\n \"autoCompleteUrl\":{\n \"description\":\"The + URL that can be used to automatically complete the field.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"configuration\":{\n + \ \"additionalProperties\":{\n \"readOnly\":true\n + \ },\n \"description\":\"The configuration properties.\",\n + \ \"readOnly\":true,\n \"type\":\"object\"\n },\n + \ \"defaultValue\":{\n \"description\":\"The default value + of the field.\",\n \"readOnly\":true\n },\n \"hasDefaultValue\":{\n + \ \"description\":\"Whether the field has a default value.\",\n \"readOnly\":true,\n + \ \"type\":\"boolean\"\n },\n \"key\":{\n \"description\":\"The + key of the field.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"name\":{\n \"description\":\"The name + of the field.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"operations\":{\n \"description\":\"The + list of operations that can be performed on the field.\",\n \"items\":{\n + \ \"readOnly\":true,\n \"type\":\"string\"\n },\n + \ \"readOnly\":true,\n \"type\":\"array\"\n },\n + \ \"required\":{\n \"description\":\"Whether the field is + required.\",\n \"readOnly\":true,\n \"type\":\"boolean\"\n + \ },\n \"schema\":{\n \"allOf\":[\n {\n + \ \"$ref\":\"#/components/schemas/JsonTypeBean\"\n }\n + \ ],\n \"description\":\"The data type of the field.\",\n + \ \"readOnly\":true\n }\n },\n \"required\":[\n + \ \"key\",\n \"name\",\n \"operations\",\n \"required\",\n + \ \"schema\"\n ],\n \"type\":\"object\",\n \"xml\":{\n + \ \"name\":\"availableField\"\n }\n },\n \"JsonTypeBean\":{\n + \ \"additionalProperties\":false,\n \"description\":\"The schema + of a field.\",\n \"properties\":{\n \"configuration\":{\n \"additionalProperties\":{\n + \ \"readOnly\":true\n },\n \"description\":\"If + the field is a custom field, the configuration of the field.\",\n \"readOnly\":true,\n + \ \"type\":\"object\"\n },\n \"custom\":{\n \"description\":\"If + the field is a custom field, the URI of the field.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"customId\":{\n + \ \"description\":\"If the field is a custom field, the custom ID + of the field.\",\n \"format\":\"int64\",\n \"readOnly\":true,\n + \ \"type\":\"integer\"\n },\n \"items\":{\n \"description\":\"When + the data type is an array, the name of the field items within the array.\",\n + \ \"readOnly\":true,\n \"type\":\"string\"\n },\n + \ \"system\":{\n \"description\":\"If the field is a system + field, the name of the field.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"type\":{\n \"description\":\"The data + type of the field.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ }\n },\n \"required\":[\n \"type\"\n ],\n + \ \"type\":\"object\"\n },\n \"IncludedFields\":{\n \"additionalProperties\":false,\n + \ \"properties\":{\n \"actuallyIncluded\":{\n \"items\":{\n + \ \"type\":\"string\"\n },\n \"type\":\"array\",\n + \ \"uniqueItems\":true\n },\n \"excluded\":{\n + \ \"items\":{\n \"type\":\"string\"\n },\n + \ \"type\":\"array\",\n \"uniqueItems\":true\n },\n + \ \"included\":{\n \"items\":{\n \"type\":\"string\"\n + \ },\n \"type\":\"array\",\n \"uniqueItems\":true\n + \ }\n },\n \"type\":\"object\"\n },\n \"Operations\":{\n + \ \"additionalProperties\":true,\n \"description\":\"Details of the + operations that can be performed on the issue.\",\n \"properties\":{\n + \ \"linkGroups\":{\n \"description\":\"Details of the link + groups defining issue operations.\",\n \"items\":{\n \"$ref\":\"#/components/schemas/LinkGroup\"\n + \ },\n \"readOnly\":true,\n \"type\":\"array\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"LinkGroup\":{\n + \ \"additionalProperties\":false,\n \"description\":\"Details a link + group, which defines issue operations.\",\n \"properties\":{\n \"groups\":{\n + \ \"items\":{\n \"$ref\":\"#/components/schemas/LinkGroup\"\n + \ },\n \"type\":\"array\"\n },\n \"header\":{\n + \ \"$ref\":\"#/components/schemas/SimpleLink\"\n },\n \"id\":{\n + \ \"type\":\"string\"\n },\n \"links\":{\n \"items\":{\n + \ \"$ref\":\"#/components/schemas/SimpleLink\"\n },\n + \ \"type\":\"array\"\n },\n \"styleClass\":{\n + \ \"type\":\"string\"\n },\n \"weight\":{\n \"format\":\"int32\",\n + \ \"type\":\"integer\"\n }\n },\n \"type\":\"object\"\n + \ },\n \"SimpleLink\":{\n \"additionalProperties\":false,\n \"description\":\"Details + about the operations available in this version.\",\n \"properties\":{\n + \ \"href\":{\n \"type\":\"string\"\n },\n \"iconClass\":{\n + \ \"type\":\"string\"\n },\n \"id\":{\n \"type\":\"string\"\n + \ },\n \"label\":{\n \"type\":\"string\"\n },\n + \ \"styleClass\":{\n \"type\":\"string\"\n },\n + \ \"title\":{\n \"type\":\"string\"\n },\n \"weight\":{\n + \ \"format\":\"int32\",\n \"type\":\"integer\"\n }\n + \ },\n \"type\":\"object\",\n \"xml\":{\n \"name\":\"link\"\n + \ }\n },\n \"IssueTransition\":{\n \"additionalProperties\":true,\n + \ \"description\":\"Details of an issue transition.\",\n \"properties\":{\n + \ \"expand\":{\n \"description\":\"Expand options that include + additional transition details in the response.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"fields\":{\n \"additionalProperties\":{\n + \ \"$ref\":\"#/components/schemas/FieldMetadata\"\n },\n + \ \"description\":\"Details of the fields associated with the issue + transition screen. Use this information to populate `fields` and `update` in a + transition request.\",\n \"readOnly\":true,\n \"type\":\"object\"\n + \ },\n \"hasScreen\":{\n \"description\":\"Whether + there is a screen associated with the issue transition.\",\n \"readOnly\":true,\n + \ \"type\":\"boolean\"\n },\n \"id\":{\n \"description\":\"The + ID of the issue transition. Required when specifying a transition to undertake.\",\n + \ \"type\":\"string\"\n },\n \"isAvailable\":{\n + \ \"description\":\"Whether the transition is available to be performed.\",\n + \ \"readOnly\":true,\n \"type\":\"boolean\"\n },\n + \ \"isConditional\":{\n \"description\":\"Whether the issue + has to meet criteria before the issue transition is applied.\",\n \"readOnly\":true,\n + \ \"type\":\"boolean\"\n },\n \"isGlobal\":{\n + \ \"description\":\"Whether the issue transition is global, that is, + the transition is applied to issues regardless of their status.\",\n \"readOnly\":true,\n + \ \"type\":\"boolean\"\n },\n \"isInitial\":{\n + \ \"description\":\"Whether this is the initial issue transition for + the workflow.\",\n \"readOnly\":true,\n \"type\":\"boolean\"\n + \ },\n \"looped\":{\n \"type\":\"boolean\"\n },\n + \ \"name\":{\n \"description\":\"The name of the issue transition.\",\n + \ \"readOnly\":true,\n \"type\":\"string\"\n },\n + \ \"to\":{\n \"allOf\":[\n {\n \"$ref\":\"#/components/schemas/StatusDetails\"\n + \ }\n ],\n \"description\":\"Details + of the issue status after the transition.\",\n \"readOnly\":true\n + \ }\n },\n \"type\":\"object\"\n },\n \"StatusDetails\":{\n + \ \"additionalProperties\":true,\n \"description\":\"A status.\",\n + \ \"properties\":{\n \"description\":{\n \"description\":\"The + description of the status.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"iconUrl\":{\n \"description\":\"The URL + of the icon used to represent the status.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"id\":{\n \"description\":\"The + ID of the status.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"name\":{\n \"description\":\"The name + of the status.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"scope\":{\n \"allOf\":[\n {\n + \ \"$ref\":\"#/components/schemas/Scope\"\n }\n + \ ],\n \"description\":\"The scope of the field.\",\n + \ \"readOnly\":true\n },\n \"self\":{\n \"description\":\"The + URL of the status.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"statusCategory\":{\n \"allOf\":[\n {\n + \ \"$ref\":\"#/components/schemas/StatusCategory\"\n }\n + \ ],\n \"description\":\"The category assigned to the + status.\",\n \"readOnly\":true\n }\n },\n \"type\":\"object\"\n + \ },\n \"StatusCategory\":{\n \"additionalProperties\":true,\n \"description\":\"A + status category.\",\n \"properties\":{\n \"colorName\":{\n \"description\":\"The + name of the color used to represent the status category.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"id\":{\n \"description\":\"The + ID of the status category.\",\n \"format\":\"int64\",\n \"readOnly\":true,\n + \ \"type\":\"integer\"\n },\n \"key\":{\n \"description\":\"The + key of the status category.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"name\":{\n \"description\":\"The name + of the status category.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"self\":{\n \"description\":\"The URL + of the status category.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"ProjectDetails\":{\n + \ \"additionalProperties\":false,\n \"description\":\"Details about + a project.\",\n \"properties\":{\n \"avatarUrls\":{\n \"allOf\":[\n + \ {\n \"$ref\":\"#/components/schemas/AvatarUrlsBean\"\n + \ }\n ],\n \"description\":\"The URLs + of the project's avatars.\",\n \"readOnly\":true\n },\n + \ \"id\":{\n \"description\":\"The ID of the project.\",\n + \ \"type\":\"string\"\n },\n \"key\":{\n \"description\":\"The + key of the project.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"name\":{\n \"description\":\"The name + of the project.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"projectCategory\":{\n \"allOf\":[\n {\n + \ \"$ref\":\"#/components/schemas/UpdatedProjectCategory\"\n + \ }\n ],\n \"description\":\"The category + the project belongs to.\",\n \"readOnly\":true\n },\n \"projectTypeKey\":{\n + \ \"description\":\"The [project type](https://confluence.atlassian.com/x/GwiiLQ#Jiraapplicationsoverview-Productfeaturesandprojecttypes) + of the project.\",\n \"enum\":[\n \"software\",\n + \ \"service_desk\",\n \"business\"\n ],\n + \ \"readOnly\":true,\n \"type\":\"string\"\n },\n + \ \"self\":{\n \"description\":\"The URL of the project + details.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"simplified\":{\n \"description\":\"Whether + or not the project is simplified.\",\n \"readOnly\":true,\n \"type\":\"boolean\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"UpdatedProjectCategory\":{\n + \ \"additionalProperties\":false,\n \"description\":\"A project category.\",\n + \ \"properties\":{\n \"description\":{\n \"description\":\"The + name of the project category.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"id\":{\n \"description\":\"The ID of + the project category.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"name\":{\n \"description\":\"The description + of the project category.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"self\":{\n \"description\":\"The URL + of the project category.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"Scope\":{\n + \ \"additionalProperties\":true,\n \"description\":\"The projects + the item is associated with. Indicated for items associated with [next-gen projects](https://confluence.atlassian.com/x/loMyO).\",\n + \ \"properties\":{\n \"project\":{\n \"allOf\":[\n + \ {\n \"$ref\":\"#/components/schemas/ProjectDetails\"\n + \ }\n ],\n \"description\":\"The project + the item has scope in.\",\n \"readOnly\":true\n },\n \"type\":{\n + \ \"description\":\"The type of scope.\",\n \"enum\":[\n + \ \"PROJECT\",\n \"TEMPLATE\"\n ],\n + \ \"readOnly\":true,\n \"type\":\"string\"\n }\n + \ },\n \"type\":\"object\"\n },\n \"EntityProperty\":{\n + \ \"additionalProperties\":false,\n \"description\":\"An entity property, + for more information see [Entity properties](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/).\",\n + \ \"properties\":{\n \"key\":{\n \"description\":\"The + key of the property. Required on create and update.\",\n \"type\":\"string\"\n + \ },\n \"value\":{\n \"description\":\"The value + of the property. Required on create and update.\"\n }\n },\n + \ \"type\":\"object\"\n },\n \"FieldUpdateOperation\":{\n \"additionalProperties\":false,\n + \ \"description\":\"Details of an operation to perform on a field.\",\n + \ \"properties\":{\n \"add\":{\n \"description\":\"The + value to add to the field.\",\n \"example\":\"triaged\"\n },\n + \ \"copy\":{\n \"description\":\"The field value to copy + from another issue.\",\n \"example\":{\n \"issuelinks\":{\n + \ \"sourceIssues\":[\n {\n \"key\":\"FP-5\"\n + \ }\n ]\n }\n }\n + \ },\n \"edit\":{\n \"description\":\"The value + to edit in the field.\",\n \"example\":{\n \"originalEstimate\":\"1w + 1d\",\n \"remainingEstimate\":\"4d\"\n }\n },\n + \ \"remove\":{\n \"description\":\"The value to removed + from the field.\",\n \"example\":\"blocker\"\n },\n \"set\":{\n + \ \"description\":\"The value to set in the field.\",\n \"example\":\"A + new summary\"\n }\n },\n \"type\":\"object\"\n },\n + \ \"IssueUpdateDetails\":{\n \"additionalProperties\":true,\n \"description\":\"Details + of an issue update request.\",\n \"properties\":{\n \"fields\":{\n + \ \"additionalProperties\":{\n \n },\n + \ \"description\":\"List of issue screen fields to update, specifying + the sub-field to update and its value for each field. This field provides a straightforward + option when setting a sub-field. When multiple sub-fields or other operations + are required, use `update`. Fields included in here cannot be included in `update`.\",\n + \ \"type\":\"object\"\n },\n \"historyMetadata\":{\n + \ \"allOf\":[\n {\n \"$ref\":\"#/components/schemas/HistoryMetadata\"\n + \ }\n ],\n \"description\":\"Additional + issue history details.\"\n },\n \"properties\":{\n \"description\":\"Details + of issue properties to be add or update.\",\n \"items\":{\n \"$ref\":\"#/components/schemas/EntityProperty\"\n + \ },\n \"type\":\"array\"\n },\n \"transition\":{\n + \ \"allOf\":[\n {\n \"$ref\":\"#/components/schemas/IssueTransition\"\n + \ }\n ],\n \"description\":\"Details + of a transition. Required when performing a transition, optional when creating + or editing an issue.\"\n },\n \"update\":{\n \"additionalProperties\":{\n + \ \"items\":{\n \"$ref\":\"#/components/schemas/FieldUpdateOperation\"\n + \ },\n \"type\":\"array\"\n },\n \"description\":\"A + Map containing the field field name and a list of operations to perform on the + issue screen field. Note that fields included in here cannot be included in `fields`.\",\n + \ \"type\":\"object\"\n }\n },\n \"type\":\"object\"\n + \ },\n \"IssueBean\":{\n \"additionalProperties\":false,\n \"description\":\"Details + about an issue.\",\n \"properties\":{\n \"changelog\":{\n \"allOf\":[\n + \ {\n \"$ref\":\"#/components/schemas/PageOfChangelogs\"\n + \ }\n ],\n \"description\":\"Details + of changelogs associated with the issue.\",\n \"readOnly\":true\n + \ },\n \"editmeta\":{\n \"allOf\":[\n {\n + \ \"$ref\":\"#/components/schemas/IssueUpdateMetadata\"\n }\n + \ ],\n \"description\":\"The metadata for the fields + on the issue that can be amended.\",\n \"readOnly\":true\n },\n + \ \"expand\":{\n \"description\":\"Expand options that include + additional issue details in the response.\",\n \"readOnly\":true,\n + \ \"type\":\"string\",\n \"xml\":{\n \"attribute\":true\n + \ }\n },\n \"fields\":{\n \"additionalProperties\":{\n + \ \n },\n \"type\":\"object\"\n },\n + \ \"fieldsToInclude\":{\n \"$ref\":\"#/components/schemas/IncludedFields\"\n + \ },\n \"id\":{\n \"description\":\"The ID of + the issue.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"key\":{\n \"description\":\"The key of + the issue.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"names\":{\n \"additionalProperties\":{\n + \ \"readOnly\":true,\n \"type\":\"string\"\n },\n + \ \"description\":\"The ID and name of each field present on the issue.\",\n + \ \"readOnly\":true,\n \"type\":\"object\"\n },\n + \ \"operations\":{\n \"allOf\":[\n {\n \"$ref\":\"#/components/schemas/Operations\"\n + \ }\n ],\n \"description\":\"The operations + that can be performed on the issue.\",\n \"readOnly\":true\n },\n + \ \"properties\":{\n \"additionalProperties\":{\n \"readOnly\":true\n + \ },\n \"description\":\"Details of the issue properties + identified in the request.\",\n \"readOnly\":true,\n \"type\":\"object\"\n + \ },\n \"renderedFields\":{\n \"additionalProperties\":{\n + \ \"readOnly\":true\n },\n \"description\":\"The + rendered value of each field present on the issue.\",\n \"readOnly\":true,\n + \ \"type\":\"object\"\n },\n \"schema\":{\n \"additionalProperties\":{\n + \ \"$ref\":\"#/components/schemas/JsonTypeBean\"\n },\n + \ \"description\":\"The schema describing each field present on the + issue.\",\n \"readOnly\":true,\n \"type\":\"object\"\n + \ },\n \"self\":{\n \"description\":\"The URL + of the issue details.\",\n \"format\":\"uri\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"transitions\":{\n + \ \"description\":\"The transitions that can be performed on the issue.\",\n + \ \"items\":{\n \"$ref\":\"#/components/schemas/IssueTransition\"\n + \ },\n \"readOnly\":true,\n \"type\":\"array\"\n + \ },\n \"versionedRepresentations\":{\n \"additionalProperties\":{\n + \ \"additionalProperties\":{\n \"readOnly\":true\n + \ },\n \"readOnly\":true,\n \"type\":\"object\"\n + \ },\n \"description\":\"The versions of each field on + the issue.\",\n \"readOnly\":true,\n \"type\":\"object\"\n + \ }\n },\n \"type\":\"object\",\n \"xml\":{\n \"name\":\"issue\"\n + \ }\n }\n },\n \"securitySchemes\": {\n \"basicAuth\": {\n + \ \"description\": \"You can access this resource via basic auth.\",\n \"scheme\": + \"basic\",\n \"type\": \"http\"\n }\n }\n }\n}" + kubevirt-openapi.yaml: "openapi: 3.0.1\ninfo:\n version: 1.2.0\n title: KubeVirt + API\n description: This is KubeVirt API an add-on for Kubernetes.\n contact:\n + \ name: kubevirt-dev\n url: https://github.com/kubevirt/kubevirt\n email: + kubevirt-dev@googlegroups.com\n license:\n name: Apache 2.0\n url: https://www.apache.org/licenses/LICENSE-2.0\nservers:\n- + url: /\npaths:\n /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines:\n + \ post:\n description: Create a VirtualMachine object.\n operationId: + createNamespacedVirtualMachine\n parameters:\n - name: namespace\n in: + path\n description: \"Object name and auth scope, such as for teams and + projects\"\n required: true\n schema:\n type: string\n + \ requestBody:\n content:\n application/json:\n schema:\n + \ $ref: '#/components/schemas/v1.VirtualMachine'\n application/yaml:\n + \ schema:\n $ref: '#/components/schemas/v1.VirtualMachine'\n + \ required: true\n responses:\n \"200\":\n description: + OK\n content:\n application/json:\n schema:\n + \ $ref: '#/components/schemas/v1.VirtualMachine'\n application/yaml:\n + \ schema:\n $ref: '#/components/schemas/v1.VirtualMachine'\n + \ \"201\":\n description: Created\n content:\n application/json:\n + \ schema:\n $ref: '#/components/schemas/v1.VirtualMachine'\n + \ application/yaml:\n schema:\n $ref: '#/components/schemas/v1.VirtualMachine'\n + \ \"202\":\n description: Accepted\n content:\n application/json:\n + \ schema:\n $ref: '#/components/schemas/v1.VirtualMachine'\n + \ application/yaml:\n schema:\n $ref: '#/components/schemas/v1.VirtualMachine'\n + \ \"401\":\n description: Unauthorized\n content:\n application/json:\n + \ schema:\n type: string\n application/yaml:\n + \ schema:\n type: string\n x-codegen-request-body-name: + body\n security:\n - BearerToken: []\n /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}:\n + \ get:\n description: Get a VirtualMachine object.\n operationId: + readNamespacedVirtualMachine\n parameters:\n - name: name\n in: + path\n description: Name of the resource\n required: true\n schema:\n + \ type: string\n - name: namespace\n in: path\n description: + \"Object name and auth scope, such as for teams and projects\"\n required: + true\n schema:\n type: string\n - name: exact\n in: + query\n description: Should the export be exact. Exact export maintains + cluster-specific\n fields like 'Namespace'.\n schema:\n type: + boolean\n - name: export\n in: query\n description: Should + this value be exported. Export strips fields that a user\n can not specify.\n + \ schema:\n type: boolean\n responses:\n \"200\":\n + \ description: OK\n content:\n application/json:\n + \ schema:\n $ref: '#/components/schemas/v1.VirtualMachine'\n + \ application/yaml:\n schema:\n $ref: '#/components/schemas/v1.VirtualMachine'\n + \ application/json;stream=watch:\n schema:\n $ref: + '#/components/schemas/v1.VirtualMachine'\n \"401\":\n description: + Unauthorized\n content:\n application/json:\n schema:\n + \ type: string\n application/yaml:\n schema:\n + \ type: string\n application/json;stream=watch:\n schema:\n + \ type: string\n security:\n - BearerToken: []\n patch:\n + \ description: Patch a VirtualMachine object.\n operationId: patchNamespacedVirtualMachine\n + \ parameters:\n - name: name\n in: path\n description: + Name of the resource\n required: true\n schema:\n type: + string\n - name: namespace\n in: path\n description: \"Object + name and auth scope, such as for teams and projects\"\n required: true\n + \ schema:\n type: string\n requestBody:\n content:\n + # application/json-patch+json:\n # schema:\n # $ref: + '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Patch'\n application/merge-patch+json:\n + \ schema:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Patch'\n + \ required: true\n responses:\n \"200\":\n description: + OK\n content:\n application/json:\n schema:\n + \ $ref: '#/components/schemas/v1.VirtualMachine'\n \"401\":\n + \ description: Unauthorized\n content:\n application/json:\n + \ schema:\n type: string\n x-codegen-request-body-name: + body\n security:\n - BearerToken: [] \ncomponents:\n schemas:\n + \ k8s.io.api.core.v1.Affinity:\n type: object\n properties:\n nodeAffinity:\n + \ $ref: '#/components/schemas/k8s.io.api.core.v1.NodeAffinity'\n podAffinity:\n + \ $ref: '#/components/schemas/k8s.io.api.core.v1.PodAffinity'\n podAntiAffinity:\n + \ $ref: '#/components/schemas/k8s.io.api.core.v1.PodAntiAffinity'\n description: + Affinity is a group of affinity scheduling rules.\n k8s.io.api.core.v1.DownwardAPIVolumeFile:\n + \ required:\n - path\n type: object\n properties:\n fieldRef:\n + \ $ref: '#/components/schemas/k8s.io.api.core.v1.ObjectFieldSelector'\n + \ mode:\n type: integer\n description: \"Optional: mode + bits used to set permissions on this file,\\\n \\ must be an octal + value between 0000 and 0777 or a decimal value between\\\n \\ 0 and + 511. YAML accepts both octal and decimal values, JSON requires\\\n \\ + decimal values for mode bits. If not specified, the volume defaultMode\\\n \\ + will be used. This might be in conflict with other options that affect\\\n \\ + the file mode, like fsGroup, and the result can be other mode bits set.\"\n format: + int32\n path:\n type: string\n description: \"Required: + Path is the relative path name of the file to be\\\n \\ created. Must + not be absolute or contain the '..' path. Must be utf-8\\\n \\ encoded. + The first item of the relative path must not start with '..'\"\n default: + \"\"\n resourceFieldRef:\n $ref: '#/components/schemas/k8s.io.api.core.v1.ResourceFieldSelector'\n + \ description: DownwardAPIVolumeFile represents information to create the + file\n containing the pod field\n k8s.io.api.core.v1.ExecAction:\n type: + object\n properties:\n command:\n type: array\n description: + \"Command is the command line to execute inside the container,\\\n \\ + the working directory for the command is root ('/') in the container's\\\n \\ + filesystem. The command is simply exec'd, it is not run inside a shell,\\\n \\ + so traditional shell instructions ('|', etc) won't work. To use a shell,\\\n \\ + you need to explicitly call out to that shell. Exit status of 0 is treated\\\n + \ \\ as live/healthy and non-zero is unhealthy.\"\n items:\n + \ type: string\n default: \"\"\n description: ExecAction + describes a \"run in container\" action.\n k8s.io.api.core.v1.HTTPGetAction:\n + \ type: object\n properties:\n host:\n type: string\n + \ description: \"Host name to connect to, defaults to the pod IP. You + probably\\\n \\ want to set \\\"Host\\\" in httpHeaders instead.\"\n + \ httpHeaders:\n type: array\n description: Custom headers + to set in the request. HTTP allows repeated\n headers.\n items:\n + \ $ref: '#/components/schemas/k8s.io.api.core.v1.HTTPHeader'\n path:\n + \ type: string\n description: Path to access on the HTTP server.\n + \ scheme:\n type: string\n description: |-\n Scheme + to use for connecting to the host. Defaults to HTTP.\n\n Possible enum + values:\n - `\"HTTP\"` means that the scheme used will be http://\n + \ - `\"HTTPS\"` means that the scheme used will be https://\n enum:\n + \ - HTTP\n - HTTPS\n description: HTTPGetAction describes + an action based on HTTP Get requests.\n k8s.io.api.core.v1.HTTPHeader:\n required:\n + \ - name\n - value\n type: object\n properties:\n name:\n + \ type: string\n description: The header field name\n default: + \"\"\n value:\n type: string\n description: The header + field value\n default: \"\"\n description: HTTPHeader describes + a custom header to be used in HTTP probes\n k8s.io.api.core.v1.LocalObjectReference:\n + \ type: object\n properties:\n name:\n type: string\n + \ description: \"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\"\n + \ description: LocalObjectReference contains enough information to let you + locate\n the referenced object inside the same namespace.\n x-kubernetes-map-type: + atomic\n k8s.io.api.core.v1.NodeAffinity:\n type: object\n properties:\n + \ preferredDuringSchedulingIgnoredDuringExecution:\n type: array\n + \ description: \"The scheduler will prefer to schedule pods to nodes that + satisfy\\\n \\ the affinity expressions specified by this field, but + it may choose\\\n \\ a node that violates one or more of the expressions. + The node that is\\\n \\ most preferred is the one with the greatest + sum of weights, i.e. for\\\n \\ each node that meets all of the scheduling + requirements (resource request,\\\n \\ requiredDuringScheduling affinity + expressions, etc.), compute a sum\\\n \\ by iterating through the elements + of this field and adding \\\"weight\\\"\\\n \\ to the sum if the node + matches the corresponding matchExpressions; the\\\n \\ node(s) with + the highest sum are the most preferred.\"\n items:\n $ref: + '#/components/schemas/k8s.io.api.core.v1.PreferredSchedulingTerm'\n requiredDuringSchedulingIgnoredDuringExecution:\n + \ $ref: '#/components/schemas/k8s.io.api.core.v1.NodeSelector'\n description: + Node affinity is a group of node affinity scheduling rules.\n k8s.io.api.core.v1.NodeSelector:\n + \ required:\n - nodeSelectorTerms\n type: object\n properties:\n + \ nodeSelectorTerms:\n type: array\n description: Required. + A list of node selector terms. The terms are ORed.\n items:\n $ref: + '#/components/schemas/k8s.io.api.core.v1.NodeSelectorTerm'\n description: + \"A node selector represents the union of the results of one or\\\n \\ + more label queries over a set of nodes; that is, it represents the OR of\\\n \\ + the selectors represented by the node selector terms.\"\n x-kubernetes-map-type: + atomic\n k8s.io.api.core.v1.NodeSelectorRequirement:\n required:\n - + key\n - operator\n type: object\n properties:\n key:\n type: + string\n description: The label key that the selector applies to.\n default: + \"\"\n operator:\n type: string\n description: |-\n Represents + a key's relationship to a set of values. Valid operators are In, NotIn, Exists, + DoesNotExist. Gt, and Lt.\n\n Possible enum values:\n - + `\"DoesNotExist\"`\n - `\"Exists\"`\n - `\"Gt\"`\n - + `\"In\"`\n - `\"Lt\"`\n - `\"NotIn\"`\n default: + \"\"\n enum:\n - DoesNotExist\n - Exists\n - + Gt\n - In\n - Lt\n - NotIn\n values:\n type: + array\n description: \"An array of string values. If the operator is + In or NotIn,\\\n \\ the values array must be non-empty. If the operator + is Exists or DoesNotExist,\\\n \\ the values array must be empty. If + the operator is Gt or Lt, the values\\\n \\ array must have a single + element, which will be interpreted as an integer.\\\n \\ This array + is replaced during a strategic merge patch.\"\n items:\n type: + string\n default: \"\"\n description: \"A node selector requirement + is a selector that contains values,\\\n \\ a key, and an operator that + relates the key and values.\"\n k8s.io.api.core.v1.NodeSelectorTerm:\n type: + object\n properties:\n matchExpressions:\n type: array\n + \ description: A list of node selector requirements by node's labels.\n + \ items:\n $ref: '#/components/schemas/k8s.io.api.core.v1.NodeSelectorRequirement'\n + \ matchFields:\n type: array\n description: A list of + node selector requirements by node's fields.\n items:\n $ref: + '#/components/schemas/k8s.io.api.core.v1.NodeSelectorRequirement'\n description: + A null or empty node selector term matches no objects. The requirements\n of + them are ANDed. The TopologySelectorTerm type implements a subset of the\n NodeSelectorTerm.\n + \ x-kubernetes-map-type: atomic\n k8s.io.api.core.v1.ObjectFieldSelector:\n + \ required:\n - fieldPath\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"Version of the schema the FieldPath + is written in terms of,\\\n \\ defaults to \\\"v1\\\".\"\n fieldPath:\n + \ type: string\n description: Path of the field to select in + the specified API version.\n default: \"\"\n description: ObjectFieldSelector + selects an APIVersioned field of an object.\n x-kubernetes-map-type: atomic\n + \ k8s.io.api.core.v1.PersistentVolumeClaimSpec:\n type: object\n properties:\n + \ accessModes:\n type: array\n description: \"accessModes + contains the desired access modes the volume should\\\n \\ have. More + info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1\"\n + \ items:\n type: string\n default: \"\"\n dataSource:\n + \ $ref: '#/components/schemas/k8s.io.api.core.v1.TypedLocalObjectReference'\n + \ dataSourceRef:\n $ref: '#/components/schemas/k8s.io.api.core.v1.TypedObjectReference'\n + \ resources:\n $ref: '#/components/schemas/k8s.io.api.core.v1.ResourceRequirements'\n + \ selector:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector'\n + \ storageClassName:\n type: string\n description: \"storageClassName + is the name of the StorageClass required\\\n \\ by the claim. More + info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1\"\n + \ volumeMode:\n type: string\n description: |-\n volumeMode + defines what type of volume is required by the claim. Value of Filesystem is implied + when not included in claim spec.\n\n Possible enum values:\n - + `\"Block\"` means the volume will not be formatted with a filesystem and will + remain a raw block device.\n - `\"Filesystem\"` means the volume will + be or is formatted with a filesystem.\n enum:\n - Block\n - + Filesystem\n volumeName:\n type: string\n description: + volumeName is the binding reference to the PersistentVolume\n backing + this claim.\n description: PersistentVolumeClaimSpec describes the common + attributes of storage\n devices and allows a Source for provider-specific + attributes\n k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource:\n required:\n + \ - claimName\n type: object\n properties:\n claimName:\n + \ type: string\n description: \"claimName is the name of a PersistentVolumeClaim + in the same\\\n \\ namespace as the pod using this volume. More info: + https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims\"\n + \ default: \"\"\n readOnly:\n type: boolean\n description: + readOnly Will force the ReadOnly setting in VolumeMounts. Default\n false.\n + \ description: \"PersistentVolumeClaimVolumeSource references the user's PVC + in\\\n \\ the same namespace. This volume finds the bound PV and mounts + that volume\\\n \\ for the pod. A PersistentVolumeClaimVolumeSource is, + essentially, a wrapper\\\n \\ around another type of volume that is owned + by someone else (the system).\"\n k8s.io.api.core.v1.PodAffinity:\n type: + object\n properties:\n preferredDuringSchedulingIgnoredDuringExecution:\n + \ type: array\n description: \"The scheduler will prefer to schedule + pods to nodes that satisfy\\\n \\ the affinity expressions specified + by this field, but it may choose\\\n \\ a node that violates one or + more of the expressions. The node that is\\\n \\ most preferred is + the one with the greatest sum of weights, i.e. for\\\n \\ each node + that meets all of the scheduling requirements (resource request,\\\n \\ + requiredDuringScheduling affinity expressions, etc.), compute a sum\\\n \\ + by iterating through the elements of this field and adding \\\"weight\\\"\\\n + \ \\ to the sum if the node has pods which matches the corresponding + podAffinityTerm;\\\n \\ the node(s) with the highest sum are the most + preferred.\"\n items:\n $ref: '#/components/schemas/k8s.io.api.core.v1.WeightedPodAffinityTerm'\n + \ requiredDuringSchedulingIgnoredDuringExecution:\n type: array\n + \ description: \"If the affinity requirements specified by this field + are not\\\n \\ met at scheduling time, the pod will not be scheduled + onto the node.\\\n \\ If the affinity requirements specified by this + field cease to be met\\\n \\ at some point during pod execution (e.g. + due to a pod label update),\\\n \\ the system may or may not try to + eventually evict the pod from its node.\\\n \\ When there are multiple + elements, the lists of nodes corresponding to\\\n \\ each podAffinityTerm + are intersected, i.e. all terms must be satisfied.\"\n items:\n $ref: + '#/components/schemas/k8s.io.api.core.v1.PodAffinityTerm'\n description: + Pod affinity is a group of inter pod affinity scheduling rules.\n k8s.io.api.core.v1.PodAffinityTerm:\n + \ required:\n - topologyKey\n type: object\n properties:\n + \ labelSelector:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector'\n + \ namespaceSelector:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector'\n + \ namespaces:\n type: array\n description: namespaces + specifies a static list of namespace names that\n the term applies + to. The term is applied to the union of the namespaces\n listed in + this field and the ones selected by namespaceSelector. null\n or empty + namespaces list and null namespaceSelector means \"this pod's\n namespace\".\n + \ items:\n type: string\n default: \"\"\n topologyKey:\n + \ type: string\n description: \"This pod should be co-located + (affinity) or not co-located\\\n \\ (anti-affinity) with the pods matching + the labelSelector in the specified\\\n \\ namespaces, where co-located + is defined as running on a node whose value\\\n \\ of the label with + key topologyKey matches that of any node on which\\\n \\ any of the + selected pods is running. Empty topologyKey is not allowed.\"\n default: + \"\"\n description: \"Defines a set of pods (namely those matching the labelSelector\\\n + \ \\ relative to the given namespace(s)) that this pod should be co-located + (affinity)\\\n \\ or not co-located (anti-affinity) with, where co-located + is defined as running\\\n \\ on a node whose value of the label with key + matches that of\\\n \\ any node on which a pod of the set + of pods is running\"\n k8s.io.api.core.v1.PodAntiAffinity:\n type: object\n + \ properties:\n preferredDuringSchedulingIgnoredDuringExecution:\n + \ type: array\n description: \"The scheduler will prefer to schedule + pods to nodes that satisfy\\\n \\ the anti-affinity expressions specified + by this field, but it may choose\\\n \\ a node that violates one or + more of the expressions. The node that is\\\n \\ most preferred is + the one with the greatest sum of weights, i.e. for\\\n \\ each node + that meets all of the scheduling requirements (resource request,\\\n \\ + requiredDuringScheduling anti-affinity expressions, etc.), compute a\\\n \\ + sum by iterating through the elements of this field and adding \\\"weight\\\"\\\n + \ \\ to the sum if the node has pods which matches the corresponding + podAffinityTerm;\\\n \\ the node(s) with the highest sum are the most + preferred.\"\n items:\n $ref: '#/components/schemas/k8s.io.api.core.v1.WeightedPodAffinityTerm'\n + \ requiredDuringSchedulingIgnoredDuringExecution:\n type: array\n + \ description: \"If the anti-affinity requirements specified by this field\\\n + \ \\ are not met at scheduling time, the pod will not be scheduled onto + the\\\n \\ node. If the anti-affinity requirements specified by this + field cease\\\n \\ to be met at some point during pod execution (e.g. + due to a pod label\\\n \\ update), the system may or may not try to + eventually evict the pod from\\\n \\ its node. When there are multiple + elements, the lists of nodes corresponding\\\n \\ to each podAffinityTerm + are intersected, i.e. all terms must be satisfied.\"\n items:\n $ref: + '#/components/schemas/k8s.io.api.core.v1.PodAffinityTerm'\n description: + Pod anti affinity is a group of inter pod anti affinity scheduling\n rules.\n + \ k8s.io.api.core.v1.PodDNSConfig:\n type: object\n properties:\n + \ nameservers:\n type: array\n description: A list of + DNS name server IP addresses. This will be appended\n to the base nameservers + generated from DNSPolicy. Duplicated nameservers\n will be removed.\n + \ items:\n type: string\n default: \"\"\n options:\n + \ type: array\n description: A list of DNS resolver options. + This will be merged with the\n base options generated from DNSPolicy. + Duplicated entries will be removed.\n Resolution options given in Options + will override those that appear in\n the base DNSPolicy.\n items:\n + \ $ref: '#/components/schemas/k8s.io.api.core.v1.PodDNSConfigOption'\n + \ searches:\n type: array\n description: A list of DNS + search domains for host-name lookup. This will\n be appended to the + base search paths generated from DNSPolicy. Duplicated\n search paths + will be removed.\n items:\n type: string\n default: + \"\"\n description: PodDNSConfig defines the DNS parameters of a pod in addition + to\n those generated from DNSPolicy.\n k8s.io.api.core.v1.PodDNSConfigOption:\n + \ type: object\n properties:\n name:\n type: string\n + \ description: Required.\n value:\n type: string\n description: + PodDNSConfigOption defines DNS resolver options of a pod.\n k8s.io.api.core.v1.PreferredSchedulingTerm:\n + \ required:\n - preference\n - weight\n type: object\n properties:\n + \ preference:\n $ref: '#/components/schemas/k8s.io.api.core.v1.NodeSelectorTerm'\n + \ weight:\n type: integer\n description: \"Weight associated + with matching the corresponding nodeSelectorTerm,\\\n \\ in the range + 1-100.\"\n format: int32\n default: 0\n description: An + empty preferred scheduling term matches all objects with implicit\n weight + 0 (i.e. it's a no-op). A null preferred scheduling term matches no\n objects + (i.e. is also a no-op).\n k8s.io.api.core.v1.ResourceClaim:\n required:\n + \ - name\n type: object\n properties:\n name:\n type: + string\n description: Name must match the name of one entry in pod.spec.resourceClaims\n + \ of the Pod where this field is used. It makes that resource available\n + \ inside a container.\n default: \"\"\n description: ResourceClaim + references one entry in PodSpec.ResourceClaims.\n k8s.io.api.core.v1.ResourceFieldSelector:\n + \ required:\n - resource\n type: object\n properties:\n containerName:\n + \ type: string\n description: \"Container name: required for + volumes, optional for env vars\"\n divisor:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n + \ resource:\n type: string\n description: \"Required: + resource to select\"\n default: \"\"\n description: \"ResourceFieldSelector + represents container resources (cpu, memory)\\\n \\ and their output format\"\n + \ x-kubernetes-map-type: atomic\n k8s.io.api.core.v1.ResourceRequirements:\n + \ type: object\n properties:\n claims:\n type: array\n + \ description: |-\n Claims lists the names of resources, defined + in spec.resourceClaims, that are used by this container.\n\n This is + an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\n + \ This field is immutable. It can only be set for containers.\n items:\n + \ $ref: '#/components/schemas/k8s.io.api.core.v1.ResourceClaim'\n x-kubernetes-list-type: + map\n x-kubernetes-list-map-keys:\n - name\n limits:\n + \ type: object\n additionalProperties:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n + \ description: \"Limits describes the maximum amount of compute resources + allowed.\\\n \\ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\"\n + \ requests:\n type: object\n additionalProperties:\n $ref: + '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n description: + \"Requests describes the minimum amount of compute resources\\\n \\ + required. If Requests is omitted for a container, it defaults to Limits\\\n \\ + if that is explicitly specified, otherwise to an implementation-defined\\\n \\ + value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/\"\n + \ description: ResourceRequirements describes the compute resource requirements.\n + \ k8s.io.api.core.v1.TCPSocketAction:\n type: object\n properties:\n + \ host:\n type: string\n description: \"Optional: Host + name to connect to, defaults to the pod IP.\"\n description: TCPSocketAction + describes an action based on opening a socket\n k8s.io.api.core.v1.Toleration:\n + \ type: object\n properties:\n effect:\n type: string\n + \ description: |-\n Effect indicates the taint effect to match. + Empty means match all taint effects. When specified, allowed values are NoSchedule, + PreferNoSchedule and NoExecute.\n\n Possible enum values:\n - + `\"NoExecute\"` Evict any already-running pods that do not tolerate the taint. + Currently enforced by NodeController.\n - `\"NoSchedule\"` Do not + allow new pods to schedule onto the node unless they tolerate the taint, but allow + all pods submitted to Kubelet without going through the scheduler to start, and + allow all already-running pods to continue running. Enforced by the scheduler.\n + \ - `\"PreferNoSchedule\"` Like TaintEffectNoSchedule, but the scheduler + tries not to schedule new pods onto the node, rather than prohibiting new pods + from scheduling onto the node entirely. Enforced by the scheduler.\n enum:\n + \ - NoExecute\n - NoSchedule\n - PreferNoSchedule\n + \ key:\n type: string\n description: \"Key is the taint + key that the toleration applies to. Empty\\\n \\ means match all taint + keys. If the key is empty, operator must be Exists;\\\n \\ this combination + means to match all values and all keys.\"\n operator:\n type: + string\n description: |-\n Operator represents a key's relationship + to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists + is equivalent to wildcard for value, so that a pod can tolerate all taints of + a particular category.\n\n Possible enum values:\n - `\"Equal\"`\n + \ - `\"Exists\"`\n enum:\n - Equal\n - Exists\n + \ tolerationSeconds:\n type: integer\n description: \"TolerationSeconds + represents the period of time the toleration\\\n \\ (which must be + of effect NoExecute, otherwise this field is ignored)\\\n \\ tolerates + the taint. By default, it is not set, which means tolerate\\\n \\ the + taint forever (do not evict). Zero and negative values will be treated\\\n \\ + as 0 (evict immediately) by the system.\"\n format: int64\n value:\n + \ type: string\n description: \"Value is the taint value the + toleration matches to. If the\\\n \\ operator is Exists, the value + should be empty, otherwise just a regular\\\n \\ string.\"\n description: + \"The pod this Toleration is attached to tolerates any taint that\\\n \\ + matches the triple using the matching operator .\"\n + \ k8s.io.api.core.v1.TopologySpreadConstraint:\n required:\n - maxSkew\n + \ - topologyKey\n - whenUnsatisfiable\n type: object\n properties:\n + \ labelSelector:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector'\n + \ matchLabelKeys:\n type: array\n description: \"MatchLabelKeys + is a set of pod label keys to select the pods\\\n \\ over which spreading + will be calculated. The keys are used to lookup\\\n \\ values from + the incoming pod labels, those key-value labels are ANDed\\\n \\ with + labelSelector to select the group of existing pods over which spreading\\\n \\ + will be calculated for the incoming pod. Keys that don't exist in the\\\n \\ + incoming pod labels will be ignored. A null or empty list means only\\\n \\ + match against labelSelector.\"\n items:\n type: string\n default: + \"\"\n x-kubernetes-list-type: atomic\n maxSkew:\n type: + integer\n description: \"MaxSkew describes the degree to which pods may + be unevenly\\\n \\ distributed. When `whenUnsatisfiable=DoNotSchedule`, + it is the maximum\\\n \\ permitted difference between the number of + matching pods in the target\\\n \\ topology and the global minimum. + The global minimum is the minimum number\\\n \\ of matching pods in + an eligible domain or zero if the number of eligible\\\n \\ domains + is less than MinDomains. For example, in a 3-zone cluster, MaxSkew\\\n \\ + is set to 1, and pods with the same labelSelector spread as 2/2/1: In\\\n \\ + this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P\\\n \\ + \ | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled\\\n + \ \\ to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would + make\\\n \\ the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). + - if MaxSkew\\\n \\ is 2, incoming pod can be scheduled onto any zone. + When `whenUnsatisfiable=ScheduleAnyway`,\\\n \\ it is used to give + higher precedence to topologies that satisfy it.\\\n \\ It's a required + field. Default value is 1 and 0 is not allowed.\"\n format: int32\n default: + 0\n minDomains:\n type: integer\n description: |-\n MinDomains + indicates a minimum number of eligible domains. When the number of eligible domains + with matching topology keys is less than minDomains, Pod Topology Spread treats + \"global minimum\" as 0, and then the calculation of Skew is performed. And when + the number of eligible domains with matching topology keys equals or greater than + minDomains, this value has no effect on scheduling. As a result, when the number + of eligible domains is less than minDomains, scheduler won't schedule more than + maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains + is equal to 1. Valid values are integers greater than 0. When value is not nil, + WhenUnsatisfiable must be DoNotSchedule.\n\n For example, in a 3-zone + cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector + spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number + of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. + In this situation, new pod with the same labelSelector cannot be scheduled, because + computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, + it will violate MaxSkew.\n\n This is a beta field and requires the + MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default).\n + \ format: int32\n nodeAffinityPolicy:\n type: string\n + \ description: |-\n NodeAffinityPolicy indicates how we will + treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. + Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included + in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes + are included in the calculations.\n\n If this value is nil, the behavior + is equivalent to the Honor policy. This is a beta-level feature default enabled + by the NodeInclusionPolicyInPodTopologySpread feature flag.\n\n Possible + enum values:\n - `\"Honor\"` means use this scheduling directive when + calculating pod topology spread skew.\n - `\"Ignore\"` means ignore + this scheduling directive when calculating pod topology spread skew.\n enum:\n + \ - Honor\n - Ignore\n nodeTaintsPolicy:\n type: + string\n description: |-\n NodeTaintsPolicy indicates how + we will treat node taints when calculating pod topology spread skew. Options are: + - Honor: nodes without taints, along with tainted nodes for which the incoming + pod has a toleration, are included. - Ignore: node taints are ignored. All nodes + are included.\n\n If this value is nil, the behavior is equivalent + to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread + feature flag.\n\n Possible enum values:\n - `\"Honor\"` + means use this scheduling directive when calculating pod topology spread skew.\n + \ - `\"Ignore\"` means ignore this scheduling directive when calculating + pod topology spread skew.\n enum:\n - Honor\n - Ignore\n + \ topologyKey:\n type: string\n description: \"TopologyKey + is the key of node labels. Nodes that have a label\\\n \\ with this + key and identical values are considered to be in the same\\\n \\ topology. + We consider each as a \\\"bucket\\\", and try to\\\n \\ + put balanced number of pods into each bucket. We define a domain as\\\n \\ + a particular instance of a topology. Also, we define an eligible domain\\\n \\ + as a domain whose nodes meet the requirements of nodeAffinityPolicy\\\n \\ + and nodeTaintsPolicy. e.g. If TopologyKey is \\\"kubernetes.io/hostname\\\"\\\n + \ , each Node is a domain of that topology. And, if TopologyKey is \\\"topology.kubernetes.io/zone\\\"\\\n + \ , each zone is a domain of that topology. It's a required field.\"\n + \ default: \"\"\n whenUnsatisfiable:\n type: string\n + \ description: |-\n WhenUnsatisfiable indicates how to deal + with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) + tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to + schedule the pod in any location,\n but giving higher precedence + to topologies that would help reduce the\n skew.\n A constraint + is considered \"Unsatisfiable\" for an incoming pod if and only if every possible + node assignment for that pod would violate \"MaxSkew\" on some topology. For example, + in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector + spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable + is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to + become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In + other words, the cluster can still be imbalanced, but scheduler won't make it + *more* imbalanced. It's a required field.\n\n Possible enum values:\n + \ - `\"DoNotSchedule\"` instructs the scheduler not to schedule the + pod when constraints are not satisfied.\n - `\"ScheduleAnyway\"` instructs + the scheduler to schedule the pod even if constraints are not satisfied.\n default: + \"\"\n enum:\n - DoNotSchedule\n - ScheduleAnyway\n + \ description: TopologySpreadConstraint specifies how to spread matching pods\n + \ among the given topology.\n k8s.io.api.core.v1.TypedLocalObjectReference:\n + \ required:\n - kind\n - name\n type: object\n properties:\n + \ apiGroup:\n type: string\n description: \"APIGroup is + the group for the resource being referenced. If\\\n \\ APIGroup is + not specified, the specified Kind must be in the core API\\\n \\ group. + For any other third-party types, APIGroup is required.\"\n kind:\n type: + string\n description: Kind is the type of resource being referenced\n + \ default: \"\"\n name:\n type: string\n description: + Name is the name of resource being referenced\n default: \"\"\n description: + TypedLocalObjectReference contains enough information to let you\n locate + the typed referenced object inside the same namespace.\n x-kubernetes-map-type: + atomic\n k8s.io.api.core.v1.TypedObjectReference:\n required:\n - + kind\n - name\n type: object\n properties:\n apiGroup:\n + \ type: string\n description: \"APIGroup is the group for the + resource being referenced. If\\\n \\ APIGroup is not specified, the + specified Kind must be in the core API\\\n \\ group. For any other + third-party types, APIGroup is required.\"\n kind:\n type: string\n + \ description: Kind is the type of resource being referenced\n default: + \"\"\n name:\n type: string\n description: Name is the + name of resource being referenced\n default: \"\"\n namespace:\n + \ type: string\n description: \"Namespace is the namespace of + resource being referenced Note\\\n \\ that when a namespace is specified, + a gateway.networking.k8s.io/ReferenceGrant\\\n \\ object is required + in the referent namespace to allow that namespace's\\\n \\ owner to + accept the reference. See the ReferenceGrant documentation\\\n \\ for + details. (Alpha) This field requires the CrossNamespaceVolumeDataSource\\\n \\ + feature gate to be enabled.\"\n k8s.io.api.core.v1.WeightedPodAffinityTerm:\n + \ required:\n - podAffinityTerm\n - weight\n type: object\n + \ properties:\n podAffinityTerm:\n $ref: '#/components/schemas/k8s.io.api.core.v1.PodAffinityTerm'\n + \ weight:\n type: integer\n description: \"weight associated + with matching the corresponding podAffinityTerm,\\\n \\ in the range + 1-100.\"\n format: int32\n default: 0\n description: The + weights of all of the matched WeightedPodAffinityTerm fields\n are added + per-node to find the most preferred node(s)\n k8s.io.apimachinery.pkg.api.resource.Quantity:\n + \ type: string\n description: \"Quantity is a fixed-point representation + of a number. It provides\\\n \\ convenient marshaling/unmarshaling in JSON + and YAML, in addition to String()\\\n \\ and AsInt64() accessors.\\n\\nThe + serialization format is:\\n\\n``` \\\n \\ ::= \\n\\n\\t(Note + that may be empty,\\\n \\ from the \\\"\\\" case in .)\\n\\n + \ ::= 0 | 1 | ...\\\n \\ | 9 ::= | + ::=\\\n \\ | . | . | + . ::=\\\n \\ \\\"+\\\" | \\\"-\\\" + \ ::= | \\\n \\ ::= + | | \\\n \\ ::= Ki | Mi + | Gi | Ti | Pi | Ei\\n\\n\\t(International System of units;\\\n \\ See: + http://physics.nist.gov/cuu/Units/binary.html)\\n\\n \\\n \\ + \ ::= m | \\\"\\\" | k | M | G | T | P | E\\n\\n\\t(Note that 1024 = 1Ki but 1000\\\n + \ \\ = 1k; I didn't choose the capitalization.)\\n\\n ::= + \\\"e\\\"\\\n \\ | \\\"E\\\" ```\\n\\nNo + matter which of the three\\\n \\ exponent forms is used, no quantity may + represent a number greater than\\\n \\ 2^63-1 in magnitude, nor may it + have more than 3 decimal places. Numbers\\\n \\ larger or more precise + will be capped or rounded up. (E.g.: 0.1m will rounded\\\n \\ up to 1m.) + This may be extended in the future if we require larger or smaller\\\n \\ + quantities.\\n\\nWhen a Quantity is parsed from a string, it will remember\\\n + \ \\ the type of suffix it had, and will use the same type again when it + is serialized.\\n\\\n \\nBefore serializing, Quantity will be put in \\\"canonical + form\\\". This means\\\n \\ that Exponent/suffix will be adjusted up or + down (with a corresponding increase\\\n \\ or decrease in Mantissa) such + that:\\n\\n- No precision is lost - No fractional\\\n \\ digits will be + emitted - The exponent (or suffix) is as large as possible.\\n\\\n \\nThe + sign will be omitted unless the number is negative.\\n\\nExamples:\\n\\n\\\n - + 1.5 will be serialized as \\\"1500m\\\" - 1.5Gi will be serialized as \\\"1536Mi\\\"\\\n + \ \\n\\nNote that the quantity will NEVER be internally represented by a + floating\\\n \\ point number. That is the whole point of this exercise.\\n\\nNon-canonical\\\n + \ \\ values will still parse as long as they are well formed, but will be + re-emitted\\\n \\ in their canonical form. (So always use canonical form, + or don't diff.)\\n\\\n \\nThis format is intended to make it difficult + to use these numbers without\\\n \\ writing some sort of special handling + code in the hopes that that will cause\\\n \\ implementors to also use + a fixed point implementation.\"\n k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup:\n + \ required:\n - name\n - versions\n type: object\n properties:\n + \ apiVersion:\n type: string\n description: \"APIVersion + defines the versioned schema of this representation\\\n \\ of an object. + Servers should convert recognized schemas to the latest\\\n \\ internal + value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ name:\n type: string\n description: name is the name + of the group.\n default: \"\"\n preferredVersion:\n $ref: + '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery'\n + \ serverAddressByClientCIDRs:\n type: array\n description: + \"a map of client CIDR to server address that is serving this\\\n \\ + group. This is to help clients reach servers in the most network-efficient\\\n + \ \\ way possible. Clients can use the appropriate server address as + per\\\n \\ the CIDR that they match. In case of multiple matches, clients + should\\\n \\ use the longest matching CIDR. The server returns only + those CIDRs that\\\n \\ it thinks that the client can match. For example: + the master will return\\\n \\ an internal IP CIDR only, if the client + reaches the server using an\\\n \\ internal IP. Server looks at X-Forwarded-For + header or X-Real-Ip header\\\n \\ or request.RemoteAddr (in that order) + to get the client IP.\"\n items:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR'\n + \ versions:\n type: array\n description: versions are + the versions supported in this group.\n items:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery'\n + \ description: \"APIGroup contains the name, the supported versions, and the + preferred\\\n \\ version of a group.\"\n k8s.io.apimachinery.pkg.apis.meta.v1.APIGroupList:\n + \ required:\n - groups\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ groups:\n type: array\n description: groups is a list + of APIGroup.\n items:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup'\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ description: \"APIGroupList is a list of APIGroup, to allow clients to discover\\\n + \ \\ the API at /apis.\"\n k8s.io.apimachinery.pkg.apis.meta.v1.APIResource:\n + \ required:\n - kind\n - name\n - namespaced\n - singularName\n + \ - verbs\n type: object\n properties:\n categories:\n type: + array\n description: categories is a list of the grouped resources this + resource\n belongs to (e.g. 'all')\n items:\n type: + string\n default: \"\"\n group:\n type: string\n description: + \"group is the preferred group of the resource. Empty implies\\\n \\ + the group of the containing resource list. For subresources, this may\\\n \\ + have a different value, for example: Scale\\\".\"\n kind:\n type: + string\n description: kind is the kind for the resource (e.g. 'Foo' is + the kind for\n a resource 'foo')\n default: \"\"\n name:\n + \ type: string\n description: name is the plural name of the + resource.\n default: \"\"\n namespaced:\n type: boolean\n + \ description: namespaced indicates if a resource is namespaced or not.\n + \ default: false\n shortNames:\n type: array\n description: + shortNames is a list of suggested short names of the resource.\n items:\n + \ type: string\n default: \"\"\n singularName:\n type: + string\n description: singularName is the singular name of the resource. + \ This allows\n clients to handle plural and singular opaquely. The + singularName is more\n correct for reporting status on a single item + and both singular and plural\n are allowed from the kubectl CLI interface.\n + \ default: \"\"\n storageVersionHash:\n type: string\n + \ description: \"The hash value of the storage version, the version this + resource\\\n \\ is converted to when written to the data store. Value + must be treated\\\n \\ as opaque by clients. Only equality comparison + on the value is valid.\\\n \\ This is an alpha feature and may change + or be removed in the future.\\\n \\ The field is populated by the apiserver + only if the StorageVersionHash\\\n \\ feature gate is enabled. This + field will remain optional even if it\\\n \\ graduates.\"\n verbs:\n + \ type: array\n description: \"verbs is a list of supported kube + verbs (this includes get,\\\n \\ list, watch, create, update, patch, + delete, deletecollection, and proxy)\"\n items:\n type: string\n + \ default: \"\"\n version:\n type: string\n description: + \"version is the preferred version of the resource. Empty implies\\\n \\ + the version of the containing resource list For subresources, this may\\\n \\ + have a different value, for example: v1 (while inside a v1beta1 version\\\n \\ + of the core resource's group)\\\".\"\n description: APIResource specifies + the name of a resource and whether it is\n namespaced.\n k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList:\n + \ required:\n - groupVersion\n - resources\n type: object\n + \ properties:\n apiVersion:\n type: string\n description: + \"APIVersion defines the versioned schema of this representation\\\n \\ + of an object. Servers should convert recognized schemas to the latest\\\n \\ + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ groupVersion:\n type: string\n description: groupVersion + is the group and version this APIResourceList\n is for.\n default: + \"\"\n kind:\n type: string\n description: \"Kind is + a string value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ resources:\n type: array\n description: resources contains + the name of the resources and if they are\n namespaced.\n items:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.APIResource'\n + \ description: \"APIResourceList is a list of APIResource, it is used to expose\\\n + \ \\ the name of the resources supported in a specific group and version, + and\\\n \\ if the resource is namespaced.\"\n k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions:\n + \ type: object\n properties:\n apiVersion:\n type: string\n + \ description: \"APIVersion defines the versioned schema of this representation\\\n + \ \\ of an object. Servers should convert recognized schemas to the + latest\\\n \\ internal value, and may reject unrecognized values. More + info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ dryRun:\n type: array\n description: \"When present, + indicates that modifications should not be persisted.\\\n \\ An invalid + or unrecognized dryRun directive will result in an error\\\n \\ response + and no further processing of the request. Valid values are:\\\n \\ + - All: all dry run stages will be processed\"\n items:\n type: + string\n default: \"\"\n gracePeriodSeconds:\n type: + integer\n description: \"The duration in seconds before the object should + be deleted.\\\n \\ Value must be non-negative integer. The value zero + indicates delete\\\n \\ immediately. If this value is nil, the default + grace period for the\\\n \\ specified type will be used. Defaults to + a per object value if not specified.\\\n \\ zero means delete immediately.\"\n + \ format: int64\n kind:\n type: string\n description: + \"Kind is a string value representing the REST resource this\\\n \\ + object represents. Servers may infer this from the endpoint the client\\\n \\ + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ orphanDependents:\n type: boolean\n description: \"Deprecated: + please use the PropagationPolicy, this field will\\\n \\ be deprecated + in 1.7. Should the dependent objects be orphaned. If true/false,\\\n \\ + the \\\"orphan\\\" finalizer will be added to/removed from the object's\\\n \\ + finalizers list. Either this field or PropagationPolicy may be set,\\\n \\ + but not both.\"\n preconditions:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions'\n + \ propagationPolicy:\n type: string\n description: \"Whether + and how garbage collection will be performed. Either\\\n \\ this field + or OrphanDependents may be set, but not both. The default\\\n \\ policy + is decided by the existing finalizer set in the metadata.finalizers\\\n \\ + and the resource-specific default policy. Acceptable values are: 'Orphan'\\\n + \ \\ - orphan the dependents; 'Background' - allow the garbage collector\\\n + \ \\ to delete the dependents in the background; 'Foreground' - a cascading\\\n + \ \\ policy that deletes all dependents in the foreground.\"\n description: + DeleteOptions may be provided when deleting an API object.\n k8s.io.apimachinery.pkg.apis.meta.v1.Duration:\n + \ type: string\n description: \"Duration is a wrapper around time.Duration + which supports correct\\\n \\ marshaling to YAML and JSON. In particular, + it marshals into strings, which\\\n \\ can be used as map keys in json.\"\n + \ k8s.io.apimachinery.pkg.apis.meta.v1.FieldsV1:\n type: object\n description: + |-\n FieldsV1 stores a set of fields in a data structure like a Trie, in + JSON format.\n\n Each key is either a '.' representing the field itself, + and will always map to an empty set, or a string representing a sub-field or item. + The string will follow one of these four formats: 'f:', where is + the name of a field in a struct, or key in a map 'v:', where is + the exact json formatted value of a list item 'i:', where is position + of a item in a list 'k:', where is a map of a list item's key fields + to their unique values If a key maps to an empty Fields value, the field that + key represents is part of the set.\n\n The exact format is defined in sigs.k8s.io/structured-merge-diff\n + \ k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery:\n required:\n + \ - groupVersion\n - version\n type: object\n properties:\n + \ groupVersion:\n type: string\n description: groupVersion + specifies the API group and version in the form\n \"group/version\"\n + \ default: \"\"\n version:\n type: string\n description: + version specifies the version in the form of \"version\". This\n is + to save the clients the trouble of splitting the GroupVersion.\n default: + \"\"\n description: GroupVersion contains the \"group/version\" and \"version\" + string\n of a version. It is made a struct to keep extensibility.\n k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector:\n + \ type: object\n properties:\n matchExpressions:\n type: + array\n description: matchExpressions is a list of label selector requirements.\n + \ The requirements are ANDed.\n items:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement'\n + \ matchLabels:\n type: object\n additionalProperties:\n + \ type: string\n default: \"\"\n description: \"matchLabels + is a map of {key,value} pairs. A single {key,value}\\\n \\ in the matchLabels + map is equivalent to an element of matchExpressions,\\\n \\ whose key + field is \\\"key\\\", the operator is \\\"In\\\", and the values array\\\n \\ + contains only \\\"value\\\". The requirements are ANDed.\"\n description: + A label selector is a label query over a set of resources. The\n result + of matchLabels and matchExpressions are ANDed. An empty label selector\n matches + all objects. A null label selector matches no objects.\n x-kubernetes-map-type: + atomic\n k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement:\n required:\n + \ - key\n - operator\n type: object\n properties:\n key:\n + \ type: string\n description: key is the label key that the selector + applies to.\n default: \"\"\n x-kubernetes-patch-strategy: merge\n + \ x-kubernetes-patch-merge-key: key\n operator:\n type: + string\n description: \"operator represents a key's relationship to a + set of values.\\\n \\ Valid operators are In, NotIn, Exists and DoesNotExist.\"\n + \ default: \"\"\n values:\n type: array\n description: + \"values is an array of string values. If the operator is In\\\n \\ + or NotIn, the values array must be non-empty. If the operator is Exists\\\n \\ + or DoesNotExist, the values array must be empty. This array is replaced\\\n \\ + during a strategic merge patch.\"\n items:\n type: string\n + \ default: \"\"\n description: \"A label selector requirement is + a selector that contains values,\\\n \\ a key, and an operator that relates + the key and values.\"\n k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta:\n type: + object\n properties:\n continue:\n type: string\n description: + \"continue may be set if the user set a limit on the number\\\n \\ + of items returned, and indicates that the server has more data available.\\\n + \ \\ The value is opaque and may be used to issue another request to + the\\\n \\ endpoint that served this list to retrieve the next set + of available\\\n \\ objects. Continuing a consistent list may not be + possible if the server\\\n \\ configuration has changed or more than + a few minutes have passed. The\\\n \\ resourceVersion field returned + when using this continue value will be\\\n \\ identical to the value + in the first response, unless you have received\\\n \\ this token from + an error message.\"\n remainingItemCount:\n type: integer\n description: + \"remainingItemCount is the number of subsequent items in the\\\n \\ + list which are not included in this list response. If the list request\\\n \\ + contained label or field selectors, then the number of remaining items\\\n \\ + is unknown and the field will be left unset and omitted during serialization.\\\n + \ \\ If the list is complete (either because it is not chunking or because\\\n + \ \\ this is the last chunk), then there are no more remaining items + and\\\n \\ this field will be left unset and omitted during serialization. + Servers\\\n \\ older than v1.15 do not set this field. The intended + use of the remainingItemCount\\\n \\ is *estimating* the size of a + collection. Clients should not rely on\\\n \\ the remainingItemCount + to be set or to be exact.\"\n format: int64\n resourceVersion:\n + \ type: string\n description: \"String that identifies the server's + internal version of this\\\n \\ object that can be used by clients + to determine when objects have changed.\\\n \\ Value must be treated + as opaque by clients and passed unmodified back\\\n \\ to the server. + Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency\"\n + \ selfLink:\n type: string\n description: \"Deprecated: + selfLink is a legacy read-only field that is no\\\n \\ longer populated + by the system.\"\n description: \"ListMeta describes metadata that synthetic + resources must have,\\\n \\ including lists and various status objects. + A resource may have only one\\\n \\ of {ObjectMeta, ListMeta}.\"\n k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry:\n + \ type: object\n properties:\n apiVersion:\n type: string\n + \ description: APIVersion defines the version of this resource that this + field\n set applies to. The format is \"group/version\" just like the + top-level\n APIVersion field. It is necessary to track the version + of a field set\n because it cannot be automatically converted.\n fieldsType:\n + \ type: string\n description: \"FieldsType is the discriminator + for the different fields format\\\n \\ and version. There is currently + only one possible value: \\\"FieldsV1\\\"\"\n fieldsV1:\n $ref: + '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.FieldsV1'\n manager:\n + \ type: string\n description: Manager is an identifier of the + workflow managing these fields.\n operation:\n type: string\n + \ description: Operation is the type of operation which lead to this ManagedFieldsEntry\n + \ being created. The only valid values for this field are 'Apply' and + 'Update'.\n subresource:\n type: string\n description: + \"Subresource is the name of the subresource used to update\\\n \\ + that object, or empty string if the object was updated through the main\\\n \\ + resource. The value of this field is used to distinguish between managers,\\\n + \ \\ even if they share the same name. For example, a status update + will\\\n \\ be distinct from a regular update using the same manager + name. Note\\\n \\ that the APIVersion field is not related to the Subresource + field and\\\n \\ it always corresponds to the version of the main resource.\"\n + \ time:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ description: \"ManagedFieldsEntry is a workflow-id, a FieldSet and the group\\\n + \ \\ version of the resource that the fieldset applies to.\"\n k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta:\n + \ type: object\n properties:\n annotations:\n type: object\n + \ additionalProperties:\n type: string\n default: + \"\"\n description: \"Annotations is an unstructured key value map stored + with a\\\n \\ resource that may be set by external tools to store and + retrieve arbitrary\\\n \\ metadata. They are not queryable and should + be preserved when modifying\\\n \\ objects. More info: http://kubernetes.io/docs/user-guide/annotations\"\n + \ deletionGracePeriodSeconds:\n type: integer\n description: + Number of seconds allowed for this object to gracefully terminate\n before + it will be removed from the system. Only set when deletionTimestamp\n is + also set. May only be shortened. Read-only.\n format: int64\n deletionTimestamp:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ finalizers:\n type: array\n description: \"Must be empty + before the object is deleted from the registry.\\\n \\ Each entry is + an identifier for the responsible component that will\\\n \\ remove + the entry from the list. If the deletionTimestamp of the object\\\n \\ + is non-nil, entries in this list can only be removed. Finalizers may\\\n \\ + be processed and removed in any order. Order is NOT enforced because\\\n \\ + it introduces significant risk of stuck finalizers. finalizers is a\\\n \\ + shared field, any actor with permission can reorder it. If the finalizer\\\n \\ + list is processed in order, then this can lead to a situation in which\\\n \\ + the component responsible for the first finalizer in the list is waiting\\\n \\ + for a signal (field value, external system, or other) produced by a\\\n \\ + component responsible for a finalizer later in the list, resulting in\\\n \\ + a deadlock. Without enforced ordering finalizers are free to order amongst\\\n + \ \\ themselves and are not vulnerable to ordering changes in the list.\"\n + \ items:\n type: string\n default: \"\"\n x-kubernetes-patch-strategy: + merge\n generateName:\n type: string\n description: |-\n + \ GenerateName is an optional prefix, used by the server, to generate + a unique name ONLY IF the Name field has not been provided. If this field is used, + the name returned to the client will be different than the name passed. This value + will also be combined with a unique suffix. The provided value has the same validation + rules as the Name field, and may be truncated by the length of the suffix required + to make the value unique on the server.\n\n If this field is specified + and the generated name exists, the server will return a 409.\n\n Applied + only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency\n + \ generation:\n type: integer\n description: A sequence + number representing a specific generation of the\n desired state. Populated + by the system. Read-only.\n format: int64\n labels:\n type: + object\n additionalProperties:\n type: string\n default: + \"\"\n description: \"Map of string keys and values that can be used + to organize\\\n \\ and categorize (scope and select) objects. May match + selectors of replication\\\n \\ controllers and services. More info: + http://kubernetes.io/docs/user-guide/labels\"\n managedFields:\n type: + array\n description: \"ManagedFields maps workflow-id and version to + the set of fields\\\n \\ that are managed by that workflow. This is + mostly for internal housekeeping,\\\n \\ and users typically shouldn't + need to set or understand this field.\\\n \\ A workflow can be the + user's name, a controller's name, or the name\\\n \\ of a specific + apply path like \\\"ci-cd\\\". The set of fields is always\\\n \\ in + the version that the workflow used when modifying the object.\"\n items:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry'\n + \ name:\n type: string\n description: \"Name must be unique + within a namespace. Is required when creating\\\n \\ resources, although + some resources may allow a client to request the\\\n \\ generation + of an appropriate name automatically. Name is primarily intended\\\n \\ + for creation idempotence and configuration definition. Cannot be updated.\\\n + \ \\ More info: http://kubernetes.io/docs/user-guide/identifiers#names\"\n + \ namespace:\n type: string\n description: |-\n Namespace + defines the space within which each name must be unique. An empty namespace is + equivalent to the \"default\" namespace, but \"default\" is the canonical representation. + Not all objects are required to be scoped to a namespace - the value of this field + for those objects will be empty.\n\n Must be a DNS_LABEL. Cannot be + updated. More info: http://kubernetes.io/docs/user-guide/namespaces\n ownerReferences:\n + \ type: array\n description: \"List of objects depended by this + object. If ALL objects in\\\n \\ the list have been deleted, this object + will be garbage collected. If\\\n \\ this object is managed by a controller, + then an entry in this list will\\\n \\ point to this controller, with + the controller field set to true. There\\\n \\ cannot be more than + one managing controller.\"\n items:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference'\n + \ x-kubernetes-patch-strategy: merge\n x-kubernetes-patch-merge-key: + uid\n resourceVersion:\n type: string\n description: + |-\n An opaque value that represents the internal version of this object + that can be used by clients to determine when objects have changed. May be used + for optimistic concurrency, change detection, and the watch operation on a resource + or set of resources. Clients must treat these values as opaque and passed unmodified + back to the server. They may only be valid for a particular resource or set of + resources.\n\n Populated by the system. Read-only. Value must be treated + as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency\n + \ selfLink:\n type: string\n description: \"Deprecated: + selfLink is a legacy read-only field that is no\\\n \\ longer populated + by the system.\"\n uid:\n type: string\n description: + |-\n UID is the unique in time and space value for this object. It + is typically generated by the server on successful creation of a resource and + is not allowed to change on PUT operations.\n\n Populated by the system. + Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids\n + \ description: \"ObjectMeta is metadata that all persisted resources must + have,\\\n \\ which includes all objects users must create.\"\n k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference:\n + \ required:\n - apiVersion\n - kind\n - name\n - uid\n + \ type: object\n properties:\n apiVersion:\n type: string\n + \ description: API version of the referent.\n default: \"\"\n + \ blockOwnerDeletion:\n type: boolean\n description: \"If + true, AND if the owner has the \\\"foregroundDeletion\\\" finalizer,\\\n \\ + then the owner cannot be deleted from the key-value store until this\\\n \\ + reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion\\\n + \ \\ for how the garbage collector interacts with this field and enforces\\\n + \ \\ the foreground deletion. Defaults to false. To set this field, + a user\\\n \\ needs \\\"delete\\\" permission of the owner, otherwise + 422 (Unprocessable\\\n \\ Entity) will be returned.\"\n controller:\n + \ type: boolean\n description: \"If true, this reference points + to the managing controller.\"\n kind:\n type: string\n description: + \"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ default: \"\"\n name:\n type: string\n description: + \"Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names\"\n + \ default: \"\"\n uid:\n type: string\n description: + \"UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids\"\n + \ default: \"\"\n description: \"OwnerReference contains enough information + to let you identify\\\n \\ an owning object. An owning object must be in + the same namespace as the\\\n \\ dependent, or be cluster-scoped, so there + is no namespace field.\"\n x-kubernetes-map-type: atomic\n k8s.io.apimachinery.pkg.apis.meta.v1.Patch:\n + \ type: object\n description: Patch is provided to give a concrete name + and type to the Kubernetes\n PATCH request body.\n k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions:\n + \ type: object\n properties:\n resourceVersion:\n type: + string\n description: Specifies the target ResourceVersion\n uid:\n + \ type: string\n description: Specifies the target UID.\n description: + \"Preconditions must be fulfilled before an operation (update, delete,\\\n \\ + etc.) is carried out.\"\n k8s.io.apimachinery.pkg.apis.meta.v1.RootPaths:\n + \ required:\n - paths\n type: object\n properties:\n paths:\n + \ type: array\n description: paths are the paths available at + root.\n items:\n type: string\n default: \"\"\n + \ description: \"RootPaths lists the paths available at root. For example: + \\\"/healthz\\\"\\\n , \\\"/apis\\\".\"\n k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR:\n + \ required:\n - clientCIDR\n - serverAddress\n type: object\n + \ properties:\n clientCIDR:\n type: string\n description: + The CIDR with which clients can match their IP to figure out\n the + server address that they should use.\n default: \"\"\n serverAddress:\n + \ type: string\n description: \"Address of this server, suitable + for a client that matches\\\n \\ the above CIDR. This can be a hostname, + hostname:port, IP or IP:port.\"\n default: \"\"\n description: \"ServerAddressByClientCIDR + helps the client to determine the server\\\n \\ address that they should + use, depending on the clientCIDR that they match.\"\n k8s.io.apimachinery.pkg.apis.meta.v1.Status:\n + \ type: object\n properties:\n apiVersion:\n type: string\n + \ description: \"APIVersion defines the versioned schema of this representation\\\n + \ \\ of an object. Servers should convert recognized schemas to the + latest\\\n \\ internal value, and may reject unrecognized values. More + info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ code:\n type: integer\n description: \"Suggested HTTP + return code for this status, 0 if not set.\"\n format: int32\n details:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails'\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ message:\n type: string\n description: A human-readable + description of the status of this operation.\n metadata:\n $ref: + '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n reason:\n + \ type: string\n description: A machine-readable description + of why this operation is in\n the \"Failure\" status. If this value + is empty there is no information available.\n A Reason clarifies an + HTTP status code but does not override it.\n status:\n type: string\n + \ description: \"Status of the operation. One of: \\\"Success\\\" or \\\"Failure\\\"\\\n + \ . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status\"\n + \ description: Status is a return value for calls that don't return other + objects.\n k8s.io.apimachinery.pkg.apis.meta.v1.StatusCause:\n type: object\n + \ properties:\n field:\n type: string\n description: + |-\n The field of the resource that has caused this error, as named + by its JSON serialization. May include dot and postfix notation for nested attributes. + Arrays are zero-indexed. Fields may appear more than once in an array of causes + due to fields having multiple errors. Optional.\n\n Examples:\n \"name\" + - the field \"name\" on the current resource\n \"items[0].name\" + - the field \"name\" on the first array entry in \"items\"\n message:\n + \ type: string\n description: A human-readable description of + the cause of the error. This\n field may be presented as-is to a reader.\n + \ reason:\n type: string\n description: A machine-readable + description of the cause of the error. If\n this value is empty there + is no information available.\n description: \"StatusCause provides more information + about an api.Status failure,\\\n \\ including cases when multiple errors + are encountered.\"\n k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails:\n + \ type: object\n properties:\n causes:\n type: array\n + \ description: The Causes array includes more details associated with + the\n StatusReason failure. Not all StatusReasons may provide detailed + causes.\n items:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.StatusCause'\n + \ group:\n type: string\n description: The group attribute + of the resource associated with the status\n StatusReason.\n kind:\n + \ type: string\n description: \"The kind attribute of the resource + associated with the status\\\n \\ StatusReason. On some operations + may differ from the requested resource\\\n \\ Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ name:\n type: string\n description: The name attribute + of the resource associated with the status\n StatusReason (when there + is a single name which can be described).\n retryAfterSeconds:\n type: + integer\n description: \"If specified, the time in seconds before the + operation should\\\n \\ be retried. Some errors may indicate the client + must take an alternate\\\n \\ action - for those errors this field + may indicate how long to wait before\\\n \\ taking the alternate action.\"\n + \ format: int32\n uid:\n type: string\n description: + \"UID of the resource. (when there is a single resource which\\\n \\ + can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids\"\n + \ description: \"StatusDetails is a set of additional properties that MAY + be set\\\n \\ by the server to provide additional information about a response. + The Reason\\\n \\ field of a Status object defines what attributes will + be set. Clients must\\\n \\ ignore fields that do not match the defined + type of each attribute, and\\\n \\ should assume that any attribute may + be empty, invalid, or under defined.\"\n k8s.io.apimachinery.pkg.apis.meta.v1.Time:\n + \ type: string\n description: Time is a wrapper around time.Time which + supports correct marshaling\n to YAML and JSON. Wrappers are provided + for many of the factory methods that\n the time package offers.\n format: + date-time\n k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent:\n required:\n + \ - object\n - type\n type: object\n properties:\n object:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.runtime.RawExtension'\n + \ type:\n type: string\n default: \"\"\n description: + Event represents a single event to a watched resource.\n k8s.io.apimachinery.pkg.runtime.RawExtension:\n + \ type: object\n description: \"RawExtension is used to hold extensions + in external versions.\\n\\\n \\nTo use this, make a field which has RawExtension + as its type in your external,\\\n \\ versioned struct, and Object in your + internal struct. You also need to register\\\n \\ your various plugin types.\\n\\n// + Internal package:\\n\\n\\ttype MyAPIObject\\\n \\ struct {\\n\\t\\truntime.TypeMeta + `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.Object\\\n \\ `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype + PluginA struct {\\n\\t\\tAOption string\\\n \\ `json:\\\"aOption\\\"`\\n\\t}\\n\\n// + External package:\\n\\n\\ttype MyAPIObject struct\\\n \\ {\\n\\t\\truntime.TypeMeta + `json:\\\",inline\\\"`\\n\\t\\tMyPlugin runtime.RawExtension\\\n \\ `json:\\\"myPlugin\\\"`\\n\\t}\\n\\n\\ttype + PluginA struct {\\n\\t\\tAOption string\\\n \\ `json:\\\"aOption\\\"`\\n\\t}\\n\\n// + On the wire, the JSON will look something\\\n \\ like this:\\n\\n\\t{\\n\\t\\t\\\"kind\\\":\\\"MyAPIObject\\\",\\n\\t\\t\\\"apiVersion\\\":\\\"\\\n + \ v1\\\",\\n\\t\\t\\\"myPlugin\\\": {\\n\\t\\t\\t\\\"kind\\\":\\\"PluginA\\\",\\n\\t\\t\\t\\\"aOption\\\"\\\n + \ :\\\"foo\\\",\\n\\t\\t},\\n\\t}\\n\\nSo what happens? Decode first uses + json or yaml\\\n \\ to unmarshal the serialized data into your external + MyAPIObject. That causes\\\n \\ the raw JSON to be stored, but not unpacked. + The next step is to copy (using\\\n \\ pkg/conversion) into the internal + struct. The runtime package's DefaultScheme\\\n \\ has conversion functions + installed which will unpack the JSON stored in\\\n \\ RawExtension, turning + it into the correct object type, and storing it in\\\n \\ the Object. (TODO: + In the case where the object is of an unknown type, a\\\n \\ runtime.Unknown + object will be created and stored.)\"\n k8s.io.apimachinery.pkg.util.intstr.IntOrString:\n + \ type: string\n description: \"IntOrString is a type that can hold an + int32 or a string. When\\\n \\ used in JSON or YAML marshalling and unmarshalling, + it produces or consumes\\\n \\ the inner type. This allows you to have, + for example, a JSON field that\\\n \\ can accept a name or number.\"\n + \ format: int-or-string\n v1.ACPI:\n type: object\n properties:\n + \ slicNameRef:\n type: string\n description: \"SlicNameRef + should match the volume name of a secret object.\\\n \\ The data in + the secret should be a binary blob that follows the ACPI\\\n \\ SLIC + standard, see: https://learn.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653305(v=vs.85)\"\n + \ v1.AccessCredential:\n type: object\n properties:\n sshPublicKey:\n + \ $ref: '#/components/schemas/v1.SSHPublicKeyAccessCredential'\n userPassword:\n + \ $ref: '#/components/schemas/v1.UserPasswordAccessCredential'\n description: + AccessCredential represents a credential source that can be used\n to authorize + remote access to the vm guest Only one of its members may be\n specified.\n + \ v1.AccessCredentialSecretSource:\n required:\n - secretName\n type: + object\n properties:\n secretName:\n type: string\n description: + SecretName represents the name of the secret in the VMI's namespace\n default: + \"\"\n v1.AddVolumeOptions:\n required:\n - disk\n - name\n + \ - volumeSource\n type: object\n properties:\n disk:\n $ref: + '#/components/schemas/v1.Disk'\n dryRun:\n type: array\n description: + \"When present, indicates that modifications should not be persisted.\\\n \\ + An invalid or unrecognized dryRun directive will result in an error\\\n \\ + response and no further processing of the request. Valid values are:\\\n \\ + - All: all dry run stages will be processed\"\n items:\n type: + string\n default: \"\"\n x-kubernetes-list-type: atomic\n + \ name:\n type: string\n description: Name represents + the name that will be used to map the disk\n to the corresponding volume. + This overrides any name set inside the Disk\n struct itself.\n default: + \"\"\n volumeSource:\n $ref: '#/components/schemas/v1.HotplugVolumeSource'\n + \ description: AddVolumeOptions is provided when dynamically hot plugging + a volume\n and disk\n v1.ArchConfiguration:\n type: object\n properties:\n + \ amd64:\n $ref: '#/components/schemas/v1.ArchSpecificConfiguration'\n + \ arm64:\n $ref: '#/components/schemas/v1.ArchSpecificConfiguration'\n + \ defaultArchitecture:\n type: string\n ppc64le:\n $ref: + '#/components/schemas/v1.ArchSpecificConfiguration'\n v1.ArchSpecificConfiguration:\n + \ type: object\n properties:\n emulatedMachines:\n type: + array\n items:\n type: string\n default: \"\"\n + \ x-kubernetes-list-type: atomic\n machineType:\n type: + string\n ovmfPath:\n type: string\n v1.BIOS:\n type: object\n + \ properties:\n useSerial:\n type: boolean\n description: + \"If set, the BIOS output will be transmitted over serial\"\n description: + \"If set (default), BIOS will be used.\"\n v1.BlockSize:\n type: object\n + \ properties:\n custom:\n $ref: '#/components/schemas/v1.CustomBlockSize'\n + \ matchVolume:\n $ref: '#/components/schemas/v1.FeatureState'\n + \ description: BlockSize provides the option to change the block size presented\n + \ to the VM for a disk. Only one of its members may be specified.\n v1.Bootloader:\n + \ type: object\n properties:\n bios:\n $ref: '#/components/schemas/v1.BIOS'\n + \ efi:\n $ref: '#/components/schemas/v1.EFI'\n description: + Represents the firmware blob used to assist in the domain creation\n process. + Used for setting the QEMU BIOS file path for the libvirt domain.\n v1.CDRomTarget:\n + \ type: object\n properties:\n bus:\n type: string\n + \ description: \"Bus indicates the type of disk device to emulate. supported\\\n + \ \\ values: virtio, sata, scsi.\"\n readonly:\n type: + boolean\n description: ReadOnly. Defaults to true.\n tray:\n type: + string\n description: Tray indicates if the tray of the device is open + or closed.\n Allowed values are \"open\" and \"closed\". Defaults to + closed.\n v1.CPU:\n type: object\n properties:\n cores:\n + \ type: integer\n description: Cores specifies the number of + cores inside the vmi. Must be\n a value greater or equal 1.\n format: + int64\n dedicatedCpuPlacement:\n type: boolean\n description: + DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance\n + \ on a node with enough dedicated pCPUs and pin the vCPUs to it.\n features:\n + \ type: array\n description: Features specifies the CPU features + list inside the VMI.\n items:\n $ref: '#/components/schemas/v1.CPUFeature'\n + \ isolateEmulatorThread:\n type: boolean\n description: + IsolateEmulatorThread requests one more dedicated pCPU to be\n allocated + for the VMI to place the emulator thread on it.\n maxSockets:\n type: + integer\n description: MaxSockets specifies the maximum amount of sockets + that can\n be hotplugged\n format: int64\n model:\n + \ type: string\n description: Model specifies the CPU model inside + the VMI. List of available\n models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. + It\n is possible to specify special cases like \"host-passthrough\" + to get the\n same CPU as the node and \"host-model\" to get CPU closest + to the node one.\n Defaults to host-model.\n numa:\n $ref: + '#/components/schemas/v1.NUMA'\n realtime:\n $ref: '#/components/schemas/v1.Realtime'\n + \ sockets:\n type: integer\n description: Sockets specifies + the number of sockets inside the vmi. Must\n be a value greater or + equal 1.\n format: int64\n threads:\n type: integer\n + \ description: Threads specifies the number of threads inside the vmi. + Must\n be a value greater or equal 1.\n format: int64\n description: + CPU allows specifying the CPU topology.\n v1.CPUFeature:\n required:\n + \ - name\n type: object\n properties:\n name:\n type: + string\n description: Name of the CPU feature\n default: \"\"\n + \ policy:\n type: string\n description: \"Policy is the + CPU feature attribute which can have the following\\\n \\ attributes: + force - The virtual CPU will claim the feature is supported\\\n \\ + regardless of it being supported by host CPU. require - Guest creation\\\n \\ + will fail unless the feature is supported by the host CPU or the hypervisor\\\n + \ \\ is able to emulate it. optional - The feature will be supported + by virtual\\\n \\ CPU if and only if it is supported by host CPU. disable + \ - The feature\\\n \\ will not be supported by virtual CPU. forbid + \ - Guest creation will\\\n \\ fail if the feature is supported by + host CPU. Defaults to require\"\n description: CPUFeature allows specifying + a CPU feature.\n v1.CPUTopology:\n type: object\n properties:\n cores:\n + \ type: integer\n description: Cores specifies the number of + cores inside the vmi. Must be\n a value greater or equal 1.\n format: + int64\n sockets:\n type: integer\n description: Sockets + specifies the number of sockets inside the vmi. Must\n be a value greater + or equal 1.\n format: int64\n threads:\n type: integer\n + \ description: Threads specifies the number of threads inside the vmi. + Must\n be a value greater or equal 1.\n format: int64\n description: + \"CPUTopology allows specifying the amount of cores, sockets and\\\n \\ + threads.\"\n v1.CertConfig:\n type: object\n properties:\n duration:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration'\n + \ renewBefore:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration'\n + \ description: CertConfig contains the tunables for TLS certificates\n v1.Chassis:\n + \ type: object\n properties:\n asset:\n type: string\n + \ manufacturer:\n type: string\n serial:\n type: + string\n sku:\n type: string\n version:\n type: + string\n description: Chassis specifies the chassis info passed to the domain.\n + \ v1.ClientPassthroughDevices:\n type: object\n description: |-\n + \ Represent a subset of client devices that can be accessed by VMI. At the + moment only, USB devices using Usbredir's library and tooling. Another fit would + be a smartcard with libcacard.\n\n The struct is currently empty as there + is no immediate request for user-facing APIs. This structure simply turns on USB + redirection of UsbClientPassthroughMaxNumberOf devices.\n v1.Clock:\n type: + object\n properties:\n timer:\n $ref: '#/components/schemas/v1.Timer'\n + \ timezone:\n type: string\n description: Timezone sets + the guest clock to the specified timezone. Zone\n name follows the + TZ environment variable format (e.g. 'America/New_York').\n utc:\n $ref: + '#/components/schemas/v1.ClockOffsetUTC'\n description: Represents the clock + and timers of a vmi.\n v1.ClockOffset:\n type: object\n properties:\n + \ timezone:\n type: string\n description: Timezone sets + the guest clock to the specified timezone. Zone\n name follows the + TZ environment variable format (e.g. 'America/New_York').\n utc:\n $ref: + '#/components/schemas/v1.ClockOffsetUTC'\n description: Exactly one of its + members must be set.\n v1.ClockOffsetUTC:\n type: object\n properties:\n + \ offsetSeconds:\n type: integer\n description: \"OffsetSeconds + specifies an offset in seconds, relative to\\\n \\ UTC. If set, guest + changes to the clock will be kept during reboots\\\n \\ and not reset.\"\n + \ format: int32\n description: UTC sets the guest clock to UTC on + each boot.\n v1.CloudInitConfigDriveSource:\n type: object\n properties:\n + \ networkData:\n type: string\n description: NetworkData + contains config drive inline cloud-init networkdata.\n networkDataBase64:\n + \ type: string\n description: NetworkDataBase64 contains config + drive cloud-init networkdata\n as a base64 encoded string.\n networkDataSecretRef:\n + \ $ref: '#/components/schemas/k8s.io.api.core.v1.LocalObjectReference'\n + \ secretRef:\n $ref: '#/components/schemas/k8s.io.api.core.v1.LocalObjectReference'\n + \ userData:\n type: string\n description: UserData contains + config drive inline cloud-init userdata.\n userDataBase64:\n type: + string\n description: UserDataBase64 contains config drive cloud-init + userdata as\n a base64 encoded string.\n description: \"Represents + a cloud-init config drive user data source. More info:\\\n \\ https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html\"\n + \ v1.CloudInitNoCloudSource:\n type: object\n properties:\n networkData:\n + \ type: string\n description: NetworkData contains NoCloud inline + cloud-init networkdata.\n networkDataBase64:\n type: string\n + \ description: NetworkDataBase64 contains NoCloud cloud-init networkdata + as\n a base64 encoded string.\n networkDataSecretRef:\n $ref: + '#/components/schemas/k8s.io.api.core.v1.LocalObjectReference'\n secretRef:\n + \ $ref: '#/components/schemas/k8s.io.api.core.v1.LocalObjectReference'\n + \ userData:\n type: string\n description: UserData contains + NoCloud inline cloud-init userdata.\n userDataBase64:\n type: + string\n description: UserDataBase64 contains NoCloud cloud-init userdata + as a base64\n encoded string.\n description: \"Represents a cloud-init + nocloud user data source. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html\"\n + \ v1.ComponentConfig:\n type: object\n properties:\n nodePlacement:\n + \ $ref: '#/components/schemas/v1.NodePlacement'\n replicas:\n type: + integer\n description: \"replicas indicates how many replicas should + be created for\\\n \\ each KubeVirt infrastructure component (like + virt-api or virt-controller).\\\n \\ Defaults to 2. WARNING: this is + an advanced feature that prevents auto-scaling\\\n \\ for core kubevirt + components. Please use with caution!\"\n format: byte\n v1.ConfigDriveSSHPublicKeyAccessCredentialPropagation:\n + \ type: object\n v1.ConfigMapVolumeSource:\n type: object\n properties:\n + \ name:\n type: string\n description: \"Name of the referent. + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\"\n + \ optional:\n type: boolean\n description: Specify whether + the ConfigMap or it's keys must be defined\n volumeLabel:\n type: + string\n description: \"The volume label of the resulting disk inside + the VMI. Different\\\n \\ bootstrapping mechanisms require different + values. Typical values are\\\n \\ \\\"cidata\\\" (cloud-init), \\\"config-2\\\" + (cloud-init) or \\\"OEMDRV\\\" (kickstart).\"\n description: \"ConfigMapVolumeSource + adapts a ConfigMap into a volume. More info:\\\n \\ https://kubernetes.io/docs/concepts/storage/volumes/#configmap\"\n + \ v1.ContainerDiskInfo:\n type: object\n properties:\n checksum:\n + \ type: integer\n description: Checksum is the checksum of the + rootdisk or kernel artifacts\n inside the containerdisk\n format: + int64\n description: ContainerDiskInfo shows info about the containerdisk\n + \ v1.ContainerDiskSource:\n required:\n - image\n type: object\n + \ properties:\n image:\n type: string\n description: + Image is the name of the image with the embedded disk.\n default: \"\"\n + \ imagePullPolicy:\n type: string\n description: |-\n + \ Image pull policy. One of Always, Never, IfNotPresent. Defaults to + Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. + More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n\n + \ Possible enum values:\n - `\"Always\"` means that kubelet + always attempts to pull the latest image. Container will fail If the pull fails.\n + \ - `\"IfNotPresent\"` means that kubelet pulls if the image isn't + present on disk. Container will fail if the image isn't present and the pull fails.\n + \ - `\"Never\"` means that kubelet never pulls an image, but only uses + a local image. Container will fail if the image isn't present\n enum:\n + \ - Always\n - IfNotPresent\n - Never\n imagePullSecret:\n + \ type: string\n description: ImagePullSecret is the name of + the Docker registry secret required\n to pull the image. The secret + must already exist.\n path:\n type: string\n description: + Path defines the path to disk file in the container\n description: Represents + a docker image with an embedded disk.\n v1.CustomBlockSize:\n required:\n + \ - logical\n - physical\n type: object\n properties:\n logical:\n + \ type: integer\n format: int32\n default: 0\n physical:\n + \ type: integer\n format: int32\n default: 0\n description: + CustomBlockSize represents the desired logical and physical block\n size + for a VM disk.\n v1.CustomProfile:\n type: object\n properties:\n + \ localhostProfile:\n type: string\n runtimeDefaultProfile:\n + \ type: boolean\n v1.CustomizeComponents:\n type: object\n properties:\n + \ flags:\n $ref: '#/components/schemas/v1.Flags'\n patches:\n + \ type: array\n items:\n $ref: '#/components/schemas/v1.CustomizeComponentsPatch'\n + \ x-kubernetes-list-type: atomic\n v1.CustomizeComponentsPatch:\n required:\n + \ - patch\n - resourceName\n - resourceType\n - type\n type: + object\n properties:\n patch:\n type: string\n default: + \"\"\n resourceName:\n type: string\n default: \"\"\n + \ resourceType:\n type: string\n default: \"\"\n type:\n + \ type: string\n default: \"\"\n v1.DHCPOptions:\n type: + object\n properties:\n bootFileName:\n type: string\n description: + If specified will pass option 67 to interface's DHCP server\n ntpServers:\n + \ type: array\n description: If specified will pass the configured + NTP server to the VM\n via DHCP option 042.\n items:\n type: + string\n default: \"\"\n privateOptions:\n type: array\n + \ description: \"If specified will pass extra DHCP options for private + use,\\\n \\ range: 224-254\"\n items:\n $ref: '#/components/schemas/v1.DHCPPrivateOptions'\n + \ tftpServerName:\n type: string\n description: If specified + will pass option 66 to interface's DHCP server\n description: Extra DHCP + options to use in the interface.\n v1.DHCPPrivateOptions:\n required:\n + \ - option\n - value\n type: object\n properties:\n option:\n + \ type: integer\n description: Option is an Integer value from + 224-254 Required.\n format: int32\n default: 0\n value:\n + \ type: string\n description: Value is a String value for the + Option provided Required.\n default: \"\"\n description: DHCPExtraOptions + defines Extra DHCP options for a VM.\n v1.DataVolumeSource:\n required:\n + \ - name\n type: object\n properties:\n hotpluggable:\n type: + boolean\n description: Hotpluggable indicates whether the volume can + be hotplugged\n and hotunplugged.\n name:\n type: string\n + \ description: Name of both the DataVolume and the PVC in the same namespace.\n + \ After PVC population the DataVolume is garbage collected by default.\n + \ default: \"\"\n v1.DataVolumeTemplateDummyStatus:\n type: object\n + \ v1.DataVolumeTemplateSpec:\n required:\n - spec\n type: object\n + \ properties:\n apiVersion:\n type: string\n description: + \"APIVersion defines the versioned schema of this representation\\\n \\ + of an object. Servers should convert recognized schemas to the latest\\\n \\ + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1beta1.DataVolumeSpec'\n + \ status:\n $ref: '#/components/schemas/v1.DataVolumeTemplateDummyStatus'\n + \ v1.DeprecatedInterfaceMacvtap:\n type: object\n description: \"DeprecatedInterfaceMacvtap + is an alias to the deprecated InterfaceMacvtap\\\n \\ that connects to + a given network by extending the Kubernetes node's L2 networks\\\n \\ via + a macvtap interface. Deprecated: Removed in v1.3\"\n v1.DeprecatedInterfaceSlirp:\n + \ type: object\n description: \"DeprecatedInterfaceSlirp is an alias + to the deprecated InterfaceSlirp\\\n \\ that connects to a given network + using QEMU user networking mode. Deprecated:\\\n \\ Removed in v1.3\"\n + \ v1.DeveloperConfiguration:\n type: object\n properties:\n cpuAllocationRatio:\n + \ type: integer\n description: \"For each requested virtual CPU, + CPUAllocationRatio defines\\\n \\ how much physical CPU to request + per VMI from the hosting node. The\\\n \\ value is in fraction of a + CPU thread (or core on non-hyperthreaded nodes).\\\n \\ For example, + a value of 1 means 1 physical CPU thread per VMI CPU thread.\\\n \\ + A value of 100 would be 1% of a physical thread allocated for each requested\\\n + \ \\ VMI thread. This option has no effect on VMIs that request dedicated\\\n + \ \\ CPUs. More information at: https://kubevirt.io/user-guide/operations/node_overcommit/#node-cpu-allocation-ratio\\\n + \ \\ Defaults to 10\"\n format: int32\n diskVerification:\n + \ $ref: '#/components/schemas/v1.DiskVerification'\n featureGates:\n + \ type: array\n description: FeatureGates is the list of experimental + features to enable.\n Defaults to none\n items:\n type: + string\n default: \"\"\n logVerbosity:\n $ref: '#/components/schemas/v1.LogVerbosity'\n + \ memoryOvercommit:\n type: integer\n description: \"MemoryOvercommit + is the percentage of memory we want to give\\\n \\ VMIs compared to + the amount given to its parent pod (virt-launcher).\\\n \\ For example, + a value of 102 means the VMI will \\\"see\\\" 2% more memory\\\n \\ + than its parent pod. Values under 100 are effectively \\\"undercommits\\\"\\\n + \ . Overcommits can lead to memory exhaustion, which in turn can lead + to\\\n \\ crashes. Use carefully. Defaults to 100\"\n format: + int32\n minimumClusterTSCFrequency:\n type: integer\n description: + Allow overriding the automatically determined minimum TSC frequency\n of + the cluster and fixate the minimum to this frequency.\n format: int64\n + \ minimumReservePVCBytes:\n type: integer\n description: + \"MinimumReservePVCBytes is the amount of space, in bytes, to\\\n \\ + leave unused on disks. Defaults to 131072 (128KiB)\"\n format: int64\n + \ nodeSelectors:\n type: object\n additionalProperties:\n + \ type: string\n default: \"\"\n description: NodeSelectors + allows restricting VMI creation to nodes that\n match a set of labels. + Defaults to none\n pvcTolerateLessSpaceUpToPercent:\n type: integer\n + \ description: \"LessPVCSpaceToleration determines how much smaller, in + percentage,\\\n \\ disk PVCs are allowed to be compared to the requested + size (to account\\\n \\ for various overheads). Defaults to 10\"\n + \ format: int32\n useEmulation:\n type: boolean\n description: + UseEmulation can be set to true to allow fallback to software\n emulation + in case hardware-assisted emulation is not available. Defaults\n to + false\n description: DeveloperConfiguration holds developer options\n v1.Devices:\n + \ type: object\n properties:\n autoattachGraphicsDevice:\n type: + boolean\n description: Whether to attach the default graphics device + or not. VNC will\n not be available if set to false. Defaults to true.\n + \ autoattachInputDevice:\n type: boolean\n description: + Whether to attach an Input Device. Defaults to false.\n autoattachMemBalloon:\n + \ type: boolean\n description: Whether to attach the Memory balloon + device with default period.\n Period can be adjusted in virt-config. + Defaults to true.\n autoattachPodInterface:\n type: boolean\n + \ description: Whether to attach a pod network interface. Defaults to + true.\n autoattachSerialConsole:\n type: boolean\n description: + Whether to attach the default virtio-serial console or not.\n Serial + console access will not be available if set to false. Defaults\n to + true.\n autoattachVSOCK:\n type: boolean\n description: + Whether to attach the VSOCK CID to the VM or not. VSOCK access\n will + be available if set to true. Defaults to false.\n blockMultiQueue:\n type: + boolean\n description: Whether or not to enable virtio multi-queue for + block devices.\n Defaults to false.\n clientPassthrough:\n $ref: + '#/components/schemas/v1.ClientPassthroughDevices'\n disableHotplug:\n + \ type: boolean\n description: DisableHotplug disabled the ability + to hotplug disks.\n disks:\n type: array\n description: + \"Disks describes disks, cdroms and luns which are connected\\\n \\ + to the vmi.\"\n items:\n $ref: '#/components/schemas/v1.Disk'\n + \ downwardMetrics:\n $ref: '#/components/schemas/v1.DownwardMetrics'\n + \ filesystems:\n type: array\n description: Filesystems + describes filesystem which is connected to the\n vmi.\n items:\n + \ $ref: '#/components/schemas/v1.Filesystem'\n x-kubernetes-list-type: + atomic\n gpus:\n type: array\n description: Whether to + attach a GPU device to the vmi.\n items:\n $ref: '#/components/schemas/v1.GPU'\n + \ x-kubernetes-list-type: atomic\n hostDevices:\n type: + array\n description: Whether to attach a host device to the vmi.\n items:\n + \ $ref: '#/components/schemas/v1.HostDevice'\n x-kubernetes-list-type: + atomic\n inputs:\n type: array\n description: Inputs + describe input devices\n items:\n $ref: '#/components/schemas/v1.Input'\n + \ interfaces:\n type: array\n description: Interfaces + describe network interfaces which are added to the\n vmi.\n items:\n + \ $ref: '#/components/schemas/v1.Interface'\n logSerialConsole:\n + \ type: boolean\n description: Whether to log the auto-attached + default serial console or\n not. Serial console logs will be collect + to a file and then streamed from\n a named `guest-console-log`. Not + relevant if autoattachSerialConsole is\n disabled. Defaults to cluster + wide setting on VirtualMachineOptions.\n networkInterfaceMultiqueue:\n + \ type: boolean\n description: \"If specified, virtual network + interfaces configured with a\\\n \\ virtio bus will also enable the + vhost multiqueue feature for network\\\n \\ devices. The number of + queues created depends on additional factors\\\n \\ of the VirtualMachineInstance, + like the number of guest CPUs.\"\n rng:\n $ref: '#/components/schemas/v1.Rng'\n + \ sound:\n $ref: '#/components/schemas/v1.SoundDevice'\n tpm:\n + \ $ref: '#/components/schemas/v1.TPMDevice'\n useVirtioTransitional:\n + \ type: boolean\n description: Fall back to legacy virtio 0.9 + support if virtio bus is selected\n on devices. This is helpful for + old machines like CentOS6 or RHEL6 which\n do not understand virtio_non_transitional + (virtio 1.0).\n watchdog:\n $ref: '#/components/schemas/v1.Watchdog'\n + \ v1.DisableFreePageReporting:\n type: object\n v1.DisableSerialConsoleLog:\n + \ type: object\n v1.Disk:\n required:\n - name\n type: object\n + \ properties:\n blockSize:\n $ref: '#/components/schemas/v1.BlockSize'\n + \ bootOrder:\n type: integer\n description: \"BootOrder + is an integer value > 0, used to determine ordering\\\n \\ of boot + devices. Lower values take precedence. Each disk or interface\\\n \\ + that has a boot order must have a unique value. Disks without a boot\\\n \\ + order are not tried if a disk with a boot order exists.\"\n format: int32\n + \ cache:\n type: string\n description: \"Cache specifies + which kvm disk cache mode should be used.\\\n \\ Supported values are: + CacheNone, CacheWriteThrough.\"\n cdrom:\n $ref: '#/components/schemas/v1.CDRomTarget'\n + \ dedicatedIOThread:\n type: boolean\n description: dedicatedIOThread + indicates this disk should have an exclusive\n IO Thread. Enabling + this implies useIOThreads = true. Defaults to false.\n disk:\n $ref: + '#/components/schemas/v1.DiskTarget'\n errorPolicy:\n type: string\n + \ description: \"If specified, it can change the default error policy + (stop)\\\n \\ for the disk\"\n io:\n type: string\n + \ description: \"IO specifies which QEMU disk IO mode should be used. + Supported\\\n \\ values are: native, default, threads.\"\n lun:\n + \ $ref: '#/components/schemas/v1.LunTarget'\n name:\n type: + string\n description: Name is the device name\n default: \"\"\n + \ serial:\n type: string\n description: Serial provides + the ability to specify a serial number for\n the disk device.\n shareable:\n + \ type: boolean\n description: If specified the disk is made + sharable and multiple write from\n different VMs are permitted\n tag:\n + \ type: string\n description: \"If specified, disk address and + its tag will be provided to\\\n \\ the guest via config drive metadata\"\n + \ v1.DiskTarget:\n type: object\n properties:\n bus:\n type: + string\n description: \"Bus indicates the type of disk device to emulate. + supported\\\n \\ values: virtio, sata, scsi, usb.\"\n pciAddress:\n + \ type: string\n description: \"If specified, the virtual disk + will be placed on the guests\\\n \\ pci address with the specified + PCI address. For example: 0000:81:01.10\"\n readonly:\n type: + boolean\n description: ReadOnly. Defaults to false.\n v1.DiskVerification:\n + \ required:\n - memoryLimit\n type: object\n properties:\n + \ memoryLimit:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n + \ description: DiskVerification holds container disks verification limits\n + \ v1.DomainMemoryDumpInfo:\n type: object\n properties:\n claimName:\n + \ type: string\n description: ClaimName is the name of the pvc + the memory was dumped to\n endTimestamp:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ startTimestamp:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ targetFileName:\n type: string\n description: TargetFileName + is the name of the memory dump output\n description: DomainMemoryDumpInfo + represents the memory dump information\n v1.DomainSpec:\n required:\n + \ - devices\n type: object\n properties:\n chassis:\n $ref: + '#/components/schemas/v1.Chassis'\n clock:\n $ref: '#/components/schemas/v1.Clock'\n + \ cpu:\n $ref: '#/components/schemas/v1.CPU'\n devices:\n + \ $ref: '#/components/schemas/v1.Devices'\n features:\n $ref: + '#/components/schemas/v1.Features'\n firmware:\n $ref: '#/components/schemas/v1.Firmware'\n + \ ioThreadsPolicy:\n type: string\n description: \"Controls + whether or not disks will share IOThreads. Omitting\\\n \\ IOThreadsPolicy + disables use of IOThreads. One of: shared, auto\"\n launchSecurity:\n $ref: + '#/components/schemas/v1.LaunchSecurity'\n machine:\n $ref: '#/components/schemas/v1.Machine'\n + \ memory:\n $ref: '#/components/schemas/v1.Memory'\n resources:\n + \ $ref: '#/components/schemas/v1.ResourceRequirements'\n v1.DownwardAPIVolumeSource:\n + \ type: object\n properties:\n fields:\n type: array\n + \ description: Fields is a list of downward API volume file\n items:\n + \ $ref: '#/components/schemas/k8s.io.api.core.v1.DownwardAPIVolumeFile'\n + \ volumeLabel:\n type: string\n description: \"The volume + label of the resulting disk inside the VMI. Different\\\n \\ bootstrapping + mechanisms require different values. Typical values are\\\n \\ \\\"cidata\\\" + (cloud-init), \\\"config-2\\\" (cloud-init) or \\\"OEMDRV\\\" (kickstart).\"\n + \ description: DownwardAPIVolumeSource represents a volume containing downward\n + \ API info.\n v1.DownwardMetrics:\n type: object\n v1.DownwardMetricsVolumeSource:\n + \ type: object\n description: DownwardMetricsVolumeSource adds a very + small disk to VMIs which\n contains a limited view of host and guest metrics. + The disk content is compatible\n with vhostmd (https://github.com/vhostmd/vhostmd) + and vm-dump-metrics.\n v1.EFI:\n type: object\n properties:\n persistent:\n + \ type: boolean\n description: \"If set to true, Persistent will + persist the EFI NVRAM across\\\n \\ reboots. Defaults to false\"\n + \ secureBoot:\n type: boolean\n description: \"If set, + SecureBoot will be enabled and the OVMF roms will\\\n \\ be swapped + for SecureBoot-enabled ones. Requires SMM to be enabled.\\\n \\ Defaults + to true\"\n description: \"If set, EFI will be used instead of BIOS.\"\n + \ v1.EmptyDiskSource:\n required:\n - capacity\n type: object\n + \ properties:\n capacity:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n + \ description: EmptyDisk represents a temporary disk which shares the vmis + lifecycle.\n v1.EphemeralVolumeSource:\n type: object\n properties:\n + \ persistentVolumeClaim:\n $ref: '#/components/schemas/k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource'\n + \ v1.FeatureAPIC:\n type: object\n properties:\n enabled:\n + \ type: boolean\n description: Enabled determines if the feature + should be enabled or disabled\n on the guest. Defaults to true.\n endOfInterrupt:\n + \ type: boolean\n description: EndOfInterrupt enables the end + of interrupt notification in\n the guest. Defaults to false.\n v1.FeatureHyperv:\n + \ type: object\n properties:\n evmcs:\n $ref: '#/components/schemas/v1.FeatureState'\n + \ frequencies:\n $ref: '#/components/schemas/v1.FeatureState'\n + \ ipi:\n $ref: '#/components/schemas/v1.FeatureState'\n reenlightenment:\n + \ $ref: '#/components/schemas/v1.FeatureState'\n relaxed:\n $ref: + '#/components/schemas/v1.FeatureState'\n reset:\n $ref: '#/components/schemas/v1.FeatureState'\n + \ runtime:\n $ref: '#/components/schemas/v1.FeatureState'\n spinlocks:\n + \ $ref: '#/components/schemas/v1.FeatureSpinlocks'\n synic:\n $ref: + '#/components/schemas/v1.FeatureState'\n synictimer:\n $ref: '#/components/schemas/v1.SyNICTimer'\n + \ tlbflush:\n $ref: '#/components/schemas/v1.FeatureState'\n vapic:\n + \ $ref: '#/components/schemas/v1.FeatureState'\n vendorid:\n $ref: + '#/components/schemas/v1.FeatureVendorID'\n vpindex:\n $ref: '#/components/schemas/v1.FeatureState'\n + \ description: Hyperv specific features.\n v1.FeatureKVM:\n type: + object\n properties:\n hidden:\n type: boolean\n description: + Hide the KVM hypervisor from standard MSR based discovery.\n Defaults + to false\n v1.FeatureSpinlocks:\n type: object\n properties:\n enabled:\n + \ type: boolean\n description: Enabled determines if the feature + should be enabled or disabled\n on the guest. Defaults to true.\n spinlocks:\n + \ type: integer\n description: Retries indicates the number of + retries. Must be a value greater\n or equal 4096. Defaults to 4096.\n + \ format: int64\n v1.FeatureState:\n type: object\n properties:\n + \ enabled:\n type: boolean\n description: Enabled determines + if the feature should be enabled or disabled\n on the guest. Defaults + to true.\n description: Represents if a feature is enabled or disabled.\n + \ v1.FeatureVendorID:\n type: object\n properties:\n enabled:\n + \ type: boolean\n description: Enabled determines if the feature + should be enabled or disabled\n on the guest. Defaults to true.\n vendorid:\n + \ type: string\n description: \"VendorID sets the hypervisor + vendor id, visible to the vmi.\\\n \\ String up to twelve characters.\"\n + \ v1.Features:\n type: object\n properties:\n acpi:\n $ref: + '#/components/schemas/v1.FeatureState'\n apic:\n $ref: '#/components/schemas/v1.FeatureAPIC'\n + \ hyperv:\n $ref: '#/components/schemas/v1.FeatureHyperv'\n hypervPassthrough:\n + \ $ref: '#/components/schemas/v1.HyperVPassthrough'\n kvm:\n $ref: + '#/components/schemas/v1.FeatureKVM'\n pvspinlock:\n $ref: '#/components/schemas/v1.FeatureState'\n + \ smm:\n $ref: '#/components/schemas/v1.FeatureState'\n v1.Filesystem:\n + \ required:\n - name\n - virtiofs\n type: object\n properties:\n + \ name:\n type: string\n description: Name is the device + name\n default: \"\"\n virtiofs:\n $ref: '#/components/schemas/v1.FilesystemVirtiofs'\n + \ v1.FilesystemVirtiofs:\n type: object\n v1.Firmware:\n type: + object\n properties:\n acpi:\n $ref: '#/components/schemas/v1.ACPI'\n + \ bootloader:\n $ref: '#/components/schemas/v1.Bootloader'\n kernelBoot:\n + \ $ref: '#/components/schemas/v1.KernelBoot'\n serial:\n type: + string\n description: The system-serial-number in SMBIOS\n uuid:\n + \ type: string\n description: UUID reported by the vmi bios. + Defaults to a random generated\n uid.\n v1.Flags:\n type: object\n + \ properties:\n api:\n type: object\n additionalProperties:\n + \ type: string\n default: \"\"\n controller:\n type: + object\n additionalProperties:\n type: string\n default: + \"\"\n handler:\n type: object\n additionalProperties:\n + \ type: string\n default: \"\"\n description: Flags + will create a patch that will replace all flags for the container's\n command + field. The only flags that will be used are those define. There are\n no + guarantees around forward/backward compatibility. If set incorrectly this\n will + cause the resource when rolled out to error until flags are updated.\n v1.FreezeUnfreezeTimeout:\n + \ required:\n - unfreezeTimeout\n type: object\n properties:\n + \ unfreezeTimeout:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration'\n + \ description: FreezeUnfreezeTimeout represent the time unfreeze will be triggered\n + \ if guest was not unfrozen by unfreeze command\n v1.GPU:\n required:\n + \ - deviceName\n - name\n type: object\n properties:\n deviceName:\n + \ type: string\n default: \"\"\n name:\n type: + string\n description: Name of the GPU device as exposed by a device plugin\n + \ default: \"\"\n tag:\n type: string\n description: + \"If specified, the virtual network interface address and its\\\n \\ + tag will be provided to the guest via config drive\"\n virtualGPUOptions:\n + \ $ref: '#/components/schemas/v1.VGPUOptions'\n v1.GenerationStatus:\n + \ required:\n - group\n - lastGeneration\n - name\n - + resource\n type: object\n properties:\n group:\n type: + string\n description: group is the group of the thing you're tracking\n + \ default: \"\"\n hash:\n type: string\n description: + hash is an optional field set for resources without generation\n that + are content sensitive like secrets and configmaps\n lastGeneration:\n type: + integer\n description: lastGeneration is the last generation of the workload + controller\n involved\n format: int64\n default: + 0\n name:\n type: string\n description: name is the name + of the thing you're tracking\n default: \"\"\n namespace:\n type: + string\n description: namespace is where the thing you're tracking is\n + \ resource:\n type: string\n description: resource is + the resource type of the thing you're tracking\n default: \"\"\n description: + GenerationStatus keeps track of the generation for a given resource\n so + that decisions about forced updates can be made.\n v1.GuestAgentCommandInfo:\n + \ required:\n - name\n type: object\n properties:\n enabled:\n + \ type: boolean\n name:\n type: string\n default: + \"\"\n description: List of commands that QEMU guest agent supports\n v1.GuestAgentPing:\n + \ type: object\n description: GuestAgentPing configures the guest-agent + based ping probe\n v1.HPETTimer:\n type: object\n properties:\n present:\n + \ type: boolean\n description: Enabled set to false makes sure + that the machine type or a\n preset can't add the timer. Defaults to + true.\n tickPolicy:\n type: string\n description: \"TickPolicy + determines what happens when QEMU misses a deadline\\\n \\ for injecting + a tick to the guest. One of \\\"delay\\\", \\\"catchup\\\", \\\"\\\n merge\\\", + \\\"discard\\\".\"\n v1.HostDevice:\n required:\n - deviceName\n + \ - name\n type: object\n properties:\n deviceName:\n type: + string\n description: DeviceName is the resource name of the host device + exposed\n by a device plugin\n default: \"\"\n name:\n + \ type: string\n default: \"\"\n tag:\n type: + string\n description: \"If specified, the virtual network interface address + and its\\\n \\ tag will be provided to the guest via config drive\"\n + \ v1.HostDisk:\n required:\n - path\n - type\n type: object\n + \ properties:\n capacity:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n + \ path:\n type: string\n description: The path to HostDisk + image located on the cluster\n default: \"\"\n shared:\n type: + boolean\n description: Shared indicate whether the path is shared between + nodes\n type:\n type: string\n description: Contains + information if disk.img exists or should be created\n allowed options + are 'Disk' and 'DiskOrCreate'\n default: \"\"\n description: Represents + a disk created on the cluster level\n v1.HotplugVolumeSource:\n type: + object\n properties:\n dataVolume:\n $ref: '#/components/schemas/v1.DataVolumeSource'\n + \ persistentVolumeClaim:\n $ref: '#/components/schemas/v1.PersistentVolumeClaimVolumeSource'\n + \ description: HotplugVolumeSource Represents the source of a volume to mount\n + \ which are capable of being hotplugged on a live running VMI. Only one + of its\n members may be specified.\n v1.HotplugVolumeStatus:\n type: + object\n properties:\n attachPodName:\n type: string\n description: + AttachPodName is the name of the pod used to attach the volume\n to + the node.\n attachPodUID:\n type: string\n description: + AttachPodUID is the UID of the pod used to attach the volume\n to the + node.\n description: HotplugVolumeStatus represents the hotplug status of + the volume\n v1.Hugepages:\n type: object\n properties:\n pageSize:\n + \ type: string\n description: \"PageSize specifies the hugepage + size, for x86_64 architecture\\\n \\ valid values are 1Gi and 2Mi.\"\n + \ description: Hugepages allow to use hugepages for the VirtualMachineInstance\n + \ instead of regular memory.\n v1.HyperVPassthrough:\n type: object\n + \ properties:\n enabled:\n type: boolean\n v1.HypervTimer:\n + \ type: object\n properties:\n present:\n type: boolean\n + \ description: Enabled set to false makes sure that the machine type or + a\n preset can't add the timer. Defaults to true.\n v1.I6300ESBWatchdog:\n + \ type: object\n properties:\n action:\n type: string\n + \ description: \"The action to take. Valid values are poweroff, reset, + shutdown.\\\n \\ Defaults to reset.\"\n description: i6300esb + watchdog device.\n v1.InitrdInfo:\n type: object\n properties:\n + \ checksum:\n type: integer\n description: Checksum is + the checksum of the initrd file\n format: int64\n description: InitrdInfo + show info about the initrd file\n v1.Input:\n required:\n - name\n + \ - type\n type: object\n properties:\n bus:\n type: + string\n description: \"Bus indicates the bus of input device to emulate. + Supported\\\n \\ values: virtio, usb.\"\n name:\n type: + string\n description: Name is the device name\n default: \"\"\n + \ type:\n type: string\n description: \"Type indicated + the type of input device. Supported values:\\\n \\ tablet.\"\n default: + \"\"\n v1.InstancetypeMatcher:\n type: object\n properties:\n inferFromVolume:\n + \ type: string\n description: InferFromVolume lists the name + of a volume that should be used\n to infer or discover the instancetype + to be used through known annotations\n on the underlying resource. + Once applied to the InstancetypeMatcher this\n field is removed.\n + \ inferFromVolumeFailurePolicy:\n type: string\n description: + \"InferFromVolumeFailurePolicy controls what should happen on\\\n \\ + failure when inferring the instancetype. Allowed values are: \\\"RejectInferFromVolumeFailure\\\"\\\n + \ \\ and \\\"IgnoreInferFromVolumeFailure\\\". If not specified, \\\"RejectInferFromVolumeFailure\\\"\\\n + \ \\ is used by default.\"\n kind:\n type: string\n + \ description: \"Kind specifies which instancetype resource is referenced.\\\n + \ \\ Allowed values are: \\\"VirtualMachineInstancetype\\\" and \\\"VirtualMachineClusterInstancetype\\\"\\\n + \ . If not specified, \\\"VirtualMachineClusterInstancetype\\\" is used + by default.\"\n name:\n type: string\n description: Name + is the name of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype\n + \ revisionName:\n type: string\n description: RevisionName + specifies a ControllerRevision containing a specific\n copy of the + VirtualMachineInstancetype or VirtualMachineClusterInstancetype\n to + be used. This is initially captured the first time the instancetype\n is + applied to the VirtualMachineInstance.\n description: InstancetypeMatcher + references a instancetype that is used to fill\n fields in the VMI template.\n + \ v1.Interface:\n required:\n - name\n type: object\n properties:\n + \ acpiIndex:\n type: integer\n description: \"If specified, + the ACPI index is used to provide network interface\\\n \\ device naming, + that is stable across changes in PCI addresses assigned\\\n \\ to the + device. This value is required to be unique across all devices\\\n \\ + and be between 1 and (16*1024-1).\"\n format: int32\n binding:\n + \ $ref: '#/components/schemas/v1.PluginBinding'\n bootOrder:\n + \ type: integer\n description: \"BootOrder is an integer value + > 0, used to determine ordering\\\n \\ of boot devices. Lower values + take precedence. Each interface or disk\\\n \\ that has a boot order + must have a unique value. Interfaces without a\\\n \\ boot order are + not tried.\"\n format: int32\n bridge:\n $ref: '#/components/schemas/v1.InterfaceBridge'\n + \ dhcpOptions:\n $ref: '#/components/schemas/v1.DHCPOptions'\n + \ macAddress:\n type: string\n description: \"Interface + MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF.\"\n macvtap:\n + \ $ref: '#/components/schemas/v1.DeprecatedInterfaceMacvtap'\n masquerade:\n + \ $ref: '#/components/schemas/v1.InterfaceMasquerade'\n model:\n + \ type: string\n description: \"Interface model. One of: e1000, + e1000e, ne2k_pci, pcnet, rtl8139,\\\n \\ virtio. Defaults to virtio.\"\n + \ name:\n type: string\n description: Logical name of + the interface as well as a reference to the\n associated networks. + Must match the Name of a Network.\n default: \"\"\n passt:\n $ref: + '#/components/schemas/v1.InterfacePasst'\n pciAddress:\n type: + string\n description: \"If specified, the virtual network interface will + be placed\\\n \\ on the guests pci address with the specified PCI address. + For example:\\\n \\ 0000:81:01.10\"\n ports:\n type: + array\n description: List of ports to be forwarded to the virtual machine.\n + \ items:\n $ref: '#/components/schemas/v1.Port'\n slirp:\n + \ $ref: '#/components/schemas/v1.DeprecatedInterfaceSlirp'\n sriov:\n + \ $ref: '#/components/schemas/v1.InterfaceSRIOV'\n state:\n type: + string\n description: \"State represents the requested operational state + of the interface.\\\n \\ The (only) value supported is `absent`, expressing + a request to remove\\\n \\ the interface.\"\n tag:\n type: + string\n description: \"If specified, the virtual network interface address + and its\\\n \\ tag will be provided to the guest via config drive\"\n + \ v1.InterfaceBindingMigration:\n type: object\n properties:\n method:\n + \ type: string\n description: \"Method defines a pre-defined + migration methodology version:\\\n \\ 1alphav1\"\n v1.InterfaceBindingPlugin:\n + \ type: object\n properties:\n domainAttachmentType:\n type: + string\n description: \"DomainAttachmentType is a standard domain network + attachment\\\n \\ method kubevirt supports. Supported values: \\\"tap\\\". + The standard domain\\\n \\ attachment can be used instead or in addition + to the sidecarImage. version:\\\n \\ 1alphav1\"\n downwardAPI:\n + \ type: string\n description: \"DownwardAPI specifies what kind + of data should be exposed\\\n \\ to the binding plugin sidecar. Supported + values: \\\"device-info\\\" version:\\\n \\ v1alphav1\"\n migration:\n + \ $ref: '#/components/schemas/v1.InterfaceBindingMigration'\n networkAttachmentDefinition:\n + \ type: string\n description: \"NetworkAttachmentDefinition references + to a NetworkAttachmentDefinition\\\n \\ CR object. Format: , + /. If namespace is not specified,\\\n \\ VMI namespace + is assumed. version: 1alphav1\"\n sidecarImage:\n type: string\n + \ description: \"SidecarImage references a container image that runs in + the\\\n \\ virt-launcher pod. The sidecar handles (libvirt) domain + configuration\\\n \\ and optional services. version: 1alphav1\"\n v1.InterfaceBridge:\n + \ type: object\n description: InterfaceBridge connects to a given network + via a linux bridge.\n v1.InterfaceMasquerade:\n type: object\n description: + InterfaceMasquerade connects to a given network using netfilter\n rules + to nat the traffic.\n v1.InterfacePasst:\n type: object\n description: + InterfacePasst connects to a given network.\n v1.InterfaceSRIOV:\n type: + object\n description: InterfaceSRIOV connects to a given network by passing-through + an\n SR-IOV PCI device via vfio.\n v1.KSMConfiguration:\n type: + object\n properties:\n nodeLabelSelector:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector'\n + \ description: KSMConfiguration holds information about KSM.\n v1.KVMTimer:\n + \ type: object\n properties:\n present:\n type: boolean\n + \ description: Enabled set to false makes sure that the machine type or + a\n preset can't add the timer. Defaults to true.\n v1.KernelBoot:\n + \ type: object\n properties:\n container:\n $ref: '#/components/schemas/v1.KernelBootContainer'\n + \ kernelArgs:\n type: string\n description: Arguments + to be passed to the kernel at boot time\n description: \"Represents the firmware + blob used to assist in the kernel boot\\\n \\ process. Used for setting + the kernel, initrd and command line arguments\"\n v1.KernelBootContainer:\n + \ required:\n - image\n type: object\n properties:\n image:\n + \ type: string\n description: Image that contains initrd / kernel + files.\n default: \"\"\n imagePullPolicy:\n type: string\n + \ description: |-\n Image pull policy. One of Always, Never, + IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent + otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n\n + \ Possible enum values:\n - `\"Always\"` means that kubelet + always attempts to pull the latest image. Container will fail If the pull fails.\n + \ - `\"IfNotPresent\"` means that kubelet pulls if the image isn't + present on disk. Container will fail if the image isn't present and the pull fails.\n + \ - `\"Never\"` means that kubelet never pulls an image, but only uses + a local image. Container will fail if the image isn't present\n enum:\n + \ - Always\n - IfNotPresent\n - Never\n imagePullSecret:\n + \ type: string\n description: ImagePullSecret is the name of + the Docker registry secret required\n to pull the image. The secret + must already exist.\n initrdPath:\n type: string\n description: + the fully-qualified path to the ramdisk image in the host OS\n kernelPath:\n + \ type: string\n description: The fully-qualified path to the + kernel image in the host OS\n description: \"If set, the VM will be booted + from the defined kernel / initrd.\"\n v1.KernelBootStatus:\n type: object\n + \ properties:\n initrdInfo:\n $ref: '#/components/schemas/v1.InitrdInfo'\n + \ kernelInfo:\n $ref: '#/components/schemas/v1.KernelInfo'\n description: + KernelBootStatus contains info about the kernelBootContainer\n v1.KernelInfo:\n + \ type: object\n properties:\n checksum:\n type: integer\n + \ description: Checksum is the checksum of the kernel image\n format: + int64\n description: KernelInfo show info about the kernel image\n v1.KubeVirt:\n + \ required:\n - spec\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1.KubeVirtSpec'\n status:\n + \ $ref: '#/components/schemas/v1.KubeVirtStatus'\n description: KubeVirt + represents the object deploying all KubeVirt resources\n v1.KubeVirtCertificateRotateStrategy:\n + \ type: object\n properties:\n selfSigned:\n $ref: '#/components/schemas/v1.KubeVirtSelfSignConfiguration'\n + \ v1.KubeVirtCondition:\n required:\n - status\n - type\n type: + object\n properties:\n message:\n type: string\n reason:\n + \ type: string\n status:\n type: string\n default: + \"\"\n type:\n type: string\n default: \"\"\n description: + KubeVirtCondition represents a condition of a KubeVirt deployment\n v1.KubeVirtConfiguration:\n + \ type: object\n properties:\n additionalGuestMemoryOverheadRatio:\n + \ type: string\n description: \"AdditionalGuestMemoryOverheadRatio + can be used to increase\\\n \\ the virtualization infrastructure overhead. + This is useful, since the\\\n \\ calculation of this overhead is not + accurate and cannot be entirely\\\n \\ known in advance. The ratio + that is being set determines by which factor\\\n \\ to increase the + overhead calculated by Kubevirt. A higher ratio means\\\n \\ that the + VMs would be less compromised by node pressures, but would\\\n \\ mean + that fewer VMs could be scheduled to a node. If not set, the default\\\n \\ + is 1.\"\n apiConfiguration:\n $ref: '#/components/schemas/v1.ReloadableComponentConfiguration'\n + \ architectureConfiguration:\n $ref: '#/components/schemas/v1.ArchConfiguration'\n + \ autoCPULimitNamespaceLabelSelector:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector'\n + \ controllerConfiguration:\n $ref: '#/components/schemas/v1.ReloadableComponentConfiguration'\n + \ cpuModel:\n type: string\n cpuRequest:\n $ref: + '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n defaultRuntimeClass:\n + \ type: string\n developerConfiguration:\n $ref: '#/components/schemas/v1.DeveloperConfiguration'\n + \ emulatedMachines:\n type: array\n description: Deprecated. + Use architectureConfiguration instead.\n items:\n type: string\n + \ default: \"\"\n evictionStrategy:\n type: string\n + \ description: EvictionStrategy defines at the cluster level if the VirtualMachineInstance\n + \ should be migrated instead of shut-off in case of a node drain. If + the\n VirtualMachineInstance specific field is set it overrides the + cluster\n level one.\n handlerConfiguration:\n $ref: + '#/components/schemas/v1.ReloadableComponentConfiguration'\n imagePullPolicy:\n + \ type: string\n description: |-\n Possible enum values:\n + \ - `\"Always\"` means that kubelet always attempts to pull the latest + image. Container will fail If the pull fails.\n - `\"IfNotPresent\"` + means that kubelet pulls if the image isn't present on disk. Container will fail + if the image isn't present and the pull fails.\n - `\"Never\"` means + that kubelet never pulls an image, but only uses a local image. Container will + fail if the image isn't present\n enum:\n - Always\n - + IfNotPresent\n - Never\n ksmConfiguration:\n $ref: '#/components/schemas/v1.KSMConfiguration'\n + \ liveUpdateConfiguration:\n $ref: '#/components/schemas/v1.LiveUpdateConfiguration'\n + \ machineType:\n type: string\n description: Deprecated. + Use architectureConfiguration instead.\n mediatedDevicesConfiguration:\n + \ $ref: '#/components/schemas/v1.MediatedDevicesConfiguration'\n memBalloonStatsPeriod:\n + \ type: integer\n format: int64\n migrations:\n $ref: + '#/components/schemas/v1.MigrationConfiguration'\n minCPUModel:\n type: + string\n network:\n $ref: '#/components/schemas/v1.NetworkConfiguration'\n + \ obsoleteCPUModels:\n type: object\n additionalProperties:\n + \ type: boolean\n default: false\n ovmfPath:\n type: + string\n description: Deprecated. Use architectureConfiguration instead.\n + \ permittedHostDevices:\n $ref: '#/components/schemas/v1.PermittedHostDevices'\n + \ seccompConfiguration:\n $ref: '#/components/schemas/v1.SeccompConfiguration'\n + \ selinuxLauncherType:\n type: string\n smbios:\n $ref: + '#/components/schemas/v1.SMBiosConfiguration'\n supportContainerResources:\n + \ type: array\n description: SupportContainerResources specifies + the resource requirements\n for various types of supporting containers + such as container disks/virtiofs/sidecars\n and hotplug attachment + pods. If omitted a sensible default will be supplied.\n items:\n $ref: + '#/components/schemas/v1.SupportContainerResources'\n x-kubernetes-list-type: + map\n x-kubernetes-list-map-keys:\n - type\n supportedGuestAgentVersions:\n + \ type: array\n description: deprecated\n items:\n type: + string\n default: \"\"\n tlsConfiguration:\n $ref: + '#/components/schemas/v1.TLSConfiguration'\n virtualMachineInstancesPerNode:\n + \ type: integer\n format: int32\n virtualMachineOptions:\n + \ $ref: '#/components/schemas/v1.VirtualMachineOptions'\n vmRolloutStrategy:\n + \ type: string\n description: VMRolloutStrategy defines how changes + to a VM object propagate\n to its VMI\n vmStateStorageClass:\n + \ type: string\n description: \"VMStateStorageClass is the name + of the storage class to use\\\n \\ for the PVCs created to preserve + VM state, like TPM. The storage class\\\n \\ must support RWX in filesystem + mode.\"\n webhookConfiguration:\n $ref: '#/components/schemas/v1.ReloadableComponentConfiguration'\n + \ description: KubeVirtConfiguration holds all kubevirt configurations\n v1.KubeVirtList:\n + \ required:\n - items\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1.KubeVirt'\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: KubeVirtList is a list of KubeVirts\n v1.KubeVirtSelfSignConfiguration:\n + \ type: object\n properties:\n ca:\n $ref: '#/components/schemas/v1.CertConfig'\n + \ caOverlapInterval:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration'\n + \ caRotateInterval:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration'\n + \ certRotateInterval:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration'\n + \ server:\n $ref: '#/components/schemas/v1.CertConfig'\n v1.KubeVirtSpec:\n + \ type: object\n properties:\n certificateRotateStrategy:\n $ref: + '#/components/schemas/v1.KubeVirtCertificateRotateStrategy'\n configuration:\n + \ $ref: '#/components/schemas/v1.KubeVirtConfiguration'\n customizeComponents:\n + \ $ref: '#/components/schemas/v1.CustomizeComponents'\n imagePullPolicy:\n + \ type: string\n description: |-\n The ImagePullPolicy + to use.\n\n Possible enum values:\n - `\"Always\"` means + that kubelet always attempts to pull the latest image. Container will fail If + the pull fails.\n - `\"IfNotPresent\"` means that kubelet pulls if + the image isn't present on disk. Container will fail if the image isn't present + and the pull fails.\n - `\"Never\"` means that kubelet never pulls + an image, but only uses a local image. Container will fail if the image isn't + present\n enum:\n - Always\n - IfNotPresent\n - + Never\n imagePullSecrets:\n type: array\n description: + The imagePullSecrets to pull the container images from Defaults\n to + none\n items:\n $ref: '#/components/schemas/k8s.io.api.core.v1.LocalObjectReference'\n + \ x-kubernetes-list-type: atomic\n imageRegistry:\n type: + string\n description: The image registry to pull the container images + from Defaults\n to the same registry the operator's container image + is pulled from.\n imageTag:\n type: string\n description: + The image tag to use for the continer images installed. Defaults\n to + the same tag as the operator's container image.\n infra:\n $ref: + '#/components/schemas/v1.ComponentConfig'\n monitorAccount:\n type: + string\n description: The name of the Prometheus service account that + needs read-access\n to KubeVirt endpoints Defaults to prometheus-k8s\n + \ monitorNamespace:\n type: string\n description: The + namespace Prometheus is deployed in Defaults to openshift-monitor\n productComponent:\n + \ type: string\n description: \"Designate the apps.kubevirt.io/component + label for KubeVirt\\\n \\ components. Useful if KubeVirt is included + as part of a product. If\\\n \\ ProductComponent is not specified, + the component label default value\\\n \\ is kubevirt.\"\n productName:\n + \ type: string\n description: \"Designate the apps.kubevirt.io/part-of + label for KubeVirt\\\n \\ components. Useful if KubeVirt is included + as part of a product. If\\\n \\ ProductName is not specified, the part-of + label will be omitted.\"\n productVersion:\n type: string\n description: + \"Designate the apps.kubevirt.io/version label for KubeVirt\\\n \\ + components. Useful if KubeVirt is included as part of a product. If\\\n \\ + ProductVersion is not specified, KubeVirt's version will be used.\"\n serviceMonitorNamespace:\n + \ type: string\n description: |-\n The namespace the + service monitor will be deployed\n When ServiceMonitorNamespace is + set, then we'll install the service monitor object in that namespace\n otherwise + we will use the monitoring namespace.\n uninstallStrategy:\n type: + string\n description: Specifies if kubevirt can be deleted if workloads + are still\n present. This is mainly a precaution to avoid accidental + data loss\n workloadUpdateStrategy:\n $ref: '#/components/schemas/v1.KubeVirtWorkloadUpdateStrategy'\n + \ workloads:\n $ref: '#/components/schemas/v1.ComponentConfig'\n + \ v1.KubeVirtStatus:\n type: object\n properties:\n conditions:\n + \ type: array\n items:\n $ref: '#/components/schemas/v1.KubeVirtCondition'\n + \ defaultArchitecture:\n type: string\n generations:\n type: + array\n items:\n $ref: '#/components/schemas/v1.GenerationStatus'\n + \ x-kubernetes-list-type: atomic\n observedDeploymentConfig:\n + \ type: string\n observedDeploymentID:\n type: string\n + \ observedGeneration:\n type: integer\n format: int64\n + \ observedKubeVirtRegistry:\n type: string\n observedKubeVirtVersion:\n + \ type: string\n operatorVersion:\n type: string\n outdatedVirtualMachineInstanceWorkloads:\n + \ type: integer\n format: int32\n phase:\n type: + string\n targetDeploymentConfig:\n type: string\n targetDeploymentID:\n + \ type: string\n targetKubeVirtRegistry:\n type: string\n + \ targetKubeVirtVersion:\n type: string\n description: KubeVirtStatus + represents information pertaining to a KubeVirt\n deployment.\n v1.KubeVirtWorkloadUpdateStrategy:\n + \ type: object\n properties:\n batchEvictionInterval:\n $ref: + '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration'\n batchEvictionSize:\n + \ type: integer\n description: |-\n BatchEvictionSize + Represents the number of VMIs that can be forced updated per the BatchShutdownInteral + interval\n\n Defaults to 10\n format: int32\n workloadUpdateMethods:\n + \ type: array\n description: |-\n WorkloadUpdateMethods + defines the methods that can be used to disrupt workloads during automated workload + updates. When multiple methods are present, the least disruptive method takes + precedence over more disruptive methods. For example if both LiveMigrate and Shutdown + methods are listed, only VMs which are not live migratable will be restarted/shutdown\n\n + \ An empty list defaults to no automated workload updating\n items:\n + \ type: string\n default: \"\"\n x-kubernetes-list-type: + atomic\n description: KubeVirtWorkloadUpdateStrategy defines options related + to updating\n a KubeVirt install\n v1.LaunchSecurity:\n type: object\n + \ properties:\n sev:\n $ref: '#/components/schemas/v1.SEV'\n + \ v1.LiveUpdateConfiguration:\n type: object\n properties:\n maxCpuSockets:\n + \ type: integer\n description: MaxCpuSockets holds the maximum + amount of sockets that can\n be hotplugged\n format: int64\n + \ maxGuest:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n + \ maxHotplugRatio:\n type: integer\n description: \"MaxHotplugRatio + is the ratio used to define the max amount\\\n \\ of a hotplug resource + that can be made available to a VM when the specific\\\n \\ Max* setting + is not defined (MaxCpuSockets, MaxGuest) Example: VM is\\\n \\ configured + with 512Mi of guest memory, if MaxGuest is not defined and\\\n \\ MaxHotplugRatio + is 2 then MaxGuest = 1Gi defaults to 4\"\n format: int64\n v1.LogVerbosity:\n + \ type: object\n properties:\n nodeVerbosity:\n type: + object\n additionalProperties:\n type: integer\n format: + int32\n default: 0\n description: NodeVerbosity represents + a map of nodes with a specific verbosity\n level\n virtAPI:\n + \ type: integer\n format: int32\n virtController:\n type: + integer\n format: int32\n virtHandler:\n type: integer\n + \ format: int32\n virtLauncher:\n type: integer\n format: + int32\n virtOperator:\n type: integer\n format: int32\n + \ description: LogVerbosity sets log verbosity level of various components\n + \ v1.LunTarget:\n type: object\n properties:\n bus:\n type: + string\n description: \"Bus indicates the type of disk device to emulate. + supported\\\n \\ values: virtio, sata, scsi.\"\n readonly:\n + \ type: boolean\n description: ReadOnly. Defaults to false.\n + \ reservation:\n type: boolean\n description: Reservation + indicates if the disk needs to support the persistent\n reservation + for the SCSI disk\n v1.Machine:\n type: object\n properties:\n type:\n + \ type: string\n description: QEMU machine type is the actual + chipset of the VirtualMachineInstance.\n default: \"\"\n v1.MediatedDevicesConfiguration:\n + \ type: object\n properties:\n mediatedDeviceTypes:\n type: + array\n items:\n type: string\n default: \"\"\n + \ x-kubernetes-list-type: atomic\n mediatedDevicesTypes:\n type: + array\n description: Deprecated. Use mediatedDeviceTypes instead.\n items:\n + \ type: string\n default: \"\"\n x-kubernetes-list-type: + atomic\n nodeMediatedDeviceTypes:\n type: array\n items:\n + \ $ref: '#/components/schemas/v1.NodeMediatedDeviceTypesConfig'\n x-kubernetes-list-type: + atomic\n description: \"MediatedDevicesConfiguration holds information about + MDEV types\\\n \\ to be defined, if available\"\n v1.MediatedHostDevice:\n + \ required:\n - mdevNameSelector\n - resourceName\n type: object\n + \ properties:\n externalResourceProvider:\n type: boolean\n + \ mdevNameSelector:\n type: string\n default: \"\"\n resourceName:\n + \ type: string\n default: \"\"\n description: MediatedHostDevice + represents a host mediated device allowed for\n passthrough\n v1.Memory:\n + \ type: object\n properties:\n guest:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n + \ hugepages:\n $ref: '#/components/schemas/v1.Hugepages'\n maxGuest:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n + \ description: Memory allows specifying the VirtualMachineInstance memory + features.\n v1.MemoryDumpVolumeSource:\n required:\n - claimName\n + \ type: object\n properties:\n claimName:\n type: string\n + \ description: \"claimName is the name of a PersistentVolumeClaim in the + same\\\n \\ namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims\"\n + \ default: \"\"\n hotpluggable:\n type: boolean\n description: + Hotpluggable indicates whether the volume can be hotplugged\n and hotunplugged.\n + \ readOnly:\n type: boolean\n description: readOnly Will + force the ReadOnly setting in VolumeMounts. Default\n false.\n v1.MemoryStatus:\n + \ type: object\n properties:\n guestAtBoot:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n + \ guestCurrent:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n + \ guestRequested:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n + \ v1.MigrateOptions:\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ dryRun:\n type: array\n description: \"When present, + indicates that modifications should not be persisted.\\\n \\ An invalid + or unrecognized dryRun directive will result in an error\\\n \\ response + and no further processing of the request. Valid values are:\\\n \\ + - All: all dry run stages will be processed\"\n items:\n type: + string\n default: \"\"\n x-kubernetes-list-type: atomic\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ description: MigrateOptions may be provided on migrate request.\n v1.MigrationConfiguration:\n + \ type: object\n properties:\n allowAutoConverge:\n type: + boolean\n description: AllowAutoConverge allows the platform to compromise + performance/availability\n of VMIs to guarantee successful VMI live + migrations. Defaults to false\n allowPostCopy:\n type: boolean\n + \ description: \"AllowPostCopy enables post-copy live migrations. Such + migrations\\\n \\ allow even the busiest VMIs to successfully live-migrate. + However, events\\\n \\ like a network failure can cause a VMI crash. + If set to true, migrations\\\n \\ will still start in pre-copy, but + switch to post-copy when CompletionTimeoutPerGiB\\\n \\ triggers. Defaults + to false\"\n bandwidthPerMigration:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n + \ completionTimeoutPerGiB:\n type: integer\n description: + \"CompletionTimeoutPerGiB is the maximum number of seconds per\\\n \\ + GiB a migration is allowed to take. If a live-migration takes longer\\\n \\ + to migrate than this value multiplied by the size of the VMI, the migration\\\n + \ \\ will be cancelled, unless AllowPostCopy is true. Defaults to 800\"\n + \ format: int64\n disableTLS:\n type: boolean\n description: + \"When set to true, DisableTLS will disable the additional layer\\\n \\ + of live migration encryption provided by KubeVirt. This is usually a\\\n \\ + bad idea. Defaults to false\"\n matchSELinuxLevelOnMigration:\n type: + boolean\n description: \"By default, the SELinux level of target virt-launcher + pods\\\n \\ is forced to the level of the source virt-launcher. When + set to true,\\\n \\ MatchSELinuxLevelOnMigration lets the CRI auto-assign + a random level\\\n \\ to the target. That will ensure the target virt-launcher + doesn't share\\\n \\ categories with another pod on the node. However, + migrations will fail\\\n \\ when using RWX volumes that don't automatically + deal with SELinux levels.\"\n network:\n type: string\n description: + \"Network is the name of the CNI network to use for live migrations.\\\n \\ + By default, migrations go through the pod network.\"\n nodeDrainTaintKey:\n + \ type: string\n description: \"NodeDrainTaintKey defines the + taint key that indicates a node\\\n \\ should be drained. Note: this + option relies on the deprecated node taint\\\n \\ feature. Default: + kubevirt.io/drain\"\n parallelMigrationsPerCluster:\n type: integer\n + \ description: ParallelMigrationsPerCluster is the total number of concurrent\n + \ live migrations allowed cluster-wide. Defaults to 5\n format: + int64\n parallelOutboundMigrationsPerNode:\n type: integer\n description: + ParallelOutboundMigrationsPerNode is the maximum number of\n concurrent + outgoing live migrations allowed per node. Defaults to 2\n format: int64\n + \ progressTimeout:\n type: integer\n description: ProgressTimeout + is the maximum number of seconds a live migration\n is allowed to make + no progress. Hitting this timeout means a migration\n transferred 0 + data for that many seconds. The migration is then considered\n stuck + and therefore cancelled. Defaults to 150\n format: int64\n unsafeMigrationOverride:\n + \ type: boolean\n description: UnsafeMigrationOverride allows + live migrations to occur even\n if the compatibility check indicates + the migration will be unsafe to the\n guest. Defaults to false\n description: + MigrationConfiguration holds migration options. Can be overridden\n for + specific groups of VMs though migration policies. Visit https://kubevirt.io/user-guide/operations/migration_policies/\n + \ for more information.\n v1.MultusNetwork:\n required:\n - + networkName\n type: object\n properties:\n default:\n type: + boolean\n description: Select the default network and add it to the multus-cni.io/default-network\n + \ annotation.\n networkName:\n type: string\n description: + \"References to a NetworkAttachmentDefinition CRD object. Format:\\\n \\ + , /. If namespace is not specified,\\\n \\ + VMI namespace is assumed.\"\n default: \"\"\n description: Represents + the multus cni network.\n v1.NUMA:\n type: object\n properties:\n + \ guestMappingPassthrough:\n $ref: '#/components/schemas/v1.NUMAGuestMappingPassthrough'\n + \ v1.NUMAGuestMappingPassthrough:\n type: object\n description: \"NUMAGuestMappingPassthrough + instructs kubevirt to model numa topology\\\n \\ which is compatible with + the CPU pinning on the guest. This will result\\\n \\ in a subset of the + node numa topology being passed through, ensuring that\\\n \\ virtual numa + nodes and their memory never cross boundaries coming from the\\\n \\ node + numa mapping.\"\n v1.Network:\n required:\n - name\n type: object\n + \ properties:\n multus:\n $ref: '#/components/schemas/v1.MultusNetwork'\n + \ name:\n type: string\n description: \"Network name. + Must be a DNS_LABEL and unique within the vm.\\\n \\ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\"\n + \ default: \"\"\n pod:\n $ref: '#/components/schemas/v1.PodNetwork'\n + \ description: Network represents a network type and a resource that should + be\n connected to the vm.\n v1.NetworkConfiguration:\n type: object\n + \ properties:\n binding:\n type: object\n additionalProperties:\n + \ $ref: '#/components/schemas/v1.InterfaceBindingPlugin'\n defaultNetworkInterface:\n + \ type: string\n permitBridgeInterfaceOnPodNetwork:\n type: + boolean\n permitSlirpInterface:\n type: boolean\n description: + \"DeprecatedPermitSlirpInterface is an alias for the deprecated\\\n \\ + PermitSlirpInterface. Deprecated: Removed in v1.3.\"\n description: NetworkConfiguration + holds network options\n v1.NoCloudSSHPublicKeyAccessCredentialPropagation:\n + \ type: object\n v1.NodeMediatedDeviceTypesConfig:\n required:\n - + nodeSelector\n type: object\n properties:\n mediatedDeviceTypes:\n + \ type: array\n items:\n type: string\n default: + \"\"\n x-kubernetes-list-type: atomic\n mediatedDevicesTypes:\n + \ type: array\n description: Deprecated. Use mediatedDeviceTypes + instead.\n items:\n type: string\n default: \"\"\n + \ x-kubernetes-list-type: atomic\n nodeSelector:\n type: + object\n additionalProperties:\n type: string\n default: + \"\"\n description: \"NodeSelector is a selector which must be true for + the vmi\\\n \\ to fit on a node. Selector which must match a node's + labels for the\\\n \\ vmi to be scheduled on that node. More info: + https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n description: + NodeMediatedDeviceTypesConfig holds information about MDEV types\n to be + defined in a specific node that matches the NodeSelector field.\n v1.NodePlacement:\n + \ type: object\n properties:\n affinity:\n $ref: '#/components/schemas/k8s.io.api.core.v1.Affinity'\n + \ nodeSelector:\n type: object\n additionalProperties:\n + \ type: string\n default: \"\"\n description: \"nodeSelector + is the node selector applied to the relevant\\\n \\ kind of pods It + specifies a map of key-value pairs: for the pod to be\\\n \\ eligible + to run on a node, the node must have each of the indicated\\\n \\ key-value + pairs as labels (it can have additional labels as well). See\\\n \\ + https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector\"\n + \ tolerations:\n type: array\n description: tolerations + is a list of tolerations applied to the relevant\n kind of pods See + https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/\n for + more info. These are additional tolerations other than default ones.\n items:\n + \ $ref: '#/components/schemas/k8s.io.api.core.v1.Toleration'\n description: + NodePlacement describes node scheduling configuration.\n v1.PITTimer:\n type: + object\n properties:\n present:\n type: boolean\n description: + Enabled set to false makes sure that the machine type or a\n preset + can't add the timer. Defaults to true.\n tickPolicy:\n type: string\n + \ description: \"TickPolicy determines what happens when QEMU misses a + deadline\\\n \\ for injecting a tick to the guest. One of \\\"delay\\\", + \\\"catchup\\\", \\\"\\\n discard\\\".\"\n v1.PauseOptions:\n type: + object\n properties:\n apiVersion:\n type: string\n description: + \"APIVersion defines the versioned schema of this representation\\\n \\ + of an object. Servers should convert recognized schemas to the latest\\\n \\ + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ dryRun:\n type: array\n description: \"When present, + indicates that modifications should not be persisted.\\\n \\ An invalid + or unrecognized dryRun directive will result in an error\\\n \\ response + and no further processing of the request. Valid values are:\\\n \\ + - All: all dry run stages will be processed\"\n items:\n type: + string\n default: \"\"\n x-kubernetes-list-type: atomic\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ description: PauseOptions may be provided on pause request.\n v1.PciHostDevice:\n + \ required:\n - pciVendorSelector\n - resourceName\n type: + object\n properties:\n externalResourceProvider:\n type: + boolean\n description: \"If true, KubeVirt will leave the allocation + and monitoring\\\n \\ to an external device plugin\"\n pciVendorSelector:\n + \ type: string\n description: The vendor_id:product_id tuple + of the PCI device\n default: \"\"\n resourceName:\n type: + string\n description: The name of the resource that is representing the + device. Exposed\n by a device plugin and requested by VMs. Typically + of the form vendor.com/product_name\n default: \"\"\n description: + PciHostDevice represents a host PCI device allowed for passthrough\n v1.PermittedHostDevices:\n + \ type: object\n properties:\n mediatedDevices:\n type: + array\n items:\n $ref: '#/components/schemas/v1.MediatedHostDevice'\n + \ x-kubernetes-list-type: atomic\n pciHostDevices:\n type: + array\n items:\n $ref: '#/components/schemas/v1.PciHostDevice'\n + \ x-kubernetes-list-type: atomic\n usb:\n type: array\n + \ items:\n $ref: '#/components/schemas/v1.USBHostDevice'\n + \ x-kubernetes-list-type: atomic\n description: PermittedHostDevices + holds information about devices allowed for\n passthrough\n v1.PersistentVolumeClaimInfo:\n + \ type: object\n properties:\n accessModes:\n type: array\n + \ description: \"AccessModes contains the desired access modes the volume + should\\\n \\ have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1\"\n + \ items:\n type: string\n default: \"\"\n x-kubernetes-list-type: + atomic\n capacity:\n type: object\n additionalProperties:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n + \ description: Capacity represents the capacity set on the corresponding + PVC\n status\n filesystemOverhead:\n type: string\n + \ description: Percentage of filesystem's size to be reserved when resizing\n + \ the PVC\n preallocated:\n type: boolean\n description: + Preallocated indicates if the PVC's storage is preallocated\n or not\n + \ requests:\n type: object\n additionalProperties:\n $ref: + '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n description: + Requests represents the resources requested by the corresponding\n PVC + spec\n volumeMode:\n type: string\n description: |-\n + \ VolumeMode defines what type of volume is required by the claim. Value + of Filesystem is implied when not included in claim spec.\n\n Possible + enum values:\n - `\"Block\"` means the volume will not be formatted + with a filesystem and will remain a raw block device.\n - `\"Filesystem\"` + means the volume will be or is formatted with a filesystem.\n enum:\n + \ - Block\n - Filesystem\n description: PersistentVolumeClaimInfo + contains the relavant information virt-handler\n needs cached about a PVC\n + \ v1.PersistentVolumeClaimVolumeSource:\n required:\n - claimName\n + \ type: object\n properties:\n claimName:\n type: string\n + \ description: \"claimName is the name of a PersistentVolumeClaim in the + same\\\n \\ namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims\"\n + \ default: \"\"\n hotpluggable:\n type: boolean\n description: + Hotpluggable indicates whether the volume can be hotplugged\n and hotunplugged.\n + \ readOnly:\n type: boolean\n description: readOnly Will + force the ReadOnly setting in VolumeMounts. Default\n false.\n description: + \"PersistentVolumeClaimVolumeSource represents a reference to a\\\n \\ + PersistentVolumeClaim in the same namespace. Directly attached to the vmi\\\n + \ \\ via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims\"\n + \ v1.PluginBinding:\n required:\n - name\n type: object\n properties:\n + \ name:\n type: string\n description: \"Name references + to the binding name as denined in the kubevirt\\\n \\ CR. version: + 1alphav1\"\n default: \"\"\n description: PluginBinding represents + a binding implemented in a plugin.\n v1.PodNetwork:\n type: object\n properties:\n + \ vmIPv6NetworkCIDR:\n type: string\n description: IPv6 + CIDR for the vm network. Defaults to fd10:0:2::/120 if\n not specified.\n + \ vmNetworkCIDR:\n type: string\n description: CIDR for + vm network. Default 10.0.2.0/24 if not specified.\n description: Represents + the stock pod network interface.\n v1.Port:\n required:\n - port\n + \ type: object\n properties:\n name:\n type: string\n + \ description: \"If specified, this must be an IANA_SVC_NAME and unique + within\\\n \\ the pod. Each named port in a pod must have a unique + name. Name for\\\n \\ the port that can be referred to by services.\"\n + \ port:\n type: integer\n description: \"Number of port + to expose for the virtual machine. This must\\\n \\ be a valid port + number, 0 < x < 65536.\"\n format: int32\n default: 0\n protocol:\n + \ type: string\n description: Protocol for port. Must be UDP + or TCP. Defaults to \"TCP\".\n description: Port represents a port to expose + from the virtual machine. Default\n protocol TCP. The port field is mandatory\n + \ v1.PreferenceMatcher:\n type: object\n properties:\n inferFromVolume:\n + \ type: string\n description: InferFromVolume lists the name + of a volume that should be used\n to infer or discover the preference + to be used through known annotations\n on the underlying resource. + Once applied to the PreferenceMatcher this\n field is removed.\n inferFromVolumeFailurePolicy:\n + \ type: string\n description: \"InferFromVolumeFailurePolicy + controls what should happen on\\\n \\ failure when preference the instancetype. + Allowed values are: \\\"RejectInferFromVolumeFailure\\\"\\\n \\ and + \\\"IgnoreInferFromVolumeFailure\\\". If not specified, \\\"RejectInferFromVolumeFailure\\\"\\\n + \ \\ is used by default.\"\n kind:\n type: string\n + \ description: \"Kind specifies which preference resource is referenced. + Allowed\\\n \\ values are: \\\"VirtualMachinePreference\\\" and \\\"VirtualMachineClusterPreference\\\"\\\n + \ . If not specified, \\\"VirtualMachineClusterPreference\\\" is used + by default.\"\n name:\n type: string\n description: Name + is the name of the VirtualMachinePreference or VirtualMachineClusterPreference\n + \ revisionName:\n type: string\n description: RevisionName + specifies a ControllerRevision containing a specific\n copy of the + VirtualMachinePreference or VirtualMachineClusterPreference\n to be + used. This is initially captured the first time the instancetype\n is + applied to the VirtualMachineInstance.\n description: PreferenceMatcher references + a set of preference that is used to\n fill fields in the VMI template.\n + \ v1.Probe:\n type: object\n properties:\n exec:\n $ref: + '#/components/schemas/k8s.io.api.core.v1.ExecAction'\n failureThreshold:\n + \ type: integer\n description: Minimum consecutive failures for + the probe to be considered\n failed after having succeeded. Defaults + to 3. Minimum value is 1.\n format: int32\n guestAgentPing:\n + \ $ref: '#/components/schemas/v1.GuestAgentPing'\n httpGet:\n $ref: + '#/components/schemas/k8s.io.api.core.v1.HTTPGetAction'\n initialDelaySeconds:\n + \ type: integer\n description: \"Number of seconds after the + VirtualMachineInstance has started\\\n \\ before liveness probes are + initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\"\n + \ format: int32\n periodSeconds:\n type: integer\n description: + How often (in seconds) to perform the probe. Default to 10\n seconds. + Minimum value is 1.\n format: int32\n successThreshold:\n type: + integer\n description: Minimum consecutive successes for the probe to + be considered\n successful after having failed. Defaults to 1. Must + be 1 for liveness.\n Minimum value is 1.\n format: int32\n + \ tcpSocket:\n $ref: '#/components/schemas/k8s.io.api.core.v1.TCPSocketAction'\n + \ timeoutSeconds:\n type: integer\n description: \"Number + of seconds after which the probe times out. For exec\\\n \\ probes + the timeout fails the probe but does not terminate the command\\\n \\ + running on the guest. This means a blocking command can result in an\\\n \\ + increasing load on the guest. A small buffer will be added to the resulting\\\n + \ \\ workload exec probe to compensate for delays caused by the qemu + guest\\\n \\ exec mechanism. Defaults to 1 second. Minimum value is + 1. More info:\\\n \\ https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes\"\n + \ format: int32\n description: Probe describes a health check to + be performed against a VirtualMachineInstance\n to determine whether it + is alive or ready to receive traffic.\n v1.QemuGuestAgentSSHPublicKeyAccessCredentialPropagation:\n + \ required:\n - users\n type: object\n properties:\n users:\n + \ type: array\n description: Users represents a list of guest + users that should have the\n ssh public keys added to their authorized_keys + file.\n items:\n type: string\n default: \"\"\n + \ x-kubernetes-list-type: set\n v1.QemuGuestAgentUserPasswordAccessCredentialPropagation:\n + \ type: object\n v1.RESTClientConfiguration:\n type: object\n properties:\n + \ rateLimiter:\n $ref: '#/components/schemas/v1.RateLimiter'\n + \ description: RESTClientConfiguration allows configuring certain aspects + of the\n k8s rest client.\n v1.RTCTimer:\n type: object\n properties:\n + \ present:\n type: boolean\n description: Enabled set + to false makes sure that the machine type or a\n preset can't add the + timer. Defaults to true.\n tickPolicy:\n type: string\n description: + \"TickPolicy determines what happens when QEMU misses a deadline\\\n \\ + for injecting a tick to the guest. One of \\\"delay\\\", \\\"catchup\\\".\"\n + \ track:\n type: string\n description: Track the guest + or the wall clock.\n v1.RateLimiter:\n type: object\n properties:\n + \ tokenBucketRateLimiter:\n $ref: '#/components/schemas/v1.TokenBucketRateLimiter'\n + \ v1.Realtime:\n type: object\n properties:\n mask:\n type: + string\n description: \"Mask defines the vcpu mask expression that defines + which vcpus\\\n \\ are used for realtime. Format matches libvirt's + expressions. Example:\\\n \\ \\\"0-3,^1\\\",\\\"0,2,3\\\",\\\"2-3\\\"\"\n + \ description: Realtime holds the tuning knobs specific for realtime workloads.\n + \ v1.ReloadableComponentConfiguration:\n type: object\n properties:\n + \ restClient:\n $ref: '#/components/schemas/v1.RESTClientConfiguration'\n + \ description: ReloadableComponentConfiguration holds all generic k8s configuration\n + \ options which can be reloaded by components without requiring a restart.\n + \ v1.RemoveVolumeOptions:\n required:\n - name\n type: object\n + \ properties:\n dryRun:\n type: array\n description: + \"When present, indicates that modifications should not be persisted.\\\n \\ + An invalid or unrecognized dryRun directive will result in an error\\\n \\ + response and no further processing of the request. Valid values are:\\\n \\ + - All: all dry run stages will be processed\"\n items:\n type: + string\n default: \"\"\n x-kubernetes-list-type: atomic\n + \ name:\n type: string\n description: Name represents + the name that maps to both the disk and volume\n that should be removed\n + \ default: \"\"\n description: RemoveVolumeOptions is provided when + dynamically hot unplugging\n volume and disk\n v1.ResourceRequirements:\n + \ type: object\n properties:\n limits:\n type: object\n + \ properties: {}\n description: Limits describes the maximum + amount of compute resources allowed.\n Valid resource keys are \"memory\" + and \"cpu\".\n overcommitGuestOverhead:\n type: boolean\n description: + Don't ask the scheduler to take the guest-management overhead\n into + account. Instead put the overhead only into the container's memory\n limit. + This can lead to crashes if all memory is in use on a node. Defaults\n to + false.\n requests:\n type: object\n properties: {}\n + \ description: Requests is a description of the initial vmi resources. + Valid\n resource keys are \"memory\" and \"cpu\".\n v1.RestartOptions:\n + \ type: object\n properties:\n apiVersion:\n type: string\n + \ description: \"APIVersion defines the versioned schema of this representation\\\n + \ \\ of an object. Servers should convert recognized schemas to the + latest\\\n \\ internal value, and may reject unrecognized values. More + info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ dryRun:\n type: array\n description: \"When present, + indicates that modifications should not be persisted.\\\n \\ An invalid + or unrecognized dryRun directive will result in an error\\\n \\ response + and no further processing of the request. Valid values are:\\\n \\ + - All: all dry run stages will be processed\"\n items:\n type: + string\n default: \"\"\n x-kubernetes-list-type: atomic\n + \ gracePeriodSeconds:\n type: integer\n description: \"The + duration in seconds before the object should be force-restarted.\\\n \\ + Value must be non-negative integer. The value zero indicates, restart\\\n \\ + immediately. If this value is nil, the default grace period for deletion\\\n \\ + of the corresponding VMI for the specified type will be used to determine\\\n + \ \\ on how much time to give the VMI to restart. Defaults to a per + object\\\n \\ value if not specified. zero means restart immediately. + Allowed Values:\\\n \\ nil and 0\"\n format: int64\n kind:\n + \ type: string\n description: \"Kind is a string value representing + the REST resource this\\\n \\ object represents. Servers may infer + this from the endpoint the client\\\n \\ submits requests to. Cannot + be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ description: RestartOptions may be provided when deleting an API object.\n + \ v1.Rng:\n type: object\n description: Rng represents the random + device passed from host\n v1.SEV:\n type: object\n properties:\n + \ attestation:\n $ref: '#/components/schemas/v1.SEVAttestation'\n + \ dhCert:\n type: string\n description: Base64 encoded + guest owner's Diffie-Hellman key.\n policy:\n $ref: '#/components/schemas/v1.SEVPolicy'\n + \ session:\n type: string\n description: Base64 encoded + session blob.\n v1.SEVAttestation:\n type: object\n v1.SEVMeasurementInfo:\n + \ type: object\n properties:\n apiMajor:\n type: integer\n + \ description: API major version of the SEV host.\n format: int32\n + \ apiMinor:\n type: integer\n description: API minor version + of the SEV host.\n format: int32\n apiVersion:\n type: + string\n description: \"APIVersion defines the versioned schema of this + representation\\\n \\ of an object. Servers should convert recognized + schemas to the latest\\\n \\ internal value, and may reject unrecognized + values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ buildID:\n type: integer\n description: Build ID of + the SEV host.\n format: int32\n kind:\n type: string\n + \ description: \"Kind is a string value representing the REST resource + this\\\n \\ object represents. Servers may infer this from the endpoint + the client\\\n \\ submits requests to. Cannot be updated. In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ loaderSHA:\n type: string\n description: SHA256 of the + loader binary\n measurement:\n type: string\n description: + Base64 encoded launch measurement of the SEV guest.\n policy:\n type: + integer\n description: Policy of the SEV guest.\n format: int32\n + \ description: SEVMeasurementInfo contains information about the guest launch\n + \ measurement.\n v1.SEVPlatformInfo:\n type: object\n properties:\n + \ apiVersion:\n type: string\n description: \"APIVersion + defines the versioned schema of this representation\\\n \\ of an object. + Servers should convert recognized schemas to the latest\\\n \\ internal + value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ certChain:\n type: string\n description: Base64 encoded + SEV certificate chain.\n kind:\n type: string\n description: + \"Kind is a string value representing the REST resource this\\\n \\ + object represents. Servers may infer this from the endpoint the client\\\n \\ + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ pdh:\n type: string\n description: Base64 encoded platform + Diffie-Hellman key.\n description: SEVPlatformInfo contains information about + the AMD SEV features\n for the node.\n v1.SEVPolicy:\n type: object\n + \ properties:\n encryptedState:\n type: boolean\n description: + SEV-ES is required. Defaults to false.\n v1.SEVSecretOptions:\n type: + object\n properties:\n header:\n type: string\n description: + Base64 encoded header needed to decrypt the secret.\n secret:\n type: + string\n description: Base64 encoded encrypted launch secret.\n description: + SEVSecretOptions is used to provide a secret for a running guest.\n v1.SEVSessionOptions:\n + \ type: object\n properties:\n dhCert:\n type: string\n + \ description: Base64 encoded guest owner's Diffie-Hellman key.\n session:\n + \ type: string\n description: Base64 encoded session blob.\n + \ description: SEVSessionOptions is used to provide SEV session parameters.\n + \ v1.SMBiosConfiguration:\n type: object\n properties:\n family:\n + \ type: string\n manufacturer:\n type: string\n product:\n + \ type: string\n sku:\n type: string\n version:\n + \ type: string\n v1.SSHPublicKeyAccessCredential:\n required:\n + \ - propagationMethod\n - source\n type: object\n properties:\n + \ propagationMethod:\n $ref: '#/components/schemas/v1.SSHPublicKeyAccessCredentialPropagationMethod'\n + \ source:\n $ref: '#/components/schemas/v1.SSHPublicKeyAccessCredentialSource'\n + \ description: SSHPublicKeyAccessCredential represents a source and propagation\n + \ method for injecting ssh public keys into a vm guest\n v1.SSHPublicKeyAccessCredentialPropagationMethod:\n + \ type: object\n properties:\n configDrive:\n $ref: '#/components/schemas/v1.ConfigDriveSSHPublicKeyAccessCredentialPropagation'\n + \ noCloud:\n $ref: '#/components/schemas/v1.NoCloudSSHPublicKeyAccessCredentialPropagation'\n + \ qemuGuestAgent:\n $ref: '#/components/schemas/v1.QemuGuestAgentSSHPublicKeyAccessCredentialPropagation'\n + \ description: SSHPublicKeyAccessCredentialPropagationMethod represents the + method\n used to inject a ssh public key into the vm guest. Only one of + its members\n may be specified.\n v1.SSHPublicKeyAccessCredentialSource:\n + \ type: object\n properties:\n secret:\n $ref: '#/components/schemas/v1.AccessCredentialSecretSource'\n + \ description: SSHPublicKeyAccessCredentialSource represents where to retrieve\n + \ the ssh key credentials Only one of its members may be specified.\n v1.SeccompConfiguration:\n + \ type: object\n properties:\n virtualMachineInstanceProfile:\n + \ $ref: '#/components/schemas/v1.VirtualMachineInstanceProfile'\n description: + SeccompConfiguration holds Seccomp configuration for Kubevirt components\n v1.SecretVolumeSource:\n + \ type: object\n properties:\n optional:\n type: boolean\n + \ description: Specify whether the Secret or it's keys must be defined\n + \ secretName:\n type: string\n description: \"Name of + the secret in the pod's namespace to use. More info:\\\n \\ https://kubernetes.io/docs/concepts/storage/volumes#secret\"\n + \ volumeLabel:\n type: string\n description: \"The volume + label of the resulting disk inside the VMI. Different\\\n \\ bootstrapping + mechanisms require different values. Typical values are\\\n \\ \\\"cidata\\\" + (cloud-init), \\\"config-2\\\" (cloud-init) or \\\"OEMDRV\\\" (kickstart).\"\n + \ description: SecretVolumeSource adapts a Secret into a volume.\n v1.ServiceAccountVolumeSource:\n + \ type: object\n properties:\n serviceAccountName:\n type: + string\n description: \"Name of the service account in the pod's namespace + to use.\\\n \\ More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/\"\n + \ description: ServiceAccountVolumeSource adapts a ServiceAccount into a volume.\n + \ v1.SoundDevice:\n required:\n - name\n type: object\n properties:\n + \ model:\n type: string\n description: \"We only support + ich9 or ac97. If SoundDevice is not set: No\\\n \\ sound card is emulated. + If SoundDevice is set but Model is not: ich9\"\n name:\n type: + string\n description: User's defined name for this sound device\n default: + \"\"\n description: Represents the user's configuration to emulate sound + cards in the\n VMI.\n v1.StartOptions:\n type: object\n properties:\n + \ apiVersion:\n type: string\n description: \"APIVersion + defines the versioned schema of this representation\\\n \\ of an object. + Servers should convert recognized schemas to the latest\\\n \\ internal + value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ dryRun:\n type: array\n description: \"When present, + indicates that modifications should not be persisted.\\\n \\ An invalid + or unrecognized dryRun directive will result in an error\\\n \\ response + and no further processing of the request. Valid values are:\\\n \\ + - All: all dry run stages will be processed\"\n items:\n type: + string\n default: \"\"\n x-kubernetes-list-type: atomic\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ paused:\n type: boolean\n description: Indicates that + VM will be started in paused state.\n description: StartOptions may be provided + on start request.\n v1.StopOptions:\n type: object\n properties:\n + \ apiVersion:\n type: string\n description: \"APIVersion + defines the versioned schema of this representation\\\n \\ of an object. + Servers should convert recognized schemas to the latest\\\n \\ internal + value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ dryRun:\n type: array\n description: \"When present, + indicates that modifications should not be persisted.\\\n \\ An invalid + or unrecognized dryRun directive will result in an error\\\n \\ response + and no further processing of the request. Valid values are:\\\n \\ + - All: all dry run stages will be processed\"\n items:\n type: + string\n default: \"\"\n x-kubernetes-list-type: atomic\n + \ gracePeriod:\n type: integer\n description: this updates + the VMIs terminationGracePeriodSeconds during\n shutdown\n format: + int64\n kind:\n type: string\n description: \"Kind is + a string value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ description: StopOptions may be provided when deleting an API object.\n + \ v1.SupportContainerResources:\n required:\n - resources\n - + type\n type: object\n properties:\n resources:\n $ref: + '#/components/schemas/k8s.io.api.core.v1.ResourceRequirements'\n type:\n + \ type: string\n default: \"\"\n description: SupportContainerResources + are used to specify the cpu/memory request\n and limits for the containers + that support various features of Virtual Machines.\n These containers are + usually idle and don't require a lot of memory or cpu.\n v1.SyNICTimer:\n type: + object\n properties:\n direct:\n $ref: '#/components/schemas/v1.FeatureState'\n + \ enabled:\n type: boolean\n v1.SysprepSource:\n type: + object\n properties:\n configMap:\n $ref: '#/components/schemas/k8s.io.api.core.v1.LocalObjectReference'\n + \ secret:\n $ref: '#/components/schemas/k8s.io.api.core.v1.LocalObjectReference'\n + \ description: Represents a Sysprep volume source.\n v1.TLSConfiguration:\n + \ type: object\n properties:\n ciphers:\n type: array\n + \ items:\n type: string\n default: \"\"\n x-kubernetes-list-type: + set\n minTLSVersion:\n type: string\n description: |-\n + \ MinTLSVersion is a way to specify the minimum protocol version that + is acceptable for TLS connections. Protocol versions are based on the following + most common TLS configurations:\n\n https://ssl-config.mozilla.org/\n\n + \ Note that SSLv3.0 is not a supported protocol version due to well + known vulnerabilities such as POODLE: https://en.wikipedia.org/wiki/POODLE\n description: + TLSConfiguration holds TLS options\n v1.TPMDevice:\n type: object\n properties:\n + \ persistent:\n type: boolean\n description: Persistent + indicates the state of the TPM device should be\n kept accross reboots + Defaults to false\n v1.Timer:\n type: object\n properties:\n hpet:\n + \ $ref: '#/components/schemas/v1.HPETTimer'\n hyperv:\n $ref: + '#/components/schemas/v1.HypervTimer'\n kvm:\n $ref: '#/components/schemas/v1.KVMTimer'\n + \ pit:\n $ref: '#/components/schemas/v1.PITTimer'\n rtc:\n + \ $ref: '#/components/schemas/v1.RTCTimer'\n description: Represents + all available timers in a vmi.\n v1.TokenBucketRateLimiter:\n required:\n + \ - burst\n - qps\n type: object\n properties:\n burst:\n + \ type: integer\n description: \"Maximum burst for throttle. + If it's zero, the component default\\\n \\ will be used\"\n format: + int32\n default: 0\n qps:\n type: number\n description: + \"QPS indicates the maximum QPS to the apiserver from this client.\\\n \\ + If it's zero, the component default will be used\"\n format: float\n + \ default: 0.0\n v1.TopologyHints:\n type: object\n properties:\n + \ tscFrequency:\n type: integer\n format: int64\n v1.USBHostDevice:\n + \ required:\n - resourceName\n type: object\n properties:\n + \ externalResourceProvider:\n type: boolean\n description: + \"If true, KubeVirt will leave the allocation and monitoring\\\n \\ + to an external device plugin\"\n resourceName:\n type: string\n + \ description: \"Identifies the list of USB host devices. e.g: kubevirt.io/storage,\\\n + \ \\ kubevirt.io/bootable-usb, etc\"\n default: \"\"\n selectors:\n + \ type: array\n items:\n $ref: '#/components/schemas/v1.USBSelector'\n + \ x-kubernetes-list-type: atomic\n v1.USBSelector:\n required:\n + \ - product\n - vendor\n type: object\n properties:\n product:\n + \ type: string\n default: \"\"\n vendor:\n type: + string\n default: \"\"\n v1.UnpauseOptions:\n type: object\n + \ properties:\n apiVersion:\n type: string\n description: + \"APIVersion defines the versioned schema of this representation\\\n \\ + of an object. Servers should convert recognized schemas to the latest\\\n \\ + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ dryRun:\n type: array\n description: \"When present, + indicates that modifications should not be persisted.\\\n \\ An invalid + or unrecognized dryRun directive will result in an error\\\n \\ response + and no further processing of the request. Valid values are:\\\n \\ + - All: all dry run stages will be processed\"\n items:\n type: + string\n default: \"\"\n x-kubernetes-list-type: atomic\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ description: UnpauseOptions may be provided on unpause request.\n v1.UserPasswordAccessCredential:\n + \ required:\n - propagationMethod\n - source\n type: object\n + \ properties:\n propagationMethod:\n $ref: '#/components/schemas/v1.UserPasswordAccessCredentialPropagationMethod'\n + \ source:\n $ref: '#/components/schemas/v1.UserPasswordAccessCredentialSource'\n + \ description: UserPasswordAccessCredential represents a source and propagation\n + \ method for injecting user passwords into a vm guest Only one of its members\n + \ may be specified.\n v1.UserPasswordAccessCredentialPropagationMethod:\n + \ type: object\n properties:\n qemuGuestAgent:\n $ref: + '#/components/schemas/v1.QemuGuestAgentUserPasswordAccessCredentialPropagation'\n + \ description: UserPasswordAccessCredentialPropagationMethod represents the + method\n used to inject a user passwords into the vm guest. Only one of + its members\n may be specified.\n v1.UserPasswordAccessCredentialSource:\n + \ type: object\n properties:\n secret:\n $ref: '#/components/schemas/v1.AccessCredentialSecretSource'\n + \ description: UserPasswordAccessCredentialSource represents where to retrieve\n + \ the user password credentials Only one of its members may be specified.\n + \ v1.VGPUDisplayOptions:\n type: object\n properties:\n enabled:\n + \ type: boolean\n description: Enabled determines if a display + addapter backed by a vGPU should\n be enabled or disabled on the guest. + Defaults to true.\n ramFB:\n $ref: '#/components/schemas/v1.FeatureState'\n + \ v1.VGPUOptions:\n type: object\n properties:\n display:\n + \ $ref: '#/components/schemas/v1.VGPUDisplayOptions'\n v1.VirtualMachine:\n + \ required:\n - spec\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1.VirtualMachineSpec'\n + \ status:\n $ref: '#/components/schemas/v1.VirtualMachineStatus'\n + \ description: VirtualMachine handles the VirtualMachines that are not running\n + \ or are in a stopped state The VirtualMachine contains the template to + create\n the VirtualMachineInstance. It also mirrors the running state + of the created\n VirtualMachineInstance in its status.\n v1.VirtualMachineCondition:\n + \ required:\n - status\n - type\n type: object\n properties:\n + \ message:\n type: string\n reason:\n type: string\n + \ status:\n type: string\n default: \"\"\n type:\n + \ type: string\n default: \"\"\n description: VirtualMachineCondition + represents the state of VirtualMachine\n v1.VirtualMachineInstance:\n required:\n + \ - spec\n type: object\n properties:\n apiVersion:\n type: + string\n description: \"APIVersion defines the versioned schema of this + representation\\\n \\ of an object. Servers should convert recognized + schemas to the latest\\\n \\ internal value, and may reject unrecognized + values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceSpec'\n + \ status:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceStatus'\n + \ description: VirtualMachineInstance is *the* VirtualMachineInstance Definition.\n + \ It represents a virtual machine in the runtime environment of kubernetes.\n + \ v1.VirtualMachineInstanceCondition:\n required:\n - status\n - + type\n type: object\n properties:\n message:\n type: + string\n reason:\n type: string\n status:\n type: + string\n default: \"\"\n type:\n type: string\n default: + \"\"\n v1.VirtualMachineInstanceFileSystem:\n required:\n - diskName\n + \ - fileSystemType\n - mountPoint\n - totalBytes\n - usedBytes\n + \ type: object\n properties:\n disk:\n type: array\n + \ items:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceFileSystemDisk'\n + \ diskName:\n type: string\n default: \"\"\n fileSystemType:\n + \ type: string\n default: \"\"\n mountPoint:\n type: + string\n default: \"\"\n totalBytes:\n type: integer\n + \ format: int32\n default: 0\n usedBytes:\n type: + integer\n format: int32\n default: 0\n description: VirtualMachineInstanceFileSystem + represents guest os disk\n v1.VirtualMachineInstanceFileSystemDisk:\n required:\n + \ - busType\n type: object\n properties:\n busType:\n type: + string\n default: \"\"\n serial:\n type: string\n description: + VirtualMachineInstanceFileSystemDisk represents the guest os FS\n disks\n + \ v1.VirtualMachineInstanceFileSystemInfo:\n required:\n - disks\n + \ type: object\n properties:\n disks:\n type: array\n + \ items:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceFileSystem'\n + \ description: VirtualMachineInstanceFileSystemInfo represents information + regarding\n single guest os filesystem\n v1.VirtualMachineInstanceFileSystemList:\n + \ required:\n - items\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceFileSystem'\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VirtualMachineInstanceFileSystemList comprises the list of + all\n filesystems on guest machine\n v1.VirtualMachineInstanceGuestAgentInfo:\n + \ type: object\n properties:\n apiVersion:\n type: string\n + \ description: \"APIVersion defines the versioned schema of this representation\\\n + \ \\ of an object. Servers should convert recognized schemas to the + latest\\\n \\ internal value, and may reject unrecognized values. More + info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ fsFreezeStatus:\n type: string\n description: FSFreezeStatus + is the state of the fs of the guest it can be\n either frozen or thawed\n + \ fsInfo:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceFileSystemInfo'\n + \ guestAgentVersion:\n type: string\n description: GAVersion + is a version of currently installed guest agent\n hostname:\n type: + string\n description: Hostname represents FQDN of a guest\n kind:\n + \ type: string\n description: \"Kind is a string value representing + the REST resource this\\\n \\ object represents. Servers may infer + this from the endpoint the client\\\n \\ submits requests to. Cannot + be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ os:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceGuestOSInfo'\n + \ supportedCommands:\n type: array\n description: Return + command list the guest agent supports\n items:\n $ref: '#/components/schemas/v1.GuestAgentCommandInfo'\n + \ x-kubernetes-list-type: atomic\n timezone:\n type: string\n + \ description: Timezone is guest os current timezone\n userList:\n + \ type: array\n description: UserList is a list of active guest + OS users\n items:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceGuestOSUser'\n + \ description: VirtualMachineInstanceGuestAgentInfo represents information + from\n the installed guest agent\n v1.VirtualMachineInstanceGuestOSInfo:\n + \ type: object\n properties:\n id:\n type: string\n description: + Guest OS Id\n kernelRelease:\n type: string\n description: + Guest OS Kernel Release\n kernelVersion:\n type: string\n description: + Kernel version of the Guest OS\n machine:\n type: string\n description: + Machine type of the Guest OS\n name:\n type: string\n description: + Name of the Guest OS\n prettyName:\n type: string\n description: + Guest OS Pretty Name\n version:\n type: string\n description: + Guest OS Version\n versionId:\n type: string\n description: + Version ID of the Guest OS\n v1.VirtualMachineInstanceGuestOSUser:\n required:\n + \ - userName\n type: object\n properties:\n domain:\n type: + string\n loginTime:\n type: number\n format: double\n + \ userName:\n type: string\n default: \"\"\n description: + VirtualMachineGuestOSUser is the single user of the guest os\n v1.VirtualMachineInstanceGuestOSUserList:\n + \ required:\n - items\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceGuestOSUser'\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VirtualMachineInstanceGuestOSUserList comprises the list of + all\n active users on guest machine\n v1.VirtualMachineInstanceList:\n + \ required:\n - items\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1.VirtualMachineInstance'\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VirtualMachineInstanceList is a list of VirtualMachines\n v1.VirtualMachineInstanceMigration:\n + \ required:\n - spec\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceMigrationSpec'\n + \ status:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceMigrationStatus'\n + \ description: VirtualMachineInstanceMigration represents the object tracking\n + \ a VMI's migration to another host in the cluster\n v1.VirtualMachineInstanceMigrationCondition:\n + \ required:\n - status\n - type\n type: object\n properties:\n + \ message:\n type: string\n reason:\n type: string\n + \ status:\n type: string\n default: \"\"\n type:\n + \ type: string\n default: \"\"\n v1.VirtualMachineInstanceMigrationList:\n + \ required:\n - items\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceMigration'\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VirtualMachineInstanceMigrationList is a list of VirtualMachineMigrations\n + \ v1.VirtualMachineInstanceMigrationPhaseTransitionTimestamp:\n type: object\n + \ properties:\n phase:\n type: string\n description: + \"Phase is the status of the VirtualMachineInstanceMigrationPhase\\\n \\ + in kubernetes world. It is not the VirtualMachineInstanceMigrationPhase\\\n \\ + status, but partially correlates to it.\"\n phaseTransitionTimestamp:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ description: VirtualMachineInstanceMigrationPhaseTransitionTimestamp gives + a\n timestamp in relation to when a phase is set on a vmi\n v1.VirtualMachineInstanceMigrationSpec:\n + \ type: object\n properties:\n vmiName:\n type: string\n + \ description: The name of the VMI to perform the migration on. VMI must + exist\n in the migration objects namespace\n v1.VirtualMachineInstanceMigrationState:\n + \ type: object\n properties:\n abortRequested:\n type: + boolean\n description: Indicates that the migration has been requested + to abort\n abortStatus:\n type: string\n description: + Indicates the final status of the live migration abortion\n completed:\n + \ type: boolean\n description: Indicates the migration completed\n + \ endTimestamp:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ failed:\n type: boolean\n description: Indicates that + the migration failed\n failureReason:\n type: string\n description: + Contains the reason why the migration failed\n migrationConfiguration:\n + \ $ref: '#/components/schemas/v1.MigrationConfiguration'\n migrationPolicyName:\n + \ type: string\n description: \"Name of the migration policy. + If string is empty, no policy\\\n \\ is matched\"\n migrationUid:\n + \ type: string\n description: The VirtualMachineInstanceMigration + object associated with\n this migration\n mode:\n type: + string\n description: Lets us know if the vmi is currently running pre + or post copy\n migration\n sourceNode:\n type: string\n + \ description: The source node that the VMI originated on\n sourcePod:\n + \ type: string\n startTimestamp:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ targetAttachmentPodUID:\n type: string\n description: + The UID of the target attachment pod for hotplug volumes\n targetCPUSet:\n + \ type: array\n description: \"If the VMI requires dedicated + CPUs, this field will hold the\\\n \\ dedicated CPU set on the target + node\"\n items:\n type: integer\n format: int32\n + \ default: 0\n x-kubernetes-list-type: atomic\n targetDirectMigrationNodePorts:\n + \ type: object\n additionalProperties:\n type: integer\n + \ format: int32\n default: 0\n description: The + list of ports opened for live migration on the destination\n node\n + \ targetNode:\n type: string\n description: The target + node that the VMI is moving to\n targetNodeAddress:\n type: string\n + \ description: The address of the target node to use for the migration\n + \ targetNodeDomainDetected:\n type: boolean\n description: + The Target Node has seen the Domain Start Event\n targetNodeDomainReadyTimestamp:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ targetNodeTopology:\n type: string\n description: \"If + the VMI requires dedicated CPUs, this field will hold the\\\n \\ numa + topology on the target node\"\n targetPod:\n type: string\n description: + The target pod that the VMI is moving to\n v1.VirtualMachineInstanceMigrationStatus:\n + \ type: object\n properties:\n conditions:\n type: array\n + \ items:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceMigrationCondition'\n + \ migrationState:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceMigrationState'\n + \ phase:\n type: string\n phaseTransitionTimestamps:\n type: + array\n description: PhaseTransitionTimestamp is the timestamp of when + the last\n phase change occurred\n items:\n $ref: + '#/components/schemas/v1.VirtualMachineInstanceMigrationPhaseTransitionTimestamp'\n + \ x-kubernetes-list-type: atomic\n description: VirtualMachineInstanceMigration + reprents information pertaining\n to a VMI's migration.\n v1.VirtualMachineInstanceNetworkInterface:\n + \ type: object\n properties:\n infoSource:\n type: string\n + \ description: \"Specifies the origin of the interface data collected. + values:\\\n \\ domain, guest-agent, multus-status.\"\n interfaceName:\n + \ type: string\n description: The interface name inside the Virtual + Machine\n ipAddress:\n type: string\n description: IP + address of a Virtual Machine interface. It is always the\n first item + of IPs\n ipAddresses:\n type: array\n description: List + of all IP addresses of a Virtual Machine interface\n items:\n type: + string\n default: \"\"\n mac:\n type: string\n description: + Hardware address of a Virtual Machine interface\n name:\n type: + string\n description: \"Name of the interface, corresponds to name of + the network\\\n \\ assigned to the interface\"\n queueCount:\n + \ type: integer\n description: Specifies how many queues are + allocated by MultiQueue\n format: int32\n v1.VirtualMachineInstancePhaseTransitionTimestamp:\n + \ type: object\n properties:\n phase:\n type: string\n + \ description: \"Phase is the status of the VirtualMachineInstance in + kubernetes\\\n \\ world. It is not the VirtualMachineInstance status, + but partially correlates\\\n \\ to it.\"\n phaseTransitionTimestamp:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ description: VirtualMachineInstancePhaseTransitionTimestamp gives a timestamp\n + \ in relation to when a phase is set on a vmi\n v1.VirtualMachineInstancePreset:\n + \ type: object\n properties:\n apiVersion:\n type: string\n + \ description: \"APIVersion defines the versioned schema of this representation\\\n + \ \\ of an object. Servers should convert recognized schemas to the + latest\\\n \\ internal value, and may reject unrecognized values. More + info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1.VirtualMachineInstancePresetSpec'\n + \ description: |-\n Deprecated for removal in v2, please use VirtualMachineInstanceType + and VirtualMachinePreference instead.\n\n VirtualMachineInstancePreset + defines a VMI spec.domain to be applied to all VMIs that match the provided label + selector More info: https://kubevirt.io/user-guide/virtual_machines/presets/#overrides\n + \ v1.VirtualMachineInstancePresetList:\n required:\n - items\n type: + object\n properties:\n apiVersion:\n type: string\n description: + \"APIVersion defines the versioned schema of this representation\\\n \\ + of an object. Servers should convert recognized schemas to the latest\\\n \\ + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1.VirtualMachineInstancePreset'\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VirtualMachineInstancePresetList is a list of VirtualMachinePresets\n + \ v1.VirtualMachineInstancePresetSpec:\n required:\n - selector\n + \ type: object\n properties:\n domain:\n $ref: '#/components/schemas/v1.DomainSpec'\n + \ selector:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector'\n + \ v1.VirtualMachineInstanceProfile:\n type: object\n properties:\n + \ customProfile:\n $ref: '#/components/schemas/v1.CustomProfile'\n + \ v1.VirtualMachineInstanceReplicaSet:\n required:\n - spec\n type: + object\n properties:\n apiVersion:\n type: string\n description: + \"APIVersion defines the versioned schema of this representation\\\n \\ + of an object. Servers should convert recognized schemas to the latest\\\n \\ + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceReplicaSetSpec'\n + \ status:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceReplicaSetStatus'\n + \ description: VirtualMachineInstance is *the* VirtualMachineInstance Definition.\n + \ It represents a virtual machine in the runtime environment of kubernetes.\n + \ v1.VirtualMachineInstanceReplicaSetCondition:\n required:\n - status\n + \ - type\n type: object\n properties:\n message:\n type: + string\n reason:\n type: string\n status:\n type: + string\n default: \"\"\n type:\n type: string\n default: + \"\"\n v1.VirtualMachineInstanceReplicaSetList:\n required:\n - items\n + \ type: object\n properties:\n apiVersion:\n type: string\n + \ description: \"APIVersion defines the versioned schema of this representation\\\n + \ \\ of an object. Servers should convert recognized schemas to the + latest\\\n \\ internal value, and may reject unrecognized values. More + info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceReplicaSet'\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VMIList is a list of VMIs\n v1.VirtualMachineInstanceReplicaSetSpec:\n + \ required:\n - selector\n - template\n type: object\n properties:\n + \ paused:\n type: boolean\n description: Indicates that + the replica set is paused.\n replicas:\n type: integer\n description: + Number of desired pods. This is a pointer to distinguish between\n explicit + zero and not specified. Defaults to 1.\n format: int32\n selector:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector'\n + \ template:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceTemplateSpec'\n + \ v1.VirtualMachineInstanceReplicaSetStatus:\n type: object\n properties:\n + \ conditions:\n type: array\n items:\n $ref: + '#/components/schemas/v1.VirtualMachineInstanceReplicaSetCondition'\n labelSelector:\n + \ type: string\n description: Canonical form of the label selector + for HPA which consumes\n it through the scale subresource.\n readyReplicas:\n + \ type: integer\n description: The number of ready replicas for + this replica set.\n format: int32\n replicas:\n type: + integer\n description: Total number of non-terminated pods targeted by + this deployment\n (their labels match the selector).\n format: + int32\n v1.VirtualMachineInstanceSpec:\n required:\n - domain\n type: + object\n properties:\n accessCredentials:\n type: array\n + \ description: Specifies a set of public keys to inject into the vm guest\n + \ items:\n $ref: '#/components/schemas/v1.AccessCredential'\n + \ x-kubernetes-list-type: atomic\n affinity:\n $ref: '#/components/schemas/k8s.io.api.core.v1.Affinity'\n + \ architecture:\n type: string\n description: Specifies + the architecture of the vm guest you are attempting\n to run. Defaults + to the compiled architecture of the KubeVirt components\n dnsConfig:\n + \ $ref: '#/components/schemas/k8s.io.api.core.v1.PodDNSConfig'\n dnsPolicy:\n + \ type: string\n description: |-\n Set DNS policy + for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', + 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be + merged with the policy selected with DNSPolicy. To have DNS options set along + with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\n\n + \ Possible enum values:\n - `\"ClusterFirst\"` indicates + that the pod should use cluster DNS first unless hostNetwork is true, if it is + available, then fall back on the default (as determined by kubelet) DNS settings.\n + \ - `\"ClusterFirstWithHostNet\"` indicates that the pod should use + cluster DNS first, if it is available, then fall back on the default (as determined + by kubelet) DNS settings.\n - `\"Default\"` indicates that the pod + should use the default (as determined by kubelet) DNS settings.\n - + `\"None\"` indicates that the pod should use empty DNS settings. DNS parameters + such as nameservers and search paths should be defined via DNSConfig.\n enum:\n + \ - ClusterFirst\n - ClusterFirstWithHostNet\n - Default\n + \ - None\n domain:\n $ref: '#/components/schemas/v1.DomainSpec'\n + \ evictionStrategy:\n type: string\n description: \"EvictionStrategy + describes the strategy to follow when a node\\\n \\ drain occurs. The + possible options are: - \\\"None\\\": No action will be\\\n \\ taken, + according to the specified 'RunStrategy' the VirtualMachine will\\\n \\ + be restarted or shutdown. - \\\"LiveMigrate\\\": the VirtualMachineInstance\\\n + \ \\ will be migrated instead of being shutdown. - \\\"LiveMigrateIfPossible\\\"\\\n + \ : the same as \\\"LiveMigrate\\\" but only if the VirtualMachine is + Live-Migratable,\\\n \\ otherwise it will behave as \\\"None\\\". - + \\\"External\\\": the VirtualMachineInstance\\\n \\ will be protected + by a PDB and `vmi.Status.EvacuationNodeName` will\\\n \\ be set on + eviction. This is mainly useful for cluster-api-provider-kubevirt\\\n \\ + (capk) which needs a way for VMI's to be blocked from eviction, yet\\\n \\ + signal capk that eviction has been called on the VMI so the capk controller\\\n + \ \\ can handle tearing the VMI down. Details can be found in the commit\\\n + \ \\ description https://github.com/kubevirt/kubevirt/commit/c1d77face705c8b126696bac9a3ee3825f27f1fa.\"\n + \ hostname:\n type: string\n description: \"Specifies + the hostname of the vmi If not specified, the hostname\\\n \\ will + be set to the name of the vmi, if dhcp or cloud-init is configured\\\n \\ + properly.\"\n livenessProbe:\n $ref: '#/components/schemas/v1.Probe'\n + \ networks:\n type: array\n description: List of networks + that can be attached to a vm's virtual interface.\n items:\n $ref: + '#/components/schemas/v1.Network'\n nodeSelector:\n type: object\n + \ additionalProperties:\n type: string\n default: + \"\"\n description: \"NodeSelector is a selector which must be true for + the vmi\\\n \\ to fit on a node. Selector which must match a node's + labels for the\\\n \\ vmi to be scheduled on that node. More info: + https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\"\n priorityClassName:\n + \ type: string\n description: \"If specified, indicates the pod's + priority. If not specified,\\\n \\ the pod priority will be default + or zero if there is no default.\"\n readinessProbe:\n $ref: '#/components/schemas/v1.Probe'\n + \ schedulerName:\n type: string\n description: \"If specified, + the VMI will be dispatched by specified scheduler.\\\n \\ If not specified, + the VMI will be dispatched by default scheduler.\"\n startStrategy:\n type: + string\n description: StartStrategy can be set to \"Paused\" if Virtual + Machine should\n be started in paused state.\n subdomain:\n + \ type: string\n description: \"If specified, the fully qualified + vmi hostname will be \\\"\\\n ...svc.\\\". If not\\\n \\ specified, the vmi will not have a domainname + at all. The DNS entry\\\n \\ will resolve to the vmi, no matter if + the vmi itself can pick up a hostname.\"\n terminationGracePeriodSeconds:\n + \ type: integer\n description: Grace period observed after signalling + a VirtualMachineInstance\n to stop after which the VirtualMachineInstance + is force terminated.\n format: int64\n tolerations:\n type: + array\n description: \"If toleration is specified, obey all the toleration + rules.\"\n items:\n $ref: '#/components/schemas/k8s.io.api.core.v1.Toleration'\n + \ topologySpreadConstraints:\n type: array\n description: + TopologySpreadConstraints describes how a group of VMIs will\n be spread + across a given topology domains. K8s scheduler will schedule\n VMI + pods in a way which abides by the constraints.\n items:\n $ref: + '#/components/schemas/k8s.io.api.core.v1.TopologySpreadConstraint'\n x-kubernetes-patch-strategy: + merge\n x-kubernetes-list-type: map\n x-kubernetes-list-map-keys:\n + \ - topologyKey\n - whenUnsatisfiable\n x-kubernetes-patch-merge-key: + topologyKey\n volumes:\n type: array\n description: List + of volumes that can be mounted by disks belonging to the\n vmi.\n items:\n + \ $ref: '#/components/schemas/v1.Volume'\n description: VirtualMachineInstanceSpec + is a description of a VirtualMachineInstance.\n v1.VirtualMachineInstanceStatus:\n + \ type: object\n properties:\n VSOCKCID:\n type: integer\n + \ description: VSOCKCID is used to track the allocated VSOCK CID in the + VM.\n format: int64\n activePods:\n type: object\n additionalProperties:\n + \ type: string\n default: \"\"\n description: ActivePods + is a mapping of pod UID to node name. It is possible\n for multiple + pods to be running for a single VMI during migration.\n conditions:\n type: + array\n description: Conditions are specific points in VirtualMachineInstance's\n + \ pod runtime.\n items:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceCondition'\n + \ currentCPUTopology:\n $ref: '#/components/schemas/v1.CPUTopology'\n + \ evacuationNodeName:\n type: string\n description: EvacuationNodeName + is used to track the eviction process of\n a VMI. It stores the name + of the node that we want to evacuate. It is\n meant to be used by KubeVirt + core components only and can't be set or\n modified by users.\n fsFreezeStatus:\n + \ type: string\n description: FSFreezeStatus is the state of + the fs of the guest it can be\n either frozen or thawed\n guestOSInfo:\n + \ $ref: '#/components/schemas/v1.VirtualMachineInstanceGuestOSInfo'\n + \ interfaces:\n type: array\n description: Interfaces + represent the details of available network interfaces.\n items:\n $ref: + '#/components/schemas/v1.VirtualMachineInstanceNetworkInterface'\n kernelBootStatus:\n + \ $ref: '#/components/schemas/v1.KernelBootStatus'\n launcherContainerImageVersion:\n + \ type: string\n description: LauncherContainerImageVersion indicates + what container image\n is currently active for the vmi.\n machine:\n + \ $ref: '#/components/schemas/v1.Machine'\n memory:\n $ref: + '#/components/schemas/v1.MemoryStatus'\n migrationMethod:\n type: + string\n description: \"Represents the method using which the vmi can + be migrated:\\\n \\ live migration or block migration\"\n migrationState:\n + \ $ref: '#/components/schemas/v1.VirtualMachineInstanceMigrationState'\n + \ migrationTransport:\n type: string\n description: This + represents the migration transport\n nodeName:\n type: string\n + \ description: NodeName is the name where the VirtualMachineInstance is + currently\n running.\n phase:\n type: string\n description: + \"Phase is the status of the VirtualMachineInstance in kubernetes\\\n \\ + world. It is not the VirtualMachineInstance status, but partially correlates\\\n + \ \\ to it.\"\n phaseTransitionTimestamps:\n type: array\n + \ description: PhaseTransitionTimestamp is the timestamp of when the last\n + \ phase change occurred\n items:\n $ref: '#/components/schemas/v1.VirtualMachineInstancePhaseTransitionTimestamp'\n + \ x-kubernetes-list-type: atomic\n qosClass:\n type: string\n + \ description: |-\n The Quality of Service (QOS) classification + assigned to the virtual machine instance based on resource requirements See PodQOSClass + type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md\n\n + \ Possible enum values:\n - `\"BestEffort\"` is the BestEffort + qos class.\n - `\"Burstable\"` is the Burstable qos class.\n - + `\"Guaranteed\"` is the Guaranteed qos class.\n enum:\n - BestEffort\n + \ - Burstable\n - Guaranteed\n reason:\n type: + string\n description: A brief CamelCase message indicating details about + why the\n VMI is in this state. e.g. 'NodeUnresponsive'\n runtimeUser:\n + \ type: integer\n description: RuntimeUser is used to determine + what user will be used in\n launcher\n format: int64\n default: + 0\n selinuxContext:\n type: string\n description: SELinuxContext + is the actual SELinux context of the virt-launcher\n pod\n topologyHints:\n + \ $ref: '#/components/schemas/v1.TopologyHints'\n virtualMachineRevisionName:\n + \ type: string\n description: VirtualMachineRevisionName is used + to get the vm revision of\n the vmi when doing an online vm snapshot\n + \ volumeStatus:\n type: array\n description: VolumeStatus + contains the statuses of all the volumes\n items:\n $ref: + '#/components/schemas/v1.VolumeStatus'\n x-kubernetes-list-type: atomic\n + \ description: VirtualMachineInstanceStatus represents information about the + status\n of a VirtualMachineInstance. Status may trail the actual state + of a system.\n v1.VirtualMachineInstanceTemplateSpec:\n type: object\n + \ properties:\n metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceSpec'\n + \ v1.VirtualMachineList:\n required:\n - items\n type: object\n + \ properties:\n apiVersion:\n type: string\n description: + \"APIVersion defines the versioned schema of this representation\\\n \\ + of an object. Servers should convert recognized schemas to the latest\\\n \\ + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1.VirtualMachine'\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VirtualMachineList is a list of virtualmachines\n v1.VirtualMachineMemoryDumpRequest:\n + \ required:\n - claimName\n - phase\n type: object\n properties:\n + \ claimName:\n type: string\n description: ClaimName is + the name of the pvc that will contain the memory\n dump\n default: + \"\"\n endTimestamp:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ fileName:\n type: string\n description: FileName represents + the name of the output file\n message:\n type: string\n description: + Message is a detailed message about failure of the memory dump\n phase:\n + \ type: string\n description: Phase represents the memory dump + phase\n default: \"\"\n remove:\n type: boolean\n description: + Remove represents request of dissociating the memory dump pvc\n startTimestamp:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ description: VirtualMachineMemoryDumpRequest represent the memory dump request\n + \ phase and info\n v1.VirtualMachineOptions:\n type: object\n properties:\n + \ disableFreePageReporting:\n $ref: '#/components/schemas/v1.DisableFreePageReporting'\n + \ disableSerialConsoleLog:\n $ref: '#/components/schemas/v1.DisableSerialConsoleLog'\n + \ description: VirtualMachineOptions holds the cluster level information regarding\n + \ the virtual machine.\n v1.VirtualMachineSpec:\n required:\n - + template\n type: object\n properties:\n dataVolumeTemplates:\n + \ type: array\n description: dataVolumeTemplates is a list of + dataVolumes that the VirtualMachineInstance\n template can reference. + DataVolumes in this list are dynamically created\n for the VirtualMachine + and are tied to the VirtualMachine's life-cycle.\n items:\n $ref: + '#/components/schemas/v1.DataVolumeTemplateSpec'\n instancetype:\n $ref: + '#/components/schemas/v1.InstancetypeMatcher'\n preference:\n $ref: + '#/components/schemas/v1.PreferenceMatcher'\n runStrategy:\n type: + string\n description: Running state indicates the requested running state + of the\n VirtualMachineInstance mutually exclusive with Running\n running:\n + \ type: boolean\n description: Running controls whether the associatied + VirtualMachineInstance\n is created or not Mutually exclusive with + RunStrategy\n template:\n $ref: '#/components/schemas/v1.VirtualMachineInstanceTemplateSpec'\n + \ updateVolumesStrategy:\n type: string\n description: + UpdateVolumesStrategy is the strategy to apply on volumes updates\n description: + VirtualMachineSpec describes how the proper VirtualMachine should\n look + like\n v1.VirtualMachineStartFailure:\n type: object\n properties:\n + \ consecutiveFailCount:\n type: integer\n format: int32\n + \ lastFailedVMIUID:\n type: string\n retryAfterTimestamp:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ description: VirtualMachineStartFailure tracks VMIs which failed to transition\n + \ successfully to running using the VM status\n v1.VirtualMachineStateChangeRequest:\n + \ required:\n - action\n type: object\n properties:\n action:\n + \ type: string\n description: Indicates the type of action that + is requested. e.g. Start\n or Stop\n default: \"\"\n data:\n + \ type: object\n additionalProperties:\n type: string\n + \ default: \"\"\n description: Provides additional data in + order to perform the Action\n uid:\n type: string\n description: + Indicates the UUID of an existing Virtual Machine Instance\n that this + change request applies to -- if applicable\n v1.VirtualMachineStatus:\n type: + object\n properties:\n conditions:\n type: array\n description: + Hold the state information of the VirtualMachine and its VirtualMachineInstance\n + \ items:\n $ref: '#/components/schemas/v1.VirtualMachineCondition'\n + \ created:\n type: boolean\n description: Created indicates + if the virtual machine is created in the\n cluster\n desiredGeneration:\n + \ type: integer\n description: DesiredGeneration is the generation + which is desired for the\n VMI. This will be used in comparisons with + ObservedGeneration to understand\n when the VMI is out of sync. This + will be changed at the same time as\n ObservedGeneration to remove + errors which could occur if Generation is\n updated through an Update() + before ObservedGeneration in Status.\n format: int64\n memoryDumpRequest:\n + \ $ref: '#/components/schemas/v1.VirtualMachineMemoryDumpRequest'\n observedGeneration:\n + \ type: integer\n description: ObservedGeneration is the generation + observed by the vmi when\n started.\n format: int64\n printableStatus:\n + \ type: string\n description: \"PrintableStatus is a human readable, + high-level representation\\\n \\ of the status of the virtual machine\"\n + \ ready:\n type: boolean\n description: Ready indicates + if the virtual machine is running and ready\n restoreInProgress:\n type: + string\n description: RestoreInProgress is the name of the VirtualMachineRestore\n + \ currently executing\n runStrategy:\n type: string\n + \ description: RunStrategy tracks the last recorded RunStrategy used by + the\n VM. This is needed to correctly process the next strategy (for + now only\n the RerunOnFailure)\n snapshotInProgress:\n type: + string\n description: SnapshotInProgress is the name of the VirtualMachineSnapshot\n + \ currently executing\n startFailure:\n $ref: '#/components/schemas/v1.VirtualMachineStartFailure'\n + \ stateChangeRequests:\n type: array\n description: StateChangeRequests + indicates a list of actions that should\n be taken on a VMI e.g. stop + a specific VMI then start a new one.\n items:\n $ref: '#/components/schemas/v1.VirtualMachineStateChangeRequest'\n + \ volumeRequests:\n type: array\n description: VolumeRequests + indicates a list of volumes add or remove from\n the VMI template and + hotplug on an active running VMI.\n items:\n $ref: '#/components/schemas/v1.VirtualMachineVolumeRequest'\n + \ x-kubernetes-list-type: atomic\n volumeSnapshotStatuses:\n type: + array\n description: VolumeSnapshotStatuses indicates a list of statuses + whether\n snapshotting is supported by each volume.\n items:\n + \ $ref: '#/components/schemas/v1.VolumeSnapshotStatus'\n description: + VirtualMachineStatus represents the status returned by the controller\n to + describe how the VirtualMachine is doing\n v1.VirtualMachineVolumeRequest:\n + \ type: object\n properties:\n addVolumeOptions:\n $ref: + '#/components/schemas/v1.AddVolumeOptions'\n removeVolumeOptions:\n $ref: + '#/components/schemas/v1.RemoveVolumeOptions'\n v1.Volume:\n required:\n + \ - name\n type: object\n properties:\n cloudInitConfigDrive:\n + \ $ref: '#/components/schemas/v1.CloudInitConfigDriveSource'\n cloudInitNoCloud:\n + \ $ref: '#/components/schemas/v1.CloudInitNoCloudSource'\n configMap:\n + \ $ref: '#/components/schemas/v1.ConfigMapVolumeSource'\n containerDisk:\n + \ $ref: '#/components/schemas/v1.ContainerDiskSource'\n dataVolume:\n + \ $ref: '#/components/schemas/v1.DataVolumeSource'\n downwardAPI:\n + \ $ref: '#/components/schemas/v1.DownwardAPIVolumeSource'\n downwardMetrics:\n + \ $ref: '#/components/schemas/v1.DownwardMetricsVolumeSource'\n emptyDisk:\n + \ $ref: '#/components/schemas/v1.EmptyDiskSource'\n ephemeral:\n + \ $ref: '#/components/schemas/v1.EphemeralVolumeSource'\n hostDisk:\n + \ $ref: '#/components/schemas/v1.HostDisk'\n memoryDump:\n $ref: + '#/components/schemas/v1.MemoryDumpVolumeSource'\n name:\n type: + string\n description: \"Volume's name. Must be a DNS_LABEL and unique + within the vmi.\\\n \\ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names\"\n + \ default: \"\"\n persistentVolumeClaim:\n $ref: '#/components/schemas/v1.PersistentVolumeClaimVolumeSource'\n + \ secret:\n $ref: '#/components/schemas/v1.SecretVolumeSource'\n + \ serviceAccount:\n $ref: '#/components/schemas/v1.ServiceAccountVolumeSource'\n + \ sysprep:\n $ref: '#/components/schemas/v1.SysprepSource'\n description: + Volume represents a named volume in a vmi.\n v1.VolumeSnapshotStatus:\n required:\n + \ - enabled\n - name\n type: object\n properties:\n enabled:\n + \ type: boolean\n description: True if the volume supports snapshotting\n + \ default: false\n name:\n type: string\n description: + Volume name\n default: \"\"\n reason:\n type: string\n + \ description: \"Empty if snapshotting is enabled, contains reason otherwise\"\n + \ v1.VolumeStatus:\n required:\n - name\n - target\n type: + object\n properties:\n containerDiskVolume:\n $ref: '#/components/schemas/v1.ContainerDiskInfo'\n + \ hotplugVolume:\n $ref: '#/components/schemas/v1.HotplugVolumeStatus'\n + \ memoryDumpVolume:\n $ref: '#/components/schemas/v1.DomainMemoryDumpInfo'\n + \ message:\n type: string\n description: Message is a + detailed message about the current hotplug volume\n phase\n name:\n + \ type: string\n description: Name is the name of the volume\n + \ default: \"\"\n persistentVolumeClaimInfo:\n $ref: '#/components/schemas/v1.PersistentVolumeClaimInfo'\n + \ phase:\n type: string\n description: Phase is the phase\n + \ reason:\n type: string\n description: Reason is a brief + description of why we are in the current\n hotplug volume phase\n size:\n + \ type: integer\n description: Represents the size of the volume\n + \ format: int64\n target:\n type: string\n description: + \"Target is the target name used when adding the volume to the\\\n \\ + VM, eg: vda\"\n default: \"\"\n description: VolumeStatus represents + information about the status of volumes\n attached to the VirtualMachineInstance.\n + \ v1.Watchdog:\n required:\n - name\n type: object\n properties:\n + \ i6300esb:\n $ref: '#/components/schemas/v1.I6300ESBWatchdog'\n + \ name:\n type: string\n description: Name of the watchdog.\n + \ default: \"\"\n description: Named watchdog device.\n v1alpha1.Condition:\n + \ required:\n - status\n - type\n type: object\n properties:\n + \ message:\n type: string\n reason:\n type: string\n + \ status:\n type: string\n default: \"\"\n type:\n + \ type: string\n default: \"\"\n description: Condition + defines conditions\n v1alpha1.Error:\n type: object\n properties:\n + \ message:\n type: string\n time:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ description: Error is the last error encountered during the snapshot/restore\n + \ v1alpha1.MigrationPolicy:\n required:\n - spec\n type: object\n + \ properties:\n apiVersion:\n type: string\n description: + \"APIVersion defines the versioned schema of this representation\\\n \\ + of an object. Servers should convert recognized schemas to the latest\\\n \\ + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1alpha1.MigrationPolicySpec'\n + \ status:\n $ref: '#/components/schemas/v1alpha1.MigrationPolicyStatus'\n + \ description: MigrationPolicy holds migration policy (i.e. configurations) + to\n apply to a VM or group of VMs\n v1alpha1.MigrationPolicyList:\n + \ required:\n - items\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1alpha1.MigrationPolicy'\n + \ x-kubernetes-list-type: atomic\n kind:\n type: string\n + \ description: \"Kind is a string value representing the REST resource + this\\\n \\ object represents. Servers may infer this from the endpoint + the client\\\n \\ submits requests to. Cannot be updated. In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: MigrationPolicyList is a list of MigrationPolicy\n v1alpha1.MigrationPolicySpec:\n + \ required:\n - selectors\n type: object\n properties:\n allowAutoConverge:\n + \ type: boolean\n allowPostCopy:\n type: boolean\n bandwidthPerMigration:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n + \ completionTimeoutPerGiB:\n type: integer\n format: int64\n + \ selectors:\n $ref: '#/components/schemas/v1alpha1.Selectors'\n + \ v1alpha1.MigrationPolicyStatus:\n type: object\n v1alpha1.PersistentVolumeClaim:\n + \ type: object\n properties:\n metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/k8s.io.api.core.v1.PersistentVolumeClaimSpec'\n + \ v1alpha1.Selectors:\n type: object\n properties:\n namespaceSelector:\n + \ type: object\n additionalProperties:\n type: string\n + \ default: \"\"\n virtualMachineInstanceSelector:\n type: + object\n additionalProperties:\n type: string\n default: + \"\"\n v1alpha1.SnapshotVolumesLists:\n type: object\n properties:\n + \ excludedVolumes:\n type: array\n items:\n type: + string\n default: \"\"\n x-kubernetes-list-type: set\n includedVolumes:\n + \ type: array\n items:\n type: string\n default: + \"\"\n x-kubernetes-list-type: set\n description: SnapshotVolumesLists + includes the list of volumes which were included\n in the snapshot and + volumes which were excluded from the snapshot\n v1alpha1.SourceSpec:\n type: + object\n properties:\n virtualMachine:\n $ref: '#/components/schemas/v1alpha1.VirtualMachine'\n + \ description: SourceSpec contains the appropriate spec for the resource being\n + \ snapshotted\n v1alpha1.VirtualMachine:\n type: object\n properties:\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1.VirtualMachineSpec'\n + \ status:\n $ref: '#/components/schemas/v1.VirtualMachineStatus'\n + \ v1alpha1.VirtualMachineClone:\n required:\n - spec\n type: + object\n properties:\n apiVersion:\n type: string\n description: + \"APIVersion defines the versioned schema of this representation\\\n \\ + of an object. Servers should convert recognized schemas to the latest\\\n \\ + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineCloneSpec'\n + \ status:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineCloneStatus'\n + \ description: VirtualMachineClone is a CRD that clones one VM into another.\n + \ v1alpha1.VirtualMachineCloneList:\n required:\n - items\n type: + object\n properties:\n apiVersion:\n type: string\n description: + \"APIVersion defines the versioned schema of this representation\\\n \\ + of an object. Servers should convert recognized schemas to the latest\\\n \\ + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineClone'\n + \ x-kubernetes-list-type: atomic\n kind:\n type: string\n + \ description: \"Kind is a string value representing the REST resource + this\\\n \\ object represents. Servers may infer this from the endpoint + the client\\\n \\ submits requests to. Cannot be updated. In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VirtualMachineCloneList is a list of MigrationPolicy\n v1alpha1.VirtualMachineCloneSpec:\n + \ required:\n - source\n type: object\n properties:\n annotationFilters:\n + \ type: array\n description: \"Example use: \\\"!some/key*\\\". + For a detailed description, please\\\n \\ refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.\"\n + \ items:\n type: string\n default: \"\"\n x-kubernetes-list-type: + atomic\n labelFilters:\n type: array\n description: \"Example + use: \\\"!some/key*\\\". For a detailed description, please\\\n \\ + refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.\"\n + \ items:\n type: string\n default: \"\"\n x-kubernetes-list-type: + atomic\n newMacAddresses:\n type: object\n additionalProperties:\n + \ type: string\n default: \"\"\n description: \"NewMacAddresses + manually sets that target interfaces' mac\\\n \\ addresses. The key + is the interface name and the value is the new mac\\\n \\ address. + If this field is not specified, a new MAC address will be generated\\\n \\ + automatically, as for any interface that is not included in this map.\"\n newSMBiosSerial:\n + \ type: string\n description: \"NewSMBiosSerial manually sets + that target's SMbios serial.\\\n \\ If this field is not specified, + a new serial will be generated automatically.\"\n source:\n $ref: + '#/components/schemas/k8s.io.api.core.v1.TypedLocalObjectReference'\n target:\n + \ $ref: '#/components/schemas/k8s.io.api.core.v1.TypedLocalObjectReference'\n + \ template:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineCloneTemplateFilters'\n + \ v1alpha1.VirtualMachineCloneStatus:\n type: object\n properties:\n + \ conditions:\n type: array\n items:\n $ref: + '#/components/schemas/v1alpha1.Condition'\n x-kubernetes-list-type: atomic\n + \ creationTime:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ phase:\n type: string\n restoreName:\n type: + string\n snapshotName:\n type: string\n targetName:\n type: + string\n v1alpha1.VirtualMachineCloneTemplateFilters:\n type: object\n + \ properties:\n annotationFilters:\n type: array\n description: + \"Example use: \\\"!some/key*\\\". For a detailed description, please\\\n \\ + refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.\"\n + \ items:\n type: string\n default: \"\"\n x-kubernetes-list-type: + atomic\n labelFilters:\n type: array\n description: \"Example + use: \\\"!some/key*\\\". For a detailed description, please\\\n \\ + refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters.\"\n + \ items:\n type: string\n default: \"\"\n x-kubernetes-list-type: + atomic\n v1alpha1.VirtualMachineExport:\n required:\n - spec\n type: + object\n properties:\n apiVersion:\n type: string\n description: + \"APIVersion defines the versioned schema of this representation\\\n \\ + of an object. Servers should convert recognized schemas to the latest\\\n \\ + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineExportSpec'\n + \ status:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineExportStatus'\n + \ description: VirtualMachineExport defines the operation of exporting a VM + source\n v1alpha1.VirtualMachineExportLink:\n required:\n - cert\n + \ type: object\n properties:\n cert:\n type: string\n + \ description: Cert is the public CA certificate base64 encoded\n default: + \"\"\n manifests:\n type: array\n description: Manifests + is a list of available manifests for the export\n items:\n $ref: + '#/components/schemas/v1alpha1.VirtualMachineExportManifest'\n x-kubernetes-list-type: + map\n x-kubernetes-list-map-keys:\n - type\n volumes:\n + \ type: array\n description: Volumes is a list of available volumes + to export\n items:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineExportVolume'\n + \ x-kubernetes-list-type: map\n x-kubernetes-list-map-keys:\n + \ - name\n description: \"VirtualMachineExportLink contains a list + of volumes available\\\n \\ for export, as well as the URLs to obtain these + volumes\"\n v1alpha1.VirtualMachineExportLinks:\n type: object\n properties:\n + \ external:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineExportLink'\n + \ internal:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineExportLink'\n + \ description: VirtualMachineExportLinks contains the links that point the + exported\n VM resources\n v1alpha1.VirtualMachineExportList:\n required:\n + \ - items\n - metadata\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineExport'\n + \ x-kubernetes-list-type: atomic\n kind:\n type: string\n + \ description: \"Kind is a string value representing the REST resource + this\\\n \\ object represents. Servers may infer this from the endpoint + the client\\\n \\ submits requests to. Cannot be updated. In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VirtualMachineExportList is a list of VirtualMachineExport + resources\n v1alpha1.VirtualMachineExportManifest:\n required:\n - + type\n - url\n type: object\n properties:\n type:\n type: + string\n description: Type is the type of manifest returned\n default: + \"\"\n url:\n type: string\n description: Url is the + url of the endpoint that returns the manifest\n default: \"\"\n description: + VirtualMachineExportManifest contains the type and URL of the exported\n manifest\n + \ v1alpha1.VirtualMachineExportSpec:\n required:\n - source\n type: + object\n properties:\n source:\n $ref: '#/components/schemas/k8s.io.api.core.v1.TypedLocalObjectReference'\n + \ tokenSecretRef:\n type: string\n description: TokenSecretRef + is the name of the custom-defined secret that\n contains the token + used by the export server pod\n ttlDuration:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration'\n + \ description: VirtualMachineExportSpec is the spec for a VirtualMachineExport\n + \ resource\n v1alpha1.VirtualMachineExportStatus:\n type: object\n + \ properties:\n conditions:\n type: array\n items:\n + \ $ref: '#/components/schemas/v1alpha1.Condition'\n x-kubernetes-list-type: + atomic\n links:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineExportLinks'\n + \ phase:\n type: string\n serviceName:\n type: + string\n description: ServiceName is the name of the service created + associated with\n the Virtual Machine export. It will be used to create + the internal URLs\n for downloading the images\n tokenSecretRef:\n + \ type: string\n description: TokenSecretRef is the name of the + secret that contains the\n token used by the export server pod\n ttlExpirationTime:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ virtualMachineName:\n type: string\n description: VirtualMachineName + shows the name of the source virtual machine\n if the source is either + a VirtualMachine or a VirtualMachineSnapshot.\n This is mainly to easily + identify the source VirtualMachine in case of\n a VirtualMachineSnapshot\n + \ description: VirtualMachineExportStatus is the status for a VirtualMachineExport\n + \ resource\n v1alpha1.VirtualMachineExportVolume:\n required:\n + \ - name\n type: object\n properties:\n formats:\n type: + array\n items:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineExportVolumeFormat'\n + \ x-kubernetes-list-type: map\n x-kubernetes-list-map-keys:\n + \ - format\n name:\n type: string\n description: + Name is the name of the exported volume\n default: \"\"\n description: + VirtualMachineExportVolume contains the name and available formats\n for + the exported volume\n v1alpha1.VirtualMachineExportVolumeFormat:\n required:\n + \ - format\n - url\n type: object\n properties:\n format:\n + \ type: string\n description: Format is the format of the image + at the specified URL\n default: \"\"\n url:\n type: string\n + \ description: Url is the url that contains the volume in the format specified\n + \ default: \"\"\n description: VirtualMachineExportVolumeFormat contains + the format type and URL\n to get the volume in that format\n v1alpha1.VirtualMachinePool:\n + \ required:\n - spec\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1alpha1.VirtualMachinePoolSpec'\n + \ status:\n $ref: '#/components/schemas/v1alpha1.VirtualMachinePoolStatus'\n + \ description: VirtualMachinePool resource contains a VirtualMachine configuration\n + \ that can be used to replicate multiple VirtualMachine resources.\n v1alpha1.VirtualMachinePoolCondition:\n + \ required:\n - status\n - type\n type: object\n properties:\n + \ message:\n type: string\n reason:\n type: string\n + \ status:\n type: string\n default: \"\"\n type:\n + \ type: string\n default: \"\"\n v1alpha1.VirtualMachinePoolList:\n + \ required:\n - items\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1alpha1.VirtualMachinePool'\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VirtualMachinePoolList is a list of VirtualMachinePool resources.\n + \ v1alpha1.VirtualMachinePoolSpec:\n required:\n - selector\n - + virtualMachineTemplate\n type: object\n properties:\n paused:\n + \ type: boolean\n description: Indicates that the pool is paused.\n + \ replicas:\n type: integer\n description: Number of desired + pods. This is a pointer to distinguish between\n explicit zero and + not specified. Defaults to 1.\n format: int32\n selector:\n $ref: + '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector'\n virtualMachineTemplate:\n + \ $ref: '#/components/schemas/v1alpha1.VirtualMachineTemplateSpec'\n v1alpha1.VirtualMachinePoolStatus:\n + \ type: object\n properties:\n conditions:\n type: array\n + \ items:\n $ref: '#/components/schemas/v1alpha1.VirtualMachinePoolCondition'\n + \ x-kubernetes-list-type: atomic\n labelSelector:\n type: + string\n description: Canonical form of the label selector for HPA which + consumes\n it through the scale subresource.\n readyReplicas:\n + \ type: integer\n format: int32\n replicas:\n type: + integer\n format: int32\n v1alpha1.VirtualMachineRestore:\n required:\n + \ - spec\n type: object\n properties:\n apiVersion:\n type: + string\n description: \"APIVersion defines the versioned schema of this + representation\\\n \\ of an object. Servers should convert recognized + schemas to the latest\\\n \\ internal value, and may reject unrecognized + values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineRestoreSpec'\n + \ status:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineRestoreStatus'\n + \ description: VirtualMachineRestore defines the operation of restoring a + VM\n v1alpha1.VirtualMachineRestoreList:\n required:\n - items\n + \ - metadata\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineRestore'\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VirtualMachineRestoreList is a list of VirtualMachineRestore + resources\n v1alpha1.VirtualMachineRestoreSpec:\n required:\n - target\n + \ - virtualMachineSnapshotName\n type: object\n properties:\n patches:\n + \ type: array\n description: |-\n If the target for + the restore does not exist, it will be created. Patches holds JSON patches that + would be applied to the target manifest before it's created. Patches should fit + the target's Kind.\n\n Example for a patch: {\"op\": \"replace\", \"path\": + \"/metadata/name\", \"value\": \"new-vm-name\"}\n items:\n type: + string\n default: \"\"\n x-kubernetes-list-type: atomic\n + \ target:\n $ref: '#/components/schemas/k8s.io.api.core.v1.TypedLocalObjectReference'\n + \ virtualMachineSnapshotName:\n type: string\n default: + \"\"\n description: VirtualMachineRestoreSpec is the spec for a VirtualMachineRestoreresource\n + \ v1alpha1.VirtualMachineRestoreStatus:\n type: object\n properties:\n + \ complete:\n type: boolean\n conditions:\n type: + array\n items:\n $ref: '#/components/schemas/v1alpha1.Condition'\n + \ deletedDataVolumes:\n type: array\n items:\n type: + string\n default: \"\"\n restoreTime:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ restores:\n type: array\n items:\n $ref: + '#/components/schemas/v1alpha1.VolumeRestore'\n description: VirtualMachineRestoreStatus + is the spec for a VirtualMachineRestoreresource\n v1alpha1.VirtualMachineSnapshot:\n + \ required:\n - spec\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineSnapshotSpec'\n + \ status:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineSnapshotStatus'\n + \ description: VirtualMachineSnapshot defines the operation of snapshotting + a\n VM\n v1alpha1.VirtualMachineSnapshotContent:\n required:\n + \ - spec\n type: object\n properties:\n apiVersion:\n type: + string\n description: \"APIVersion defines the versioned schema of this + representation\\\n \\ of an object. Servers should convert recognized + schemas to the latest\\\n \\ internal value, and may reject unrecognized + values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineSnapshotContentSpec'\n + \ status:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineSnapshotContentStatus'\n + \ description: VirtualMachineSnapshotContent contains the snapshot data\n + \ v1alpha1.VirtualMachineSnapshotContentList:\n required:\n - items\n + \ - metadata\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineSnapshotContent'\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VirtualMachineSnapshotContentList is a list of VirtualMachineSnapshot\n + \ resources\n v1alpha1.VirtualMachineSnapshotContentSpec:\n required:\n + \ - source\n type: object\n properties:\n source:\n $ref: + '#/components/schemas/v1alpha1.SourceSpec'\n virtualMachineSnapshotName:\n + \ type: string\n volumeBackups:\n type: array\n items:\n + \ $ref: '#/components/schemas/v1alpha1.VolumeBackup'\n description: + VirtualMachineSnapshotContentSpec is the spec for a VirtualMachineSnapshotContent\n + \ resource\n v1alpha1.VirtualMachineSnapshotContentStatus:\n type: + object\n properties:\n creationTime:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ error:\n $ref: '#/components/schemas/v1alpha1.Error'\n readyToUse:\n + \ type: boolean\n volumeSnapshotStatus:\n type: array\n + \ items:\n $ref: '#/components/schemas/v1alpha1.VolumeSnapshotStatus'\n + \ description: VirtualMachineSnapshotContentStatus is the status for a VirtualMachineSnapshotStatus\n + \ resource\n v1alpha1.VirtualMachineSnapshotList:\n required:\n + \ - items\n - metadata\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1alpha1.VirtualMachineSnapshot'\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VirtualMachineSnapshotList is a list of VirtualMachineSnapshot\n + \ resources\n v1alpha1.VirtualMachineSnapshotSpec:\n required:\n + \ - source\n type: object\n properties:\n deletionPolicy:\n + \ type: string\n failureDeadline:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration'\n + \ source:\n $ref: '#/components/schemas/k8s.io.api.core.v1.TypedLocalObjectReference'\n + \ description: VirtualMachineSnapshotSpec is the spec for a VirtualMachineSnapshot\n + \ resource\n v1alpha1.VirtualMachineSnapshotStatus:\n type: object\n + \ properties:\n conditions:\n type: array\n items:\n + \ $ref: '#/components/schemas/v1alpha1.Condition'\n creationTime:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ error:\n $ref: '#/components/schemas/v1alpha1.Error'\n indications:\n + \ type: array\n items:\n type: string\n default: + \"\"\n x-kubernetes-list-type: set\n phase:\n type: string\n + \ readyToUse:\n type: boolean\n snapshotVolumes:\n $ref: + '#/components/schemas/v1alpha1.SnapshotVolumesLists'\n sourceUID:\n type: + string\n virtualMachineSnapshotContentName:\n type: string\n description: + VirtualMachineSnapshotStatus is the status for a VirtualMachineSnapshot\n resource\n + \ v1alpha1.VirtualMachineTemplateSpec:\n type: object\n properties:\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1.VirtualMachineSpec'\n + \ v1alpha1.VolumeBackup:\n required:\n - persistentVolumeClaim\n - + volumeName\n type: object\n properties:\n persistentVolumeClaim:\n + \ $ref: '#/components/schemas/v1alpha1.PersistentVolumeClaim'\n volumeName:\n + \ type: string\n default: \"\"\n volumeSnapshotName:\n + \ type: string\n description: VolumeBackup contains the data neeed + to restore a PVC\n v1alpha1.VolumeRestore:\n required:\n - persistentVolumeClaim\n + \ - volumeName\n - volumeSnapshotName\n type: object\n properties:\n + \ dataVolumeName:\n type: string\n persistentVolumeClaim:\n + \ type: string\n default: \"\"\n volumeName:\n type: + string\n default: \"\"\n volumeSnapshotName:\n type: + string\n default: \"\"\n description: VolumeRestore contains the + data neeed to restore a PVC\n v1alpha1.VolumeSnapshotStatus:\n required:\n + \ - volumeSnapshotName\n type: object\n properties:\n creationTime:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time'\n + \ error:\n $ref: '#/components/schemas/v1alpha1.Error'\n readyToUse:\n + \ type: boolean\n volumeSnapshotName:\n type: string\n + \ default: \"\"\n description: VolumeSnapshotStatus is the status + of a VolumeSnapshot\n v1beta1.CPUInstancetype:\n required:\n - guest\n + \ type: object\n properties:\n dedicatedCPUPlacement:\n type: + boolean\n description: DedicatedCPUPlacement requests the scheduler to + place the VirtualMachineInstance\n on a node with enough dedicated + pCPUs and pin the vCPUs to it.\n guest:\n type: integer\n description: + |-\n Required number of vCPUs to expose to the guest.\n\n The + resulting CPU topology being derived from the optional PreferredCPUTopology attribute + of CPUPreferences that itself defaults to PreferSockets.\n format: int64\n + \ default: 0\n isolateEmulatorThread:\n type: boolean\n + \ description: IsolateEmulatorThread requests one more dedicated pCPU + to be\n allocated for the VMI to place the emulator thread on it.\n + \ model:\n type: string\n description: Model specifies + the CPU model inside the VMI. List of available\n models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. + It\n is possible to specify special cases like \"host-passthrough\" + to get the\n same CPU as the node and \"host-model\" to get CPU closest + to the node one.\n Defaults to host-model.\n numa:\n $ref: + '#/components/schemas/v1.NUMA'\n realtime:\n $ref: '#/components/schemas/v1.Realtime'\n + \ description: |-\n CPUInstancetype contains the CPU related configuration + of a given VirtualMachineInstancetypeSpec.\n\n Guest is a required attribute + and defines the number of vCPUs to be exposed to the guest by the instancetype.\n + \ v1beta1.CPUPreferenceRequirement:\n required:\n - guest\n type: + object\n properties:\n guest:\n type: integer\n description: + Minimal number of vCPUs required by the preference.\n format: int64\n + \ default: 0\n v1beta1.CPUPreferences:\n type: object\n properties:\n + \ preferredCPUFeatures:\n type: array\n description: PreferredCPUFeatures + optionally defines a slice of preferred\n CPU features.\n items:\n + \ $ref: '#/components/schemas/v1.CPUFeature'\n preferredCPUTopology:\n + \ type: string\n description: \"PreferredCPUTopology optionally + defines the preferred guest\\\n \\ visible CPU topology, defaults to + PreferSockets.\"\n spreadOptions:\n $ref: '#/components/schemas/v1beta1.SpreadOptions'\n + \ description: CPUPreferences contains various optional CPU preferences.\n + \ v1beta1.ClockPreferences:\n type: object\n properties:\n preferredClockOffset:\n + \ $ref: '#/components/schemas/v1.ClockOffset'\n preferredTimer:\n + \ $ref: '#/components/schemas/v1.Timer'\n description: ClockPreferences + contains various optional defaults for Clock.\n v1beta1.DataVolumeBlankImage:\n + \ type: object\n description: DataVolumeBlankImage provides the parameters + to create a new raw\n blank image for the PVC\n v1beta1.DataVolumeCheckpoint:\n + \ required:\n - current\n - previous\n type: object\n properties:\n + \ current:\n type: string\n description: Current is the + identifier of the snapshot created for this\n checkpoint.\n default: + \"\"\n previous:\n type: string\n description: Previous + is the identifier of the snapshot from the previous\n checkpoint.\n + \ default: \"\"\n description: DataVolumeCheckpoint defines a stage + in a warm migration.\n v1beta1.DataVolumeSource:\n type: object\n properties:\n + \ blank:\n $ref: '#/components/schemas/v1beta1.DataVolumeBlankImage'\n + \ gcs:\n $ref: '#/components/schemas/v1beta1.DataVolumeSourceGCS'\n + \ http:\n $ref: '#/components/schemas/v1beta1.DataVolumeSourceHTTP'\n + \ imageio:\n $ref: '#/components/schemas/v1beta1.DataVolumeSourceImageIO'\n + \ pvc:\n $ref: '#/components/schemas/v1beta1.DataVolumeSourcePVC'\n + \ registry:\n $ref: '#/components/schemas/v1beta1.DataVolumeSourceRegistry'\n + \ s3:\n $ref: '#/components/schemas/v1beta1.DataVolumeSourceS3'\n + \ snapshot:\n $ref: '#/components/schemas/v1beta1.DataVolumeSourceSnapshot'\n + \ upload:\n $ref: '#/components/schemas/v1beta1.DataVolumeSourceUpload'\n + \ vddk:\n $ref: '#/components/schemas/v1beta1.DataVolumeSourceVDDK'\n + \ description: \"DataVolumeSource represents the source for our Data Volume, + this\\\n \\ can be HTTP, Imageio, S3, GCS, Registry or an existing PVC\"\n + \ v1beta1.DataVolumeSourceGCS:\n required:\n - url\n type: object\n + \ properties:\n secretRef:\n type: string\n description: + SecretRef provides the secret reference needed to access the\n GCS + source\n url:\n type: string\n description: URL is the + url of the GCS source\n default: \"\"\n description: DataVolumeSourceGCS + provides the parameters to create a Data Volume\n from an GCS source\n + \ v1beta1.DataVolumeSourceHTTP:\n required:\n - url\n type: object\n + \ properties:\n certConfigMap:\n type: string\n description: + \"CertConfigMap is a configmap reference, containing a Certificate\\\n \\ + Authority(CA) public key, and a base64 encoded pem certificate\"\n extraHeaders:\n + \ type: array\n description: ExtraHeaders is a list of strings + containing extra headers\n to include with HTTP transfer requests\n + \ items:\n type: string\n default: \"\"\n secretExtraHeaders:\n + \ type: array\n description: \"SecretExtraHeaders is a list of + Secret references, each containing\\\n \\ an extra HTTP header that + may include sensitive information\"\n items:\n type: string\n + \ default: \"\"\n secretRef:\n type: string\n description: + \"SecretRef A Secret reference, the secret should contain accessKeyId\\\n \\ + (user name) base64 encoded, and secretKey (password) also base64 encoded\"\n url:\n + \ type: string\n description: URL is the URL of the http(s) endpoint\n + \ default: \"\"\n description: \"DataVolumeSourceHTTP can be either + an http or https endpoint,\\\n \\ with an optional basic auth user name + and password, and an optional configmap\\\n \\ containing additional CAs\"\n + \ v1beta1.DataVolumeSourceImageIO:\n required:\n - diskId\n - + url\n type: object\n properties:\n certConfigMap:\n type: + string\n description: CertConfigMap provides a reference to the CA cert\n + \ diskId:\n type: string\n description: DiskID provides + id of a disk to be imported\n default: \"\"\n secretRef:\n type: + string\n description: SecretRef provides the secret reference needed + to access the\n ovirt-engine\n url:\n type: string\n + \ description: URL is the URL of the ovirt-engine\n default: + \"\"\n description: DataVolumeSourceImageIO provides the parameters to create + a Data\n Volume from an imageio source\n v1beta1.DataVolumeSourcePVC:\n + \ required:\n - name\n - namespace\n type: object\n properties:\n + \ name:\n type: string\n description: The name of the + source PVC\n default: \"\"\n namespace:\n type: string\n + \ description: The namespace of the source PVC\n default: \"\"\n + \ description: DataVolumeSourcePVC provides the parameters to create a Data + Volume\n from an existing PVC\n v1beta1.DataVolumeSourceRef:\n required:\n + \ - kind\n - name\n type: object\n properties:\n kind:\n + \ type: string\n description: \"The kind of the source reference, + currently only \\\"DataSource\\\"\\\n \\ is supported\"\n default: + \"\"\n name:\n type: string\n description: The name of + the source reference\n default: \"\"\n namespace:\n type: + string\n description: \"The namespace of the source reference, defaults + to the DataVolume\\\n \\ namespace\"\n description: DataVolumeSourceRef + defines an indirect reference to the source\n of data for the DataVolume\n + \ v1beta1.DataVolumeSourceRegistry:\n type: object\n properties:\n + \ certConfigMap:\n type: string\n description: CertConfigMap + provides a reference to the Registry certs\n imageStream:\n type: + string\n description: ImageStream is the name of image stream for import\n + \ pullMethod:\n type: string\n description: \"PullMethod + can be either \\\"pod\\\" (default import), or \\\"node\\\"\\\n \\ + (node docker cache based import)\"\n secretRef:\n type: string\n + \ description: SecretRef provides the secret reference needed to access + the\n Registry source\n url:\n type: string\n description: + \"URL is the url of the registry source (starting with the scheme:\\\n \\ + docker, oci-archive)\"\n description: DataVolumeSourceRegistry provides the + parameters to create a Data\n Volume from an registry source\n v1beta1.DataVolumeSourceS3:\n + \ required:\n - url\n type: object\n properties:\n certConfigMap:\n + \ type: string\n description: \"CertConfigMap is a configmap + reference, containing a Certificate\\\n \\ Authority(CA) public key, + and a base64 encoded pem certificate\"\n secretRef:\n type: string\n + \ description: SecretRef provides the secret reference needed to access + the\n S3 source\n url:\n type: string\n description: + URL is the url of the S3 source\n default: \"\"\n description: DataVolumeSourceS3 + provides the parameters to create a Data Volume\n from an S3 source\n v1beta1.DataVolumeSourceSnapshot:\n + \ required:\n - name\n - namespace\n type: object\n properties:\n + \ name:\n type: string\n description: The name of the + source VolumeSnapshot\n default: \"\"\n namespace:\n type: + string\n description: The namespace of the source VolumeSnapshot\n default: + \"\"\n description: DataVolumeSourceSnapshot provides the parameters to create + a Data\n Volume from an existing VolumeSnapshot\n v1beta1.DataVolumeSourceUpload:\n + \ type: object\n description: DataVolumeSourceUpload provides the parameters + to create a Data\n Volume by uploading the source\n v1beta1.DataVolumeSourceVDDK:\n + \ type: object\n properties:\n backingFile:\n type: string\n + \ description: BackingFile is the path to the virtual hard disk to migrate\n + \ from vCenter/ESXi\n initImageURL:\n type: string\n + \ description: \"InitImageURL is an optional URL to an image containing + an\\\n \\ extracted VDDK library, overrides v2v-vmware config map\"\n + \ secretRef:\n type: string\n description: SecretRef provides + a reference to a secret containing the username\n and password needed + to access the vCenter or ESXi host\n thumbprint:\n type: string\n + \ description: Thumbprint is the certificate thumbprint of the vCenter + or\n ESXi host\n url:\n type: string\n description: + URL is the URL of the vCenter or ESXi host with the VM to migrate\n uuid:\n + \ type: string\n description: UUID is the UUID of the virtual + machine that the backing file\n is attached to in vCenter/ESXi\n description: + DataVolumeSourceVDDK provides the parameters to create a Data Volume\n from + a Vmware source\n v1beta1.DataVolumeSpec:\n type: object\n properties:\n + \ checkpoints:\n type: array\n description: \"Checkpoints + is a list of DataVolumeCheckpoints, representing\\\n \\ stages in a + multistage import.\"\n items:\n $ref: '#/components/schemas/v1beta1.DataVolumeCheckpoint'\n + \ contentType:\n type: string\n description: \"DataVolumeContentType + options: \\\"kubevirt\\\", \\\"archive\\\"\"\n finalCheckpoint:\n type: + boolean\n description: FinalCheckpoint indicates whether the current + DataVolumeCheckpoint\n is the final checkpoint.\n preallocation:\n + \ type: boolean\n description: Preallocation controls whether + storage for DataVolumes should\n be allocated in advance.\n priorityClassName:\n + \ type: string\n description: \"PriorityClassName for Importer, + Cloner and Uploader pod\"\n pvc:\n $ref: '#/components/schemas/k8s.io.api.core.v1.PersistentVolumeClaimSpec'\n + \ source:\n $ref: '#/components/schemas/v1beta1.DataVolumeSource'\n + \ sourceRef:\n $ref: '#/components/schemas/v1beta1.DataVolumeSourceRef'\n + \ storage:\n $ref: '#/components/schemas/v1beta1.StorageSpec'\n + \ description: DataVolumeSpec defines the DataVolume type specification\n + \ v1beta1.DevicePreferences:\n type: object\n properties:\n preferredAutoattachGraphicsDevice:\n + \ type: boolean\n description: PreferredAutoattachGraphicsDevice + optionally defines the preferred\n value of AutoattachGraphicsDevice\n + \ preferredAutoattachInputDevice:\n type: boolean\n description: + PreferredAutoattachInputDevice optionally defines the preferred\n value + of AutoattachInputDevice\n preferredAutoattachMemBalloon:\n type: + boolean\n description: PreferredAutoattachMemBalloon optionally defines + the preferred\n value of AutoattachMemBalloon\n preferredAutoattachPodInterface:\n + \ type: boolean\n description: PreferredAutoattachPodInterface + optionally defines the preferred\n value of AutoattachPodInterface\n + \ preferredAutoattachSerialConsole:\n type: boolean\n description: + PreferredAutoattachSerialConsole optionally defines the preferred\n value + of AutoattachSerialConsole\n preferredBlockMultiQueue:\n type: + boolean\n description: PreferredBlockMultiQueue optionally enables the + vhost multiqueue\n feature for virtio disks.\n preferredCdromBus:\n + \ type: string\n description: PreferredCdromBus optionally defines + the preferred bus for\n Cdrom Disk devices.\n preferredDisableHotplug:\n + \ type: boolean\n description: PreferredDisableHotplug optionally + defines the preferred value\n of DisableHotplug\n preferredDiskBlockSize:\n + \ $ref: '#/components/schemas/v1.BlockSize'\n preferredDiskBus:\n + \ type: string\n description: PreferredDiskBus optionally defines + the preferred bus for Disk\n Disk devices.\n preferredDiskCache:\n + \ type: string\n description: PreferredCache optionally defines + the DriverCache to be used\n by Disk devices.\n preferredDiskDedicatedIoThread:\n + \ type: boolean\n description: PreferredDedicatedIoThread optionally + enables dedicated IO\n threads for Disk devices.\n preferredDiskIO:\n + \ type: string\n description: PreferredIo optionally defines + the QEMU disk IO mode to be\n used by Disk devices.\n preferredInputBus:\n + \ type: string\n description: PreferredInputBus optionally defines + the preferred bus for\n Input devices.\n preferredInputType:\n + \ type: string\n description: PreferredInputType optionally defines + the preferred type for\n Input devices.\n preferredInterfaceMasquerade:\n + \ $ref: '#/components/schemas/v1.InterfaceMasquerade'\n preferredInterfaceModel:\n + \ type: string\n description: PreferredInterfaceModel optionally + defines the preferred model\n to be used by Interface devices.\n preferredLunBus:\n + \ type: string\n description: PreferredLunBus optionally defines + the preferred bus for Lun\n Disk devices.\n preferredNetworkInterfaceMultiQueue:\n + \ type: boolean\n description: PreferredNetworkInterfaceMultiQueue + optionally enables the\n vhost multiqueue feature for virtio interfaces.\n + \ preferredRng:\n $ref: '#/components/schemas/v1.Rng'\n preferredSoundModel:\n + \ type: string\n description: PreferredSoundModel optionally + defines the preferred model\n for Sound devices.\n preferredTPM:\n + \ $ref: '#/components/schemas/v1.TPMDevice'\n preferredUseVirtioTransitional:\n + \ type: boolean\n description: PreferredUseVirtioTransitional + optionally defines the preferred\n value of UseVirtioTransitional\n + \ preferredVirtualGPUOptions:\n $ref: '#/components/schemas/v1.VGPUOptions'\n + \ description: DevicePreferences contains various optional Device preferences.\n + \ v1beta1.FeaturePreferences:\n type: object\n properties:\n preferredAcpi:\n + \ $ref: '#/components/schemas/v1.FeatureState'\n preferredApic:\n + \ $ref: '#/components/schemas/v1.FeatureAPIC'\n preferredHyperv:\n + \ $ref: '#/components/schemas/v1.FeatureHyperv'\n preferredKvm:\n + \ $ref: '#/components/schemas/v1.FeatureKVM'\n preferredPvspinlock:\n + \ $ref: '#/components/schemas/v1.FeatureState'\n preferredSmm:\n + \ $ref: '#/components/schemas/v1.FeatureState'\n description: FeaturePreferences + contains various optional defaults for Features.\n v1beta1.FirmwarePreferences:\n + \ type: object\n properties:\n preferredUseBios:\n type: + boolean\n description: PreferredUseBios optionally enables BIOS\n preferredUseBiosSerial:\n + \ type: boolean\n description: |-\n PreferredUseBiosSerial + optionally transmitts BIOS output over the serial.\n\n Requires PreferredUseBios + to be enabled.\n preferredUseEfi:\n type: boolean\n description: + PreferredUseEfi optionally enables EFI\n preferredUseSecureBoot:\n type: + boolean\n description: |-\n PreferredUseSecureBoot optionally + enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones.\n\n + \ Requires PreferredUseEfi and PreferredSmm to be enabled.\n description: + FirmwarePreferences contains various optional defaults for Firmware.\n v1beta1.MachinePreferences:\n + \ type: object\n properties:\n preferredMachineType:\n type: + string\n description: PreferredMachineType optionally defines the preferred + machine\n type to use.\n description: MachinePreferences contains + various optional defaults for Machine.\n v1beta1.MemoryInstancetype:\n required:\n + \ - guest\n type: object\n properties:\n guest:\n $ref: + '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n hugepages:\n + \ $ref: '#/components/schemas/v1.Hugepages'\n overcommitPercent:\n + \ type: integer\n description: \"OvercommitPercent is the percentage + of the guest memory which\\\n \\ will be overcommitted. This means + that the VMIs parent pod (virt-launcher)\\\n \\ will request less physical + memory by a factor specified by the OvercommitPercent.\\\n \\ Overcommits + can lead to memory exhaustion, which in turn can lead to\\\n \\ crashes. + Use carefully. Defaults to 0\"\n format: int32\n description: |-\n + \ MemoryInstancetype contains the Memory related configuration of a given + VirtualMachineInstancetypeSpec.\n\n Guest is a required attribute and defines + the amount of RAM to be exposed to the guest by the instancetype.\n v1beta1.MemoryPreferenceRequirement:\n + \ required:\n - guest\n type: object\n properties:\n guest:\n + \ $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity'\n + \ v1beta1.PreferenceRequirements:\n type: object\n properties:\n cpu:\n + \ $ref: '#/components/schemas/v1beta1.CPUPreferenceRequirement'\n memory:\n + \ $ref: '#/components/schemas/v1beta1.MemoryPreferenceRequirement'\n v1beta1.SpreadOptions:\n + \ type: object\n properties:\n across:\n type: string\n + \ description: \"Across optionally defines how to spread vCPUs across + the guest\\\n \\ visible topology. Default: SocketsCores\"\n ratio:\n + \ type: integer\n description: |-\n Ratio optionally + defines the ratio to spread vCPUs across the guest visible topology:\n\n CoresThreads + \ - 1:2 - Controls the ratio of cores to threads. Only a ratio of 2 is + currently accepted. SocketsCores - 1:N - Controls the ratio of socket + to cores. SocketsCoresThreads - 1:N:2 - Controls the ratio of socket to cores. + Each core providing 2 threads.\n\n Default: 2\n format: int64\n + \ v1beta1.StorageSpec:\n type: object\n properties:\n accessModes:\n + \ type: array\n description: \"AccessModes contains the desired + access modes the volume should\\\n \\ have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1\"\n + \ items:\n type: string\n default: \"\"\n dataSource:\n + \ $ref: '#/components/schemas/k8s.io.api.core.v1.TypedLocalObjectReference'\n + \ dataSourceRef:\n $ref: '#/components/schemas/k8s.io.api.core.v1.TypedObjectReference'\n + \ resources:\n $ref: '#/components/schemas/k8s.io.api.core.v1.ResourceRequirements'\n + \ selector:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector'\n + \ storageClassName:\n type: string\n description: \"Name + of the StorageClass required by the claim. More info:\\\n \\ https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1\"\n + \ volumeMode:\n type: string\n description: |-\n volumeMode + defines what type of volume is required by the claim. Value of Filesystem is implied + when not included in claim spec.\n\n Possible enum values:\n - + `\"Block\"` means the volume will not be formatted with a filesystem and will + remain a raw block device.\n - `\"Filesystem\"` means the volume will + be or is formatted with a filesystem.\n enum:\n - Block\n - + Filesystem\n volumeName:\n type: string\n description: + VolumeName is the binding reference to the PersistentVolume\n backing + this claim.\n description: StorageSpec defines the Storage type specification\n + \ v1beta1.VirtualMachineClusterInstancetype:\n required:\n - spec\n + \ type: object\n properties:\n apiVersion:\n type: string\n + \ description: \"APIVersion defines the versioned schema of this representation\\\n + \ \\ of an object. Servers should convert recognized schemas to the + latest\\\n \\ internal value, and may reject unrecognized values. More + info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1beta1.VirtualMachineInstancetypeSpec'\n + \ description: VirtualMachineClusterInstancetype is a cluster scoped version + of\n VirtualMachineInstancetype resource.\n v1beta1.VirtualMachineClusterInstancetypeList:\n + \ required:\n - items\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1beta1.VirtualMachineClusterInstancetype'\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VirtualMachineClusterInstancetypeList is a list of VirtualMachineClusterInstancetype\n + \ resources.\n v1beta1.VirtualMachineClusterPreference:\n required:\n + \ - spec\n type: object\n properties:\n apiVersion:\n type: + string\n description: \"APIVersion defines the versioned schema of this + representation\\\n \\ of an object. Servers should convert recognized + schemas to the latest\\\n \\ internal value, and may reject unrecognized + values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1beta1.VirtualMachinePreferenceSpec'\n + \ description: VirtualMachineClusterPreference is a cluster scoped version + of\n the VirtualMachinePreference resource.\n v1beta1.VirtualMachineClusterPreferenceList:\n + \ required:\n - items\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1beta1.VirtualMachineClusterPreference'\n + \ x-kubernetes-list-type: set\n kind:\n type: string\n + \ description: \"Kind is a string value representing the REST resource + this\\\n \\ object represents. Servers may infer this from the endpoint + the client\\\n \\ submits requests to. Cannot be updated. In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VirtualMachineClusterPreferenceList is a list of VirtualMachineClusterPreference\n + \ resources.\n v1beta1.VirtualMachineInstancetype:\n required:\n + \ - spec\n type: object\n properties:\n apiVersion:\n type: + string\n description: \"APIVersion defines the versioned schema of this + representation\\\n \\ of an object. Servers should convert recognized + schemas to the latest\\\n \\ internal value, and may reject unrecognized + values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1beta1.VirtualMachineInstancetypeSpec'\n + \ description: VirtualMachineInstancetype resource contains quantitative and + resource\n related VirtualMachine configuration that can be used by multiple + VirtualMachine\n resources.\n v1beta1.VirtualMachineInstancetypeList:\n + \ required:\n - items\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1beta1.VirtualMachineInstancetype'\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VirtualMachineInstancetypeList is a list of VirtualMachineInstancetype\n + \ resources.\n v1beta1.VirtualMachineInstancetypeSpec:\n required:\n + \ - cpu\n - memory\n type: object\n properties:\n annotations:\n + \ type: object\n additionalProperties:\n type: string\n + \ default: \"\"\n description: Optionally defines the required + Annotations to be used by the\n instance type and applied to the VirtualMachineInstance\n + \ cpu:\n $ref: '#/components/schemas/v1beta1.CPUInstancetype'\n + \ gpus:\n type: array\n description: Optionally defines + any GPU devices associated with the instancetype.\n items:\n $ref: + '#/components/schemas/v1.GPU'\n x-kubernetes-list-type: atomic\n hostDevices:\n + \ type: array\n description: Optionally defines any HostDevices + associated with the instancetype.\n items:\n $ref: '#/components/schemas/v1.HostDevice'\n + \ x-kubernetes-list-type: atomic\n ioThreadsPolicy:\n type: + string\n description: Optionally defines the IOThreadsPolicy to be used + by the instancetype.\n launchSecurity:\n $ref: '#/components/schemas/v1.LaunchSecurity'\n + \ memory:\n $ref: '#/components/schemas/v1beta1.MemoryInstancetype'\n + \ nodeSelector:\n type: object\n additionalProperties:\n + \ type: string\n default: \"\"\n description: |-\n + \ NodeSelector is a selector which must be true for the vmi to fit on + a node. Selector which must match a node's labels for the vmi to be scheduled + on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/\n\n + \ NodeSelector is the name of the custom node selector for the instancetype.\n + \ schedulerName:\n type: string\n description: |-\n If + specified, the VMI will be dispatched by specified scheduler. If not specified, + the VMI will be dispatched by default scheduler.\n\n SchedulerName + is the name of the custom K8s scheduler for the instancetype.\n description: + |-\n VirtualMachineInstancetypeSpec is a description of the VirtualMachineInstancetype + or VirtualMachineClusterInstancetype.\n\n CPU and Memory are required attributes + with both requiring that their Guest attribute is defined, ensuring a number of + vCPUs and amount of RAM is always provided by each instancetype.\n v1beta1.VirtualMachinePreference:\n + \ required:\n - spec\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ kind:\n type: string\n description: \"Kind is a string + value representing the REST resource this\\\n \\ object represents. + Servers may infer this from the endpoint the client\\\n \\ submits + requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta'\n + \ spec:\n $ref: '#/components/schemas/v1beta1.VirtualMachinePreferenceSpec'\n + \ description: VirtualMachinePreference resource contains optional preferences\n + \ related to the VirtualMachine.\n v1beta1.VirtualMachinePreferenceList:\n + \ required:\n - items\n type: object\n properties:\n apiVersion:\n + \ type: string\n description: \"APIVersion defines the versioned + schema of this representation\\\n \\ of an object. Servers should convert + recognized schemas to the latest\\\n \\ internal value, and may reject + unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources\"\n + \ items:\n type: array\n items:\n $ref: '#/components/schemas/v1beta1.VirtualMachinePreference'\n + \ x-kubernetes-list-type: set\n kind:\n type: string\n + \ description: \"Kind is a string value representing the REST resource + this\\\n \\ object represents. Servers may infer this from the endpoint + the client\\\n \\ submits requests to. Cannot be updated. In CamelCase. + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\"\n + \ metadata:\n $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta'\n + \ description: VirtualMachinePreferenceList is a list of VirtualMachinePreference\n + \ resources.\n v1beta1.VirtualMachinePreferenceSpec:\n type: object\n + \ properties:\n annotations:\n type: object\n additionalProperties:\n + \ type: string\n default: \"\"\n description: Optionally + defines preferred Annotations to be applied to the\n VirtualMachineInstance\n + \ clock:\n $ref: '#/components/schemas/v1beta1.ClockPreferences'\n + \ cpu:\n $ref: '#/components/schemas/v1beta1.CPUPreferences'\n + \ devices:\n $ref: '#/components/schemas/v1beta1.DevicePreferences'\n + \ features:\n $ref: '#/components/schemas/v1beta1.FeaturePreferences'\n + \ firmware:\n $ref: '#/components/schemas/v1beta1.FirmwarePreferences'\n + \ machine:\n $ref: '#/components/schemas/v1beta1.MachinePreferences'\n + \ preferSpreadSocketToCoreRatio:\n type: integer\n description: + \"PreferSpreadSocketToCoreRatio defines the ratio to spread\\\n \\ + vCPUs between cores and sockets, it defaults to 2.\"\n format: int64\n + \ preferredSubdomain:\n type: string\n description: Subdomain + of the VirtualMachineInstance\n preferredTerminationGracePeriodSeconds:\n + \ type: integer\n description: Grace period observed after signalling + a VirtualMachineInstance\n to stop after which the VirtualMachineInstance + is force terminated.\n format: int64\n requirements:\n $ref: + '#/components/schemas/v1beta1.PreferenceRequirements'\n volumes:\n $ref: + '#/components/schemas/v1beta1.VolumePreferences'\n description: VirtualMachinePreferenceSpec + is a description of the VirtualMachinePreference\n or VirtualMachineClusterPreference.\n + \ v1beta1.VolumePreferences:\n type: object\n properties:\n preferredStorageClassName:\n + \ type: string\n description: PreffereedStorageClassName optionally + defines the preferred\n storageClass\n securitySchemes:\n BearerToken:\n + \ type: http\n scheme: bearer\n description: Bearer Token authentication\nx-original-swagger-version: + \"2.0\"\n" + notifications-openapi.yaml: |- + openapi: 3.0.3 + info: + title: Notifications Plugin - OpenAPI Specs + description: |- + Notifications Plugin - OpenAPI Specs + version: 1.0.0 + tags: + - name: notifications + description: notifications plugin + paths: + /notifications: + post: + tags: + - notifications + summary: Create notification + description: Create notification + operationId: createNotification + requestBody: + description: Create a new notification + content: + application/json: + schema: + $ref: '#/components/schemas/CreateBody' + responses: + '200': + description: Successful operation + content: + application/json: + schema: + type: object + properties: + messageId: + type: string + example: bc9f19de-8b7b-49a8-9262-c5036a1ed35e + required: ['messageId'] + get: + tags: + - notifications + summary: Gets notifications + description: Gets notifications + operationId: getNotifications + parameters: + - name: pageSize + in: query + description: Page size of the result + required: false + schema: + type: integer + minimum: 0 + - name: pageNumber + in: query + description: Page number of the result + required: false + schema: + type: integer + minimum: 0 + - name: orderBy + in: query + description: order by field. e.g. created, origin. + required: false + schema: + type: string + enum: + - title + - message + - created + - topic + - origin + - name: orderByDirec + in: query + description: order ascending or descending + required: false + schema: + type: string + enum: + - asc + - desc + - name: containsText + in: query + description: Filter notifications whose either title or message contains the provided string + required: false + schema: + type: string + - name: createdAfter + in: query + description: Only notifications created after this timestamp will be included + required: false + schema: + type: string + format: date-time + - name: messageScope + in: query + description: retrieve either logged-in user messages, system messages or both + required: false + schema: + type: string + enum: + - all + - user + - system + - name: read + in: query + description: Notifications read or not + required: false + schema: + type: boolean + responses: + '200': + description: Successful operation + content: + application/json: + schema: + $ref: '#/components/schemas/Notifications' + /notifications/count: + get: + tags: + - notifications + summary: Get notifications count + description: Gets notifications count + operationId: getNotificationsCount + parameters: + - name: containsText + in: query + description: Filter notifications whose either title or message contains the provided string + required: false + schema: + type: string + - name: createdAfter + in: query + description: Only notifications created after this timestamp will be included + required: false + schema: + type: string + format: date-time + - name: messageScope + in: query + description: retrieve either logged-in user messages, system messages or both + required: false + schema: + type: string + enum: + - all + - user + - system + - name: read + in: query + description: Notifications read or not + required: false + schema: + type: boolean + responses: + '200': + description: Successful operation + content: + application/json: + schema: + type: object + properties: + count: + type: number + required: ['count'] + /notifications/read: + put: + tags: + - notifications + summary: Set notification as read/unread + description: Set notification as read/unread + operationId: setRead + parameters: + - name: messageId + in: query + description: The message ID + required: true + schema: + type: string + - name: read + in: query + description: read/unread + required: true + schema: + type: boolean + responses: + '200': + description: Successful operation + components: + schemas: + Notifications: + type: array + items: + $ref: '#/components/schemas/Notification' + Notification: + properties: + id: + type: string + created: + type: string + format: date-time + readByUser: + type: boolean + isSystem: + type: boolean + origin: + type: string + title: + type: string + message: + type: string + topic: + type: string + actions: + type: array + items: + $ref: '#/components/schemas/Action' + required: [id, created, readByUser, isSystem, origin, title, actions] + Action: + properties: + id: + type: string + title: + type: string + url: + type: string + required: [id, title, url] + CreateBody: + properties: + origin: + type: string + title: + type: string + message: + type: string + actions: + type: array + items: + type: object + properties: + title: + type: string + url: + type: string + required: [title, url] + topic: + type: string + targetUsers: + type: array + items: + type: string + targetGroups: + type: array + items: + type: string + required: [origin, title] +kind: ConfigMap +metadata: + creationTimestamp: null + name: 02-modify-vm-resources-resources diff --git a/workflows/modify-vm-resources/manifests/03-configmap_modify-vm-resources-props.yaml b/workflows/modify-vm-resources/manifests/03-configmap_modify-vm-resources-props.yaml new file mode 100755 index 00000000..e1f71322 --- /dev/null +++ b/workflows/modify-vm-resources/manifests/03-configmap_modify-vm-resources-props.yaml @@ -0,0 +1,28 @@ +apiVersion: v1 +data: + application.properties: |- + quarkus.rest-client.notifications_openapi_yaml.url=${BACKSTAGE_NOTIFICATIONS_URL:http://backstage-backstage.rhdh-operator/api/notifications} + + vm_check_running_max_retries=${VM_CHECK_RUNNING_MAX_RETRIES:10} + + jira_url=https://masayag.atlassian.net + quarkus.rest-client.jira_openapi_json.url=https://masayag.atlassian.net + quarkus.openapi-generator.jira_openapi_json.auth.basicAuth.username=moti.asayag@gmail.com + quarkus.openapi-generator.jira_openapi_json.auth.basicAuth.password=ATATT3xFfGF0dcmVcCOlKk2TByafskgXfjyBpAMUga49ivLl9wifXpp9gLRW-iNL4tbSITvBYci285LfL_9hbdkgJWRdI_jsHD1OMuKOZ8bsDGRHoBdoMtU9ZWE5omo3vyu6nygvhAmiZjKs7Z02v7987uAEZoYtUMHX9iVRSTILMrBHPTHqHWw=C5BF56F5 + + + # OpenShift API Server + cluster_console_url=${OCP_CONSOLE_URL:-} + quarkus.rest-client.kubevirt_openapi_yaml.url=https://api.cluster-bpmcb.bpmcb.gcp.redhatworkshops.io:6443 + quarkus.openapi-generator.kubevirt_openapi_yaml.auth.BearerToken.bearer-token=sha256~lmE6UcIH6hWfy_Q44tZabqqxidXvBTpcwCPZDEKglNA + quarkus.tls.trust-all=true + quarkus.kubernetes-client.trust-certs=true + + quarkus.flyway.migrate-at-start=true +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app: modify-vm-resources + sonataflow.org/workflow-app: modify-vm-resources + name: modify-vm-resources-props diff --git a/modify-vm-resources/modify-vm-resources.svg b/workflows/modify-vm-resources/modify-vm-resources.svg similarity index 100% rename from modify-vm-resources/modify-vm-resources.svg rename to workflows/modify-vm-resources/modify-vm-resources.svg diff --git a/modify-vm-resources/modify-vm-resources.sw.yaml b/workflows/modify-vm-resources/modify-vm-resources.sw.yaml similarity index 100% rename from modify-vm-resources/modify-vm-resources.sw.yaml rename to workflows/modify-vm-resources/modify-vm-resources.sw.yaml diff --git a/modify-vm-resources/schemas/modify-vm-resources__main-schema.json b/workflows/modify-vm-resources/schemas/modify-vm-resources__main-schema.json similarity index 100% rename from modify-vm-resources/schemas/modify-vm-resources__main-schema.json rename to workflows/modify-vm-resources/schemas/modify-vm-resources__main-schema.json diff --git a/modify-vm-resources/schemas/workflow-output-schema.json b/workflows/modify-vm-resources/schemas/workflow-output-schema.json similarity index 100% rename from modify-vm-resources/schemas/workflow-output-schema.json rename to workflows/modify-vm-resources/schemas/workflow-output-schema.json diff --git a/modify-vm-resources/secret.properties b/workflows/modify-vm-resources/secret.properties similarity index 100% rename from modify-vm-resources/secret.properties rename to workflows/modify-vm-resources/secret.properties diff --git a/modify-vm-resources/specs/jira-openapi.json b/workflows/modify-vm-resources/specs/jira-openapi.json similarity index 100% rename from modify-vm-resources/specs/jira-openapi.json rename to workflows/modify-vm-resources/specs/jira-openapi.json diff --git a/modify-vm-resources/specs/kubevirt-openapi.yaml b/workflows/modify-vm-resources/specs/kubevirt-openapi.yaml similarity index 100% rename from modify-vm-resources/specs/kubevirt-openapi.yaml rename to workflows/modify-vm-resources/specs/kubevirt-openapi.yaml diff --git a/move2kube/LICENSE b/workflows/move2kube/LICENSE similarity index 100% rename from move2kube/LICENSE rename to workflows/move2kube/LICENSE diff --git a/move2kube/README.md b/workflows/move2kube/README.md similarity index 100% rename from move2kube/README.md rename to workflows/move2kube/README.md diff --git a/move2kube/application-knative.properties b/workflows/move2kube/application-knative.properties similarity index 100% rename from move2kube/application-knative.properties rename to workflows/move2kube/application-knative.properties diff --git a/move2kube/application.properties b/workflows/move2kube/application.properties similarity index 100% rename from move2kube/application.properties rename to workflows/move2kube/application.properties diff --git a/move2kube/argfile.conf b/workflows/move2kube/argfile.conf similarity index 100% rename from move2kube/argfile.conf rename to workflows/move2kube/argfile.conf diff --git a/move2kube/design.svg b/workflows/move2kube/design.svg similarity index 100% rename from move2kube/design.svg rename to workflows/move2kube/design.svg diff --git a/move2kube/m2k-func/.dockerignore b/workflows/move2kube/m2k-func/.dockerignore similarity index 100% rename from move2kube/m2k-func/.dockerignore rename to workflows/move2kube/m2k-func/.dockerignore diff --git a/move2kube/m2k-func/.gitignore b/workflows/move2kube/m2k-func/.gitignore similarity index 100% rename from move2kube/m2k-func/.gitignore rename to workflows/move2kube/m2k-func/.gitignore diff --git a/move2kube/m2k-func/LICENSE b/workflows/move2kube/m2k-func/LICENSE similarity index 100% rename from move2kube/m2k-func/LICENSE rename to workflows/move2kube/m2k-func/LICENSE diff --git a/move2kube/m2k-func/README.md b/workflows/move2kube/m2k-func/README.md similarity index 100% rename from move2kube/m2k-func/README.md rename to workflows/move2kube/m2k-func/README.md diff --git a/move2kube/m2k-func/argfile.conf b/workflows/move2kube/m2k-func/argfile.conf similarity index 100% rename from move2kube/m2k-func/argfile.conf rename to workflows/move2kube/m2k-func/argfile.conf diff --git a/move2kube/m2k-func/pom.xml b/workflows/move2kube/m2k-func/pom.xml similarity index 100% rename from move2kube/m2k-func/pom.xml rename to workflows/move2kube/m2k-func/pom.xml diff --git a/move2kube/m2k-func/src/main/docker/Dockerfile.jvm b/workflows/move2kube/m2k-func/src/main/docker/Dockerfile.jvm similarity index 100% rename from move2kube/m2k-func/src/main/docker/Dockerfile.jvm rename to workflows/move2kube/m2k-func/src/main/docker/Dockerfile.jvm diff --git a/move2kube/m2k-func/src/main/java/dev/parodos/CloudEventsCustomizer.java b/workflows/move2kube/m2k-func/src/main/java/dev/parodos/CloudEventsCustomizer.java similarity index 100% rename from move2kube/m2k-func/src/main/java/dev/parodos/CloudEventsCustomizer.java rename to workflows/move2kube/m2k-func/src/main/java/dev/parodos/CloudEventsCustomizer.java diff --git a/move2kube/m2k-func/src/main/java/dev/parodos/EventGenerator.java b/workflows/move2kube/m2k-func/src/main/java/dev/parodos/EventGenerator.java similarity index 100% rename from move2kube/m2k-func/src/main/java/dev/parodos/EventGenerator.java rename to workflows/move2kube/m2k-func/src/main/java/dev/parodos/EventGenerator.java diff --git a/move2kube/m2k-func/src/main/java/dev/parodos/SaveTransformationFunction.java b/workflows/move2kube/m2k-func/src/main/java/dev/parodos/SaveTransformationFunction.java similarity index 100% rename from move2kube/m2k-func/src/main/java/dev/parodos/SaveTransformationFunction.java rename to workflows/move2kube/m2k-func/src/main/java/dev/parodos/SaveTransformationFunction.java diff --git a/move2kube/m2k-func/src/main/java/dev/parodos/service/FolderCreatorService.java b/workflows/move2kube/m2k-func/src/main/java/dev/parodos/service/FolderCreatorService.java similarity index 100% rename from move2kube/m2k-func/src/main/java/dev/parodos/service/FolderCreatorService.java rename to workflows/move2kube/m2k-func/src/main/java/dev/parodos/service/FolderCreatorService.java diff --git a/move2kube/m2k-func/src/main/java/dev/parodos/service/FolderCreatorServiceImpl.java b/workflows/move2kube/m2k-func/src/main/java/dev/parodos/service/FolderCreatorServiceImpl.java similarity index 100% rename from move2kube/m2k-func/src/main/java/dev/parodos/service/FolderCreatorServiceImpl.java rename to workflows/move2kube/m2k-func/src/main/java/dev/parodos/service/FolderCreatorServiceImpl.java diff --git a/move2kube/m2k-func/src/main/java/dev/parodos/service/GitService.java b/workflows/move2kube/m2k-func/src/main/java/dev/parodos/service/GitService.java similarity index 100% rename from move2kube/m2k-func/src/main/java/dev/parodos/service/GitService.java rename to workflows/move2kube/m2k-func/src/main/java/dev/parodos/service/GitService.java diff --git a/move2kube/m2k-func/src/main/java/dev/parodos/service/GitServiceImpl.java b/workflows/move2kube/m2k-func/src/main/java/dev/parodos/service/GitServiceImpl.java similarity index 100% rename from move2kube/m2k-func/src/main/java/dev/parodos/service/GitServiceImpl.java rename to workflows/move2kube/m2k-func/src/main/java/dev/parodos/service/GitServiceImpl.java diff --git a/move2kube/m2k-func/src/main/java/dev/parodos/service/Move2KubeService.java b/workflows/move2kube/m2k-func/src/main/java/dev/parodos/service/Move2KubeService.java similarity index 100% rename from move2kube/m2k-func/src/main/java/dev/parodos/service/Move2KubeService.java rename to workflows/move2kube/m2k-func/src/main/java/dev/parodos/service/Move2KubeService.java diff --git a/move2kube/m2k-func/src/main/java/dev/parodos/service/Move2KubeServiceImpl.java b/workflows/move2kube/m2k-func/src/main/java/dev/parodos/service/Move2KubeServiceImpl.java similarity index 100% rename from move2kube/m2k-func/src/main/java/dev/parodos/service/Move2KubeServiceImpl.java rename to workflows/move2kube/m2k-func/src/main/java/dev/parodos/service/Move2KubeServiceImpl.java diff --git a/move2kube/m2k-func/src/main/resources/META-INF/resources/index.html b/workflows/move2kube/m2k-func/src/main/resources/META-INF/resources/index.html similarity index 100% rename from move2kube/m2k-func/src/main/resources/META-INF/resources/index.html rename to workflows/move2kube/m2k-func/src/main/resources/META-INF/resources/index.html diff --git a/move2kube/m2k-func/src/main/resources/application.properties b/workflows/move2kube/m2k-func/src/main/resources/application.properties similarity index 100% rename from move2kube/m2k-func/src/main/resources/application.properties rename to workflows/move2kube/m2k-func/src/main/resources/application.properties diff --git a/move2kube/m2k-func/src/main/resources/move2kube-openapi.yaml b/workflows/move2kube/m2k-func/src/main/resources/move2kube-openapi.yaml similarity index 100% rename from move2kube/m2k-func/src/main/resources/move2kube-openapi.yaml rename to workflows/move2kube/m2k-func/src/main/resources/move2kube-openapi.yaml diff --git a/move2kube/m2k-func/src/test/java/dev/parodos/SaveTransformationFunctionIT.java b/workflows/move2kube/m2k-func/src/test/java/dev/parodos/SaveTransformationFunctionIT.java similarity index 100% rename from move2kube/m2k-func/src/test/java/dev/parodos/SaveTransformationFunctionIT.java rename to workflows/move2kube/m2k-func/src/test/java/dev/parodos/SaveTransformationFunctionIT.java diff --git a/move2kube/m2k-func/src/test/java/dev/parodos/SaveTransformationFunctionTest.java b/workflows/move2kube/m2k-func/src/test/java/dev/parodos/SaveTransformationFunctionTest.java similarity index 100% rename from move2kube/m2k-func/src/test/java/dev/parodos/SaveTransformationFunctionTest.java rename to workflows/move2kube/m2k-func/src/test/java/dev/parodos/SaveTransformationFunctionTest.java diff --git a/move2kube/m2k-func/src/test/java/dev/parodos/service/GitServiceImplTest.java b/workflows/move2kube/m2k-func/src/test/java/dev/parodos/service/GitServiceImplTest.java similarity index 100% rename from move2kube/m2k-func/src/test/java/dev/parodos/service/GitServiceImplTest.java rename to workflows/move2kube/m2k-func/src/test/java/dev/parodos/service/GitServiceImplTest.java diff --git a/move2kube/m2k-func/src/test/resources/SaveTransformationFunctionTest/references/expected_output.zip b/workflows/move2kube/m2k-func/src/test/resources/SaveTransformationFunctionTest/references/expected_output.zip similarity index 100% rename from move2kube/m2k-func/src/test/resources/SaveTransformationFunctionTest/references/expected_output.zip rename to workflows/move2kube/m2k-func/src/test/resources/SaveTransformationFunctionTest/references/expected_output.zip diff --git a/move2kube/m2k-func/src/test/resources/SaveTransformationFunctionTest/references/transformation_output.zip b/workflows/move2kube/m2k-func/src/test/resources/SaveTransformationFunctionTest/references/transformation_output.zip similarity index 100% rename from move2kube/m2k-func/src/test/resources/SaveTransformationFunctionTest/references/transformation_output.zip rename to workflows/move2kube/m2k-func/src/test/resources/SaveTransformationFunctionTest/references/transformation_output.zip diff --git a/move2kube/m2k-func/src/test/resources/application.properties b/workflows/move2kube/m2k-func/src/test/resources/application.properties similarity index 100% rename from move2kube/m2k-func/src/test/resources/application.properties rename to workflows/move2kube/m2k-func/src/test/resources/application.properties diff --git a/move2kube/m2k-func/src/test/resources/config b/workflows/move2kube/m2k-func/src/test/resources/config similarity index 100% rename from move2kube/m2k-func/src/test/resources/config rename to workflows/move2kube/m2k-func/src/test/resources/config diff --git a/move2kube/m2k-func/src/test/resources/m2k-test-ssh-id_ed25519 b/workflows/move2kube/m2k-func/src/test/resources/m2k-test-ssh-id_ed25519 similarity index 100% rename from move2kube/m2k-func/src/test/resources/m2k-test-ssh-id_ed25519 rename to workflows/move2kube/m2k-func/src/test/resources/m2k-test-ssh-id_ed25519 diff --git a/move2kube/m2k-func/src/test/resources/m2k-test-ssh-id_ed25519.pub b/workflows/move2kube/m2k-func/src/test/resources/m2k-test-ssh-id_ed25519.pub similarity index 100% rename from move2kube/m2k-func/src/test/resources/m2k-test-ssh-id_ed25519.pub rename to workflows/move2kube/m2k-func/src/test/resources/m2k-test-ssh-id_ed25519.pub diff --git a/move2kube/m2k-func/src/test/resources/test.key b/workflows/move2kube/m2k-func/src/test/resources/test.key similarity index 100% rename from move2kube/m2k-func/src/test/resources/test.key rename to workflows/move2kube/m2k-func/src/test/resources/test.key diff --git a/move2kube/m2k.svg b/workflows/move2kube/m2k.svg similarity index 100% rename from move2kube/m2k.svg rename to workflows/move2kube/m2k.svg diff --git a/move2kube/m2k.sw.yml b/workflows/move2kube/m2k.sw.yml similarity index 100% rename from move2kube/m2k.sw.yml rename to workflows/move2kube/m2k.sw.yml diff --git a/workflows/move2kube/manifests/00-secret_m2k.yaml b/workflows/move2kube/manifests/00-secret_m2k.yaml new file mode 100644 index 00000000..f9cb7813 --- /dev/null +++ b/workflows/move2kube/manifests/00-secret_m2k.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +data: + NOTIFICATIONS_BEARER_TOKEN: "" +kind: Secret +metadata: + creationTimestamp: null + name: m2k-creds diff --git a/workflows/move2kube/manifests/01-configmap_01-m2k-resources.yaml b/workflows/move2kube/manifests/01-configmap_01-m2k-resources.yaml new file mode 100755 index 00000000..98addfb5 --- /dev/null +++ b/workflows/move2kube/manifests/01-configmap_01-m2k-resources.yaml @@ -0,0 +1,1825 @@ +apiVersion: v1 +data: + move2kube.yaml: | + --- + openapi: 3.0.1 + info: + title: Move2Kube API + description: | + This is a documentation of the Move2Kube REST API. + All API calls expect the `Authorization: Bearer ` HTTP header unless specified otherwise. + The access token can be obtained in the same way as OAuth 2.0 using the token endpoint in the admin section. + contact: + email: move2kube-dev@googlegroups.com + license: + name: Apache 2.0 + url: http://www.apache.org/licenses/LICENSE-2.0.html + version: v1.0.0 + externalDocs: + description: Find out more about Swagger + url: http://swagger.io + servers: + - url: "/api/v1" + tags: + - name: move2kube + description: Helps migrate your app to Kubernetes. + externalDocs: + description: Find out more + url: https://move2kube.konveyor.io/ + security: + - bearerAuth: [] + paths: + "/token": + post: + security: + - basicAuth: [] + tags: + - admin + summary: Get an access token using client ID and client secret (for use with + trusted clients). + description: Get an access token using client ID and client secret (for use + with trusted clients). + operationId: get-tokens + requestBody: + description: "Use `grant_type=client_credentials` in the body and set the + header \n`Authorization: Basic base64(client_id + \":\" + client_secret)`\n" + content: + application/x-www-form-urlencoded: + schema: + type: object + required: + - grant_type + properties: + grant_type: + type: string + enum: + - client_credentials + responses: + '200': + "$ref": "#/components/responses/Token" + '400': + description: Invalid format or validation error. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to get the access token. + "/support": + get: + tags: + - support + summary: Returns some support information like CLI, API and UI version info. + description: Returns some support information like CLI, API and UI version info. + operationId: get-support-info + responses: + '200': + description: Success. + content: + application/json: + schema: + type: object + properties: + cli_version: + type: string + description: The version, commit hash, etc. of the Move2Kube CLI + tool being used. + example: |- + version: v0.3.0+unreleased + gitCommit: 0ccc6c4c6ea8ccd8fb8f999d37f81cdf0fdf22e6 + gitTreeState: clean + goVersion: go1.18.1 + platform: darwin/amd64 + api_version: + type: string + description: The version, commit hash, etc. of the Move2Kube API + server being used. + example: |- + version: v0.1.0+unreleased + gitCommit: d21d2503e136fd85d5b166d5899d4058083cf0ce + gitTreeState: clean + goVersion: go1.18.1 + platform: darwin/amd64 + ui_version: + type: string + description: The version, commit hash, etc. of the Move2Kube UI + website being used. + example: unknown + docker: + type: string + description: Whether the docker socket '/var/run/docker.sock' + is mounted when running as a container. + example: docker socket is not mounted + "/workspaces": + get: + tags: + - workspaces + summary: Get all the workspaces you have access to. + description: Get all the workspaces you have access to. + operationId: get-workspaces + responses: + '200': + description: Success. + content: + application/json: + schema: + type: array + items: + "$ref": "#/components/schemas/Workspace" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to get all the workspaces. + post: + tags: + - workspaces + summary: Create a new workspace. The ID will be generated by the server. + description: Create a new workspace. The ID will be generated by the server. + operationId: create-workspace + requestBody: + description: | + The metadata of the workspace. + Leave the ID blank, it will be generated. + Leave the projects blank, projects are managed through a different set of endpoints. + content: + application/json: + example: + name: Team 1 Workspace + description: The workspace team 1 uses. + schema: + "$ref": "#/components/schemas/Workspace" + required: true + responses: + '201': + description: Created. + content: + application/json: + schema: + type: object + properties: + id: + type: string + description: ID of the new workspace. + example: work-1234 + '400': + description: Invalid format or validation error. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to create a new workspace. + x-codegen-request-body-name: body + "/api/v1/workspaces/{workspace-id}": + get: + tags: + - workspaces + summary: Get the workspace with the given ID. + description: Get the workspace with the given ID. + operationId: get-workspace + parameters: + - name: workspace-id + in: path + description: ID of the workspace to get. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + responses: + '200': + description: Success. + content: + application/json: + schema: + "$ref": "#/components/schemas/Workspace" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to get this workspace. + '404': + description: Workspace not found. + put: + tags: + - workspaces + summary: Update a workspace. The workspace will be created if it doesn't exist. + description: Update a workspace. The workspace will be created if it doesn't + exist. + operationId: update-workspace + parameters: + - name: workspace-id + in: path + description: ID of the workspace to update. + required: true + example: work-1 + schema: + "$ref": "#/components/schemas/ID" + requestBody: + description: | + The metadata of the workspace. + Leave the ID blank, it will be generated. + Leave the projects blank, projects are managed through a different set of endpoints. + content: + application/json: + example: + name: Team 1 Workspace. Update Name. + description: The workspace team 1 uses. Updated description. + schema: + "$ref": "#/components/schemas/Workspace" + required: true + responses: + '201': + description: Created. + '204': + description: Updated. + '400': + description: Invalid format or validation error. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to create/update this workspace. + '404': + description: Workspace not found. + x-codegen-request-body-name: body + delete: + tags: + - workspaces + summary: Delete an existing workspace. + description: Delete an existing workspace. + operationId: delete-workspace + parameters: + - name: workspace-id + in: path + description: ID of the workspace to delete. + required: true + example: work-1 + schema: + "$ref": "#/components/schemas/ID" + responses: + '204': + description: Deleted. + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to delete this workspace. + '404': + description: Workspace not found. + "/api/v1/workspaces/{workspace-id}/inputs": + post: + tags: + - workspace-inputs + summary: Create a new input for this workspace. All the projects in this workspace + will be able to use it. The ID will be generated by the server. + description: Create a new input for this workspace. All the projects in this + workspace will be able to use it. The ID will be generated by the server. + operationId: create-workspace-input + parameters: + - name: workspace-id + in: path + description: ID of the workspace to create the input in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + requestBody: + description: | + The metadata of the workspace input. + Leave the ID blank, it will be generated. + content: + multipart/form-data: + schema: + type: object + properties: + type: + type: string + enum: + - sources + - customizations + - configs + description: The type of the input. + description: + type: string + description: A description for the input. + file: + type: string + format: binary + description: The actual content of the input file. + required: true + responses: + '201': + description: Created. + content: + application/json: + schema: + type: object + properties: + id: + type: string + description: ID of the new workspace input. + example: work-input-1234 + '400': + description: Invalid format or validation error. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to create an input for this project. + x-codegen-request-body-name: body + "/api/v1/workspaces/{workspace-id}/inputs/{input-id}": + get: + tags: + - workspace-inputs + summary: Get the input of the project with the given ID. + description: Get the input of the project with the given ID. + operationId: get-workspace-input + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: input-id + in: path + description: ID of the input to get. + required: true + example: work-input-1234 + schema: + "$ref": "#/components/schemas/ID" + responses: + '200': + description: Success. + content: + application/octet-stream: + schema: + type: string + format: binary + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to get this project input. + '404': + description: Workspace, project or input not found. + delete: + tags: + - workspace-inputs + summary: Delete the input of the project. + description: Delete the input of the project. + operationId: delete-workspace-input + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: input-id + in: path + description: ID of the input to delete. + required: true + example: work-input-1234 + schema: + "$ref": "#/components/schemas/ID" + responses: + '204': + description: Deleted. + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to delete this project input. + '404': + description: Workspace, project or input not found. + x-codegen-request-body-name: body + "/api/v1/workspaces/{workspace-id}/projects": + get: + tags: + - projects + summary: Get all the projects you have access to in this workspace. + description: Get all the projects you have access to in this workspace. + operationId: get-projects + parameters: + - name: workspace-id + in: path + description: ID of the workspace to get the projects from. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + responses: + '200': + description: Success. + content: + application/json: + schema: + type: array + items: + "$ref": "#/components/schemas/Project" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to get all the projects in this workspace. + post: + tags: + - projects + summary: Create a new project in this workspace. The ID will be generated by + the server. + description: Create a new project in this workspace. The ID will be generated + by the server. + operationId: create-project + parameters: + - name: workspace-id + in: path + description: ID of the workspace to create the project in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + requestBody: + description: | + The metadata of the project. + Leave the ID blank, it will be generated. + content: + application/json: + example: + name: My Web App 1 + description: Project to transform my web app 1 to run on K8s. + schema: + "$ref": "#/components/schemas/Project" + required: true + responses: + '201': + description: Created. + content: + application/json: + schema: + type: object + properties: + id: + type: string + description: ID of the new project. + example: proj-1234 + '400': + description: Invalid format or validation error. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to create a new project in this workspace. + x-codegen-request-body-name: body + "/api/v1/workspaces/{workspace-id}/projects/{project-id}": + get: + tags: + - projects + summary: Get the project with the given ID. + description: Get the project with the given ID. + operationId: get-project + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: project-id + in: path + description: ID of the project to get. + required: true + example: proj-1234 + schema: + "$ref": "#/components/schemas/ID" + responses: + '200': + description: Success. + content: + application/json: + schema: + "$ref": "#/components/schemas/Project" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to get this project. + '404': + description: Workspace or project not found. + put: + tags: + - projects + summary: Update a project. The project will be created if it doesn't exist. + description: Update a project. The project will be created if it doesn't exist. + operationId: update-project + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: project-id + in: path + description: ID of the project to update. + required: true + example: proj-1234 + schema: + "$ref": "#/components/schemas/ID" + requestBody: + description: | + The metadata of the project. + Leave the ID blank. + content: + application/json: + example: + name: My Web App 1. Updated Name. + description: Project to transform my web app 1. Updated description. + schema: + "$ref": "#/components/schemas/Project" + required: true + responses: + '201': + description: Created. + '204': + description: Updated. + '400': + description: Invalid format or validation error. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to create/update this project. + '404': + description: Workspace or project not found. + x-codegen-request-body-name: body + delete: + tags: + - projects + summary: Delete an existing workspace. + description: Delete an existing workspace. + operationId: delete-project + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: project-id + in: path + description: ID of the project to delete. + required: true + example: proj-1234 + schema: + "$ref": "#/components/schemas/ID" + responses: + '204': + description: Deleted. + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to delete this project. + '404': + description: Workspace or project not found. + "/api/v1/workspaces/{workspace-id}/projects/{project-id}/inputs": + post: + tags: + - project-inputs + summary: Create a new input for this project. The ID will be generated by the + server. + description: Create a new input for this project. The ID will be generated by + the server. + operationId: create-project-input + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: project-id + in: path + description: ID of the project to create the input in. + required: true + example: proj-1234 + schema: + "$ref": "#/components/schemas/ID" + requestBody: + description: | + The metadata of the project input. + Leave the ID blank, it will be generated. + content: + multipart/form-data: + schema: + type: object + properties: + type: + type: string + enum: + - sources + - customizations + - configs + - reference + description: The type of the input. + id: + type: string + description: If the input is of type 'reference', then this field + indicates the id of the workspace input that it is referencing. + description: + type: string + description: A description for the input. + file: + type: string + format: binary + description: The actual content of the input file. + required: true + responses: + '201': + description: Created. + content: + application/json: + schema: + type: object + properties: + id: + type: string + description: ID of the new project input. + example: proj-input-1234 + '400': + description: Invalid format or validation error. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to create an input for this project. + x-codegen-request-body-name: body + "/api/v1/workspaces/{workspace-id}/projects/{project-id}/inputs/{input-id}": + get: + tags: + - project-inputs + summary: Get the input of the project with the given ID. + description: Get the input of the project with the given ID. + operationId: get-project-input + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: project-id + in: path + description: ID of the project the input is in. + required: true + example: proj-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: input-id + in: path + description: ID of the input to get. + required: true + example: proj-input-1234 + schema: + "$ref": "#/components/schemas/ID" + responses: + '200': + description: Success. + content: + application/octet-stream: + schema: + type: string + format: binary + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to get this project input. + '404': + description: Workspace, project or input not found. + delete: + tags: + - project-inputs + summary: Delete the input of the project. + description: Delete the input of the project. + operationId: delete-project-input + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: project-id + in: path + description: ID of the project the input is in. + required: true + example: proj-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: input-id + in: path + description: ID of the input to delete. + required: true + example: proj-input-1234 + schema: + "$ref": "#/components/schemas/ID" + responses: + '204': + description: Deleted. + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to delete this project input. + '404': + description: Workspace, project or input not found. + x-codegen-request-body-name: body + "/api/v1/workspaces/{workspace-id}/projects/{project-id}/plan": + post: + tags: + - plan + summary: Start planning on this project's inputs. + description: Start planning on this project's inputs. + operationId: start-planning + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: project-id + in: path + description: ID of the project to start planning in. + required: true + example: proj-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: remote-source + in: query + description: Remote source git URL from which get the source files. + required: false + example: git+https://github.com/konveyor/move2kube + schema: + "$ref": "#/components/schemas/RemoteSource" + responses: + '202': + description: Accepted. + '400': + description: Invalid format or validation error. + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to start planning for this project. + '404': + description: Workspace or project not found. + x-codegen-request-body-name: body + get: + tags: + - plan + summary: Get the plan file. + description: Get the plan file. + operationId: get-plan + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: project-id + in: path + description: ID of the project to get the plan from. + required: true + example: proj-1234 + schema: + "$ref": "#/components/schemas/ID" + responses: + '200': + description: Accepted. + content: + application/json: + schema: + type: object + properties: + plan: + type: string + description: The plan file in YAML format. + '400': + description: Invalid format or validation error. + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to start planning for this project. + '404': + description: Workspace or project not found. + '409': + description: Conflict, because planning is already on-going for this project. + x-codegen-request-body-name: body + put: + tags: + - plan + summary: Update the plan for this project. + description: Update the plan for this project. + operationId: update-plan + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: project-id + in: path + description: ID of the project to update the plan for. + required: true + example: proj-1234 + schema: + "$ref": "#/components/schemas/ID" + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + plan: + type: string + description: The new plan file to use for this project. + responses: + '204': + description: Accepted. + '400': + description: Invalid format or validation error. + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to update the plan for this project. + '404': + description: Workspace or project not found. + x-codegen-request-body-name: body + delete: + tags: + - plan + summary: Delete the current plan for the project. + description: Delete the current plan for the project. + operationId: delete-plan + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: project-id + in: path + description: ID of the project to delete the plan from. + required: true + example: proj-1234 + schema: + "$ref": "#/components/schemas/ID" + responses: + '204': + description: Deleted. + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to delete the plan for this project. + '404': + description: Workspace or project not found. + "/api/v1/workspaces/{workspace-id}/projects/{project-id}/outputs": + post: + tags: + - project-outputs + summary: Start transformation for this project. Planning must be completed before + this. + description: Start transformation for this project. Planning must be completed + before this. + operationId: start-transformation + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: project-id + in: path + description: ID of the project to start the transformation for. + required: true + example: proj-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: skip-qa + in: query + description: Boolean to skip interactive QA. + required: false + example: 'true' + schema: + type: boolean + requestBody: + description: 'A plan to use for the transformation. (Not required). + + ' + content: + application/json: + schema: + type: object + properties: + plan: + type: string + description: A plan to use for the transformation. (Not required). + required: false + responses: + '202': + description: Accept + content: + application/json: + schema: + type: object + properties: + id: + type: string + description: ID of the new project output. + example: proj-output-1234 + name: + type: string + description: Name of the project output. + description: + type: string + description: Description of the project output. + timestamp: + type: string + format: date-time + status: + type: string + description: The status of the transformation. + enum: + - transforming + - done + - error + '400': + description: Invalid format or validation error. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to start transformation for this project. + '404': + description: Workspace or project not found. + x-codegen-request-body-name: body + "/api/v1/workspaces/{workspace-id}/projects/{project-id}/outputs/{output-id}": + get: + tags: + - project-outputs + summary: Get the output of the project with the given ID. + description: Get the output of the project with the given ID. + operationId: get-project-output + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: project-id + in: path + description: ID of the project the output is in. + required: true + example: proj-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: output-id + in: path + description: ID of the output to get. + required: true + example: proj-output-1234 + schema: + "$ref": "#/components/schemas/ID" + responses: + '200': + description: Success. + content: + application/octet-stream: + schema: + type: string + format: binary + '204': + description: The transformation is still on-going. + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to get this project output. + '404': + description: Workspace, project or output not found. + delete: + tags: + - project-outputs + summary: Delete the output of the project. + description: Delete the output of the project. + operationId: delete-project-output + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: project-id + in: path + description: ID of the project the output is in. + required: true + example: proj-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: output-id + in: path + description: ID of the output to delete. + required: true + example: proj-output-1234 + schema: + "$ref": "#/components/schemas/ID" + responses: + '204': + description: Deleted. + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to delete this project output. + '404': + description: Workspace, project or output not found. + x-codegen-request-body-name: body + "/api/v1/workspaces/{workspace-id}/projects/{project-id}/outputs/{output-id}/graph": + get: + tags: + - project-output-graphs + summary: Get the graph of the transformers used while creating the output with + the given ID. + description: Get the graph of the transformers used while creating the output + with the given ID. + operationId: get-project-output-graph + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: project-id + in: path + description: ID of the project the output is in. + required: true + example: proj-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: output-id + in: path + description: ID of the output whose graph we should get. + required: true + example: proj-output-1234 + schema: + "$ref": "#/components/schemas/ID" + responses: + '200': + description: Success. + content: + application/json: + schema: + type: object + '204': + description: The transformation is still on-going. + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to get this project output. + '404': + description: Workspace, project or output not found. + "/api/v1/workspaces/{workspace-id}/projects/{project-id}/outputs/{output-id}/problems/current": + get: + tags: + - qa + summary: Get the current question that needs to be answered for the transformation + to proceed. + description: Get the current question that needs to be answered for the transformation + to proceed. + operationId: get-current-question + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: project-id + in: path + description: ID of the project the output is in. + required: true + example: proj-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: output-id + in: path + description: ID of the output whose transformation is on-going. + required: true + example: proj-output-1234 + schema: + "$ref": "#/components/schemas/ID" + responses: + '200': + description: Success. + content: + application/json: + schema: + type: object + properties: + question: + type: string + description: A JSON encoded string of the question object. + '204': + description: All questions have finished. + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to get this project output. + '404': + description: Workspace, project or output not found. Might also be returned + once the transformation has finished. + "/api/v1/workspaces/{workspace-id}/projects/{project-id}/outputs/{output-id}/problems/current/solution": + post: + tags: + - qa + summary: Post the answer to the current question for an on-going transformation + given by the ID. + description: Post the answer to the current question for an on-going transformation + given by the ID. + operationId: post-answer-to-question + parameters: + - name: workspace-id + in: path + description: ID of the workspace the project is in. + required: true + example: work-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: project-id + in: path + description: ID of the project to start the transformation for. + required: true + example: proj-1234 + schema: + "$ref": "#/components/schemas/ID" + - name: output-id + in: path + description: ID of the output whose transformation is on-going. + required: true + example: proj-output-1234 + schema: + "$ref": "#/components/schemas/ID" + requestBody: + description: 'A plan to use for the transformation. (Not required). + + ' + content: + application/json: + schema: + type: object + properties: + solution: + type: string + description: A JSON encoded string containing the answer object. + required: true + responses: + '204': + description: Answer was accepted + '400': + description: Invalid format or validation error. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to post an answer to the question + for this project output. + '404': + description: Workspace, project, or output not found. + x-codegen-request-body-name: body + "/roles": + get: + tags: + - roles + summary: Get all the roles. + description: Get all the roles. + operationId: get-roles + responses: + '200': + description: Success. + content: + application/json: + schema: + type: array + items: + "$ref": "#/components/schemas/Role" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to get all the roles. + post: + tags: + - roles + summary: Create a new role. + description: Create a new role. + operationId: create-role + requestBody: + description: The metadata of the role. Leave the ID blank, it will be generated. + content: + application/json: + schema: + "$ref": "#/components/schemas/Role" + required: true + responses: + '201': + description: Created. + content: + application/json: + schema: + type: object + properties: + id: + type: string + description: ID of the new role. + example: role-1234 + '400': + description: Invalid format or validation error. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to create a new role. + x-codegen-request-body-name: body + "/roles/{role-id}": + get: + tags: + - roles + summary: Get the role with the given ID. + description: Get the role with the given ID. + operationId: get-role + parameters: + - name: role-id + in: path + description: ID of the role to get. + required: true + example: team-7 + schema: + "$ref": "#/components/schemas/ID" + responses: + '200': + description: Success. + content: + application/json: + schema: + "$ref": "#/components/schemas/Role" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to get this role. + '404': + description: Role not found. + put: + tags: + - roles + summary: Update a role. The role will be created if it doesn't exist. + description: Update a role. The role will be created if it doesn't exist. + operationId: update-role + parameters: + - name: role-id + in: path + description: ID of the role to update. + required: true + example: team-1 + schema: + "$ref": "#/components/schemas/ID" + requestBody: + description: The metadata of the role. + content: + application/json: + schema: + "$ref": "#/components/schemas/Role" + required: true + responses: + '201': + description: Created. + '204': + description: Updated. + '400': + description: Invalid format or validation error. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to create/update this role. + '404': + description: Role not found. + x-codegen-request-body-name: body + delete: + tags: + - roles + summary: Delete an existing role + description: Delete an existing role. + operationId: delete-role + parameters: + - name: role-id + in: path + description: ID of the role to delete. + required: true + example: team-1 + schema: + "$ref": "#/components/schemas/ID" + responses: + '204': + description: Deleted. + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to delete this role. + '404': + description: Role not found. + "/idps/{idp-id}/users/{user-id}/roles": + get: + tags: + - role-bindings + summary: Get all the roles for the given user. + description: Get all the roles for the given user. + operationId: get-roles-of-user + parameters: + - name: idp-id + in: path + description: ID of the identity provider. + required: true + example: idp-1 + schema: + "$ref": "#/components/schemas/ID" + - name: user-id + in: path + description: ID of the user as given by the identity provider. + required: true + example: user-1 + schema: + type: string + responses: + '200': + description: Success. + content: + application/json: + schema: + type: array + description: List of role IDs assigned to the user. + example: + - role-1 + - role-2 + items: + type: string + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to get the roles for this user. + '404': + description: User not found. + patch: + tags: + - role-bindings + summary: Update the roles of the given user. + description: Update the roles of the given user. + operationId: update-roles-of-user + parameters: + - name: idp-id + in: path + description: ID of the identity provider. + required: true + example: idp-1 + schema: + "$ref": "#/components/schemas/ID" + - name: user-id + in: path + description: ID of the user as given by the identity provider. + required: true + example: user-1 + schema: + type: string + requestBody: + description: Add, remove or overwrite the roles of the user. + content: + application/json: + schema: + type: object + properties: + op: + type: string + description: "add: add these roles to the existing roles the user + has. \nremove: remove these roles from the existing roles the + user has. \noverwrite: completely overwrite the existing roles + the user has with these roles.\n" + enum: + - add + - remove + - overwrite + roles: + type: array + items: + type: string + description: List of role IDs + example: + - role-1 + - role-2 + items: + type: string + required: true + responses: + '204': + description: Success. + '400': + description: Invalid format or validation error. + content: + application/json: + schema: + "$ref": "#/components/schemas/Error" + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to update the roles for this user. + '404': + description: User not found. + x-codegen-request-body-name: body + "/idps/{idp-id}/users/{user-id}/roles/{role-id}": + put: + tags: + - role-bindings + summary: Add a role to a user. + description: Add a role to a user. + operationId: add-role-to-user + parameters: + - name: idp-id + in: path + description: ID of the identity provider. + required: true + example: idp-1 + schema: + "$ref": "#/components/schemas/ID" + - name: user-id + in: path + description: ID of the user as given by the identity provider. + required: true + example: user-1 + schema: + type: string + - name: role-id + in: path + description: ID of the role to add to the user. + required: true + example: team-7 + schema: + "$ref": "#/components/schemas/ID" + responses: + '201': + description: Created. + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to add this role to this user. + '404': + description: User not found. + delete: + tags: + - role-bindings + summary: Remove a role from a user. + description: Remove a role from a user. + operationId: remove-role-from-user + parameters: + - name: idp-id + in: path + description: ID of the identity provider. + required: true + example: idp-1 + schema: + "$ref": "#/components/schemas/ID" + - name: user-id + in: path + description: ID of the user as given by the identity provider. + required: true + example: user-1 + schema: + type: string + - name: role-id + in: path + description: ID of the role to remove from the user. + required: true + example: team-7 + schema: + "$ref": "#/components/schemas/ID" + responses: + '204': + description: Deleted. + '401': + "$ref": "#/components/responses/UnauthorizedError" + '403': + description: Don't have authorization to remove this role from this user. + '404': + description: User not found. + components: + securitySchemes: + basicAuth: + type: http + scheme: basic + bearerAuth: + type: http + scheme: bearer + responses: + UnauthorizedError: + description: Authorization header is missing or invalid. + headers: + WWW_Authenticate: + schema: + type: string + Token: + description: The access token. + headers: + Cache-Control: + schema: + type: string + enum: + - no-store + Pragma: + schema: + type: string + enum: + - no-cache + content: + application/json: + schema: + type: object + properties: + access_token: + type: string + example: eyJ0eXAiOiJKV1QiLA0KICJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFtcGxlLmNvbS9pc19yb290Ijp0cnVlfQ.dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk + token_type: + type: string + example: example + expires_in: + type: number + example: 3600 + schemas: + ID: + pattern: "^[a-zA-Z0-9-_]+$" + type: string + description: A unique ID. + example: id-1234 + RemoteSource: + pattern: "^git[+](https|ssh)://[a-zA-Z0-9]+([-.]{1}[a-zA-Z0-9]+)*[.][a-zA-Z]{2,5}(:[0-9]{1,5})?(/.*)?$" + type: string + description: A git URL. + example: git+https://github.com/konveyor/move2kube + Error: + required: + - error + type: object + properties: + error: + type: object + required: + - description + properties: + description: + type: string + description: A human readable error message. + example: 'failed to create the workspace. Error: ...' + Project: + required: + - id + - name + type: object + properties: + id: + type: object + description: A unique ID for the project. + example: proj-1234 + allOf: + - "$ref": "#/components/schemas/ID" + name: + type: string + description: A human readable name for the project. + example: Project 23 + timestamp: + type: string + format: date-time + outputs: + type: object + additionalProperties: + type: object + properties: + id: + type: string + format: uuid + name: + type: string + description: + type: string + timestamp: + type: string + format: date-time + status: + type: string + status: + type: object + properties: + plan: + type: boolean + plan_error: + type: boolean + planning: + type: boolean + reference: + type: boolean + stale_plan: + type: boolean + sources: + type: boolean + outputs: + type: boolean + inputs: + type: object + additionalProperties: + type: object + properties: + id: + type: string + name: + type: string + description: + type: string + timestamp: + type: string + format: date-time + type: + type: string + normalized_name: + type: string + description: + type: string + description: A description about the project. + example: This is one of the projects that team 1 is working on. + Workspace: + required: + - id + - name + type: object + properties: + id: + type: object + description: A unique ID for the workspace. + example: work-1234 + allOf: + - "$ref": "#/components/schemas/ID" + name: + type: string + description: A human readable name for the workspace. + example: Team 1 Workspace + timestamp: + type: string + format: date-time + project_ids: + type: array + items: + type: string + inputs: + type: object + additionalProperties: + type: object + properties: + id: + type: string + name: + type: string + description: + type: string + timestamp: + type: string + format: date-time + type: + type: string + normalized_name: + type: string + description: + type: string + description: A description about the workspace. + example: This is the workspace for all the projects of team 1. + projects: + type: array + items: + "$ref": "#/components/schemas/Project" + Resource: + type: string + description: A resource is a URL path. + example: "/api/v1/workspaces/work-1234/projects/proj-42" + Role: + required: + - id + - name + type: object + properties: + id: + type: object + description: A unique ID for the role. + example: team-1 + allOf: + - "$ref": "#/components/schemas/ID" + name: + type: string + description: A human readable name for the role. + example: Team 1 + description: + type: string + description: A description about the role + example: A member of team 1. + rules: + type: array + description: 'The list of rules to apply for this role. + + ' + example: + - resources: + - "/api/v1/workspaces/work-7/.+" + - "/api/v1/workspaces/work-42/projects/.*" + - "/api/v1/workspaces/work-123/projects/proj-2" + verbs: + - all + - resources: + - "/api/v1/workspaces/work-1234" + verbs: + - create-project + - delete-project + items: + required: + - resources + - verbs + type: object + properties: + resources: + type: array + description: | + List of resources. The elements of this list are Javascript ES6 Regex patterns. + When a request for a protected resource is received these regexs are used to + match against the resource URL. + items: + "$ref": "#/components/schemas/Resource" + verbs: + type: array + description: "List of allowed verbs. \nFor now the only supported + verb is `all` which allows all actions on the resource.\n" + items: + type: string + example: all + description: A rule is a list of resources and the list of allowed verbs + for those resources. +kind: ConfigMap +metadata: + creationTimestamp: null + name: 01-m2k-resources diff --git a/workflows/move2kube/manifests/01-sonataflow_m2k.yaml b/workflows/move2kube/manifests/01-sonataflow_m2k.yaml new file mode 100755 index 00000000..96383ed5 --- /dev/null +++ b/workflows/move2kube/manifests/01-sonataflow_m2k.yaml @@ -0,0 +1,307 @@ +apiVersion: sonataflow.org/v1alpha08 +kind: SonataFlow +metadata: + annotations: + sonataflow.org/description: Workflow to execute Move2Kube + sonataflow.org/expressionLang: jq + sonataflow.org/profile: preview + sonataflow.org/version: "1.0" + creationTimestamp: null + labels: + app: m2k + sonataflow.org/workflow-app: m2k + name: m2k +spec: + flow: + annotations: + - workflow-type/infrastructure + dataInputSchema: + failOnValidationErrors: true + schema: schemas/input.json + events: + - dataOnly: true + kind: consumed + name: errorEvent + type: error + - dataOnly: true + kind: consumed + name: transformationSavedEvent + type: transformation_saved + - dataOnly: true + kind: produced + name: saveTransformationEvent + type: save-transformation + functions: + - name: systemOut + operation: sysout + type: custom + - name: startPlanning + operation: specs/move2kube.yaml#start-planning + type: rest + - name: getPlanning + operation: specs/move2kube.yaml#get-plan + type: rest + - name: startTransformation + operation: specs/move2kube.yaml#start-transformation + type: rest + - name: createNotification + operation: notifications#createNotification + type: rest + - name: increasePlanRetries + operation: .planRetries=.planRetries + 1 + type: expression + - name: formatTransformationErrorExitMessage + operation: '{ exitMessage: "Error while saving transformation output: " + (if .error == null then "timeout exception was thrown." else .error end) }' + type: expression + start: + stateName: StartPlanning + states: + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + project-id: .projectId + remote-source: '"git+" + (.repositoryURL|sub("http(s)://?";"ssh://")) + "@" + .sourceBranch' + workspace-id: .workspaceId + invoke: sync + refName: startPlanning + name: StartPlanning + transition: + nextState: InitGetPlanningRetry + type: operation + - data: + planRetries: 0 + name: InitGetPlanningRetry + transition: + nextState: GetPlanning + type: inject + - actionMode: sequential + actions: + - actionDataFilter: + toStateData: . + useResults: true + functionRef: + arguments: + project-id: .projectId + workspace-id: .workspaceId + invoke: sync + refName: getPlanning + sleep: + before: PT2S + name: GetPlanning + transition: + nextState: IncreaseGetPlanningRetry + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + invoke: sync + refName: increasePlanRetries + name: IncreaseGetPlanningRetry + transition: + nextState: PlanRetrievedCheck + type: operation + - dataConditions: + - condition: (has("plan") and .plan != "") + transition: + nextState: StartTransformation + - condition: (.planRetries > ($SECRET.move2kube_get_plan_max_retries | tonumber)) + transition: + nextState: GetPlanRetryExceededError + defaultCondition: + transition: + nextState: GetPlanning + name: PlanRetrievedCheck + type: switch + - actionMode: sequential + actions: + - actionDataFilter: + results: .id + toStateData: .transformId + useResults: true + functionRef: + arguments: + plan: .plan + project-id: .projectId + workspace-id: .workspaceId + invoke: sync + refName: startTransformation + name: StartTransformation + transition: + nextState: PrintTransformationIdMessage + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: '${"m2k workflow: " + $WORKFLOW.instanceId + " transformation ID: " + .transformId }' + invoke: sync + refName: systemOut + name: printSystemOut + name: PrintTransformationIdMessage + transition: + nextState: NotifyTransformationWaiting + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + payload: + description: '"Please go to your move2kube instance and answer the questions in order to continue the Move2Kube workflow"' + link: '$SECRET.move2kube_url + "/workspaces/"+ .workspaceId + "/projects/" + .projectId + "/outputs/"+ .transformId ' + severity: normal + title: ' "Transformation " + .transformationId + " waiting for Q&A" ' + topic: Move2Kube Workflow + recipients: + entityRef: .recipients + type: entity + invoke: sync + refName: createNotification + name: createNotification + name: NotifyTransformationWaiting + transition: + nextState: WaitForSaveTransformationCompletionEvent + produceEvents: + - data: '{gitRepo:.repositoryURL|sub("http(s)?://";"ssh://"), branch: .targetBranch, workspaceId: .workspaceId, projectId: .projectId, transformId: .transformId, workflowCallerId: $WORKFLOW.instanceId}' + eventRef: saveTransformationEvent + type: operation + - defaultCondition: + transition: + nextState: TransformationError + eventConditions: + - eventRef: errorEvent + transition: + nextState: TransformationError + - eventRef: transformationSavedEvent + transition: + nextState: TransformationSaved + name: WaitForSaveTransformationCompletionEvent + timeouts: + eventTimeout: P90D + type: switch + - data: + exitMessage: Transformation successful. + name: TransformationSaved + transition: + nextState: PrintExitSuccessMessage + type: inject + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + invoke: sync + refName: formatTransformationErrorExitMessage + name: TransformationError + transition: + nextState: PrintExitErrorMessage + type: operation + - data: + exitMessage: '"Get plan retries exceeded, an error probably occurred, check the move2kube instance logs"' + name: GetPlanRetryExceededError + transition: + nextState: PrintExitErrorMessage + type: inject + - branches: + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: '"m2k workflow: " + $WORKFLOW.instanceId + " has finalized with error. Exit message: " + .exitMessage + " -- Plan retries: " + (.planRetries|tostring)' + invoke: sync + refName: systemOut + name: printSystemOut + name: printSystemOut + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + payload: + description: '"Move2Kube workflow " + $WORKFLOW.instanceId + " on workspace " + .workspaceId + " and project " + .projectId + " failed with exit message: "+ .exitMessage + " -- Plan retries: " + (.planRetries|tostring)' + severity: critical + title: '"Move2Kube workflow " + $WORKFLOW.instanceId + " failed"' + topic: Move2Kube Workflow + recipients: + entityRef: .recipients + type: entity + invoke: sync + refName: createNotification + name: createNotification + name: createNotification + completionType: allOf + end: + terminate: true + metadata: + errorMessage: '"Move2kube (m2k) workflow: " + $WORKFLOW.instanceId + " has finalized with error. Exit message: " + .exitMessage + " -- Plan retries: " + (.planRetries|tostring)' + name: PrintExitErrorMessage + numCompleted: 0 + type: parallel + - branches: + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: '${"m2k workflow: " + $WORKFLOW.instanceId + " has finalized successfully}"' + invoke: sync + refName: systemOut + name: printSystemOut + name: printSystemOut + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + payload: + description: '"Move2Kube workflow " + $WORKFLOW.instanceId + " on workspace " + .workspaceId + " and project " + .projectId + " was successful; the output is available in the branch " + .targetBranch + " of your git repository "+ .repositoryURL' + severity: normal + title: '"Move2Kube workflow " + $WORKFLOW.instanceId + " succeeded"' + topic: Move2Kube Workflow + recipients: + entityRef: .recipients + type: entity + invoke: sync + refName: createNotification + name: createNotification + name: createNotification + completionType: allOf + end: + terminate: true + name: PrintExitSuccessMessage + numCompleted: 0 + type: parallel + resources: + configMaps: + - configMap: + name: 01-m2k-resources + workflowPath: specs + podTemplate: + container: + image: quay.io/orchestrator/serverless-workflow-move2kube:fbc05d47 + envFrom: + - secretRef: + name: m2k-creds + persistence: + postgresql: + secretRef: + name: sonataflow-psql-postgresql + userKey: postgres-username + passwordKey: postgres-password + serviceRef: + name: sonataflow-psql-postgresql + port: 5432 + databaseName: sonataflow + databaseSchema: move2kube +status: + address: {} + lastTimeRecoverAttempt: null diff --git a/workflows/move2kube/manifests/02-configmap_m2k-props.yaml b/workflows/move2kube/manifests/02-configmap_m2k-props.yaml new file mode 100755 index 00000000..9dbd38a0 --- /dev/null +++ b/workflows/move2kube/manifests/02-configmap_m2k-props.yaml @@ -0,0 +1,34 @@ +apiVersion: v1 +data: + application.properties: |2 + + # Configuration for the incoming cloud events received by the serverless workflows. + mp.messaging.incoming.kogito_incoming_stream.connector=quarkus-http + mp.messaging.incoming.kogito_incoming_stream.path=/ + mp.messaging.incoming.kogito_incoming_stream.method=POST + + # This property is used when sending the notification while waiting for Q&A + move2kube_url=${MOVE2KUBE_URL} + move2kube_get_plan_max_retries=${MOVE2KUBE_GET_PLAN_MAX_RETRIES:10} + + # This property is used to send requests to the move2kube instance + quarkus.rest-client.move2kube_yaml.url=${MOVE2KUBE_URL} + + # This property is used to send requests to the backstage notification plugin + quarkus.rest-client.notifications.url=${BACKSTAGE_NOTIFICATIONS_URL} + quarkus.openapi-generator.notifications.auth.BearerToken.bearer-token=${NOTIFICATIONS_BEARER_TOKEN} + + # This property is used to select the log level, which controls the amount + # of information logged on HTTP requests based on the severity of the events. + # Possible values: OFF, FATAL, ERROR, WARN, INFO, DEBUG, ALL. + # and see https://quarkus.io/guides/logging for documentation + quarkus.log.category."org.apache.http".level=INFO + quarkus.log.level=INFO + quarkus.flyway.migrate-at-start=true +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app: m2k + sonataflow.org/workflow-app: m2k + name: m2k-props diff --git a/move2kube/pom.xml b/workflows/move2kube/pom.xml similarity index 100% rename from move2kube/pom.xml rename to workflows/move2kube/pom.xml diff --git a/move2kube/schemas/input.json b/workflows/move2kube/schemas/input.json similarity index 100% rename from move2kube/schemas/input.json rename to workflows/move2kube/schemas/input.json diff --git a/move2kube/schemas/workflow-output-schema.json b/workflows/move2kube/schemas/workflow-output-schema.json similarity index 100% rename from move2kube/schemas/workflow-output-schema.json rename to workflows/move2kube/schemas/workflow-output-schema.json diff --git a/move2kube/secret.properties b/workflows/move2kube/secret.properties similarity index 100% rename from move2kube/secret.properties rename to workflows/move2kube/secret.properties diff --git a/move2kube/sequence_diagram.jpg b/workflows/move2kube/sequence_diagram.jpg similarity index 100% rename from move2kube/sequence_diagram.jpg rename to workflows/move2kube/sequence_diagram.jpg diff --git a/move2kube/specs/move2kube.yaml b/workflows/move2kube/specs/move2kube.yaml similarity index 100% rename from move2kube/specs/move2kube.yaml rename to workflows/move2kube/specs/move2kube.yaml diff --git a/mta-v7.x/README.md b/workflows/mta-v7.x/README.md similarity index 100% rename from mta-v7.x/README.md rename to workflows/mta-v7.x/README.md diff --git a/mta-v7.x/application.properties b/workflows/mta-v7.x/application.properties similarity index 100% rename from mta-v7.x/application.properties rename to workflows/mta-v7.x/application.properties diff --git a/mta-v7.x/argfile.conf b/workflows/mta-v7.x/argfile.conf similarity index 100% rename from mta-v7.x/argfile.conf rename to workflows/mta-v7.x/argfile.conf diff --git a/mta-v7.x/mta.svg b/workflows/mta-v7.x/mta.svg similarity index 100% rename from mta-v7.x/mta.svg rename to workflows/mta-v7.x/mta.svg diff --git a/mta-v7.x/mta.sw.yaml b/workflows/mta-v7.x/mta.sw.yaml similarity index 100% rename from mta-v7.x/mta.sw.yaml rename to workflows/mta-v7.x/mta.sw.yaml diff --git a/mta-v7.x/schemas/mta-input.json b/workflows/mta-v7.x/schemas/mta-input.json similarity index 100% rename from mta-v7.x/schemas/mta-input.json rename to workflows/mta-v7.x/schemas/mta-input.json diff --git a/mta-v7.x/schemas/workflow-output-schema.json b/workflows/mta-v7.x/schemas/workflow-output-schema.json similarity index 100% rename from mta-v7.x/schemas/workflow-output-schema.json rename to workflows/mta-v7.x/schemas/workflow-output-schema.json diff --git a/mta-v7.x/secret.properties b/workflows/mta-v7.x/secret.properties similarity index 100% rename from mta-v7.x/secret.properties rename to workflows/mta-v7.x/secret.properties diff --git a/mta-v7.x/specs/mta.json b/workflows/mta-v7.x/specs/mta.json similarity index 100% rename from mta-v7.x/specs/mta.json rename to workflows/mta-v7.x/specs/mta.json diff --git a/mtv-migration/README.md b/workflows/mtv-migration/README.md similarity index 100% rename from mtv-migration/README.md rename to workflows/mtv-migration/README.md diff --git a/mtv-migration/application.properties b/workflows/mtv-migration/application.properties similarity index 100% rename from mtv-migration/application.properties rename to workflows/mtv-migration/application.properties diff --git a/mtv-migration/argfile.conf b/workflows/mtv-migration/argfile.conf similarity index 100% rename from mtv-migration/argfile.conf rename to workflows/mtv-migration/argfile.conf diff --git a/mtv-migration/mtv.svg b/workflows/mtv-migration/mtv.svg similarity index 100% rename from mtv-migration/mtv.svg rename to workflows/mtv-migration/mtv.svg diff --git a/mtv-migration/mtv.sw.yaml b/workflows/mtv-migration/mtv.sw.yaml similarity index 100% rename from mtv-migration/mtv.sw.yaml rename to workflows/mtv-migration/mtv.sw.yaml diff --git a/mtv-migration/schemas/mtv-input.json b/workflows/mtv-migration/schemas/mtv-input.json similarity index 100% rename from mtv-migration/schemas/mtv-input.json rename to workflows/mtv-migration/schemas/mtv-input.json diff --git a/mtv-migration/schemas/workflow-output-schema.json b/workflows/mtv-migration/schemas/workflow-output-schema.json similarity index 100% rename from mtv-migration/schemas/workflow-output-schema.json rename to workflows/mtv-migration/schemas/workflow-output-schema.json diff --git a/mtv-migration/secret.properties b/workflows/mtv-migration/secret.properties similarity index 100% rename from mtv-migration/secret.properties rename to workflows/mtv-migration/secret.properties diff --git a/mtv-migration/specs/mtv.yaml b/workflows/mtv-migration/specs/mtv.yaml similarity index 100% rename from mtv-migration/specs/mtv.yaml rename to workflows/mtv-migration/specs/mtv.yaml diff --git a/mtv-plan/README.md b/workflows/mtv-plan/README.md similarity index 100% rename from mtv-plan/README.md rename to workflows/mtv-plan/README.md diff --git a/mtv-plan/application.properties b/workflows/mtv-plan/application.properties similarity index 100% rename from mtv-plan/application.properties rename to workflows/mtv-plan/application.properties diff --git a/mtv-plan/argfile.conf b/workflows/mtv-plan/argfile.conf similarity index 100% rename from mtv-plan/argfile.conf rename to workflows/mtv-plan/argfile.conf diff --git a/mtv-plan/mtv.svg b/workflows/mtv-plan/mtv.svg similarity index 100% rename from mtv-plan/mtv.svg rename to workflows/mtv-plan/mtv.svg diff --git a/mtv-plan/mtv.sw.yaml b/workflows/mtv-plan/mtv.sw.yaml similarity index 100% rename from mtv-plan/mtv.sw.yaml rename to workflows/mtv-plan/mtv.sw.yaml diff --git a/mtv-plan/schemas/mtv-input.json b/workflows/mtv-plan/schemas/mtv-input.json similarity index 100% rename from mtv-plan/schemas/mtv-input.json rename to workflows/mtv-plan/schemas/mtv-input.json diff --git a/mtv-plan/schemas/workflow-output-schema.json b/workflows/mtv-plan/schemas/workflow-output-schema.json similarity index 100% rename from mtv-plan/schemas/workflow-output-schema.json rename to workflows/mtv-plan/schemas/workflow-output-schema.json diff --git a/mtv-plan/secret.properties b/workflows/mtv-plan/secret.properties similarity index 100% rename from mtv-plan/secret.properties rename to workflows/mtv-plan/secret.properties diff --git a/mtv-plan/specs/mtv.yaml b/workflows/mtv-plan/specs/mtv.yaml similarity index 100% rename from mtv-plan/specs/mtv.yaml rename to workflows/mtv-plan/specs/mtv.yaml diff --git a/request-vm-cnv/README.md b/workflows/request-vm-cnv/README.md similarity index 100% rename from request-vm-cnv/README.md rename to workflows/request-vm-cnv/README.md diff --git a/request-vm-cnv/application.properties b/workflows/request-vm-cnv/application.properties similarity index 100% rename from request-vm-cnv/application.properties rename to workflows/request-vm-cnv/application.properties diff --git a/request-vm-cnv/argfile.conf b/workflows/request-vm-cnv/argfile.conf similarity index 100% rename from request-vm-cnv/argfile.conf rename to workflows/request-vm-cnv/argfile.conf diff --git a/workflows/request-vm-cnv/manifests/01-configmap_01-request-cm-cnv-resources.yaml b/workflows/request-vm-cnv/manifests/01-configmap_01-request-cm-cnv-resources.yaml new file mode 100755 index 00000000..7fa04121 --- /dev/null +++ b/workflows/request-vm-cnv/manifests/01-configmap_01-request-cm-cnv-resources.yaml @@ -0,0 +1,51 @@ +apiVersion: v1 +data: + request-vm-cnv__main-schema.json: | + { + "$id": "classpath:/schemas/request-vm-cnv-schema.json", + "title": "Data input schema", + "$schema": "http://json-schema.org/draft-07/schema#", + "type": "object", + "properties": { + "inputs": { + "title": "Inputs", + "type": "object", + "properties": { + "projectKey": { + "title": "Project Key", + "description": "JIRA project key", + "type": "string" + }, + "vm_namespace": { + "title": "VM namespace", + "description": "Namespace in which create the VM", + "type": "string", + "default": "default", + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + "vm_name": { + "title": "VM name", + "description": "Name of the VM to create", + "type": "string", + "pattern": "^[a-z0-9]([-a-z0-9]*[a-z0-9])?$" + }, + "vm_image": { + "title": "VM image", + "description": "Image to use to create the VM", + "type": "string", + "enum": ["centos-stream8","centos-stream9","centos7","fedora","rhel7","rhel8","rhel9"] + } + }, + "required": [ + "projectKey", + "vm_name", + "vm_image", + "vm_namespace" + ] + } + } + } +kind: ConfigMap +metadata: + creationTimestamp: null + name: 01-request-vm-cnv-resources diff --git a/workflows/request-vm-cnv/manifests/01-sonataflow_request-cm-cnv.yaml b/workflows/request-vm-cnv/manifests/01-sonataflow_request-cm-cnv.yaml new file mode 100755 index 00000000..079a1188 --- /dev/null +++ b/workflows/request-vm-cnv/manifests/01-sonataflow_request-cm-cnv.yaml @@ -0,0 +1,417 @@ +apiVersion: sonataflow.org/v1alpha08 +kind: SonataFlow +metadata: + annotations: + sonataflow.org/description: Request VM on CNV + sonataflow.org/expressionLang: jq + sonataflow.org/profile: prod + sonataflow.org/version: "1.0" + creationTimestamp: null + labels: + app: request-vm-cnv + sonataflow.org/workflow-app: request-vm-cnv + name: request-vm-cnv +spec: + flow: + dataInputSchema: + failOnValidationErrors: true + schema: schemas/request-vm-cnv__main-schema.json + functions: + - name: readNamespacedVirtualMachine + operation: specs/kubevirt-openapi.yaml#readNamespacedVirtualMachine + type: rest + - name: createNamespacedVirtualMachine + operation: specs/kubevirt-openapi.yaml#createNamespacedVirtualMachine + type: rest + - name: jiraCreateIssue + operation: specs/jira-openapi.json#createIssue + type: rest + - name: jiraGetIssue + operation: specs/jira-openapi.json#getIssue + type: rest + - name: createNotification + operation: specs/notifications-openapi.yaml#createNotification + type: rest + - name: print + operation: sysout + type: custom + - name: increaseVMStatusRunningRetries + operation: .vmStatusRunningRetries=.vmStatusRunningRetries + 1 + type: expression + start: + stateName: Open issue on JIRA + states: + - actionMode: sequential + actions: + - actionDataFilter: + toStateData: .jiraCreateIssueResult + useResults: true + functionRef: + arguments: + fields: + description: '"Authorization request to create VM " + .inputs.vm_name + + " in namespace "+.inputs.vm_namespace + " using image "+ .inputs.vm_image' + issuetype: + name: Task + labels: + - backstage-workflow + - '"workflowId=" + $WORKFLOW.instanceId' + project: + key: .inputs.projectKey + summary: '"Authorization request to create VM " + .inputs.vm_name + + " in namespace "+.inputs.vm_namespace' + invoke: sync + refName: jiraCreateIssue + name: callbackAction + name: Open issue on JIRA + transition: + nextState: 'Notify Backstage: JIRA ticket created' + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + actions: + - title: View on JIRA + url: $SECRET.jira_url + "/jira/servicedesk/projects/" + .inputs.projectKey + + "/issues/" + .jiraCreateIssueResult.key + message: '"JIRA ticket created to request authorization to create VM " + + .inputs.vm_name + " in namespace "+.inputs.vm_namespace' + origin: SonataFlow + targetUsers: + - default/guest + title: '"JIRA ticket created for VM " + .inputs.vm_name' + topic: Request CM on CNV workflow + invoke: sync + refName: createNotification + name: 'Create notification: JIRA ticket created' + name: 'Notify Backstage: JIRA ticket created' + transition: + nextState: Poll issue + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + toStateData: .jiraGetIssueResult + useResults: true + functionRef: + arguments: + issueIdOrKey: .jiraCreateIssueResult.id + invoke: sync + refName: jiraGetIssue + name: get issue + sleep: + before: PT10S + name: Poll issue + transition: + nextState: Check issue done + type: operation + - dataConditions: + - condition: .jiraGetIssueResult.fields.status.statusCategory.key == "done" + and .jiraGetIssueResult.fields.resolution.name != "Done" + name: VM creation denied + transition: + nextState: Notify VM creation denied + - condition: .jiraGetIssueResult.fields.status.statusCategory.key == "done" + and .jiraGetIssueResult.fields.resolution.name == "Done" + name: VM creation authorized + transition: + nextState: Notify VM creation authorized + defaultCondition: + transition: + nextState: Poll issue + name: Check issue done + type: switch + - branches: + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: '${"VM creation authorized, see Jira issue: " + $SECRET.jira_url + + "/jira/servicedesk/projects/" + .inputs.projectKey + "/issues/" + + .jiraCreateIssueResult.key + " ==> " + .inputs.vm_name}' + invoke: sync + refName: print + name: printSystemOut + name: printSystemOut + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: '"Authorization granted to create VM" + .inputs.vm_name + " + in namespace "+.inputs.vm_namespace + " using image "+ .inputs.vm_image + +". A notification will be sent once the VM is ready."' + origin: SonataFlow + targetUsers: + - default/guest + title: '"Authorization granted to create VM" + .inputs.vm_name + " in + namespace "+.inputs.vm_namespace' + topic: Request VM on CNV workflow + invoke: sync + refName: createNotification + name: 'Create notification: VM creation authorized' + name: 'Create notification: VM creation authorized' + completionType: allOf + name: Notify VM creation authorized + numCompleted: 0 + transition: + nextState: Create VM + type: parallel + - actionMode: sequential + actions: + - actionDataFilter: + toStateData: .createdVM + useResults: true + functionRef: + arguments: + apiVersion: kubevirt.io/v1 + kind: VirtualMachine + metadata: + labels: + app: .inputs.vm_name + name: .inputs.vm_name + namespace: .inputs.vm_namespace + namespace: .inputs.vm_namespace + spec: + dataVolumeTemplates: + - apiVersion: cdi.kubevirt.io/v1beta1 + kind: DataVolume + metadata: + name: .inputs.vm_name + spec: + sourceRef: + kind: DataSource + name: .inputs.vm_image + namespace: openshift-virtualization-os-images + storage: + resources: + requests: + storage: 30Gi + running: true + template: + metadata: + labels: + kubevirt.io/domain: .inputs.vm_name + kubevirt.io/size: small + spec: + architecture: amd64 + domain: + cpu: + cores: 1 + sockets: 1 + threads: 1 + devices: + disks: + - disk: + bus: virtio + name: rootdisk + - disk: + bus: virtio + name: cloudinitdisk + interfaces: + - masquerade: {} + name: default + memory: + guest: 2Gi + networks: + - name: default + pod: {} + volumes: + - dataVolume: + name: .inputs.vm_name + name: rootdisk + - cloudInitNoCloud: + userData: |- + #cloud-config + user: cloud-user + password: 0fb2-7rts-vnrb + chpasswd: { expire: False } + name: cloudinitdisk + invoke: sync + refName: createNamespacedVirtualMachine + name: Create VM + transition: + nextState: InitVMStatusRunningRetry + type: operation + - data: + vmStatusRunningRetries: 0 + name: InitVMStatusRunningRetry + transition: + nextState: Poll VM + type: inject + - actionMode: sequential + actions: + - actionDataFilter: + toStateData: .vm + useResults: true + functionRef: + arguments: + name: .inputs.vm_name + namespace: .inputs.vm_namespace + invoke: sync + refName: readNamespacedVirtualMachine + name: get VM + sleep: + before: PT10S + name: Poll VM + transition: + nextState: IncreaseVMStatusRunningRetriesRetry + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + invoke: sync + refName: increaseVMStatusRunningRetries + name: IncreaseVMStatusRunningRetriesRetry + transition: + nextState: Check VM status + type: operation + - dataConditions: + - condition: .vm.status.ready == true + name: VM running + transition: + nextState: Notify VM Created + - condition: (.vmStatusRunningRetries > ($SECRET.vm_check_running_max_retries + | tonumber)) + name: VM not running + transition: + nextState: Notify VM not running + defaultCondition: + transition: + nextState: Poll VM + name: Check VM status + type: switch + - branches: + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: 'VM running: .vm' + invoke: sync + refName: print + name: printSystemOut + name: printSystemOut + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + actions: + - title: Open console + url: $SECRET.cluster_console_url + "/k8s/ns/" + .inputs.vm_namespace + + "/kubevirt.io~v1~VirtualMachine/" + .inputs.vm_name + "/console/standalone" + message: '"VM" + .inputs.vm_name + " in namespace "+.inputs.vm_namespace + + " using image "+ .inputs.vm_image +" ready and running."' + origin: SonataFlow + targetUsers: + - default/guest + title: '"VM" + .inputs.vm_name + " in namespace "+.inputs.vm_namespace + + " ready"' + topic: Request VM on CNV workflow + invoke: sync + refName: createNotification + name: 'Create notification: VM creation running' + name: 'Create notification: VM running' + completionType: allOf + end: + terminate: true + name: Notify VM Created + numCompleted: 0 + type: parallel + - branches: + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: 'VM not running: .vm' + invoke: sync + refName: print + name: printSystemOut + name: printSystemOut + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: '"VM" + .inputs.vm_name + " in namespace "+.inputs.vm_namespace + + " using image "+ .inputs.vm_image +" not ready after "+.vmStatusRunningRetries+" + retries: " + .vm.status' + origin: SonataFlow + targetUsers: + - default/guest + title: '"VM" + .inputs.vm_name + " in namespace "+.inputs.vm_namespace + + " not ready"' + topic: Request VM on CNV workflow + invoke: sync + refName: createNotification + name: 'Create notification: VM not running' + name: 'Create notification: VM not running' + completionType: allOf + end: + terminate: true + name: Notify VM not running + numCompleted: 0 + type: parallel + - branches: + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: '${"VM creation denied, see Jira issue: " + $SECRET.jira_url + + "/jira/servicedesk/projects/" + .inputs.projectKey + "/issues/" + + .jiraCreateIssueResult.key + " ==> " + .inputs.vm_name}' + invoke: sync + refName: print + name: printSystemOut + name: printSystemOut + - actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + actions: + - title: View on JIRA + url: $SECRET.jira_url + "/jira/servicedesk/projects/" + .inputs.projectKey + + "/issues/" + .jiraCreateIssueResult.key + message: '"Authorization denied to create VM" + .inputs.vm_name + " + in namespace "+.inputs.vm_namespace + " using image "+ .inputs.vm_image ' + origin: SonataFlow + targetUsers: + - default/guest + title: '"Authorization denied to create VM" + .inputs.vm_name + " in + namespace "+.inputs.vm_namespace' + topic: Request VM on CNV workflow + invoke: sync + refName: createNotification + name: 'Create notification: VM creation denied' + name: 'Create notification: VM creation denied' + completionType: allOf + end: + terminate: true + name: Notify VM creation denied + numCompleted: 0 + type: parallel + podTemplate: + container: + resources: {} + image: quay.io/gfarache/serverless-workflow-request-vm-cnv:latest + resources: + configMaps: + - configMap: + name: 01-request-vm-cnv-resources + workflowPath: schemas + - configMap: + name: 02-request-vm-cnv-resources + workflowPath: specs +status: + address: {} + lastTimeRecoverAttempt: null diff --git a/workflows/request-vm-cnv/manifests/02-configmap_02-request-cm-cnv-resources.yaml b/workflows/request-vm-cnv/manifests/02-configmap_02-request-cm-cnv-resources.yaml new file mode 100755 index 00000000..5890a9df --- /dev/null +++ b/workflows/request-vm-cnv/manifests/02-configmap_02-request-cm-cnv-resources.yaml @@ -0,0 +1,8249 @@ +apiVersion: v1 +data: + jira-openapi.json: "{\n \"openapi\": \"3.0.1\",\n \"info\": {\n \"title\": + \"JIRA Actions for BS API\",\n \"description\": \"JIRA Actions BS API\",\n + \ \"version\": \"0.0.1\"\n },\n \"paths\": {\n \"/rest/api/2/issue/{issueIdOrKey}\":{\n + \ \"get\":{\n \"deprecated\": false,\n \"security\": [\n + \ {\n \"basicAuth\": []\n }\n ],\n + \ \"description\":\"Returns the details for an issue.\\n\\nThe issue is + identified by its ID or key, however, if the identifier doesn't match an issue, + a case-insensitive search and check for moved issues is performed. If a matching + issue is found its details are returned, a 302 or other redirect is **not** returned. + The issue key returned in the response is the key of the issue found.\\n\\nThis + operation can be accessed anonymously.\\n\\n**[Permissions](#permissions) required:**\\n\\n + * *Browse projects* [project permission](https://confluence.atlassian.com/x/yodKLg) + for the project that the issue is in.\\n * If [issue-level security](https://confluence.atlassian.com/x/J4lKLg) + is configured, issue-level security permission to view the issue.\",\n \"operationId\":\"getIssue\",\n + \ \"parameters\":[\n {\n \"description\":\"The + ID or key of the issue.\",\n \"in\":\"path\",\n \"name\":\"issueIdOrKey\",\n + \ \"required\":true,\n \"schema\":{\n \"type\":\"string\"\n + \ }\n },\n {\n \"description\":\"A + list of fields to return for the issue. This parameter accepts a comma-separated + list. Use it to retrieve a subset of fields. Allowed values:\\n\\n * `*all` Returns + all fields.\\n * `*navigable` Returns navigable fields.\\n * Any issue field, + prefixed with a minus to exclude.\\n\\nExamples:\\n\\n * `summary,comment` Returns + only the summary and comments fields.\\n * `-description` Returns all (default) + fields except description.\\n * `*navigable,-comment` Returns all navigable fields + except comment.\\n\\nThis parameter may be specified multiple times. For example, + `fields=field1,field2& fields=field3`.\\n\\nNote: All fields are returned by default. + This differs from [Search for issues using JQL (GET)](#api-rest-api-2-search-get) + and [Search for issues using JQL (POST)](#api-rest-api-2-search-post) where the + default is all navigable fields.\",\n \"in\":\"query\",\n \"name\":\"fields\",\n + \ \"schema\":{\n \"items\":{\n \"default\":\"*all\",\n + \ \"type\":\"string\"\n },\n \"type\":\"array\"\n + \ }\n },\n {\n \"description\":\"Whether + fields in `fields` are referenced by keys rather than IDs. This parameter is useful + where fields have been added by a connect app and a field's key may differ from + its ID.\",\n \"in\":\"query\",\n \"name\":\"fieldsByKeys\",\n + \ \"schema\":{\n \"default\":false,\n \"type\":\"boolean\"\n + \ }\n },\n {\n \"description\":\"Use + [expand](#expansion) to include additional information about the issues in the + response. This parameter accepts a comma-separated list. Expand options include:\\n\\n + * `renderedFields` Returns field values rendered in HTML format.\\n * `names` + Returns the display name of each field.\\n * `schema` Returns the schema describing + a field type.\\n * `transitions` Returns all possible transitions for the issue.\\n + * `editmeta` Returns information about how each field can be edited.\\n * `changelog` + Returns a list of recent updates to an issue, sorted by date, starting from the + most recent.\\n * `versionedRepresentations` Returns a JSON array for each version + of a field's value, with the highest number representing the most recent version. + Note: When included in the request, the `fields` parameter is ignored.\",\n \"in\":\"query\",\n + \ \"name\":\"expand\",\n \"schema\":{\n \"type\":\"string\"\n + \ }\n },\n {\n \"description\":\"A + list of issue properties to return for the issue. This parameter accepts a comma-separated + list. Allowed values:\\n\\n * `*all` Returns all issue properties.\\n * Any + issue property key, prefixed with a minus to exclude.\\n\\nExamples:\\n\\n * `*all` + Returns all properties.\\n * `*all,-prop1` Returns all properties except `prop1`.\\n + * `prop1,prop2` Returns `prop1` and `prop2` properties.\\n\\nThis parameter may + be specified multiple times. For example, `properties=prop1,prop2& properties=prop3`.\",\n + \ \"in\":\"query\",\n \"name\":\"properties\",\n \"schema\":{\n + \ \"items\":{\n \"default\":\"null\",\n \"type\":\"string\"\n + \ },\n \"type\":\"array\"\n }\n + \ },\n {\n \"description\":\"Whether the project + in which the issue is created is added to the user's **Recently viewed** project + list, as shown under **Projects** in Jira. This also populates the [JQL issues + search](#api-rest-api-2-search-get) `lastViewed` field.\",\n \"in\":\"query\",\n + \ \"name\":\"updateHistory\",\n \"schema\":{\n \"default\":false,\n + \ \"type\":\"boolean\"\n }\n }\n ],\n + \ \"responses\":{\n \"200\":{\n \"content\":{\n + \ \"application/json\":{\n \"example\":\"{\\\"fields\\\":{\\\"watcher\\\":{\\\"isWatching\\\":false,\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/issue/EX-1/watchers\\\",\\\"watchCount\\\":1,\\\"watchers\\\":[{\\\"accountId\\\":\\\"5b10a2844c20165700ede21g\\\",\\\"active\\\":false,\\\"displayName\\\":\\\"Mia + Krystof\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g\\\"}]},\\\"attachment\\\":[{\\\"author\\\":{\\\"accountId\\\":\\\"5b10a2844c20165700ede21g\\\",\\\"accountType\\\":\\\"atlassian\\\",\\\"active\\\":false,\\\"avatarUrls\\\":{\\\"16x16\\\":\\\"https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=16&s=16\\\",\\\"24x24\\\":\\\"https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=24&s=24\\\",\\\"32x32\\\":\\\"https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=32&s=32\\\",\\\"48x48\\\":\\\"https://avatar-management--avatars.server-location.prod.public.atl-paas.net/initials/MK-5.png?size=48&s=48\\\"},\\\"displayName\\\":\\\"Mia + Krystof\\\",\\\"key\\\":\\\"\\\",\\\"name\\\":\\\"\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g\\\"},\\\"content\\\":\\\"https://your-domain.atlassian.net/jira/rest/api/3/attachment/content/10001\\\",\\\"created\\\":\\\"2023-06-24T19:24:50.000+0000\\\",\\\"filename\\\":\\\"debuglog.txt\\\",\\\"id\\\":10001,\\\"mimeType\\\":\\\"text/plain\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/attachments/10001\\\",\\\"size\\\":2460}],\\\"sub-tasks\\\":[{\\\"id\\\":\\\"10000\\\",\\\"outwardIssue\\\":{\\\"fields\\\":{\\\"status\\\":{\\\"iconUrl\\\":\\\"https://your-domain.atlassian.net/images/icons/statuses/open.png\\\",\\\"name\\\":\\\"Open\\\"}},\\\"id\\\":\\\"10003\\\",\\\"key\\\":\\\"ED-2\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/issue/ED-2\\\"},\\\"type\\\":{\\\"id\\\":\\\"10000\\\",\\\"inward\\\":\\\"Parent\\\",\\\"name\\\":\\\"\\\",\\\"outward\\\":\\\"Sub-task\\\"}}],\\\"description\\\":\\\"Main + order flow broken\\\",\\\"project\\\":{\\\"avatarUrls\\\":{\\\"16x16\\\":\\\"https://your-domain.atlassian.net/secure/projectavatar?size=xsmall&pid=10000\\\",\\\"24x24\\\":\\\"https://your-domain.atlassian.net/secure/projectavatar?size=small&pid=10000\\\",\\\"32x32\\\":\\\"https://your-domain.atlassian.net/secure/projectavatar?size=medium&pid=10000\\\",\\\"48x48\\\":\\\"https://your-domain.atlassian.net/secure/projectavatar?size=large&pid=10000\\\"},\\\"id\\\":\\\"10000\\\",\\\"insight\\\":{\\\"lastIssueUpdateTime\\\":\\\"2021-04-22T05:37:05.000+0000\\\",\\\"totalIssueCount\\\":100},\\\"key\\\":\\\"EX\\\",\\\"name\\\":\\\"Example\\\",\\\"projectCategory\\\":{\\\"description\\\":\\\"First + Project Category\\\",\\\"id\\\":\\\"10000\\\",\\\"name\\\":\\\"FIRST\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/projectCategory/10000\\\"},\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/project/EX\\\",\\\"simplified\\\":false,\\\"style\\\":\\\"classic\\\"},\\\"comment\\\":[{\\\"author\\\":{\\\"accountId\\\":\\\"5b10a2844c20165700ede21g\\\",\\\"active\\\":false,\\\"displayName\\\":\\\"Mia + Krystof\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g\\\"},\\\"body\\\":\\\"Lorem + ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget venenatis + elit. Duis eu justo eget augue iaculis fermentum. Sed semper quam laoreet nisi + egestas at posuere augue semper.\\\",\\\"created\\\":\\\"2021-01-17T12:34:00.000+0000\\\",\\\"id\\\":\\\"10000\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/issue/10010/comment/10000\\\",\\\"updateAuthor\\\":{\\\"accountId\\\":\\\"5b10a2844c20165700ede21g\\\",\\\"active\\\":false,\\\"displayName\\\":\\\"Mia + Krystof\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g\\\"},\\\"updated\\\":\\\"2021-01-18T23:45:00.000+0000\\\",\\\"visibility\\\":{\\\"identifier\\\":\\\"Administrators\\\",\\\"type\\\":\\\"role\\\",\\\"value\\\":\\\"Administrators\\\"}}],\\\"issuelinks\\\":[{\\\"id\\\":\\\"10001\\\",\\\"outwardIssue\\\":{\\\"fields\\\":{\\\"status\\\":{\\\"iconUrl\\\":\\\"https://your-domain.atlassian.net/images/icons/statuses/open.png\\\",\\\"name\\\":\\\"Open\\\"}},\\\"id\\\":\\\"10004L\\\",\\\"key\\\":\\\"PR-2\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/issue/PR-2\\\"},\\\"type\\\":{\\\"id\\\":\\\"10000\\\",\\\"inward\\\":\\\"depends + on\\\",\\\"name\\\":\\\"Dependent\\\",\\\"outward\\\":\\\"is depended by\\\"}},{\\\"id\\\":\\\"10002\\\",\\\"inwardIssue\\\":{\\\"fields\\\":{\\\"status\\\":{\\\"iconUrl\\\":\\\"https://your-domain.atlassian.net/images/icons/statuses/open.png\\\",\\\"name\\\":\\\"Open\\\"}},\\\"id\\\":\\\"10004\\\",\\\"key\\\":\\\"PR-3\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/issue/PR-3\\\"},\\\"type\\\":{\\\"id\\\":\\\"10000\\\",\\\"inward\\\":\\\"depends + on\\\",\\\"name\\\":\\\"Dependent\\\",\\\"outward\\\":\\\"is depended by\\\"}}],\\\"worklog\\\":[{\\\"author\\\":{\\\"accountId\\\":\\\"5b10a2844c20165700ede21g\\\",\\\"active\\\":false,\\\"displayName\\\":\\\"Mia + Krystof\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g\\\"},\\\"comment\\\":\\\"I + did some work here.\\\",\\\"id\\\":\\\"100028\\\",\\\"issueId\\\":\\\"10002\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/issue/10010/worklog/10000\\\",\\\"started\\\":\\\"2021-01-17T12:34:00.000+0000\\\",\\\"timeSpent\\\":\\\"3h + 20m\\\",\\\"timeSpentSeconds\\\":12000,\\\"updateAuthor\\\":{\\\"accountId\\\":\\\"5b10a2844c20165700ede21g\\\",\\\"active\\\":false,\\\"displayName\\\":\\\"Mia + Krystof\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/user?accountId=5b10a2844c20165700ede21g\\\"},\\\"updated\\\":\\\"2021-01-18T23:45:00.000+0000\\\",\\\"visibility\\\":{\\\"identifier\\\":\\\"276f955c-63d7-42c8-9520-92d01dca0625\\\",\\\"type\\\":\\\"group\\\",\\\"value\\\":\\\"jira-developers\\\"}}],\\\"updated\\\":1,\\\"timetracking\\\":{\\\"originalEstimate\\\":\\\"10m\\\",\\\"originalEstimateSeconds\\\":600,\\\"remainingEstimate\\\":\\\"3m\\\",\\\"remainingEstimateSeconds\\\":200,\\\"timeSpent\\\":\\\"6m\\\",\\\"timeSpentSeconds\\\":400}},\\\"id\\\":\\\"10002\\\",\\\"key\\\":\\\"ED-1\\\",\\\"self\\\":\\\"https://your-domain.atlassian.net/rest/api/2/issue/10002\\\"}\",\n + \ \"schema\":{\n \"$ref\":\"#/components/schemas/IssueBean\"\n + \ }\n }\n },\n \"description\":\"Returned + if the request is successful.\"\n },\n \"401\":{\n \"description\":\"Returned + if the authentication credentials are incorrect or missing.\"\n },\n + \ \"404\":{\n \"description\":\"Returned if the issue + is not found or the user does not have permission to view it.\"\n }\n + \ },\n \"summary\":\"Get issue\",\n \"tags\":[\n \"Issues\"\n + \ ],\n \"x-atlassian-connect-scope\":\"READ\"\n }\n },\n + \ \"/rest/api/2/issue\": {\n \"post\": {\n \"tags\": [\"Issues\"],\n + \ \"summary\": \"Create issue\",\n \"description\": \"Creates an + issue or, where the option to create subtasks is enabled in Jira, a subtask. A + transition may be applied, to move the issue or subtask to a workflow step other + than the default start step, and issue properties set.\\n\\nThe content of the + issue or subtask is defined using `update` and `fields`. The fields that can be + set in the issue or subtask are determined using the [ Get create issue metadata](#api-rest-api-3-issue-createmeta-get). + These are the same fields that appear on the issue's create screen. Note that + the `description`, `environment`, and any `textarea` type custom fields (multi-line + text fields) take Atlassian Document Format content. Single line custom fields + (`textfield`) accept a string and don't handle Atlassian Document Format content.\\n\\nCreating + a subtask differs from creating an issue as follows:\\n\\n * `issueType` must + be set to a subtask issue type (use [ Get create issue metadata](#api-rest-api-3-issue-createmeta-get) + to find subtask issue types).\\n * `parent` must contain the ID or key of the + parent issue.\\n\\nIn a next-gen project any issue may be made a child providing + that the parent and child are members of the same project.\\n\\n**[Permissions](#permissions) + required:** *Browse projects* and *Create issues* [project permissions](https://confluence.atlassian.com/x/yodKLg) + for the project in which the issue or subtask is created.\",\n \"operationId\": + \"createIssue\",\n \"parameters\": [\n {\n \"name\": + \"updateHistory\",\n \"in\": \"query\",\n \"description\": + \"Whether the project in which the issue is created is added to the user's **Recently + viewed** project list, as shown under **Projects** in Jira. When provided, the + issue type and request type are added to the user's history for a project. These + values are then used to provide defaults on the issue create screen.\",\n \"schema\": + {\n \"type\": \"boolean\",\n \"default\": false\n }\n + \ }\n ],\n \"requestBody\": {\n \"description\": + \"Input parameters for the action createIssue in BS\",\n \"required\": + true,\n \"content\": {\n \"application/json\": {\n \"schema\": + {\n \"$ref\": \"#/components/schemas/IssueUpdateDetails\"\n }\n + \ }\n }\n },\n \"responses\": {\n \"default\": + {\n \"description\": \"Create Issue Response\",\n \"content\": + {\n \"application/json\": {\n \"schema\": {\n \"type\": + \"object\"\n }\n }\n }\n }\n },\n + \ \"deprecated\": false,\n \"security\": [\n {\n \"basicAuth\": + []\n }\n ]\n }\n }\n },\n \"components\": {\n \"schemas\": + {\n \"ChangeDetails\":{\n \"additionalProperties\":false,\n \"description\":\"A + change item.\",\n \"properties\":{\n \"field\":{\n \"description\":\"The + name of the field changed.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"fieldId\":{\n \"description\":\"The ID + of the field changed.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"fieldtype\":{\n \"description\":\"The + type of the field changed.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"from\":{\n \"description\":\"The details + of the original value.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"fromString\":{\n \"description\":\"The + details of the original value as a string.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"to\":{\n \"description\":\"The + details of the new value.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"toString\":{\n \"description\":\"The + details of the new value as a string.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"HistoryMetadataParticipant\":{\n + \ \"additionalProperties\":true,\n \"description\":\"Details of user + or system associated with a issue history metadata item.\",\n \"properties\":{\n + \ \"avatarUrl\":{\n \"description\":\"The URL to an avatar + for the user or system associated with a history record.\",\n \"type\":\"string\"\n + \ },\n \"displayName\":{\n \"description\":\"The + display name of the user or system associated with a history record.\",\n \"type\":\"string\"\n + \ },\n \"displayNameKey\":{\n \"description\":\"The + key of the display name of the user or system associated with a history record.\",\n + \ \"type\":\"string\"\n },\n \"id\":{\n \"description\":\"The + ID of the user or system associated with a history record.\",\n \"type\":\"string\"\n + \ },\n \"type\":{\n \"description\":\"The type + of the user or system associated with a history record.\",\n \"type\":\"string\"\n + \ },\n \"url\":{\n \"description\":\"The URL of + the user or system associated with a history record.\",\n \"type\":\"string\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"HistoryMetadata\":{\n + \ \"additionalProperties\":true,\n \"description\":\"Details of issue + history metadata.\",\n \"properties\":{\n \"activityDescription\":{\n + \ \"description\":\"The activity described in the history record.\",\n + \ \"type\":\"string\"\n },\n \"activityDescriptionKey\":{\n + \ \"description\":\"The key of the activity described in the history + record.\",\n \"type\":\"string\"\n },\n \"actor\":{\n + \ \"allOf\":[\n {\n \"$ref\":\"#/components/schemas/HistoryMetadataParticipant\"\n + \ }\n ],\n \"description\":\"Details + of the user whose action created the history record.\"\n },\n \"cause\":{\n + \ \"allOf\":[\n {\n \"$ref\":\"#/components/schemas/HistoryMetadataParticipant\"\n + \ }\n ],\n \"description\":\"Details + of the cause that triggered the creation the history record.\"\n },\n + \ \"description\":{\n \"description\":\"The description + of the history record.\",\n \"type\":\"string\"\n },\n + \ \"descriptionKey\":{\n \"description\":\"The description + key of the history record.\",\n \"type\":\"string\"\n },\n + \ \"emailDescription\":{\n \"description\":\"The description + of the email address associated the history record.\",\n \"type\":\"string\"\n + \ },\n \"emailDescriptionKey\":{\n \"description\":\"The + description key of the email address associated the history record.\",\n \"type\":\"string\"\n + \ },\n \"extraData\":{\n \"additionalProperties\":{\n + \ \"type\":\"string\"\n },\n \"description\":\"Additional + arbitrary information about the history record.\",\n \"type\":\"object\"\n + \ },\n \"generator\":{\n \"allOf\":[\n {\n + \ \"$ref\":\"#/components/schemas/HistoryMetadataParticipant\"\n + \ }\n ],\n \"description\":\"Details + of the system that generated the history record.\"\n },\n \"type\":{\n + \ \"description\":\"The type of the history record.\",\n \"type\":\"string\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"AvatarUrlsBean\":{\n + \ \"additionalProperties\":false,\n \"properties\":{\n \"16x16\":{\n + \ \"description\":\"The URL of the item's 16x16 pixel avatar.\",\n + \ \"format\":\"uri\",\n \"type\":\"string\"\n },\n + \ \"24x24\":{\n \"description\":\"The URL of the item's + 24x24 pixel avatar.\",\n \"format\":\"uri\",\n \"type\":\"string\"\n + \ },\n \"32x32\":{\n \"description\":\"The URL + of the item's 32x32 pixel avatar.\",\n \"format\":\"uri\",\n \"type\":\"string\"\n + \ },\n \"48x48\":{\n \"description\":\"The URL + of the item's 48x48 pixel avatar.\",\n \"format\":\"uri\",\n \"type\":\"string\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"UserDetails\":{\n + \ \"additionalProperties\":false,\n \"description\":\"User details + permitted by the user's Atlassian Account privacy settings. However, be aware + of these exceptions:\\n\\n * User record deleted from Atlassian: This occurs + as the result of a right to be forgotten request. In this case, `displayName` + provides an indication and other parameters have default values or are blank (for + example, email is blank).\\n * User record corrupted: This occurs as a results + of events such as a server import and can only happen to deleted users. In this + case, `accountId` returns *unknown* and all other parameters have fallback values.\\n + * User record unavailable: This usually occurs due to an internal service outage. + In this case, all parameters have fallback values.\",\n \"properties\":{\n + \ \"accountId\":{\n \"description\":\"The account ID of + the user, which uniquely identifies the user across all Atlassian products. For + example, *5b10ac8d82e05b22cc7d4ef5*.\",\n \"maxLength\":128,\n \"type\":\"string\"\n + \ },\n \"accountType\":{\n \"description\":\"The + type of account represented by this user. This will be one of 'atlassian' (normal + users), 'app' (application user) or 'customer' (Jira Service Desk customer user)\",\n + \ \"readOnly\":true,\n \"type\":\"string\"\n },\n + \ \"active\":{\n \"description\":\"Whether the user is active.\",\n + \ \"readOnly\":true,\n \"type\":\"boolean\"\n },\n + \ \"avatarUrls\":{\n \"allOf\":[\n {\n \"$ref\":\"#/components/schemas/AvatarUrlsBean\"\n + \ }\n ],\n \"description\":\"The avatars + of the user.\",\n \"readOnly\":true\n },\n \"displayName\":{\n + \ \"description\":\"The display name of the user. Depending on the + user’s privacy settings, this may return an alternative value.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"emailAddress\":{\n + \ \"description\":\"The email address of the user. Depending on the + user’s privacy settings, this may be returned as null.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"key\":{\n \"description\":\"This + property is no longer available and will be removed from the documentation soon. + See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) + for details.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"name\":{\n \"description\":\"This property + is no longer available and will be removed from the documentation soon. See the + [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) + for details.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"self\":{\n \"description\":\"The URL + of the user.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"timeZone\":{\n \"description\":\"The + time zone specified in the user's profile. Depending on the user’s privacy settings, + this may be returned as null.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"Changelog\":{\n + \ \"additionalProperties\":false,\n \"description\":\"A log of changes + made to issue fields. Changelogs related to workflow associations are currently + being deprecated.\",\n \"properties\":{\n \"author\":{\n \"allOf\":[\n + \ {\n \"$ref\":\"#/components/schemas/UserDetails\"\n + \ }\n ],\n \"description\":\"The user + who made the change.\",\n \"readOnly\":true\n },\n \"created\":{\n + \ \"description\":\"The date on which the change took place.\",\n + \ \"format\":\"date-time\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"historyMetadata\":{\n \"allOf\":[\n {\n + \ \"$ref\":\"#/components/schemas/HistoryMetadata\"\n }\n + \ ],\n \"description\":\"The history metadata associated + with the changed.\",\n \"readOnly\":true\n },\n \"id\":{\n + \ \"description\":\"The ID of the changelog.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"items\":{\n \"description\":\"The + list of items changed.\",\n \"items\":{\n \"$ref\":\"#/components/schemas/ChangeDetails\"\n + \ },\n \"readOnly\":true,\n \"type\":\"array\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"PageOfChangelogs\":{\n + \ \"additionalProperties\":false,\n \"description\":\"A page of changelogs.\",\n + \ \"properties\":{\n \"histories\":{\n \"description\":\"The + list of changelogs.\",\n \"items\":{\n \"$ref\":\"#/components/schemas/Changelog\"\n + \ },\n \"readOnly\":true,\n \"type\":\"array\"\n + \ },\n \"maxResults\":{\n \"description\":\"The + maximum number of results that could be on the page.\",\n \"format\":\"int32\",\n + \ \"readOnly\":true,\n \"type\":\"integer\"\n },\n + \ \"startAt\":{\n \"description\":\"The index of the first + item returned on the page.\",\n \"format\":\"int32\",\n \"readOnly\":true,\n + \ \"type\":\"integer\"\n },\n \"total\":{\n \"description\":\"The + number of results on the page.\",\n \"format\":\"int32\",\n \"readOnly\":true,\n + \ \"type\":\"integer\"\n }\n },\n \"type\":\"object\"\n + \ },\n \"IssueUpdateMetadata\":{\n \"description\":\"A list of editable + field details.\",\n \"properties\":{\n \"fields\":{\n \"additionalProperties\":{\n + \ \"$ref\":\"#/components/schemas/FieldMetadata\"\n },\n + \ \"readOnly\":true,\n \"type\":\"object\"\n }\n + \ },\n \"type\":\"object\"\n },\n \"FieldMetadata\":{\n \"additionalProperties\":false,\n + \ \"description\":\"The metadata describing an issue field.\",\n \"properties\":{\n + \ \"allowedValues\":{\n \"description\":\"The list of values + allowed in the field.\",\n \"items\":{\n \"readOnly\":true\n + \ },\n \"readOnly\":true,\n \"type\":\"array\"\n + \ },\n \"autoCompleteUrl\":{\n \"description\":\"The + URL that can be used to automatically complete the field.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"configuration\":{\n + \ \"additionalProperties\":{\n \"readOnly\":true\n + \ },\n \"description\":\"The configuration properties.\",\n + \ \"readOnly\":true,\n \"type\":\"object\"\n },\n + \ \"defaultValue\":{\n \"description\":\"The default value + of the field.\",\n \"readOnly\":true\n },\n \"hasDefaultValue\":{\n + \ \"description\":\"Whether the field has a default value.\",\n \"readOnly\":true,\n + \ \"type\":\"boolean\"\n },\n \"key\":{\n \"description\":\"The + key of the field.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"name\":{\n \"description\":\"The name + of the field.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"operations\":{\n \"description\":\"The + list of operations that can be performed on the field.\",\n \"items\":{\n + \ \"readOnly\":true,\n \"type\":\"string\"\n },\n + \ \"readOnly\":true,\n \"type\":\"array\"\n },\n + \ \"required\":{\n \"description\":\"Whether the field is + required.\",\n \"readOnly\":true,\n \"type\":\"boolean\"\n + \ },\n \"schema\":{\n \"allOf\":[\n {\n + \ \"$ref\":\"#/components/schemas/JsonTypeBean\"\n }\n + \ ],\n \"description\":\"The data type of the field.\",\n + \ \"readOnly\":true\n }\n },\n \"required\":[\n + \ \"key\",\n \"name\",\n \"operations\",\n \"required\",\n + \ \"schema\"\n ],\n \"type\":\"object\",\n \"xml\":{\n + \ \"name\":\"availableField\"\n }\n },\n \"JsonTypeBean\":{\n + \ \"additionalProperties\":false,\n \"description\":\"The schema + of a field.\",\n \"properties\":{\n \"configuration\":{\n \"additionalProperties\":{\n + \ \"readOnly\":true\n },\n \"description\":\"If + the field is a custom field, the configuration of the field.\",\n \"readOnly\":true,\n + \ \"type\":\"object\"\n },\n \"custom\":{\n \"description\":\"If + the field is a custom field, the URI of the field.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"customId\":{\n + \ \"description\":\"If the field is a custom field, the custom ID + of the field.\",\n \"format\":\"int64\",\n \"readOnly\":true,\n + \ \"type\":\"integer\"\n },\n \"items\":{\n \"description\":\"When + the data type is an array, the name of the field items within the array.\",\n + \ \"readOnly\":true,\n \"type\":\"string\"\n },\n + \ \"system\":{\n \"description\":\"If the field is a system + field, the name of the field.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"type\":{\n \"description\":\"The data + type of the field.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ }\n },\n \"required\":[\n \"type\"\n ],\n + \ \"type\":\"object\"\n },\n \"IncludedFields\":{\n \"additionalProperties\":false,\n + \ \"properties\":{\n \"actuallyIncluded\":{\n \"items\":{\n + \ \"type\":\"string\"\n },\n \"type\":\"array\",\n + \ \"uniqueItems\":true\n },\n \"excluded\":{\n + \ \"items\":{\n \"type\":\"string\"\n },\n + \ \"type\":\"array\",\n \"uniqueItems\":true\n },\n + \ \"included\":{\n \"items\":{\n \"type\":\"string\"\n + \ },\n \"type\":\"array\",\n \"uniqueItems\":true\n + \ }\n },\n \"type\":\"object\"\n },\n \"Operations\":{\n + \ \"additionalProperties\":true,\n \"description\":\"Details of the + operations that can be performed on the issue.\",\n \"properties\":{\n + \ \"linkGroups\":{\n \"description\":\"Details of the link + groups defining issue operations.\",\n \"items\":{\n \"$ref\":\"#/components/schemas/LinkGroup\"\n + \ },\n \"readOnly\":true,\n \"type\":\"array\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"LinkGroup\":{\n + \ \"additionalProperties\":false,\n \"description\":\"Details a link + group, which defines issue operations.\",\n \"properties\":{\n \"groups\":{\n + \ \"items\":{\n \"$ref\":\"#/components/schemas/LinkGroup\"\n + \ },\n \"type\":\"array\"\n },\n \"header\":{\n + \ \"$ref\":\"#/components/schemas/SimpleLink\"\n },\n \"id\":{\n + \ \"type\":\"string\"\n },\n \"links\":{\n \"items\":{\n + \ \"$ref\":\"#/components/schemas/SimpleLink\"\n },\n + \ \"type\":\"array\"\n },\n \"styleClass\":{\n + \ \"type\":\"string\"\n },\n \"weight\":{\n \"format\":\"int32\",\n + \ \"type\":\"integer\"\n }\n },\n \"type\":\"object\"\n + \ },\n \"SimpleLink\":{\n \"additionalProperties\":false,\n \"description\":\"Details + about the operations available in this version.\",\n \"properties\":{\n + \ \"href\":{\n \"type\":\"string\"\n },\n \"iconClass\":{\n + \ \"type\":\"string\"\n },\n \"id\":{\n \"type\":\"string\"\n + \ },\n \"label\":{\n \"type\":\"string\"\n },\n + \ \"styleClass\":{\n \"type\":\"string\"\n },\n + \ \"title\":{\n \"type\":\"string\"\n },\n \"weight\":{\n + \ \"format\":\"int32\",\n \"type\":\"integer\"\n }\n + \ },\n \"type\":\"object\",\n \"xml\":{\n \"name\":\"link\"\n + \ }\n },\n \"IssueTransition\":{\n \"additionalProperties\":true,\n + \ \"description\":\"Details of an issue transition.\",\n \"properties\":{\n + \ \"expand\":{\n \"description\":\"Expand options that include + additional transition details in the response.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"fields\":{\n \"additionalProperties\":{\n + \ \"$ref\":\"#/components/schemas/FieldMetadata\"\n },\n + \ \"description\":\"Details of the fields associated with the issue + transition screen. Use this information to populate `fields` and `update` in a + transition request.\",\n \"readOnly\":true,\n \"type\":\"object\"\n + \ },\n \"hasScreen\":{\n \"description\":\"Whether + there is a screen associated with the issue transition.\",\n \"readOnly\":true,\n + \ \"type\":\"boolean\"\n },\n \"id\":{\n \"description\":\"The + ID of the issue transition. Required when specifying a transition to undertake.\",\n + \ \"type\":\"string\"\n },\n \"isAvailable\":{\n + \ \"description\":\"Whether the transition is available to be performed.\",\n + \ \"readOnly\":true,\n \"type\":\"boolean\"\n },\n + \ \"isConditional\":{\n \"description\":\"Whether the issue + has to meet criteria before the issue transition is applied.\",\n \"readOnly\":true,\n + \ \"type\":\"boolean\"\n },\n \"isGlobal\":{\n + \ \"description\":\"Whether the issue transition is global, that is, + the transition is applied to issues regardless of their status.\",\n \"readOnly\":true,\n + \ \"type\":\"boolean\"\n },\n \"isInitial\":{\n + \ \"description\":\"Whether this is the initial issue transition for + the workflow.\",\n \"readOnly\":true,\n \"type\":\"boolean\"\n + \ },\n \"looped\":{\n \"type\":\"boolean\"\n },\n + \ \"name\":{\n \"description\":\"The name of the issue transition.\",\n + \ \"readOnly\":true,\n \"type\":\"string\"\n },\n + \ \"to\":{\n \"allOf\":[\n {\n \"$ref\":\"#/components/schemas/StatusDetails\"\n + \ }\n ],\n \"description\":\"Details + of the issue status after the transition.\",\n \"readOnly\":true\n + \ }\n },\n \"type\":\"object\"\n },\n \"StatusDetails\":{\n + \ \"additionalProperties\":true,\n \"description\":\"A status.\",\n + \ \"properties\":{\n \"description\":{\n \"description\":\"The + description of the status.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"iconUrl\":{\n \"description\":\"The URL + of the icon used to represent the status.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"id\":{\n \"description\":\"The + ID of the status.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"name\":{\n \"description\":\"The name + of the status.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"scope\":{\n \"allOf\":[\n {\n + \ \"$ref\":\"#/components/schemas/Scope\"\n }\n + \ ],\n \"description\":\"The scope of the field.\",\n + \ \"readOnly\":true\n },\n \"self\":{\n \"description\":\"The + URL of the status.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"statusCategory\":{\n \"allOf\":[\n {\n + \ \"$ref\":\"#/components/schemas/StatusCategory\"\n }\n + \ ],\n \"description\":\"The category assigned to the + status.\",\n \"readOnly\":true\n }\n },\n \"type\":\"object\"\n + \ },\n \"StatusCategory\":{\n \"additionalProperties\":true,\n \"description\":\"A + status category.\",\n \"properties\":{\n \"colorName\":{\n \"description\":\"The + name of the color used to represent the status category.\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"id\":{\n \"description\":\"The + ID of the status category.\",\n \"format\":\"int64\",\n \"readOnly\":true,\n + \ \"type\":\"integer\"\n },\n \"key\":{\n \"description\":\"The + key of the status category.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"name\":{\n \"description\":\"The name + of the status category.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"self\":{\n \"description\":\"The URL + of the status category.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"ProjectDetails\":{\n + \ \"additionalProperties\":false,\n \"description\":\"Details about + a project.\",\n \"properties\":{\n \"avatarUrls\":{\n \"allOf\":[\n + \ {\n \"$ref\":\"#/components/schemas/AvatarUrlsBean\"\n + \ }\n ],\n \"description\":\"The URLs + of the project's avatars.\",\n \"readOnly\":true\n },\n + \ \"id\":{\n \"description\":\"The ID of the project.\",\n + \ \"type\":\"string\"\n },\n \"key\":{\n \"description\":\"The + key of the project.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"name\":{\n \"description\":\"The name + of the project.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"projectCategory\":{\n \"allOf\":[\n {\n + \ \"$ref\":\"#/components/schemas/UpdatedProjectCategory\"\n + \ }\n ],\n \"description\":\"The category + the project belongs to.\",\n \"readOnly\":true\n },\n \"projectTypeKey\":{\n + \ \"description\":\"The [project type](https://confluence.atlassian.com/x/GwiiLQ#Jiraapplicationsoverview-Productfeaturesandprojecttypes) + of the project.\",\n \"enum\":[\n \"software\",\n + \ \"service_desk\",\n \"business\"\n ],\n + \ \"readOnly\":true,\n \"type\":\"string\"\n },\n + \ \"self\":{\n \"description\":\"The URL of the project + details.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"simplified\":{\n \"description\":\"Whether + or not the project is simplified.\",\n \"readOnly\":true,\n \"type\":\"boolean\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"UpdatedProjectCategory\":{\n + \ \"additionalProperties\":false,\n \"description\":\"A project category.\",\n + \ \"properties\":{\n \"description\":{\n \"description\":\"The + name of the project category.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"id\":{\n \"description\":\"The ID of + the project category.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"name\":{\n \"description\":\"The description + of the project category.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"self\":{\n \"description\":\"The URL + of the project category.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ }\n },\n \"type\":\"object\"\n },\n \"Scope\":{\n + \ \"additionalProperties\":true,\n \"description\":\"The projects + the item is associated with. Indicated for items associated with [next-gen projects](https://confluence.atlassian.com/x/loMyO).\",\n + \ \"properties\":{\n \"project\":{\n \"allOf\":[\n + \ {\n \"$ref\":\"#/components/schemas/ProjectDetails\"\n + \ }\n ],\n \"description\":\"The project + the item has scope in.\",\n \"readOnly\":true\n },\n \"type\":{\n + \ \"description\":\"The type of scope.\",\n \"enum\":[\n + \ \"PROJECT\",\n \"TEMPLATE\"\n ],\n + \ \"readOnly\":true,\n \"type\":\"string\"\n }\n + \ },\n \"type\":\"object\"\n },\n \"EntityProperty\":{\n + \ \"additionalProperties\":false,\n \"description\":\"An entity property, + for more information see [Entity properties](https://developer.atlassian.com/cloud/jira/platform/jira-entity-properties/).\",\n + \ \"properties\":{\n \"key\":{\n \"description\":\"The + key of the property. Required on create and update.\",\n \"type\":\"string\"\n + \ },\n \"value\":{\n \"description\":\"The value + of the property. Required on create and update.\"\n }\n },\n + \ \"type\":\"object\"\n },\n \"FieldUpdateOperation\":{\n \"additionalProperties\":false,\n + \ \"description\":\"Details of an operation to perform on a field.\",\n + \ \"properties\":{\n \"add\":{\n \"description\":\"The + value to add to the field.\",\n \"example\":\"triaged\"\n },\n + \ \"copy\":{\n \"description\":\"The field value to copy + from another issue.\",\n \"example\":{\n \"issuelinks\":{\n + \ \"sourceIssues\":[\n {\n \"key\":\"FP-5\"\n + \ }\n ]\n }\n }\n + \ },\n \"edit\":{\n \"description\":\"The value + to edit in the field.\",\n \"example\":{\n \"originalEstimate\":\"1w + 1d\",\n \"remainingEstimate\":\"4d\"\n }\n },\n + \ \"remove\":{\n \"description\":\"The value to removed + from the field.\",\n \"example\":\"blocker\"\n },\n \"set\":{\n + \ \"description\":\"The value to set in the field.\",\n \"example\":\"A + new summary\"\n }\n },\n \"type\":\"object\"\n },\n + \ \"IssueUpdateDetails\":{\n \"additionalProperties\":true,\n \"description\":\"Details + of an issue update request.\",\n \"properties\":{\n \"fields\":{\n + \ \"additionalProperties\":{\n \n },\n + \ \"description\":\"List of issue screen fields to update, specifying + the sub-field to update and its value for each field. This field provides a straightforward + option when setting a sub-field. When multiple sub-fields or other operations + are required, use `update`. Fields included in here cannot be included in `update`.\",\n + \ \"type\":\"object\"\n },\n \"historyMetadata\":{\n + \ \"allOf\":[\n {\n \"$ref\":\"#/components/schemas/HistoryMetadata\"\n + \ }\n ],\n \"description\":\"Additional + issue history details.\"\n },\n \"properties\":{\n \"description\":\"Details + of issue properties to be add or update.\",\n \"items\":{\n \"$ref\":\"#/components/schemas/EntityProperty\"\n + \ },\n \"type\":\"array\"\n },\n \"transition\":{\n + \ \"allOf\":[\n {\n \"$ref\":\"#/components/schemas/IssueTransition\"\n + \ }\n ],\n \"description\":\"Details + of a transition. Required when performing a transition, optional when creating + or editing an issue.\"\n },\n \"update\":{\n \"additionalProperties\":{\n + \ \"items\":{\n \"$ref\":\"#/components/schemas/FieldUpdateOperation\"\n + \ },\n \"type\":\"array\"\n },\n \"description\":\"A + Map containing the field field name and a list of operations to perform on the + issue screen field. Note that fields included in here cannot be included in `fields`.\",\n + \ \"type\":\"object\"\n }\n },\n \"type\":\"object\"\n + \ },\n \"IssueBean\":{\n \"additionalProperties\":false,\n \"description\":\"Details + about an issue.\",\n \"properties\":{\n \"changelog\":{\n \"allOf\":[\n + \ {\n \"$ref\":\"#/components/schemas/PageOfChangelogs\"\n + \ }\n ],\n \"description\":\"Details + of changelogs associated with the issue.\",\n \"readOnly\":true\n + \ },\n \"editmeta\":{\n \"allOf\":[\n {\n + \ \"$ref\":\"#/components/schemas/IssueUpdateMetadata\"\n }\n + \ ],\n \"description\":\"The metadata for the fields + on the issue that can be amended.\",\n \"readOnly\":true\n },\n + \ \"expand\":{\n \"description\":\"Expand options that include + additional issue details in the response.\",\n \"readOnly\":true,\n + \ \"type\":\"string\",\n \"xml\":{\n \"attribute\":true\n + \ }\n },\n \"fields\":{\n \"additionalProperties\":{\n + \ \n },\n \"type\":\"object\"\n },\n + \ \"fieldsToInclude\":{\n \"$ref\":\"#/components/schemas/IncludedFields\"\n + \ },\n \"id\":{\n \"description\":\"The ID of + the issue.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"key\":{\n \"description\":\"The key of + the issue.\",\n \"readOnly\":true,\n \"type\":\"string\"\n + \ },\n \"names\":{\n \"additionalProperties\":{\n + \ \"readOnly\":true,\n \"type\":\"string\"\n },\n + \ \"description\":\"The ID and name of each field present on the issue.\",\n + \ \"readOnly\":true,\n \"type\":\"object\"\n },\n + \ \"operations\":{\n \"allOf\":[\n {\n \"$ref\":\"#/components/schemas/Operations\"\n + \ }\n ],\n \"description\":\"The operations + that can be performed on the issue.\",\n \"readOnly\":true\n },\n + \ \"properties\":{\n \"additionalProperties\":{\n \"readOnly\":true\n + \ },\n \"description\":\"Details of the issue properties + identified in the request.\",\n \"readOnly\":true,\n \"type\":\"object\"\n + \ },\n \"renderedFields\":{\n \"additionalProperties\":{\n + \ \"readOnly\":true\n },\n \"description\":\"The + rendered value of each field present on the issue.\",\n \"readOnly\":true,\n + \ \"type\":\"object\"\n },\n \"schema\":{\n \"additionalProperties\":{\n + \ \"$ref\":\"#/components/schemas/JsonTypeBean\"\n },\n + \ \"description\":\"The schema describing each field present on the + issue.\",\n \"readOnly\":true,\n \"type\":\"object\"\n + \ },\n \"self\":{\n \"description\":\"The URL + of the issue details.\",\n \"format\":\"uri\",\n \"readOnly\":true,\n + \ \"type\":\"string\"\n },\n \"transitions\":{\n + \ \"description\":\"The transitions that can be performed on the issue.\",\n + \ \"items\":{\n \"$ref\":\"#/components/schemas/IssueTransition\"\n + \ },\n \"readOnly\":true,\n \"type\":\"array\"\n + \ },\n \"versionedRepresentations\":{\n \"additionalProperties\":{\n + \ \"additionalProperties\":{\n \"readOnly\":true\n + \ },\n \"readOnly\":true,\n \"type\":\"object\"\n + \ },\n \"description\":\"The versions of each field on + the issue.\",\n \"readOnly\":true,\n \"type\":\"object\"\n + \ }\n },\n \"type\":\"object\",\n \"xml\":{\n \"name\":\"issue\"\n + \ }\n }\n },\n \"securitySchemes\": {\n \"basicAuth\": {\n + \ \"description\": \"You can access this resource via basic auth.\",\n \"scheme\": + \"basic\",\n \"type\": \"http\"\n }\n }\n }\n}" + kubevirt-openapi.yaml: | + openapi: 3.0.1 + info: + version: 1.2.0 + title: KubeVirt API + description: This is KubeVirt API an add-on for Kubernetes. + contact: + name: kubevirt-dev + url: https://github.com/kubevirt/kubevirt + email: kubevirt-dev@googlegroups.com + license: + name: Apache 2.0 + url: https://www.apache.org/licenses/LICENSE-2.0 + servers: + - url: / + paths: + /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines: + post: + description: Create a VirtualMachine object. + operationId: createNamespacedVirtualMachine + parameters: + - name: namespace + in: path + description: "Object name and auth scope, such as for teams and projects" + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VirtualMachine' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VirtualMachine' + required: true + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VirtualMachine' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VirtualMachine' + "201": + description: Created + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VirtualMachine' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VirtualMachine' + "202": + description: Accepted + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VirtualMachine' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VirtualMachine' + "401": + description: Unauthorized + content: + application/json: + schema: + type: string + application/yaml: + schema: + type: string + x-codegen-request-body-name: body + security: + - BearerToken: [] + /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}: + get: + description: Get a VirtualMachine object. + operationId: readNamespacedVirtualMachine + parameters: + - name: name + in: path + description: Name of the resource + required: true + schema: + type: string + - name: namespace + in: path + description: "Object name and auth scope, such as for teams and projects" + required: true + schema: + type: string + - name: exact + in: query + description: Should the export be exact. Exact export maintains cluster-specific + fields like 'Namespace'. + schema: + type: boolean + - name: export + in: query + description: Should this value be exported. Export strips fields that a user + can not specify. + schema: + type: boolean + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/v1.VirtualMachine' + application/yaml: + schema: + $ref: '#/components/schemas/v1.VirtualMachine' + application/json;stream=watch: + schema: + $ref: '#/components/schemas/v1.VirtualMachine' + "401": + description: Unauthorized + content: + application/json: + schema: + type: string + application/yaml: + schema: + type: string + application/json;stream=watch: + schema: + type: string + security: + - BearerToken: [] + components: + schemas: + k8s.io.api.core.v1.Affinity: + type: object + properties: + nodeAffinity: + $ref: '#/components/schemas/k8s.io.api.core.v1.NodeAffinity' + podAffinity: + $ref: '#/components/schemas/k8s.io.api.core.v1.PodAffinity' + podAntiAffinity: + $ref: '#/components/schemas/k8s.io.api.core.v1.PodAntiAffinity' + description: Affinity is a group of affinity scheduling rules. + k8s.io.api.core.v1.DownwardAPIVolumeFile: + required: + - path + type: object + properties: + fieldRef: + $ref: '#/components/schemas/k8s.io.api.core.v1.ObjectFieldSelector' + mode: + type: integer + description: "Optional: mode bits used to set permissions on this file,\ + \ must be an octal value between 0000 and 0777 or a decimal value between\ + \ 0 and 511. YAML accepts both octal and decimal values, JSON requires\ + \ decimal values for mode bits. If not specified, the volume defaultMode\ + \ will be used. This might be in conflict with other options that affect\ + \ the file mode, like fsGroup, and the result can be other mode bits set." + format: int32 + path: + type: string + description: "Required: Path is the relative path name of the file to be\ + \ created. Must not be absolute or contain the '..' path. Must be utf-8\ + \ encoded. The first item of the relative path must not start with '..'" + default: "" + resourceFieldRef: + $ref: '#/components/schemas/k8s.io.api.core.v1.ResourceFieldSelector' + description: DownwardAPIVolumeFile represents information to create the file + containing the pod field + k8s.io.api.core.v1.ExecAction: + type: object + properties: + command: + type: array + description: "Command is the command line to execute inside the container,\ + \ the working directory for the command is root ('/') in the container's\ + \ filesystem. The command is simply exec'd, it is not run inside a shell,\ + \ so traditional shell instructions ('|', etc) won't work. To use a shell,\ + \ you need to explicitly call out to that shell. Exit status of 0 is treated\ + \ as live/healthy and non-zero is unhealthy." + items: + type: string + default: "" + description: ExecAction describes a "run in container" action. + k8s.io.api.core.v1.HTTPGetAction: + type: object + properties: + host: + type: string + description: "Host name to connect to, defaults to the pod IP. You probably\ + \ want to set \"Host\" in httpHeaders instead." + httpHeaders: + type: array + description: Custom headers to set in the request. HTTP allows repeated + headers. + items: + $ref: '#/components/schemas/k8s.io.api.core.v1.HTTPHeader' + path: + type: string + description: Path to access on the HTTP server. + scheme: + type: string + description: |- + Scheme to use for connecting to the host. Defaults to HTTP. + + Possible enum values: + - `"HTTP"` means that the scheme used will be http:// + - `"HTTPS"` means that the scheme used will be https:// + enum: + - HTTP + - HTTPS + description: HTTPGetAction describes an action based on HTTP Get requests. + k8s.io.api.core.v1.HTTPHeader: + required: + - name + - value + type: object + properties: + name: + type: string + description: The header field name + default: "" + value: + type: string + description: The header field value + default: "" + description: HTTPHeader describes a custom header to be used in HTTP probes + k8s.io.api.core.v1.LocalObjectReference: + type: object + properties: + name: + type: string + description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + description: LocalObjectReference contains enough information to let you locate + the referenced object inside the same namespace. + x-kubernetes-map-type: atomic + k8s.io.api.core.v1.NodeAffinity: + type: object + properties: + preferredDuringSchedulingIgnoredDuringExecution: + type: array + description: "The scheduler will prefer to schedule pods to nodes that satisfy\ + \ the affinity expressions specified by this field, but it may choose\ + \ a node that violates one or more of the expressions. The node that is\ + \ most preferred is the one with the greatest sum of weights, i.e. for\ + \ each node that meets all of the scheduling requirements (resource request,\ + \ requiredDuringScheduling affinity expressions, etc.), compute a sum\ + \ by iterating through the elements of this field and adding \"weight\"\ + \ to the sum if the node matches the corresponding matchExpressions; the\ + \ node(s) with the highest sum are the most preferred." + items: + $ref: '#/components/schemas/k8s.io.api.core.v1.PreferredSchedulingTerm' + requiredDuringSchedulingIgnoredDuringExecution: + $ref: '#/components/schemas/k8s.io.api.core.v1.NodeSelector' + description: Node affinity is a group of node affinity scheduling rules. + k8s.io.api.core.v1.NodeSelector: + required: + - nodeSelectorTerms + type: object + properties: + nodeSelectorTerms: + type: array + description: Required. A list of node selector terms. The terms are ORed. + items: + $ref: '#/components/schemas/k8s.io.api.core.v1.NodeSelectorTerm' + description: "A node selector represents the union of the results of one or\ + \ more label queries over a set of nodes; that is, it represents the OR of\ + \ the selectors represented by the node selector terms." + x-kubernetes-map-type: atomic + k8s.io.api.core.v1.NodeSelectorRequirement: + required: + - key + - operator + type: object + properties: + key: + type: string + description: The label key that the selector applies to. + default: "" + operator: + type: string + description: |- + Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + + Possible enum values: + - `"DoesNotExist"` + - `"Exists"` + - `"Gt"` + - `"In"` + - `"Lt"` + - `"NotIn"` + default: "" + enum: + - DoesNotExist + - Exists + - Gt + - In + - Lt + - NotIn + values: + type: array + description: "An array of string values. If the operator is In or NotIn,\ + \ the values array must be non-empty. If the operator is Exists or DoesNotExist,\ + \ the values array must be empty. If the operator is Gt or Lt, the values\ + \ array must have a single element, which will be interpreted as an integer.\ + \ This array is replaced during a strategic merge patch." + items: + type: string + default: "" + description: "A node selector requirement is a selector that contains values,\ + \ a key, and an operator that relates the key and values." + k8s.io.api.core.v1.NodeSelectorTerm: + type: object + properties: + matchExpressions: + type: array + description: A list of node selector requirements by node's labels. + items: + $ref: '#/components/schemas/k8s.io.api.core.v1.NodeSelectorRequirement' + matchFields: + type: array + description: A list of node selector requirements by node's fields. + items: + $ref: '#/components/schemas/k8s.io.api.core.v1.NodeSelectorRequirement' + description: A null or empty node selector term matches no objects. The requirements + of them are ANDed. The TopologySelectorTerm type implements a subset of the + NodeSelectorTerm. + x-kubernetes-map-type: atomic + k8s.io.api.core.v1.ObjectFieldSelector: + required: + - fieldPath + type: object + properties: + apiVersion: + type: string + description: "Version of the schema the FieldPath is written in terms of,\ + \ defaults to \"v1\"." + fieldPath: + type: string + description: Path of the field to select in the specified API version. + default: "" + description: ObjectFieldSelector selects an APIVersioned field of an object. + x-kubernetes-map-type: atomic + k8s.io.api.core.v1.PersistentVolumeClaimSpec: + type: object + properties: + accessModes: + type: array + description: "accessModes contains the desired access modes the volume should\ + \ have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1" + items: + type: string + default: "" + dataSource: + $ref: '#/components/schemas/k8s.io.api.core.v1.TypedLocalObjectReference' + dataSourceRef: + $ref: '#/components/schemas/k8s.io.api.core.v1.TypedObjectReference' + resources: + $ref: '#/components/schemas/k8s.io.api.core.v1.ResourceRequirements' + selector: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector' + storageClassName: + type: string + description: "storageClassName is the name of the StorageClass required\ + \ by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1" + volumeMode: + type: string + description: |- + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + + Possible enum values: + - `"Block"` means the volume will not be formatted with a filesystem and will remain a raw block device. + - `"Filesystem"` means the volume will be or is formatted with a filesystem. + enum: + - Block + - Filesystem + volumeName: + type: string + description: volumeName is the binding reference to the PersistentVolume + backing this claim. + description: PersistentVolumeClaimSpec describes the common attributes of storage + devices and allows a Source for provider-specific attributes + k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource: + required: + - claimName + type: object + properties: + claimName: + type: string + description: "claimName is the name of a PersistentVolumeClaim in the same\ + \ namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + default: "" + readOnly: + type: boolean + description: readOnly Will force the ReadOnly setting in VolumeMounts. Default + false. + description: "PersistentVolumeClaimVolumeSource references the user's PVC in\ + \ the same namespace. This volume finds the bound PV and mounts that volume\ + \ for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper\ + \ around another type of volume that is owned by someone else (the system)." + k8s.io.api.core.v1.PodAffinity: + type: object + properties: + preferredDuringSchedulingIgnoredDuringExecution: + type: array + description: "The scheduler will prefer to schedule pods to nodes that satisfy\ + \ the affinity expressions specified by this field, but it may choose\ + \ a node that violates one or more of the expressions. The node that is\ + \ most preferred is the one with the greatest sum of weights, i.e. for\ + \ each node that meets all of the scheduling requirements (resource request,\ + \ requiredDuringScheduling affinity expressions, etc.), compute a sum\ + \ by iterating through the elements of this field and adding \"weight\"\ + \ to the sum if the node has pods which matches the corresponding podAffinityTerm;\ + \ the node(s) with the highest sum are the most preferred." + items: + $ref: '#/components/schemas/k8s.io.api.core.v1.WeightedPodAffinityTerm' + requiredDuringSchedulingIgnoredDuringExecution: + type: array + description: "If the affinity requirements specified by this field are not\ + \ met at scheduling time, the pod will not be scheduled onto the node.\ + \ If the affinity requirements specified by this field cease to be met\ + \ at some point during pod execution (e.g. due to a pod label update),\ + \ the system may or may not try to eventually evict the pod from its node.\ + \ When there are multiple elements, the lists of nodes corresponding to\ + \ each podAffinityTerm are intersected, i.e. all terms must be satisfied." + items: + $ref: '#/components/schemas/k8s.io.api.core.v1.PodAffinityTerm' + description: Pod affinity is a group of inter pod affinity scheduling rules. + k8s.io.api.core.v1.PodAffinityTerm: + required: + - topologyKey + type: object + properties: + labelSelector: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector' + namespaceSelector: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector' + namespaces: + type: array + description: namespaces specifies a static list of namespace names that + the term applies to. The term is applied to the union of the namespaces + listed in this field and the ones selected by namespaceSelector. null + or empty namespaces list and null namespaceSelector means "this pod's + namespace". + items: + type: string + default: "" + topologyKey: + type: string + description: "This pod should be co-located (affinity) or not co-located\ + \ (anti-affinity) with the pods matching the labelSelector in the specified\ + \ namespaces, where co-located is defined as running on a node whose value\ + \ of the label with key topologyKey matches that of any node on which\ + \ any of the selected pods is running. Empty topologyKey is not allowed." + default: "" + description: "Defines a set of pods (namely those matching the labelSelector\ + \ relative to the given namespace(s)) that this pod should be co-located (affinity)\ + \ or not co-located (anti-affinity) with, where co-located is defined as running\ + \ on a node whose value of the label with key matches that of\ + \ any node on which a pod of the set of pods is running" + k8s.io.api.core.v1.PodAntiAffinity: + type: object + properties: + preferredDuringSchedulingIgnoredDuringExecution: + type: array + description: "The scheduler will prefer to schedule pods to nodes that satisfy\ + \ the anti-affinity expressions specified by this field, but it may choose\ + \ a node that violates one or more of the expressions. The node that is\ + \ most preferred is the one with the greatest sum of weights, i.e. for\ + \ each node that meets all of the scheduling requirements (resource request,\ + \ requiredDuringScheduling anti-affinity expressions, etc.), compute a\ + \ sum by iterating through the elements of this field and adding \"weight\"\ + \ to the sum if the node has pods which matches the corresponding podAffinityTerm;\ + \ the node(s) with the highest sum are the most preferred." + items: + $ref: '#/components/schemas/k8s.io.api.core.v1.WeightedPodAffinityTerm' + requiredDuringSchedulingIgnoredDuringExecution: + type: array + description: "If the anti-affinity requirements specified by this field\ + \ are not met at scheduling time, the pod will not be scheduled onto the\ + \ node. If the anti-affinity requirements specified by this field cease\ + \ to be met at some point during pod execution (e.g. due to a pod label\ + \ update), the system may or may not try to eventually evict the pod from\ + \ its node. When there are multiple elements, the lists of nodes corresponding\ + \ to each podAffinityTerm are intersected, i.e. all terms must be satisfied." + items: + $ref: '#/components/schemas/k8s.io.api.core.v1.PodAffinityTerm' + description: Pod anti affinity is a group of inter pod anti affinity scheduling + rules. + k8s.io.api.core.v1.PodDNSConfig: + type: object + properties: + nameservers: + type: array + description: A list of DNS name server IP addresses. This will be appended + to the base nameservers generated from DNSPolicy. Duplicated nameservers + will be removed. + items: + type: string + default: "" + options: + type: array + description: A list of DNS resolver options. This will be merged with the + base options generated from DNSPolicy. Duplicated entries will be removed. + Resolution options given in Options will override those that appear in + the base DNSPolicy. + items: + $ref: '#/components/schemas/k8s.io.api.core.v1.PodDNSConfigOption' + searches: + type: array + description: A list of DNS search domains for host-name lookup. This will + be appended to the base search paths generated from DNSPolicy. Duplicated + search paths will be removed. + items: + type: string + default: "" + description: PodDNSConfig defines the DNS parameters of a pod in addition to + those generated from DNSPolicy. + k8s.io.api.core.v1.PodDNSConfigOption: + type: object + properties: + name: + type: string + description: Required. + value: + type: string + description: PodDNSConfigOption defines DNS resolver options of a pod. + k8s.io.api.core.v1.PreferredSchedulingTerm: + required: + - preference + - weight + type: object + properties: + preference: + $ref: '#/components/schemas/k8s.io.api.core.v1.NodeSelectorTerm' + weight: + type: integer + description: "Weight associated with matching the corresponding nodeSelectorTerm,\ + \ in the range 1-100." + format: int32 + default: 0 + description: An empty preferred scheduling term matches all objects with implicit + weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no + objects (i.e. is also a no-op). + k8s.io.api.core.v1.ResourceClaim: + required: + - name + type: object + properties: + name: + type: string + description: Name must match the name of one entry in pod.spec.resourceClaims + of the Pod where this field is used. It makes that resource available + inside a container. + default: "" + description: ResourceClaim references one entry in PodSpec.ResourceClaims. + k8s.io.api.core.v1.ResourceFieldSelector: + required: + - resource + type: object + properties: + containerName: + type: string + description: "Container name: required for volumes, optional for env vars" + divisor: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + resource: + type: string + description: "Required: resource to select" + default: "" + description: "ResourceFieldSelector represents container resources (cpu, memory)\ + \ and their output format" + x-kubernetes-map-type: atomic + k8s.io.api.core.v1.ResourceRequirements: + type: object + properties: + claims: + type: array + description: |- + Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. + + This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. + + This field is immutable. It can only be set for containers. + items: + $ref: '#/components/schemas/k8s.io.api.core.v1.ResourceClaim' + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + limits: + type: object + additionalProperties: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + description: "Limits describes the maximum amount of compute resources allowed.\ + \ More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + requests: + type: object + additionalProperties: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + description: "Requests describes the minimum amount of compute resources\ + \ required. If Requests is omitted for a container, it defaults to Limits\ + \ if that is explicitly specified, otherwise to an implementation-defined\ + \ value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" + description: ResourceRequirements describes the compute resource requirements. + k8s.io.api.core.v1.TCPSocketAction: + type: object + properties: + host: + type: string + description: "Optional: Host name to connect to, defaults to the pod IP." + description: TCPSocketAction describes an action based on opening a socket + k8s.io.api.core.v1.Toleration: + type: object + properties: + effect: + type: string + description: |- + Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. + + Possible enum values: + - `"NoExecute"` Evict any already-running pods that do not tolerate the taint. Currently enforced by NodeController. + - `"NoSchedule"` Do not allow new pods to schedule onto the node unless they tolerate the taint, but allow all pods submitted to Kubelet without going through the scheduler to start, and allow all already-running pods to continue running. Enforced by the scheduler. + - `"PreferNoSchedule"` Like TaintEffectNoSchedule, but the scheduler tries not to schedule new pods onto the node, rather than prohibiting new pods from scheduling onto the node entirely. Enforced by the scheduler. + enum: + - NoExecute + - NoSchedule + - PreferNoSchedule + key: + type: string + description: "Key is the taint key that the toleration applies to. Empty\ + \ means match all taint keys. If the key is empty, operator must be Exists;\ + \ this combination means to match all values and all keys." + operator: + type: string + description: |- + Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. + + Possible enum values: + - `"Equal"` + - `"Exists"` + enum: + - Equal + - Exists + tolerationSeconds: + type: integer + description: "TolerationSeconds represents the period of time the toleration\ + \ (which must be of effect NoExecute, otherwise this field is ignored)\ + \ tolerates the taint. By default, it is not set, which means tolerate\ + \ the taint forever (do not evict). Zero and negative values will be treated\ + \ as 0 (evict immediately) by the system." + format: int64 + value: + type: string + description: "Value is the taint value the toleration matches to. If the\ + \ operator is Exists, the value should be empty, otherwise just a regular\ + \ string." + description: "The pod this Toleration is attached to tolerates any taint that\ + \ matches the triple using the matching operator ." + k8s.io.api.core.v1.TopologySpreadConstraint: + required: + - maxSkew + - topologyKey + - whenUnsatisfiable + type: object + properties: + labelSelector: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector' + matchLabelKeys: + type: array + description: "MatchLabelKeys is a set of pod label keys to select the pods\ + \ over which spreading will be calculated. The keys are used to lookup\ + \ values from the incoming pod labels, those key-value labels are ANDed\ + \ with labelSelector to select the group of existing pods over which spreading\ + \ will be calculated for the incoming pod. Keys that don't exist in the\ + \ incoming pod labels will be ignored. A null or empty list means only\ + \ match against labelSelector." + items: + type: string + default: "" + x-kubernetes-list-type: atomic + maxSkew: + type: integer + description: "MaxSkew describes the degree to which pods may be unevenly\ + \ distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum\ + \ permitted difference between the number of matching pods in the target\ + \ topology and the global minimum. The global minimum is the minimum number\ + \ of matching pods in an eligible domain or zero if the number of eligible\ + \ domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew\ + \ is set to 1, and pods with the same labelSelector spread as 2/2/1: In\ + \ this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P\ + \ | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled\ + \ to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make\ + \ the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew\ + \ is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`,\ + \ it is used to give higher precedence to topologies that satisfy it.\ + \ It's a required field. Default value is 1 and 0 is not allowed." + format: int32 + default: 0 + minDomains: + type: integer + description: |- + MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. + + For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. + + This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). + format: int32 + nodeAffinityPolicy: + type: string + description: |- + NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. + + If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + + Possible enum values: + - `"Honor"` means use this scheduling directive when calculating pod topology spread skew. + - `"Ignore"` means ignore this scheduling directive when calculating pod topology spread skew. + enum: + - Honor + - Ignore + nodeTaintsPolicy: + type: string + description: |- + NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. + + If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + + Possible enum values: + - `"Honor"` means use this scheduling directive when calculating pod topology spread skew. + - `"Ignore"` means ignore this scheduling directive when calculating pod topology spread skew. + enum: + - Honor + - Ignore + topologyKey: + type: string + description: "TopologyKey is the key of node labels. Nodes that have a label\ + \ with this key and identical values are considered to be in the same\ + \ topology. We consider each as a \"bucket\", and try to\ + \ put balanced number of pods into each bucket. We define a domain as\ + \ a particular instance of a topology. Also, we define an eligible domain\ + \ as a domain whose nodes meet the requirements of nodeAffinityPolicy\ + \ and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\"\ + , each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\"\ + , each zone is a domain of that topology. It's a required field." + default: "" + whenUnsatisfiable: + type: string + description: |- + WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, + but giving higher precedence to topologies that would help reduce the + skew. + A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. + + Possible enum values: + - `"DoNotSchedule"` instructs the scheduler not to schedule the pod when constraints are not satisfied. + - `"ScheduleAnyway"` instructs the scheduler to schedule the pod even if constraints are not satisfied. + default: "" + enum: + - DoNotSchedule + - ScheduleAnyway + description: TopologySpreadConstraint specifies how to spread matching pods + among the given topology. + k8s.io.api.core.v1.TypedLocalObjectReference: + required: + - kind + - name + type: object + properties: + apiGroup: + type: string + description: "APIGroup is the group for the resource being referenced. If\ + \ APIGroup is not specified, the specified Kind must be in the core API\ + \ group. For any other third-party types, APIGroup is required." + kind: + type: string + description: Kind is the type of resource being referenced + default: "" + name: + type: string + description: Name is the name of resource being referenced + default: "" + description: TypedLocalObjectReference contains enough information to let you + locate the typed referenced object inside the same namespace. + x-kubernetes-map-type: atomic + k8s.io.api.core.v1.TypedObjectReference: + required: + - kind + - name + type: object + properties: + apiGroup: + type: string + description: "APIGroup is the group for the resource being referenced. If\ + \ APIGroup is not specified, the specified Kind must be in the core API\ + \ group. For any other third-party types, APIGroup is required." + kind: + type: string + description: Kind is the type of resource being referenced + default: "" + name: + type: string + description: Name is the name of resource being referenced + default: "" + namespace: + type: string + description: "Namespace is the namespace of resource being referenced Note\ + \ that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant\ + \ object is required in the referent namespace to allow that namespace's\ + \ owner to accept the reference. See the ReferenceGrant documentation\ + \ for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource\ + \ feature gate to be enabled." + k8s.io.api.core.v1.WeightedPodAffinityTerm: + required: + - podAffinityTerm + - weight + type: object + properties: + podAffinityTerm: + $ref: '#/components/schemas/k8s.io.api.core.v1.PodAffinityTerm' + weight: + type: integer + description: "weight associated with matching the corresponding podAffinityTerm,\ + \ in the range 1-100." + format: int32 + default: 0 + description: The weights of all of the matched WeightedPodAffinityTerm fields + are added per-node to find the most preferred node(s) + k8s.io.apimachinery.pkg.api.resource.Quantity: + type: string + description: "Quantity is a fixed-point representation of a number. It provides\ + \ convenient marshaling/unmarshaling in JSON and YAML, in addition to String()\ + \ and AsInt64() accessors.\n\nThe serialization format is:\n\n``` \ + \ ::= \n\n\t(Note that may be empty,\ + \ from the \"\" case in .)\n\n ::= 0 | 1 | ...\ + \ | 9 ::= | ::=\ + \ | . | . | . ::=\ + \ \"+\" | \"-\" ::= | \ + \ ::= | | \ + \ ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units;\ + \ See: http://physics.nist.gov/cuu/Units/binary.html)\n\n \ + \ ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000\ + \ = 1k; I didn't choose the capitalization.)\n\n ::= \"e\"\ + \ | \"E\" ```\n\nNo matter which of the three\ + \ exponent forms is used, no quantity may represent a number greater than\ + \ 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers\ + \ larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded\ + \ up to 1m.) This may be extended in the future if we require larger or smaller\ + \ quantities.\n\nWhen a Quantity is parsed from a string, it will remember\ + \ the type of suffix it had, and will use the same type again when it is serialized.\n\ + \nBefore serializing, Quantity will be put in \"canonical form\". This means\ + \ that Exponent/suffix will be adjusted up or down (with a corresponding increase\ + \ or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional\ + \ digits will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n\ + - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\ + \n\nNote that the quantity will NEVER be internally represented by a floating\ + \ point number. That is the whole point of this exercise.\n\nNon-canonical\ + \ values will still parse as long as they are well formed, but will be re-emitted\ + \ in their canonical form. (So always use canonical form, or don't diff.)\n\ + \nThis format is intended to make it difficult to use these numbers without\ + \ writing some sort of special handling code in the hopes that that will cause\ + \ implementors to also use a fixed point implementation." + k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup: + required: + - name + - versions + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + name: + type: string + description: name is the name of the group. + default: "" + preferredVersion: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery' + serverAddressByClientCIDRs: + type: array + description: "a map of client CIDR to server address that is serving this\ + \ group. This is to help clients reach servers in the most network-efficient\ + \ way possible. Clients can use the appropriate server address as per\ + \ the CIDR that they match. In case of multiple matches, clients should\ + \ use the longest matching CIDR. The server returns only those CIDRs that\ + \ it thinks that the client can match. For example: the master will return\ + \ an internal IP CIDR only, if the client reaches the server using an\ + \ internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header\ + \ or request.RemoteAddr (in that order) to get the client IP." + items: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR' + versions: + type: array + description: versions are the versions supported in this group. + items: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery' + description: "APIGroup contains the name, the supported versions, and the preferred\ + \ version of a group." + k8s.io.apimachinery.pkg.apis.meta.v1.APIGroupList: + required: + - groups + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + groups: + type: array + description: groups is a list of APIGroup. + items: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.APIGroup' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + description: "APIGroupList is a list of APIGroup, to allow clients to discover\ + \ the API at /apis." + k8s.io.apimachinery.pkg.apis.meta.v1.APIResource: + required: + - kind + - name + - namespaced + - singularName + - verbs + type: object + properties: + categories: + type: array + description: categories is a list of the grouped resources this resource + belongs to (e.g. 'all') + items: + type: string + default: "" + group: + type: string + description: "group is the preferred group of the resource. Empty implies\ + \ the group of the containing resource list. For subresources, this may\ + \ have a different value, for example: Scale\"." + kind: + type: string + description: kind is the kind for the resource (e.g. 'Foo' is the kind for + a resource 'foo') + default: "" + name: + type: string + description: name is the plural name of the resource. + default: "" + namespaced: + type: boolean + description: namespaced indicates if a resource is namespaced or not. + default: false + shortNames: + type: array + description: shortNames is a list of suggested short names of the resource. + items: + type: string + default: "" + singularName: + type: string + description: singularName is the singular name of the resource. This allows + clients to handle plural and singular opaquely. The singularName is more + correct for reporting status on a single item and both singular and plural + are allowed from the kubectl CLI interface. + default: "" + storageVersionHash: + type: string + description: "The hash value of the storage version, the version this resource\ + \ is converted to when written to the data store. Value must be treated\ + \ as opaque by clients. Only equality comparison on the value is valid.\ + \ This is an alpha feature and may change or be removed in the future.\ + \ The field is populated by the apiserver only if the StorageVersionHash\ + \ feature gate is enabled. This field will remain optional even if it\ + \ graduates." + verbs: + type: array + description: "verbs is a list of supported kube verbs (this includes get,\ + \ list, watch, create, update, patch, delete, deletecollection, and proxy)" + items: + type: string + default: "" + version: + type: string + description: "version is the preferred version of the resource. Empty implies\ + \ the version of the containing resource list For subresources, this may\ + \ have a different value, for example: v1 (while inside a v1beta1 version\ + \ of the core resource's group)\"." + description: APIResource specifies the name of a resource and whether it is + namespaced. + k8s.io.apimachinery.pkg.apis.meta.v1.APIResourceList: + required: + - groupVersion + - resources + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + groupVersion: + type: string + description: groupVersion is the group and version this APIResourceList + is for. + default: "" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + resources: + type: array + description: resources contains the name of the resources and if they are + namespaced. + items: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.APIResource' + description: "APIResourceList is a list of APIResource, it is used to expose\ + \ the name of the resources supported in a specific group and version, and\ + \ if the resource is namespaced." + k8s.io.apimachinery.pkg.apis.meta.v1.DeleteOptions: + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + dryRun: + type: array + description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error\ + \ response and no further processing of the request. Valid values are:\ + \ - All: all dry run stages will be processed" + items: + type: string + default: "" + gracePeriodSeconds: + type: integer + description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete\ + \ immediately. If this value is nil, the default grace period for the\ + \ specified type will be used. Defaults to a per object value if not specified.\ + \ zero means delete immediately." + format: int64 + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + orphanDependents: + type: boolean + description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's\ + \ finalizers list. Either this field or PropagationPolicy may be set,\ + \ but not both." + preconditions: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions' + propagationPolicy: + type: string + description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default\ + \ policy is decided by the existing finalizer set in the metadata.finalizers\ + \ and the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector\ + \ to delete the dependents in the background; 'Foreground' - a cascading\ + \ policy that deletes all dependents in the foreground." + description: DeleteOptions may be provided when deleting an API object. + k8s.io.apimachinery.pkg.apis.meta.v1.Duration: + type: string + description: "Duration is a wrapper around time.Duration which supports correct\ + \ marshaling to YAML and JSON. In particular, it marshals into strings, which\ + \ can be used as map keys in json." + k8s.io.apimachinery.pkg.apis.meta.v1.FieldsV1: + type: object + description: |- + FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format. + + Each key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:', where is the name of a field in a struct, or key in a map 'v:', where is the exact json formatted value of a list item 'i:', where is position of a item in a list 'k:', where is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set. + + The exact format is defined in sigs.k8s.io/structured-merge-diff + k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionForDiscovery: + required: + - groupVersion + - version + type: object + properties: + groupVersion: + type: string + description: groupVersion specifies the API group and version in the form + "group/version" + default: "" + version: + type: string + description: version specifies the version in the form of "version". This + is to save the clients the trouble of splitting the GroupVersion. + default: "" + description: GroupVersion contains the "group/version" and "version" string + of a version. It is made a struct to keep extensibility. + k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector: + type: object + properties: + matchExpressions: + type: array + description: matchExpressions is a list of label selector requirements. + The requirements are ANDed. + items: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement' + matchLabels: + type: object + additionalProperties: + type: string + default: "" + description: "matchLabels is a map of {key,value} pairs. A single {key,value}\ + \ in the matchLabels map is equivalent to an element of matchExpressions,\ + \ whose key field is \"key\", the operator is \"In\", and the values array\ + \ contains only \"value\". The requirements are ANDed." + description: A label selector is a label query over a set of resources. The + result of matchLabels and matchExpressions are ANDed. An empty label selector + matches all objects. A null label selector matches no objects. + x-kubernetes-map-type: atomic + k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement: + required: + - key + - operator + type: object + properties: + key: + type: string + description: key is the label key that the selector applies to. + default: "" + x-kubernetes-patch-strategy: merge + x-kubernetes-patch-merge-key: key + operator: + type: string + description: "operator represents a key's relationship to a set of values.\ + \ Valid operators are In, NotIn, Exists and DoesNotExist." + default: "" + values: + type: array + description: "values is an array of string values. If the operator is In\ + \ or NotIn, the values array must be non-empty. If the operator is Exists\ + \ or DoesNotExist, the values array must be empty. This array is replaced\ + \ during a strategic merge patch." + items: + type: string + default: "" + description: "A label selector requirement is a selector that contains values,\ + \ a key, and an operator that relates the key and values." + k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta: + type: object + properties: + continue: + type: string + description: "continue may be set if the user set a limit on the number\ + \ of items returned, and indicates that the server has more data available.\ + \ The value is opaque and may be used to issue another request to the\ + \ endpoint that served this list to retrieve the next set of available\ + \ objects. Continuing a consistent list may not be possible if the server\ + \ configuration has changed or more than a few minutes have passed. The\ + \ resourceVersion field returned when using this continue value will be\ + \ identical to the value in the first response, unless you have received\ + \ this token from an error message." + remainingItemCount: + type: integer + description: "remainingItemCount is the number of subsequent items in the\ + \ list which are not included in this list response. If the list request\ + \ contained label or field selectors, then the number of remaining items\ + \ is unknown and the field will be left unset and omitted during serialization.\ + \ If the list is complete (either because it is not chunking or because\ + \ this is the last chunk), then there are no more remaining items and\ + \ this field will be left unset and omitted during serialization. Servers\ + \ older than v1.15 do not set this field. The intended use of the remainingItemCount\ + \ is *estimating* the size of a collection. Clients should not rely on\ + \ the remainingItemCount to be set or to be exact." + format: int64 + resourceVersion: + type: string + description: "String that identifies the server's internal version of this\ + \ object that can be used by clients to determine when objects have changed.\ + \ Value must be treated as opaque by clients and passed unmodified back\ + \ to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency" + selfLink: + type: string + description: "Deprecated: selfLink is a legacy read-only field that is no\ + \ longer populated by the system." + description: "ListMeta describes metadata that synthetic resources must have,\ + \ including lists and various status objects. A resource may have only one\ + \ of {ObjectMeta, ListMeta}." + k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry: + type: object + properties: + apiVersion: + type: string + description: APIVersion defines the version of this resource that this field + set applies to. The format is "group/version" just like the top-level + APIVersion field. It is necessary to track the version of a field set + because it cannot be automatically converted. + fieldsType: + type: string + description: "FieldsType is the discriminator for the different fields format\ + \ and version. There is currently only one possible value: \"FieldsV1\"" + fieldsV1: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.FieldsV1' + manager: + type: string + description: Manager is an identifier of the workflow managing these fields. + operation: + type: string + description: Operation is the type of operation which lead to this ManagedFieldsEntry + being created. The only valid values for this field are 'Apply' and 'Update'. + subresource: + type: string + description: "Subresource is the name of the subresource used to update\ + \ that object, or empty string if the object was updated through the main\ + \ resource. The value of this field is used to distinguish between managers,\ + \ even if they share the same name. For example, a status update will\ + \ be distinct from a regular update using the same manager name. Note\ + \ that the APIVersion field is not related to the Subresource field and\ + \ it always corresponds to the version of the main resource." + time: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + description: "ManagedFieldsEntry is a workflow-id, a FieldSet and the group\ + \ version of the resource that the fieldset applies to." + k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta: + type: object + properties: + annotations: + type: object + additionalProperties: + type: string + default: "" + description: "Annotations is an unstructured key value map stored with a\ + \ resource that may be set by external tools to store and retrieve arbitrary\ + \ metadata. They are not queryable and should be preserved when modifying\ + \ objects. More info: http://kubernetes.io/docs/user-guide/annotations" + deletionGracePeriodSeconds: + type: integer + description: Number of seconds allowed for this object to gracefully terminate + before it will be removed from the system. Only set when deletionTimestamp + is also set. May only be shortened. Read-only. + format: int64 + deletionTimestamp: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + finalizers: + type: array + description: "Must be empty before the object is deleted from the registry.\ + \ Each entry is an identifier for the responsible component that will\ + \ remove the entry from the list. If the deletionTimestamp of the object\ + \ is non-nil, entries in this list can only be removed. Finalizers may\ + \ be processed and removed in any order. Order is NOT enforced because\ + \ it introduces significant risk of stuck finalizers. finalizers is a\ + \ shared field, any actor with permission can reorder it. If the finalizer\ + \ list is processed in order, then this can lead to a situation in which\ + \ the component responsible for the first finalizer in the list is waiting\ + \ for a signal (field value, external system, or other) produced by a\ + \ component responsible for a finalizer later in the list, resulting in\ + \ a deadlock. Without enforced ordering finalizers are free to order amongst\ + \ themselves and are not vulnerable to ordering changes in the list." + items: + type: string + default: "" + x-kubernetes-patch-strategy: merge + generateName: + type: string + description: |- + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. + + If this field is specified and the generated name exists, the server will return a 409. + + Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency + generation: + type: integer + description: A sequence number representing a specific generation of the + desired state. Populated by the system. Read-only. + format: int64 + labels: + type: object + additionalProperties: + type: string + default: "" + description: "Map of string keys and values that can be used to organize\ + \ and categorize (scope and select) objects. May match selectors of replication\ + \ controllers and services. More info: http://kubernetes.io/docs/user-guide/labels" + managedFields: + type: array + description: "ManagedFields maps workflow-id and version to the set of fields\ + \ that are managed by that workflow. This is mostly for internal housekeeping,\ + \ and users typically shouldn't need to set or understand this field.\ + \ A workflow can be the user's name, a controller's name, or the name\ + \ of a specific apply path like \"ci-cd\". The set of fields is always\ + \ in the version that the workflow used when modifying the object." + items: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ManagedFieldsEntry' + name: + type: string + description: "Name must be unique within a namespace. Is required when creating\ + \ resources, although some resources may allow a client to request the\ + \ generation of an appropriate name automatically. Name is primarily intended\ + \ for creation idempotence and configuration definition. Cannot be updated.\ + \ More info: http://kubernetes.io/docs/user-guide/identifiers#names" + namespace: + type: string + description: |- + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. + + Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + ownerReferences: + type: array + description: "List of objects depended by this object. If ALL objects in\ + \ the list have been deleted, this object will be garbage collected. If\ + \ this object is managed by a controller, then an entry in this list will\ + \ point to this controller, with the controller field set to true. There\ + \ cannot be more than one managing controller." + items: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference' + x-kubernetes-patch-strategy: merge + x-kubernetes-patch-merge-key: uid + resourceVersion: + type: string + description: |- + An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. + + Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency + selfLink: + type: string + description: "Deprecated: selfLink is a legacy read-only field that is no\ + \ longer populated by the system." + uid: + type: string + description: |- + UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. + + Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + description: "ObjectMeta is metadata that all persisted resources must have,\ + \ which includes all objects users must create." + k8s.io.apimachinery.pkg.apis.meta.v1.OwnerReference: + required: + - apiVersion + - kind + - name + - uid + type: object + properties: + apiVersion: + type: string + description: API version of the referent. + default: "" + blockOwnerDeletion: + type: boolean + description: "If true, AND if the owner has the \"foregroundDeletion\" finalizer,\ + \ then the owner cannot be deleted from the key-value store until this\ + \ reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion\ + \ for how the garbage collector interacts with this field and enforces\ + \ the foreground deletion. Defaults to false. To set this field, a user\ + \ needs \"delete\" permission of the owner, otherwise 422 (Unprocessable\ + \ Entity) will be returned." + controller: + type: boolean + description: "If true, this reference points to the managing controller." + kind: + type: string + description: "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + default: "" + name: + type: string + description: "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names" + default: "" + uid: + type: string + description: "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids" + default: "" + description: "OwnerReference contains enough information to let you identify\ + \ an owning object. An owning object must be in the same namespace as the\ + \ dependent, or be cluster-scoped, so there is no namespace field." + x-kubernetes-map-type: atomic + k8s.io.apimachinery.pkg.apis.meta.v1.Patch: + type: object + description: Patch is provided to give a concrete name and type to the Kubernetes + PATCH request body. + k8s.io.apimachinery.pkg.apis.meta.v1.Preconditions: + type: object + properties: + resourceVersion: + type: string + description: Specifies the target ResourceVersion + uid: + type: string + description: Specifies the target UID. + description: "Preconditions must be fulfilled before an operation (update, delete,\ + \ etc.) is carried out." + k8s.io.apimachinery.pkg.apis.meta.v1.RootPaths: + required: + - paths + type: object + properties: + paths: + type: array + description: paths are the paths available at root. + items: + type: string + default: "" + description: "RootPaths lists the paths available at root. For example: \"/healthz\"\ + , \"/apis\"." + k8s.io.apimachinery.pkg.apis.meta.v1.ServerAddressByClientCIDR: + required: + - clientCIDR + - serverAddress + type: object + properties: + clientCIDR: + type: string + description: The CIDR with which clients can match their IP to figure out + the server address that they should use. + default: "" + serverAddress: + type: string + description: "Address of this server, suitable for a client that matches\ + \ the above CIDR. This can be a hostname, hostname:port, IP or IP:port." + default: "" + description: "ServerAddressByClientCIDR helps the client to determine the server\ + \ address that they should use, depending on the clientCIDR that they match." + k8s.io.apimachinery.pkg.apis.meta.v1.Status: + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + code: + type: integer + description: "Suggested HTTP return code for this status, 0 if not set." + format: int32 + details: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + message: + type: string + description: A human-readable description of the status of this operation. + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + reason: + type: string + description: A machine-readable description of why this operation is in + the "Failure" status. If this value is empty there is no information available. + A Reason clarifies an HTTP status code but does not override it. + status: + type: string + description: "Status of the operation. One of: \"Success\" or \"Failure\"\ + . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" + description: Status is a return value for calls that don't return other objects. + k8s.io.apimachinery.pkg.apis.meta.v1.StatusCause: + type: object + properties: + field: + type: string + description: |- + The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. + + Examples: + "name" - the field "name" on the current resource + "items[0].name" - the field "name" on the first array entry in "items" + message: + type: string + description: A human-readable description of the cause of the error. This + field may be presented as-is to a reader. + reason: + type: string + description: A machine-readable description of the cause of the error. If + this value is empty there is no information available. + description: "StatusCause provides more information about an api.Status failure,\ + \ including cases when multiple errors are encountered." + k8s.io.apimachinery.pkg.apis.meta.v1.StatusDetails: + type: object + properties: + causes: + type: array + description: The Causes array includes more details associated with the + StatusReason failure. Not all StatusReasons may provide detailed causes. + items: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.StatusCause' + group: + type: string + description: The group attribute of the resource associated with the status + StatusReason. + kind: + type: string + description: "The kind attribute of the resource associated with the status\ + \ StatusReason. On some operations may differ from the requested resource\ + \ Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + name: + type: string + description: The name attribute of the resource associated with the status + StatusReason (when there is a single name which can be described). + retryAfterSeconds: + type: integer + description: "If specified, the time in seconds before the operation should\ + \ be retried. Some errors may indicate the client must take an alternate\ + \ action - for those errors this field may indicate how long to wait before\ + \ taking the alternate action." + format: int32 + uid: + type: string + description: "UID of the resource. (when there is a single resource which\ + \ can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids" + description: "StatusDetails is a set of additional properties that MAY be set\ + \ by the server to provide additional information about a response. The Reason\ + \ field of a Status object defines what attributes will be set. Clients must\ + \ ignore fields that do not match the defined type of each attribute, and\ + \ should assume that any attribute may be empty, invalid, or under defined." + k8s.io.apimachinery.pkg.apis.meta.v1.Time: + type: string + description: Time is a wrapper around time.Time which supports correct marshaling + to YAML and JSON. Wrappers are provided for many of the factory methods that + the time package offers. + format: date-time + k8s.io.apimachinery.pkg.apis.meta.v1.WatchEvent: + required: + - object + - type + type: object + properties: + object: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.runtime.RawExtension' + type: + type: string + default: "" + description: Event represents a single event to a watched resource. + k8s.io.apimachinery.pkg.runtime.RawExtension: + type: object + description: "RawExtension is used to hold extensions in external versions.\n\ + \nTo use this, make a field which has RawExtension as its type in your external,\ + \ versioned struct, and Object in your internal struct. You also need to register\ + \ your various plugin types.\n\n// Internal package:\n\n\ttype MyAPIObject\ + \ struct {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.Object\ + \ `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string\ + \ `json:\"aOption\"`\n\t}\n\n// External package:\n\n\ttype MyAPIObject struct\ + \ {\n\t\truntime.TypeMeta `json:\",inline\"`\n\t\tMyPlugin runtime.RawExtension\ + \ `json:\"myPlugin\"`\n\t}\n\n\ttype PluginA struct {\n\t\tAOption string\ + \ `json:\"aOption\"`\n\t}\n\n// On the wire, the JSON will look something\ + \ like this:\n\n\t{\n\t\t\"kind\":\"MyAPIObject\",\n\t\t\"apiVersion\":\"\ + v1\",\n\t\t\"myPlugin\": {\n\t\t\t\"kind\":\"PluginA\",\n\t\t\t\"aOption\"\ + :\"foo\",\n\t\t},\n\t}\n\nSo what happens? Decode first uses json or yaml\ + \ to unmarshal the serialized data into your external MyAPIObject. That causes\ + \ the raw JSON to be stored, but not unpacked. The next step is to copy (using\ + \ pkg/conversion) into the internal struct. The runtime package's DefaultScheme\ + \ has conversion functions installed which will unpack the JSON stored in\ + \ RawExtension, turning it into the correct object type, and storing it in\ + \ the Object. (TODO: In the case where the object is of an unknown type, a\ + \ runtime.Unknown object will be created and stored.)" + k8s.io.apimachinery.pkg.util.intstr.IntOrString: + type: string + description: "IntOrString is a type that can hold an int32 or a string. When\ + \ used in JSON or YAML marshalling and unmarshalling, it produces or consumes\ + \ the inner type. This allows you to have, for example, a JSON field that\ + \ can accept a name or number." + format: int-or-string + v1.ACPI: + type: object + properties: + slicNameRef: + type: string + description: "SlicNameRef should match the volume name of a secret object.\ + \ The data in the secret should be a binary blob that follows the ACPI\ + \ SLIC standard, see: https://learn.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653305(v=vs.85)" + v1.AccessCredential: + type: object + properties: + sshPublicKey: + $ref: '#/components/schemas/v1.SSHPublicKeyAccessCredential' + userPassword: + $ref: '#/components/schemas/v1.UserPasswordAccessCredential' + description: AccessCredential represents a credential source that can be used + to authorize remote access to the vm guest Only one of its members may be + specified. + v1.AccessCredentialSecretSource: + required: + - secretName + type: object + properties: + secretName: + type: string + description: SecretName represents the name of the secret in the VMI's namespace + default: "" + v1.AddVolumeOptions: + required: + - disk + - name + - volumeSource + type: object + properties: + disk: + $ref: '#/components/schemas/v1.Disk' + dryRun: + type: array + description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error\ + \ response and no further processing of the request. Valid values are:\ + \ - All: all dry run stages will be processed" + items: + type: string + default: "" + x-kubernetes-list-type: atomic + name: + type: string + description: Name represents the name that will be used to map the disk + to the corresponding volume. This overrides any name set inside the Disk + struct itself. + default: "" + volumeSource: + $ref: '#/components/schemas/v1.HotplugVolumeSource' + description: AddVolumeOptions is provided when dynamically hot plugging a volume + and disk + v1.ArchConfiguration: + type: object + properties: + amd64: + $ref: '#/components/schemas/v1.ArchSpecificConfiguration' + arm64: + $ref: '#/components/schemas/v1.ArchSpecificConfiguration' + defaultArchitecture: + type: string + ppc64le: + $ref: '#/components/schemas/v1.ArchSpecificConfiguration' + v1.ArchSpecificConfiguration: + type: object + properties: + emulatedMachines: + type: array + items: + type: string + default: "" + x-kubernetes-list-type: atomic + machineType: + type: string + ovmfPath: + type: string + v1.BIOS: + type: object + properties: + useSerial: + type: boolean + description: "If set, the BIOS output will be transmitted over serial" + description: "If set (default), BIOS will be used." + v1.BlockSize: + type: object + properties: + custom: + $ref: '#/components/schemas/v1.CustomBlockSize' + matchVolume: + $ref: '#/components/schemas/v1.FeatureState' + description: BlockSize provides the option to change the block size presented + to the VM for a disk. Only one of its members may be specified. + v1.Bootloader: + type: object + properties: + bios: + $ref: '#/components/schemas/v1.BIOS' + efi: + $ref: '#/components/schemas/v1.EFI' + description: Represents the firmware blob used to assist in the domain creation + process. Used for setting the QEMU BIOS file path for the libvirt domain. + v1.CDRomTarget: + type: object + properties: + bus: + type: string + description: "Bus indicates the type of disk device to emulate. supported\ + \ values: virtio, sata, scsi." + readonly: + type: boolean + description: ReadOnly. Defaults to true. + tray: + type: string + description: Tray indicates if the tray of the device is open or closed. + Allowed values are "open" and "closed". Defaults to closed. + v1.CPU: + type: object + properties: + cores: + type: integer + description: Cores specifies the number of cores inside the vmi. Must be + a value greater or equal 1. + format: int64 + dedicatedCpuPlacement: + type: boolean + description: DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance + on a node with enough dedicated pCPUs and pin the vCPUs to it. + features: + type: array + description: Features specifies the CPU features list inside the VMI. + items: + $ref: '#/components/schemas/v1.CPUFeature' + isolateEmulatorThread: + type: boolean + description: IsolateEmulatorThread requests one more dedicated pCPU to be + allocated for the VMI to place the emulator thread on it. + maxSockets: + type: integer + description: MaxSockets specifies the maximum amount of sockets that can + be hotplugged + format: int64 + model: + type: string + description: Model specifies the CPU model inside the VMI. List of available + models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It + is possible to specify special cases like "host-passthrough" to get the + same CPU as the node and "host-model" to get CPU closest to the node one. + Defaults to host-model. + numa: + $ref: '#/components/schemas/v1.NUMA' + realtime: + $ref: '#/components/schemas/v1.Realtime' + sockets: + type: integer + description: Sockets specifies the number of sockets inside the vmi. Must + be a value greater or equal 1. + format: int64 + threads: + type: integer + description: Threads specifies the number of threads inside the vmi. Must + be a value greater or equal 1. + format: int64 + description: CPU allows specifying the CPU topology. + v1.CPUFeature: + required: + - name + type: object + properties: + name: + type: string + description: Name of the CPU feature + default: "" + policy: + type: string + description: "Policy is the CPU feature attribute which can have the following\ + \ attributes: force - The virtual CPU will claim the feature is supported\ + \ regardless of it being supported by host CPU. require - Guest creation\ + \ will fail unless the feature is supported by the host CPU or the hypervisor\ + \ is able to emulate it. optional - The feature will be supported by virtual\ + \ CPU if and only if it is supported by host CPU. disable - The feature\ + \ will not be supported by virtual CPU. forbid - Guest creation will\ + \ fail if the feature is supported by host CPU. Defaults to require" + description: CPUFeature allows specifying a CPU feature. + v1.CPUTopology: + type: object + properties: + cores: + type: integer + description: Cores specifies the number of cores inside the vmi. Must be + a value greater or equal 1. + format: int64 + sockets: + type: integer + description: Sockets specifies the number of sockets inside the vmi. Must + be a value greater or equal 1. + format: int64 + threads: + type: integer + description: Threads specifies the number of threads inside the vmi. Must + be a value greater or equal 1. + format: int64 + description: "CPUTopology allows specifying the amount of cores, sockets and\ + \ threads." + v1.CertConfig: + type: object + properties: + duration: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration' + renewBefore: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration' + description: CertConfig contains the tunables for TLS certificates + v1.Chassis: + type: object + properties: + asset: + type: string + manufacturer: + type: string + serial: + type: string + sku: + type: string + version: + type: string + description: Chassis specifies the chassis info passed to the domain. + v1.ClientPassthroughDevices: + type: object + description: |- + Represent a subset of client devices that can be accessed by VMI. At the moment only, USB devices using Usbredir's library and tooling. Another fit would be a smartcard with libcacard. + + The struct is currently empty as there is no immediate request for user-facing APIs. This structure simply turns on USB redirection of UsbClientPassthroughMaxNumberOf devices. + v1.Clock: + type: object + properties: + timer: + $ref: '#/components/schemas/v1.Timer' + timezone: + type: string + description: Timezone sets the guest clock to the specified timezone. Zone + name follows the TZ environment variable format (e.g. 'America/New_York'). + utc: + $ref: '#/components/schemas/v1.ClockOffsetUTC' + description: Represents the clock and timers of a vmi. + v1.ClockOffset: + type: object + properties: + timezone: + type: string + description: Timezone sets the guest clock to the specified timezone. Zone + name follows the TZ environment variable format (e.g. 'America/New_York'). + utc: + $ref: '#/components/schemas/v1.ClockOffsetUTC' + description: Exactly one of its members must be set. + v1.ClockOffsetUTC: + type: object + properties: + offsetSeconds: + type: integer + description: "OffsetSeconds specifies an offset in seconds, relative to\ + \ UTC. If set, guest changes to the clock will be kept during reboots\ + \ and not reset." + format: int32 + description: UTC sets the guest clock to UTC on each boot. + v1.CloudInitConfigDriveSource: + type: object + properties: + networkData: + type: string + description: NetworkData contains config drive inline cloud-init networkdata. + networkDataBase64: + type: string + description: NetworkDataBase64 contains config drive cloud-init networkdata + as a base64 encoded string. + networkDataSecretRef: + $ref: '#/components/schemas/k8s.io.api.core.v1.LocalObjectReference' + secretRef: + $ref: '#/components/schemas/k8s.io.api.core.v1.LocalObjectReference' + userData: + type: string + description: UserData contains config drive inline cloud-init userdata. + userDataBase64: + type: string + description: UserDataBase64 contains config drive cloud-init userdata as + a base64 encoded string. + description: "Represents a cloud-init config drive user data source. More info:\ + \ https://cloudinit.readthedocs.io/en/latest/topics/datasources/configdrive.html" + v1.CloudInitNoCloudSource: + type: object + properties: + networkData: + type: string + description: NetworkData contains NoCloud inline cloud-init networkdata. + networkDataBase64: + type: string + description: NetworkDataBase64 contains NoCloud cloud-init networkdata as + a base64 encoded string. + networkDataSecretRef: + $ref: '#/components/schemas/k8s.io.api.core.v1.LocalObjectReference' + secretRef: + $ref: '#/components/schemas/k8s.io.api.core.v1.LocalObjectReference' + userData: + type: string + description: UserData contains NoCloud inline cloud-init userdata. + userDataBase64: + type: string + description: UserDataBase64 contains NoCloud cloud-init userdata as a base64 + encoded string. + description: "Represents a cloud-init nocloud user data source. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html" + v1.ComponentConfig: + type: object + properties: + nodePlacement: + $ref: '#/components/schemas/v1.NodePlacement' + replicas: + type: integer + description: "replicas indicates how many replicas should be created for\ + \ each KubeVirt infrastructure component (like virt-api or virt-controller).\ + \ Defaults to 2. WARNING: this is an advanced feature that prevents auto-scaling\ + \ for core kubevirt components. Please use with caution!" + format: byte + v1.ConfigDriveSSHPublicKeyAccessCredentialPropagation: + type: object + v1.ConfigMapVolumeSource: + type: object + properties: + name: + type: string + description: "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + optional: + type: boolean + description: Specify whether the ConfigMap or it's keys must be defined + volumeLabel: + type: string + description: "The volume label of the resulting disk inside the VMI. Different\ + \ bootstrapping mechanisms require different values. Typical values are\ + \ \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart)." + description: "ConfigMapVolumeSource adapts a ConfigMap into a volume. More info:\ + \ https://kubernetes.io/docs/concepts/storage/volumes/#configmap" + v1.ContainerDiskInfo: + type: object + properties: + checksum: + type: integer + description: Checksum is the checksum of the rootdisk or kernel artifacts + inside the containerdisk + format: int64 + description: ContainerDiskInfo shows info about the containerdisk + v1.ContainerDiskSource: + required: + - image + type: object + properties: + image: + type: string + description: Image is the name of the image with the embedded disk. + default: "" + imagePullPolicy: + type: string + description: |- + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + + Possible enum values: + - `"Always"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. + - `"IfNotPresent"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. + - `"Never"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present + enum: + - Always + - IfNotPresent + - Never + imagePullSecret: + type: string + description: ImagePullSecret is the name of the Docker registry secret required + to pull the image. The secret must already exist. + path: + type: string + description: Path defines the path to disk file in the container + description: Represents a docker image with an embedded disk. + v1.CustomBlockSize: + required: + - logical + - physical + type: object + properties: + logical: + type: integer + format: int32 + default: 0 + physical: + type: integer + format: int32 + default: 0 + description: CustomBlockSize represents the desired logical and physical block + size for a VM disk. + v1.CustomProfile: + type: object + properties: + localhostProfile: + type: string + runtimeDefaultProfile: + type: boolean + v1.CustomizeComponents: + type: object + properties: + flags: + $ref: '#/components/schemas/v1.Flags' + patches: + type: array + items: + $ref: '#/components/schemas/v1.CustomizeComponentsPatch' + x-kubernetes-list-type: atomic + v1.CustomizeComponentsPatch: + required: + - patch + - resourceName + - resourceType + - type + type: object + properties: + patch: + type: string + default: "" + resourceName: + type: string + default: "" + resourceType: + type: string + default: "" + type: + type: string + default: "" + v1.DHCPOptions: + type: object + properties: + bootFileName: + type: string + description: If specified will pass option 67 to interface's DHCP server + ntpServers: + type: array + description: If specified will pass the configured NTP server to the VM + via DHCP option 042. + items: + type: string + default: "" + privateOptions: + type: array + description: "If specified will pass extra DHCP options for private use,\ + \ range: 224-254" + items: + $ref: '#/components/schemas/v1.DHCPPrivateOptions' + tftpServerName: + type: string + description: If specified will pass option 66 to interface's DHCP server + description: Extra DHCP options to use in the interface. + v1.DHCPPrivateOptions: + required: + - option + - value + type: object + properties: + option: + type: integer + description: Option is an Integer value from 224-254 Required. + format: int32 + default: 0 + value: + type: string + description: Value is a String value for the Option provided Required. + default: "" + description: DHCPExtraOptions defines Extra DHCP options for a VM. + v1.DataVolumeSource: + required: + - name + type: object + properties: + hotpluggable: + type: boolean + description: Hotpluggable indicates whether the volume can be hotplugged + and hotunplugged. + name: + type: string + description: Name of both the DataVolume and the PVC in the same namespace. + After PVC population the DataVolume is garbage collected by default. + default: "" + v1.DataVolumeTemplateDummyStatus: + type: object + v1.DataVolumeTemplateSpec: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1beta1.DataVolumeSpec' + status: + $ref: '#/components/schemas/v1.DataVolumeTemplateDummyStatus' + v1.DeprecatedInterfaceMacvtap: + type: object + description: "DeprecatedInterfaceMacvtap is an alias to the deprecated InterfaceMacvtap\ + \ that connects to a given network by extending the Kubernetes node's L2 networks\ + \ via a macvtap interface. Deprecated: Removed in v1.3" + v1.DeprecatedInterfaceSlirp: + type: object + description: "DeprecatedInterfaceSlirp is an alias to the deprecated InterfaceSlirp\ + \ that connects to a given network using QEMU user networking mode. Deprecated:\ + \ Removed in v1.3" + v1.DeveloperConfiguration: + type: object + properties: + cpuAllocationRatio: + type: integer + description: "For each requested virtual CPU, CPUAllocationRatio defines\ + \ how much physical CPU to request per VMI from the hosting node. The\ + \ value is in fraction of a CPU thread (or core on non-hyperthreaded nodes).\ + \ For example, a value of 1 means 1 physical CPU thread per VMI CPU thread.\ + \ A value of 100 would be 1% of a physical thread allocated for each requested\ + \ VMI thread. This option has no effect on VMIs that request dedicated\ + \ CPUs. More information at: https://kubevirt.io/user-guide/operations/node_overcommit/#node-cpu-allocation-ratio\ + \ Defaults to 10" + format: int32 + diskVerification: + $ref: '#/components/schemas/v1.DiskVerification' + featureGates: + type: array + description: FeatureGates is the list of experimental features to enable. + Defaults to none + items: + type: string + default: "" + logVerbosity: + $ref: '#/components/schemas/v1.LogVerbosity' + memoryOvercommit: + type: integer + description: "MemoryOvercommit is the percentage of memory we want to give\ + \ VMIs compared to the amount given to its parent pod (virt-launcher).\ + \ For example, a value of 102 means the VMI will \"see\" 2% more memory\ + \ than its parent pod. Values under 100 are effectively \"undercommits\"\ + . Overcommits can lead to memory exhaustion, which in turn can lead to\ + \ crashes. Use carefully. Defaults to 100" + format: int32 + minimumClusterTSCFrequency: + type: integer + description: Allow overriding the automatically determined minimum TSC frequency + of the cluster and fixate the minimum to this frequency. + format: int64 + minimumReservePVCBytes: + type: integer + description: "MinimumReservePVCBytes is the amount of space, in bytes, to\ + \ leave unused on disks. Defaults to 131072 (128KiB)" + format: int64 + nodeSelectors: + type: object + additionalProperties: + type: string + default: "" + description: NodeSelectors allows restricting VMI creation to nodes that + match a set of labels. Defaults to none + pvcTolerateLessSpaceUpToPercent: + type: integer + description: "LessPVCSpaceToleration determines how much smaller, in percentage,\ + \ disk PVCs are allowed to be compared to the requested size (to account\ + \ for various overheads). Defaults to 10" + format: int32 + useEmulation: + type: boolean + description: UseEmulation can be set to true to allow fallback to software + emulation in case hardware-assisted emulation is not available. Defaults + to false + description: DeveloperConfiguration holds developer options + v1.Devices: + type: object + properties: + autoattachGraphicsDevice: + type: boolean + description: Whether to attach the default graphics device or not. VNC will + not be available if set to false. Defaults to true. + autoattachInputDevice: + type: boolean + description: Whether to attach an Input Device. Defaults to false. + autoattachMemBalloon: + type: boolean + description: Whether to attach the Memory balloon device with default period. + Period can be adjusted in virt-config. Defaults to true. + autoattachPodInterface: + type: boolean + description: Whether to attach a pod network interface. Defaults to true. + autoattachSerialConsole: + type: boolean + description: Whether to attach the default virtio-serial console or not. + Serial console access will not be available if set to false. Defaults + to true. + autoattachVSOCK: + type: boolean + description: Whether to attach the VSOCK CID to the VM or not. VSOCK access + will be available if set to true. Defaults to false. + blockMultiQueue: + type: boolean + description: Whether or not to enable virtio multi-queue for block devices. + Defaults to false. + clientPassthrough: + $ref: '#/components/schemas/v1.ClientPassthroughDevices' + disableHotplug: + type: boolean + description: DisableHotplug disabled the ability to hotplug disks. + disks: + type: array + description: "Disks describes disks, cdroms and luns which are connected\ + \ to the vmi." + items: + $ref: '#/components/schemas/v1.Disk' + downwardMetrics: + $ref: '#/components/schemas/v1.DownwardMetrics' + filesystems: + type: array + description: Filesystems describes filesystem which is connected to the + vmi. + items: + $ref: '#/components/schemas/v1.Filesystem' + x-kubernetes-list-type: atomic + gpus: + type: array + description: Whether to attach a GPU device to the vmi. + items: + $ref: '#/components/schemas/v1.GPU' + x-kubernetes-list-type: atomic + hostDevices: + type: array + description: Whether to attach a host device to the vmi. + items: + $ref: '#/components/schemas/v1.HostDevice' + x-kubernetes-list-type: atomic + inputs: + type: array + description: Inputs describe input devices + items: + $ref: '#/components/schemas/v1.Input' + interfaces: + type: array + description: Interfaces describe network interfaces which are added to the + vmi. + items: + $ref: '#/components/schemas/v1.Interface' + logSerialConsole: + type: boolean + description: Whether to log the auto-attached default serial console or + not. Serial console logs will be collect to a file and then streamed from + a named `guest-console-log`. Not relevant if autoattachSerialConsole is + disabled. Defaults to cluster wide setting on VirtualMachineOptions. + networkInterfaceMultiqueue: + type: boolean + description: "If specified, virtual network interfaces configured with a\ + \ virtio bus will also enable the vhost multiqueue feature for network\ + \ devices. The number of queues created depends on additional factors\ + \ of the VirtualMachineInstance, like the number of guest CPUs." + rng: + $ref: '#/components/schemas/v1.Rng' + sound: + $ref: '#/components/schemas/v1.SoundDevice' + tpm: + $ref: '#/components/schemas/v1.TPMDevice' + useVirtioTransitional: + type: boolean + description: Fall back to legacy virtio 0.9 support if virtio bus is selected + on devices. This is helpful for old machines like CentOS6 or RHEL6 which + do not understand virtio_non_transitional (virtio 1.0). + watchdog: + $ref: '#/components/schemas/v1.Watchdog' + v1.DisableFreePageReporting: + type: object + v1.DisableSerialConsoleLog: + type: object + v1.Disk: + required: + - name + type: object + properties: + blockSize: + $ref: '#/components/schemas/v1.BlockSize' + bootOrder: + type: integer + description: "BootOrder is an integer value > 0, used to determine ordering\ + \ of boot devices. Lower values take precedence. Each disk or interface\ + \ that has a boot order must have a unique value. Disks without a boot\ + \ order are not tried if a disk with a boot order exists." + format: int32 + cache: + type: string + description: "Cache specifies which kvm disk cache mode should be used.\ + \ Supported values are: CacheNone, CacheWriteThrough." + cdrom: + $ref: '#/components/schemas/v1.CDRomTarget' + dedicatedIOThread: + type: boolean + description: dedicatedIOThread indicates this disk should have an exclusive + IO Thread. Enabling this implies useIOThreads = true. Defaults to false. + disk: + $ref: '#/components/schemas/v1.DiskTarget' + errorPolicy: + type: string + description: "If specified, it can change the default error policy (stop)\ + \ for the disk" + io: + type: string + description: "IO specifies which QEMU disk IO mode should be used. Supported\ + \ values are: native, default, threads." + lun: + $ref: '#/components/schemas/v1.LunTarget' + name: + type: string + description: Name is the device name + default: "" + serial: + type: string + description: Serial provides the ability to specify a serial number for + the disk device. + shareable: + type: boolean + description: If specified the disk is made sharable and multiple write from + different VMs are permitted + tag: + type: string + description: "If specified, disk address and its tag will be provided to\ + \ the guest via config drive metadata" + v1.DiskTarget: + type: object + properties: + bus: + type: string + description: "Bus indicates the type of disk device to emulate. supported\ + \ values: virtio, sata, scsi, usb." + pciAddress: + type: string + description: "If specified, the virtual disk will be placed on the guests\ + \ pci address with the specified PCI address. For example: 0000:81:01.10" + readonly: + type: boolean + description: ReadOnly. Defaults to false. + v1.DiskVerification: + required: + - memoryLimit + type: object + properties: + memoryLimit: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + description: DiskVerification holds container disks verification limits + v1.DomainMemoryDumpInfo: + type: object + properties: + claimName: + type: string + description: ClaimName is the name of the pvc the memory was dumped to + endTimestamp: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + startTimestamp: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + targetFileName: + type: string + description: TargetFileName is the name of the memory dump output + description: DomainMemoryDumpInfo represents the memory dump information + v1.DomainSpec: + required: + - devices + type: object + properties: + chassis: + $ref: '#/components/schemas/v1.Chassis' + clock: + $ref: '#/components/schemas/v1.Clock' + cpu: + $ref: '#/components/schemas/v1.CPU' + devices: + $ref: '#/components/schemas/v1.Devices' + features: + $ref: '#/components/schemas/v1.Features' + firmware: + $ref: '#/components/schemas/v1.Firmware' + ioThreadsPolicy: + type: string + description: "Controls whether or not disks will share IOThreads. Omitting\ + \ IOThreadsPolicy disables use of IOThreads. One of: shared, auto" + launchSecurity: + $ref: '#/components/schemas/v1.LaunchSecurity' + machine: + $ref: '#/components/schemas/v1.Machine' + memory: + $ref: '#/components/schemas/v1.Memory' + resources: + $ref: '#/components/schemas/v1.ResourceRequirements' + v1.DownwardAPIVolumeSource: + type: object + properties: + fields: + type: array + description: Fields is a list of downward API volume file + items: + $ref: '#/components/schemas/k8s.io.api.core.v1.DownwardAPIVolumeFile' + volumeLabel: + type: string + description: "The volume label of the resulting disk inside the VMI. Different\ + \ bootstrapping mechanisms require different values. Typical values are\ + \ \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart)." + description: DownwardAPIVolumeSource represents a volume containing downward + API info. + v1.DownwardMetrics: + type: object + v1.DownwardMetricsVolumeSource: + type: object + description: DownwardMetricsVolumeSource adds a very small disk to VMIs which + contains a limited view of host and guest metrics. The disk content is compatible + with vhostmd (https://github.com/vhostmd/vhostmd) and vm-dump-metrics. + v1.EFI: + type: object + properties: + persistent: + type: boolean + description: "If set to true, Persistent will persist the EFI NVRAM across\ + \ reboots. Defaults to false" + secureBoot: + type: boolean + description: "If set, SecureBoot will be enabled and the OVMF roms will\ + \ be swapped for SecureBoot-enabled ones. Requires SMM to be enabled.\ + \ Defaults to true" + description: "If set, EFI will be used instead of BIOS." + v1.EmptyDiskSource: + required: + - capacity + type: object + properties: + capacity: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + description: EmptyDisk represents a temporary disk which shares the vmis lifecycle. + v1.EphemeralVolumeSource: + type: object + properties: + persistentVolumeClaim: + $ref: '#/components/schemas/k8s.io.api.core.v1.PersistentVolumeClaimVolumeSource' + v1.FeatureAPIC: + type: object + properties: + enabled: + type: boolean + description: Enabled determines if the feature should be enabled or disabled + on the guest. Defaults to true. + endOfInterrupt: + type: boolean + description: EndOfInterrupt enables the end of interrupt notification in + the guest. Defaults to false. + v1.FeatureHyperv: + type: object + properties: + evmcs: + $ref: '#/components/schemas/v1.FeatureState' + frequencies: + $ref: '#/components/schemas/v1.FeatureState' + ipi: + $ref: '#/components/schemas/v1.FeatureState' + reenlightenment: + $ref: '#/components/schemas/v1.FeatureState' + relaxed: + $ref: '#/components/schemas/v1.FeatureState' + reset: + $ref: '#/components/schemas/v1.FeatureState' + runtime: + $ref: '#/components/schemas/v1.FeatureState' + spinlocks: + $ref: '#/components/schemas/v1.FeatureSpinlocks' + synic: + $ref: '#/components/schemas/v1.FeatureState' + synictimer: + $ref: '#/components/schemas/v1.SyNICTimer' + tlbflush: + $ref: '#/components/schemas/v1.FeatureState' + vapic: + $ref: '#/components/schemas/v1.FeatureState' + vendorid: + $ref: '#/components/schemas/v1.FeatureVendorID' + vpindex: + $ref: '#/components/schemas/v1.FeatureState' + description: Hyperv specific features. + v1.FeatureKVM: + type: object + properties: + hidden: + type: boolean + description: Hide the KVM hypervisor from standard MSR based discovery. + Defaults to false + v1.FeatureSpinlocks: + type: object + properties: + enabled: + type: boolean + description: Enabled determines if the feature should be enabled or disabled + on the guest. Defaults to true. + spinlocks: + type: integer + description: Retries indicates the number of retries. Must be a value greater + or equal 4096. Defaults to 4096. + format: int64 + v1.FeatureState: + type: object + properties: + enabled: + type: boolean + description: Enabled determines if the feature should be enabled or disabled + on the guest. Defaults to true. + description: Represents if a feature is enabled or disabled. + v1.FeatureVendorID: + type: object + properties: + enabled: + type: boolean + description: Enabled determines if the feature should be enabled or disabled + on the guest. Defaults to true. + vendorid: + type: string + description: "VendorID sets the hypervisor vendor id, visible to the vmi.\ + \ String up to twelve characters." + v1.Features: + type: object + properties: + acpi: + $ref: '#/components/schemas/v1.FeatureState' + apic: + $ref: '#/components/schemas/v1.FeatureAPIC' + hyperv: + $ref: '#/components/schemas/v1.FeatureHyperv' + hypervPassthrough: + $ref: '#/components/schemas/v1.HyperVPassthrough' + kvm: + $ref: '#/components/schemas/v1.FeatureKVM' + pvspinlock: + $ref: '#/components/schemas/v1.FeatureState' + smm: + $ref: '#/components/schemas/v1.FeatureState' + v1.Filesystem: + required: + - name + - virtiofs + type: object + properties: + name: + type: string + description: Name is the device name + default: "" + virtiofs: + $ref: '#/components/schemas/v1.FilesystemVirtiofs' + v1.FilesystemVirtiofs: + type: object + v1.Firmware: + type: object + properties: + acpi: + $ref: '#/components/schemas/v1.ACPI' + bootloader: + $ref: '#/components/schemas/v1.Bootloader' + kernelBoot: + $ref: '#/components/schemas/v1.KernelBoot' + serial: + type: string + description: The system-serial-number in SMBIOS + uuid: + type: string + description: UUID reported by the vmi bios. Defaults to a random generated + uid. + v1.Flags: + type: object + properties: + api: + type: object + additionalProperties: + type: string + default: "" + controller: + type: object + additionalProperties: + type: string + default: "" + handler: + type: object + additionalProperties: + type: string + default: "" + description: Flags will create a patch that will replace all flags for the container's + command field. The only flags that will be used are those define. There are + no guarantees around forward/backward compatibility. If set incorrectly this + will cause the resource when rolled out to error until flags are updated. + v1.FreezeUnfreezeTimeout: + required: + - unfreezeTimeout + type: object + properties: + unfreezeTimeout: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration' + description: FreezeUnfreezeTimeout represent the time unfreeze will be triggered + if guest was not unfrozen by unfreeze command + v1.GPU: + required: + - deviceName + - name + type: object + properties: + deviceName: + type: string + default: "" + name: + type: string + description: Name of the GPU device as exposed by a device plugin + default: "" + tag: + type: string + description: "If specified, the virtual network interface address and its\ + \ tag will be provided to the guest via config drive" + virtualGPUOptions: + $ref: '#/components/schemas/v1.VGPUOptions' + v1.GenerationStatus: + required: + - group + - lastGeneration + - name + - resource + type: object + properties: + group: + type: string + description: group is the group of the thing you're tracking + default: "" + hash: + type: string + description: hash is an optional field set for resources without generation + that are content sensitive like secrets and configmaps + lastGeneration: + type: integer + description: lastGeneration is the last generation of the workload controller + involved + format: int64 + default: 0 + name: + type: string + description: name is the name of the thing you're tracking + default: "" + namespace: + type: string + description: namespace is where the thing you're tracking is + resource: + type: string + description: resource is the resource type of the thing you're tracking + default: "" + description: GenerationStatus keeps track of the generation for a given resource + so that decisions about forced updates can be made. + v1.GuestAgentCommandInfo: + required: + - name + type: object + properties: + enabled: + type: boolean + name: + type: string + default: "" + description: List of commands that QEMU guest agent supports + v1.GuestAgentPing: + type: object + description: GuestAgentPing configures the guest-agent based ping probe + v1.HPETTimer: + type: object + properties: + present: + type: boolean + description: Enabled set to false makes sure that the machine type or a + preset can't add the timer. Defaults to true. + tickPolicy: + type: string + description: "TickPolicy determines what happens when QEMU misses a deadline\ + \ for injecting a tick to the guest. One of \"delay\", \"catchup\", \"\ + merge\", \"discard\"." + v1.HostDevice: + required: + - deviceName + - name + type: object + properties: + deviceName: + type: string + description: DeviceName is the resource name of the host device exposed + by a device plugin + default: "" + name: + type: string + default: "" + tag: + type: string + description: "If specified, the virtual network interface address and its\ + \ tag will be provided to the guest via config drive" + v1.HostDisk: + required: + - path + - type + type: object + properties: + capacity: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + path: + type: string + description: The path to HostDisk image located on the cluster + default: "" + shared: + type: boolean + description: Shared indicate whether the path is shared between nodes + type: + type: string + description: Contains information if disk.img exists or should be created + allowed options are 'Disk' and 'DiskOrCreate' + default: "" + description: Represents a disk created on the cluster level + v1.HotplugVolumeSource: + type: object + properties: + dataVolume: + $ref: '#/components/schemas/v1.DataVolumeSource' + persistentVolumeClaim: + $ref: '#/components/schemas/v1.PersistentVolumeClaimVolumeSource' + description: HotplugVolumeSource Represents the source of a volume to mount + which are capable of being hotplugged on a live running VMI. Only one of its + members may be specified. + v1.HotplugVolumeStatus: + type: object + properties: + attachPodName: + type: string + description: AttachPodName is the name of the pod used to attach the volume + to the node. + attachPodUID: + type: string + description: AttachPodUID is the UID of the pod used to attach the volume + to the node. + description: HotplugVolumeStatus represents the hotplug status of the volume + v1.Hugepages: + type: object + properties: + pageSize: + type: string + description: "PageSize specifies the hugepage size, for x86_64 architecture\ + \ valid values are 1Gi and 2Mi." + description: Hugepages allow to use hugepages for the VirtualMachineInstance + instead of regular memory. + v1.HyperVPassthrough: + type: object + properties: + enabled: + type: boolean + v1.HypervTimer: + type: object + properties: + present: + type: boolean + description: Enabled set to false makes sure that the machine type or a + preset can't add the timer. Defaults to true. + v1.I6300ESBWatchdog: + type: object + properties: + action: + type: string + description: "The action to take. Valid values are poweroff, reset, shutdown.\ + \ Defaults to reset." + description: i6300esb watchdog device. + v1.InitrdInfo: + type: object + properties: + checksum: + type: integer + description: Checksum is the checksum of the initrd file + format: int64 + description: InitrdInfo show info about the initrd file + v1.Input: + required: + - name + - type + type: object + properties: + bus: + type: string + description: "Bus indicates the bus of input device to emulate. Supported\ + \ values: virtio, usb." + name: + type: string + description: Name is the device name + default: "" + type: + type: string + description: "Type indicated the type of input device. Supported values:\ + \ tablet." + default: "" + v1.InstancetypeMatcher: + type: object + properties: + inferFromVolume: + type: string + description: InferFromVolume lists the name of a volume that should be used + to infer or discover the instancetype to be used through known annotations + on the underlying resource. Once applied to the InstancetypeMatcher this + field is removed. + inferFromVolumeFailurePolicy: + type: string + description: "InferFromVolumeFailurePolicy controls what should happen on\ + \ failure when inferring the instancetype. Allowed values are: \"RejectInferFromVolumeFailure\"\ + \ and \"IgnoreInferFromVolumeFailure\". If not specified, \"RejectInferFromVolumeFailure\"\ + \ is used by default." + kind: + type: string + description: "Kind specifies which instancetype resource is referenced.\ + \ Allowed values are: \"VirtualMachineInstancetype\" and \"VirtualMachineClusterInstancetype\"\ + . If not specified, \"VirtualMachineClusterInstancetype\" is used by default." + name: + type: string + description: Name is the name of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype + revisionName: + type: string + description: RevisionName specifies a ControllerRevision containing a specific + copy of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype + to be used. This is initially captured the first time the instancetype + is applied to the VirtualMachineInstance. + description: InstancetypeMatcher references a instancetype that is used to fill + fields in the VMI template. + v1.Interface: + required: + - name + type: object + properties: + acpiIndex: + type: integer + description: "If specified, the ACPI index is used to provide network interface\ + \ device naming, that is stable across changes in PCI addresses assigned\ + \ to the device. This value is required to be unique across all devices\ + \ and be between 1 and (16*1024-1)." + format: int32 + binding: + $ref: '#/components/schemas/v1.PluginBinding' + bootOrder: + type: integer + description: "BootOrder is an integer value > 0, used to determine ordering\ + \ of boot devices. Lower values take precedence. Each interface or disk\ + \ that has a boot order must have a unique value. Interfaces without a\ + \ boot order are not tried." + format: int32 + bridge: + $ref: '#/components/schemas/v1.InterfaceBridge' + dhcpOptions: + $ref: '#/components/schemas/v1.DHCPOptions' + macAddress: + type: string + description: "Interface MAC address. For example: de:ad:00:00:be:af or DE-AD-00-00-BE-AF." + macvtap: + $ref: '#/components/schemas/v1.DeprecatedInterfaceMacvtap' + masquerade: + $ref: '#/components/schemas/v1.InterfaceMasquerade' + model: + type: string + description: "Interface model. One of: e1000, e1000e, ne2k_pci, pcnet, rtl8139,\ + \ virtio. Defaults to virtio." + name: + type: string + description: Logical name of the interface as well as a reference to the + associated networks. Must match the Name of a Network. + default: "" + passt: + $ref: '#/components/schemas/v1.InterfacePasst' + pciAddress: + type: string + description: "If specified, the virtual network interface will be placed\ + \ on the guests pci address with the specified PCI address. For example:\ + \ 0000:81:01.10" + ports: + type: array + description: List of ports to be forwarded to the virtual machine. + items: + $ref: '#/components/schemas/v1.Port' + slirp: + $ref: '#/components/schemas/v1.DeprecatedInterfaceSlirp' + sriov: + $ref: '#/components/schemas/v1.InterfaceSRIOV' + state: + type: string + description: "State represents the requested operational state of the interface.\ + \ The (only) value supported is `absent`, expressing a request to remove\ + \ the interface." + tag: + type: string + description: "If specified, the virtual network interface address and its\ + \ tag will be provided to the guest via config drive" + v1.InterfaceBindingMigration: + type: object + properties: + method: + type: string + description: "Method defines a pre-defined migration methodology version:\ + \ 1alphav1" + v1.InterfaceBindingPlugin: + type: object + properties: + domainAttachmentType: + type: string + description: "DomainAttachmentType is a standard domain network attachment\ + \ method kubevirt supports. Supported values: \"tap\". The standard domain\ + \ attachment can be used instead or in addition to the sidecarImage. version:\ + \ 1alphav1" + downwardAPI: + type: string + description: "DownwardAPI specifies what kind of data should be exposed\ + \ to the binding plugin sidecar. Supported values: \"device-info\" version:\ + \ v1alphav1" + migration: + $ref: '#/components/schemas/v1.InterfaceBindingMigration' + networkAttachmentDefinition: + type: string + description: "NetworkAttachmentDefinition references to a NetworkAttachmentDefinition\ + \ CR object. Format: , /. If namespace is not specified,\ + \ VMI namespace is assumed. version: 1alphav1" + sidecarImage: + type: string + description: "SidecarImage references a container image that runs in the\ + \ virt-launcher pod. The sidecar handles (libvirt) domain configuration\ + \ and optional services. version: 1alphav1" + v1.InterfaceBridge: + type: object + description: InterfaceBridge connects to a given network via a linux bridge. + v1.InterfaceMasquerade: + type: object + description: InterfaceMasquerade connects to a given network using netfilter + rules to nat the traffic. + v1.InterfacePasst: + type: object + description: InterfacePasst connects to a given network. + v1.InterfaceSRIOV: + type: object + description: InterfaceSRIOV connects to a given network by passing-through an + SR-IOV PCI device via vfio. + v1.KSMConfiguration: + type: object + properties: + nodeLabelSelector: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector' + description: KSMConfiguration holds information about KSM. + v1.KVMTimer: + type: object + properties: + present: + type: boolean + description: Enabled set to false makes sure that the machine type or a + preset can't add the timer. Defaults to true. + v1.KernelBoot: + type: object + properties: + container: + $ref: '#/components/schemas/v1.KernelBootContainer' + kernelArgs: + type: string + description: Arguments to be passed to the kernel at boot time + description: "Represents the firmware blob used to assist in the kernel boot\ + \ process. Used for setting the kernel, initrd and command line arguments" + v1.KernelBootContainer: + required: + - image + type: object + properties: + image: + type: string + description: Image that contains initrd / kernel files. + default: "" + imagePullPolicy: + type: string + description: |- + Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images + + Possible enum values: + - `"Always"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. + - `"IfNotPresent"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. + - `"Never"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present + enum: + - Always + - IfNotPresent + - Never + imagePullSecret: + type: string + description: ImagePullSecret is the name of the Docker registry secret required + to pull the image. The secret must already exist. + initrdPath: + type: string + description: the fully-qualified path to the ramdisk image in the host OS + kernelPath: + type: string + description: The fully-qualified path to the kernel image in the host OS + description: "If set, the VM will be booted from the defined kernel / initrd." + v1.KernelBootStatus: + type: object + properties: + initrdInfo: + $ref: '#/components/schemas/v1.InitrdInfo' + kernelInfo: + $ref: '#/components/schemas/v1.KernelInfo' + description: KernelBootStatus contains info about the kernelBootContainer + v1.KernelInfo: + type: object + properties: + checksum: + type: integer + description: Checksum is the checksum of the kernel image + format: int64 + description: KernelInfo show info about the kernel image + v1.KubeVirt: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.KubeVirtSpec' + status: + $ref: '#/components/schemas/v1.KubeVirtStatus' + description: KubeVirt represents the object deploying all KubeVirt resources + v1.KubeVirtCertificateRotateStrategy: + type: object + properties: + selfSigned: + $ref: '#/components/schemas/v1.KubeVirtSelfSignConfiguration' + v1.KubeVirtCondition: + required: + - status + - type + type: object + properties: + message: + type: string + reason: + type: string + status: + type: string + default: "" + type: + type: string + default: "" + description: KubeVirtCondition represents a condition of a KubeVirt deployment + v1.KubeVirtConfiguration: + type: object + properties: + additionalGuestMemoryOverheadRatio: + type: string + description: "AdditionalGuestMemoryOverheadRatio can be used to increase\ + \ the virtualization infrastructure overhead. This is useful, since the\ + \ calculation of this overhead is not accurate and cannot be entirely\ + \ known in advance. The ratio that is being set determines by which factor\ + \ to increase the overhead calculated by Kubevirt. A higher ratio means\ + \ that the VMs would be less compromised by node pressures, but would\ + \ mean that fewer VMs could be scheduled to a node. If not set, the default\ + \ is 1." + apiConfiguration: + $ref: '#/components/schemas/v1.ReloadableComponentConfiguration' + architectureConfiguration: + $ref: '#/components/schemas/v1.ArchConfiguration' + autoCPULimitNamespaceLabelSelector: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector' + controllerConfiguration: + $ref: '#/components/schemas/v1.ReloadableComponentConfiguration' + cpuModel: + type: string + cpuRequest: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + defaultRuntimeClass: + type: string + developerConfiguration: + $ref: '#/components/schemas/v1.DeveloperConfiguration' + emulatedMachines: + type: array + description: Deprecated. Use architectureConfiguration instead. + items: + type: string + default: "" + evictionStrategy: + type: string + description: EvictionStrategy defines at the cluster level if the VirtualMachineInstance + should be migrated instead of shut-off in case of a node drain. If the + VirtualMachineInstance specific field is set it overrides the cluster + level one. + handlerConfiguration: + $ref: '#/components/schemas/v1.ReloadableComponentConfiguration' + imagePullPolicy: + type: string + description: |- + Possible enum values: + - `"Always"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. + - `"IfNotPresent"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. + - `"Never"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present + enum: + - Always + - IfNotPresent + - Never + ksmConfiguration: + $ref: '#/components/schemas/v1.KSMConfiguration' + liveUpdateConfiguration: + $ref: '#/components/schemas/v1.LiveUpdateConfiguration' + machineType: + type: string + description: Deprecated. Use architectureConfiguration instead. + mediatedDevicesConfiguration: + $ref: '#/components/schemas/v1.MediatedDevicesConfiguration' + memBalloonStatsPeriod: + type: integer + format: int64 + migrations: + $ref: '#/components/schemas/v1.MigrationConfiguration' + minCPUModel: + type: string + network: + $ref: '#/components/schemas/v1.NetworkConfiguration' + obsoleteCPUModels: + type: object + additionalProperties: + type: boolean + default: false + ovmfPath: + type: string + description: Deprecated. Use architectureConfiguration instead. + permittedHostDevices: + $ref: '#/components/schemas/v1.PermittedHostDevices' + seccompConfiguration: + $ref: '#/components/schemas/v1.SeccompConfiguration' + selinuxLauncherType: + type: string + smbios: + $ref: '#/components/schemas/v1.SMBiosConfiguration' + supportContainerResources: + type: array + description: SupportContainerResources specifies the resource requirements + for various types of supporting containers such as container disks/virtiofs/sidecars + and hotplug attachment pods. If omitted a sensible default will be supplied. + items: + $ref: '#/components/schemas/v1.SupportContainerResources' + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + supportedGuestAgentVersions: + type: array + description: deprecated + items: + type: string + default: "" + tlsConfiguration: + $ref: '#/components/schemas/v1.TLSConfiguration' + virtualMachineInstancesPerNode: + type: integer + format: int32 + virtualMachineOptions: + $ref: '#/components/schemas/v1.VirtualMachineOptions' + vmRolloutStrategy: + type: string + description: VMRolloutStrategy defines how changes to a VM object propagate + to its VMI + vmStateStorageClass: + type: string + description: "VMStateStorageClass is the name of the storage class to use\ + \ for the PVCs created to preserve VM state, like TPM. The storage class\ + \ must support RWX in filesystem mode." + webhookConfiguration: + $ref: '#/components/schemas/v1.ReloadableComponentConfiguration' + description: KubeVirtConfiguration holds all kubevirt configurations + v1.KubeVirtList: + required: + - items + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1.KubeVirt' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: KubeVirtList is a list of KubeVirts + v1.KubeVirtSelfSignConfiguration: + type: object + properties: + ca: + $ref: '#/components/schemas/v1.CertConfig' + caOverlapInterval: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration' + caRotateInterval: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration' + certRotateInterval: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration' + server: + $ref: '#/components/schemas/v1.CertConfig' + v1.KubeVirtSpec: + type: object + properties: + certificateRotateStrategy: + $ref: '#/components/schemas/v1.KubeVirtCertificateRotateStrategy' + configuration: + $ref: '#/components/schemas/v1.KubeVirtConfiguration' + customizeComponents: + $ref: '#/components/schemas/v1.CustomizeComponents' + imagePullPolicy: + type: string + description: |- + The ImagePullPolicy to use. + + Possible enum values: + - `"Always"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. + - `"IfNotPresent"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. + - `"Never"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present + enum: + - Always + - IfNotPresent + - Never + imagePullSecrets: + type: array + description: The imagePullSecrets to pull the container images from Defaults + to none + items: + $ref: '#/components/schemas/k8s.io.api.core.v1.LocalObjectReference' + x-kubernetes-list-type: atomic + imageRegistry: + type: string + description: The image registry to pull the container images from Defaults + to the same registry the operator's container image is pulled from. + imageTag: + type: string + description: The image tag to use for the continer images installed. Defaults + to the same tag as the operator's container image. + infra: + $ref: '#/components/schemas/v1.ComponentConfig' + monitorAccount: + type: string + description: The name of the Prometheus service account that needs read-access + to KubeVirt endpoints Defaults to prometheus-k8s + monitorNamespace: + type: string + description: The namespace Prometheus is deployed in Defaults to openshift-monitor + productComponent: + type: string + description: "Designate the apps.kubevirt.io/component label for KubeVirt\ + \ components. Useful if KubeVirt is included as part of a product. If\ + \ ProductComponent is not specified, the component label default value\ + \ is kubevirt." + productName: + type: string + description: "Designate the apps.kubevirt.io/part-of label for KubeVirt\ + \ components. Useful if KubeVirt is included as part of a product. If\ + \ ProductName is not specified, the part-of label will be omitted." + productVersion: + type: string + description: "Designate the apps.kubevirt.io/version label for KubeVirt\ + \ components. Useful if KubeVirt is included as part of a product. If\ + \ ProductVersion is not specified, KubeVirt's version will be used." + serviceMonitorNamespace: + type: string + description: |- + The namespace the service monitor will be deployed + When ServiceMonitorNamespace is set, then we'll install the service monitor object in that namespace + otherwise we will use the monitoring namespace. + uninstallStrategy: + type: string + description: Specifies if kubevirt can be deleted if workloads are still + present. This is mainly a precaution to avoid accidental data loss + workloadUpdateStrategy: + $ref: '#/components/schemas/v1.KubeVirtWorkloadUpdateStrategy' + workloads: + $ref: '#/components/schemas/v1.ComponentConfig' + v1.KubeVirtStatus: + type: object + properties: + conditions: + type: array + items: + $ref: '#/components/schemas/v1.KubeVirtCondition' + defaultArchitecture: + type: string + generations: + type: array + items: + $ref: '#/components/schemas/v1.GenerationStatus' + x-kubernetes-list-type: atomic + observedDeploymentConfig: + type: string + observedDeploymentID: + type: string + observedGeneration: + type: integer + format: int64 + observedKubeVirtRegistry: + type: string + observedKubeVirtVersion: + type: string + operatorVersion: + type: string + outdatedVirtualMachineInstanceWorkloads: + type: integer + format: int32 + phase: + type: string + targetDeploymentConfig: + type: string + targetDeploymentID: + type: string + targetKubeVirtRegistry: + type: string + targetKubeVirtVersion: + type: string + description: KubeVirtStatus represents information pertaining to a KubeVirt + deployment. + v1.KubeVirtWorkloadUpdateStrategy: + type: object + properties: + batchEvictionInterval: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration' + batchEvictionSize: + type: integer + description: |- + BatchEvictionSize Represents the number of VMIs that can be forced updated per the BatchShutdownInteral interval + + Defaults to 10 + format: int32 + workloadUpdateMethods: + type: array + description: |- + WorkloadUpdateMethods defines the methods that can be used to disrupt workloads during automated workload updates. When multiple methods are present, the least disruptive method takes precedence over more disruptive methods. For example if both LiveMigrate and Shutdown methods are listed, only VMs which are not live migratable will be restarted/shutdown + + An empty list defaults to no automated workload updating + items: + type: string + default: "" + x-kubernetes-list-type: atomic + description: KubeVirtWorkloadUpdateStrategy defines options related to updating + a KubeVirt install + v1.LaunchSecurity: + type: object + properties: + sev: + $ref: '#/components/schemas/v1.SEV' + v1.LiveUpdateConfiguration: + type: object + properties: + maxCpuSockets: + type: integer + description: MaxCpuSockets holds the maximum amount of sockets that can + be hotplugged + format: int64 + maxGuest: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + maxHotplugRatio: + type: integer + description: "MaxHotplugRatio is the ratio used to define the max amount\ + \ of a hotplug resource that can be made available to a VM when the specific\ + \ Max* setting is not defined (MaxCpuSockets, MaxGuest) Example: VM is\ + \ configured with 512Mi of guest memory, if MaxGuest is not defined and\ + \ MaxHotplugRatio is 2 then MaxGuest = 1Gi defaults to 4" + format: int64 + v1.LogVerbosity: + type: object + properties: + nodeVerbosity: + type: object + additionalProperties: + type: integer + format: int32 + default: 0 + description: NodeVerbosity represents a map of nodes with a specific verbosity + level + virtAPI: + type: integer + format: int32 + virtController: + type: integer + format: int32 + virtHandler: + type: integer + format: int32 + virtLauncher: + type: integer + format: int32 + virtOperator: + type: integer + format: int32 + description: LogVerbosity sets log verbosity level of various components + v1.LunTarget: + type: object + properties: + bus: + type: string + description: "Bus indicates the type of disk device to emulate. supported\ + \ values: virtio, sata, scsi." + readonly: + type: boolean + description: ReadOnly. Defaults to false. + reservation: + type: boolean + description: Reservation indicates if the disk needs to support the persistent + reservation for the SCSI disk + v1.Machine: + type: object + properties: + type: + type: string + description: QEMU machine type is the actual chipset of the VirtualMachineInstance. + default: "" + v1.MediatedDevicesConfiguration: + type: object + properties: + mediatedDeviceTypes: + type: array + items: + type: string + default: "" + x-kubernetes-list-type: atomic + mediatedDevicesTypes: + type: array + description: Deprecated. Use mediatedDeviceTypes instead. + items: + type: string + default: "" + x-kubernetes-list-type: atomic + nodeMediatedDeviceTypes: + type: array + items: + $ref: '#/components/schemas/v1.NodeMediatedDeviceTypesConfig' + x-kubernetes-list-type: atomic + description: "MediatedDevicesConfiguration holds information about MDEV types\ + \ to be defined, if available" + v1.MediatedHostDevice: + required: + - mdevNameSelector + - resourceName + type: object + properties: + externalResourceProvider: + type: boolean + mdevNameSelector: + type: string + default: "" + resourceName: + type: string + default: "" + description: MediatedHostDevice represents a host mediated device allowed for + passthrough + v1.Memory: + type: object + properties: + guest: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + hugepages: + $ref: '#/components/schemas/v1.Hugepages' + maxGuest: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + description: Memory allows specifying the VirtualMachineInstance memory features. + v1.MemoryDumpVolumeSource: + required: + - claimName + type: object + properties: + claimName: + type: string + description: "claimName is the name of a PersistentVolumeClaim in the same\ + \ namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + default: "" + hotpluggable: + type: boolean + description: Hotpluggable indicates whether the volume can be hotplugged + and hotunplugged. + readOnly: + type: boolean + description: readOnly Will force the ReadOnly setting in VolumeMounts. Default + false. + v1.MemoryStatus: + type: object + properties: + guestAtBoot: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + guestCurrent: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + guestRequested: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + v1.MigrateOptions: + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + dryRun: + type: array + description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error\ + \ response and no further processing of the request. Valid values are:\ + \ - All: all dry run stages will be processed" + items: + type: string + default: "" + x-kubernetes-list-type: atomic + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + description: MigrateOptions may be provided on migrate request. + v1.MigrationConfiguration: + type: object + properties: + allowAutoConverge: + type: boolean + description: AllowAutoConverge allows the platform to compromise performance/availability + of VMIs to guarantee successful VMI live migrations. Defaults to false + allowPostCopy: + type: boolean + description: "AllowPostCopy enables post-copy live migrations. Such migrations\ + \ allow even the busiest VMIs to successfully live-migrate. However, events\ + \ like a network failure can cause a VMI crash. If set to true, migrations\ + \ will still start in pre-copy, but switch to post-copy when CompletionTimeoutPerGiB\ + \ triggers. Defaults to false" + bandwidthPerMigration: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + completionTimeoutPerGiB: + type: integer + description: "CompletionTimeoutPerGiB is the maximum number of seconds per\ + \ GiB a migration is allowed to take. If a live-migration takes longer\ + \ to migrate than this value multiplied by the size of the VMI, the migration\ + \ will be cancelled, unless AllowPostCopy is true. Defaults to 800" + format: int64 + disableTLS: + type: boolean + description: "When set to true, DisableTLS will disable the additional layer\ + \ of live migration encryption provided by KubeVirt. This is usually a\ + \ bad idea. Defaults to false" + matchSELinuxLevelOnMigration: + type: boolean + description: "By default, the SELinux level of target virt-launcher pods\ + \ is forced to the level of the source virt-launcher. When set to true,\ + \ MatchSELinuxLevelOnMigration lets the CRI auto-assign a random level\ + \ to the target. That will ensure the target virt-launcher doesn't share\ + \ categories with another pod on the node. However, migrations will fail\ + \ when using RWX volumes that don't automatically deal with SELinux levels." + network: + type: string + description: "Network is the name of the CNI network to use for live migrations.\ + \ By default, migrations go through the pod network." + nodeDrainTaintKey: + type: string + description: "NodeDrainTaintKey defines the taint key that indicates a node\ + \ should be drained. Note: this option relies on the deprecated node taint\ + \ feature. Default: kubevirt.io/drain" + parallelMigrationsPerCluster: + type: integer + description: ParallelMigrationsPerCluster is the total number of concurrent + live migrations allowed cluster-wide. Defaults to 5 + format: int64 + parallelOutboundMigrationsPerNode: + type: integer + description: ParallelOutboundMigrationsPerNode is the maximum number of + concurrent outgoing live migrations allowed per node. Defaults to 2 + format: int64 + progressTimeout: + type: integer + description: ProgressTimeout is the maximum number of seconds a live migration + is allowed to make no progress. Hitting this timeout means a migration + transferred 0 data for that many seconds. The migration is then considered + stuck and therefore cancelled. Defaults to 150 + format: int64 + unsafeMigrationOverride: + type: boolean + description: UnsafeMigrationOverride allows live migrations to occur even + if the compatibility check indicates the migration will be unsafe to the + guest. Defaults to false + description: MigrationConfiguration holds migration options. Can be overridden + for specific groups of VMs though migration policies. Visit https://kubevirt.io/user-guide/operations/migration_policies/ + for more information. + v1.MultusNetwork: + required: + - networkName + type: object + properties: + default: + type: boolean + description: Select the default network and add it to the multus-cni.io/default-network + annotation. + networkName: + type: string + description: "References to a NetworkAttachmentDefinition CRD object. Format:\ + \ , /. If namespace is not specified,\ + \ VMI namespace is assumed." + default: "" + description: Represents the multus cni network. + v1.NUMA: + type: object + properties: + guestMappingPassthrough: + $ref: '#/components/schemas/v1.NUMAGuestMappingPassthrough' + v1.NUMAGuestMappingPassthrough: + type: object + description: "NUMAGuestMappingPassthrough instructs kubevirt to model numa topology\ + \ which is compatible with the CPU pinning on the guest. This will result\ + \ in a subset of the node numa topology being passed through, ensuring that\ + \ virtual numa nodes and their memory never cross boundaries coming from the\ + \ node numa mapping." + v1.Network: + required: + - name + type: object + properties: + multus: + $ref: '#/components/schemas/v1.MultusNetwork' + name: + type: string + description: "Network name. Must be a DNS_LABEL and unique within the vm.\ + \ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + default: "" + pod: + $ref: '#/components/schemas/v1.PodNetwork' + description: Network represents a network type and a resource that should be + connected to the vm. + v1.NetworkConfiguration: + type: object + properties: + binding: + type: object + additionalProperties: + $ref: '#/components/schemas/v1.InterfaceBindingPlugin' + defaultNetworkInterface: + type: string + permitBridgeInterfaceOnPodNetwork: + type: boolean + permitSlirpInterface: + type: boolean + description: "DeprecatedPermitSlirpInterface is an alias for the deprecated\ + \ PermitSlirpInterface. Deprecated: Removed in v1.3." + description: NetworkConfiguration holds network options + v1.NoCloudSSHPublicKeyAccessCredentialPropagation: + type: object + v1.NodeMediatedDeviceTypesConfig: + required: + - nodeSelector + type: object + properties: + mediatedDeviceTypes: + type: array + items: + type: string + default: "" + x-kubernetes-list-type: atomic + mediatedDevicesTypes: + type: array + description: Deprecated. Use mediatedDeviceTypes instead. + items: + type: string + default: "" + x-kubernetes-list-type: atomic + nodeSelector: + type: object + additionalProperties: + type: string + default: "" + description: "NodeSelector is a selector which must be true for the vmi\ + \ to fit on a node. Selector which must match a node's labels for the\ + \ vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/" + description: NodeMediatedDeviceTypesConfig holds information about MDEV types + to be defined in a specific node that matches the NodeSelector field. + v1.NodePlacement: + type: object + properties: + affinity: + $ref: '#/components/schemas/k8s.io.api.core.v1.Affinity' + nodeSelector: + type: object + additionalProperties: + type: string + default: "" + description: "nodeSelector is the node selector applied to the relevant\ + \ kind of pods It specifies a map of key-value pairs: for the pod to be\ + \ eligible to run on a node, the node must have each of the indicated\ + \ key-value pairs as labels (it can have additional labels as well). See\ + \ https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector" + tolerations: + type: array + description: tolerations is a list of tolerations applied to the relevant + kind of pods See https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + for more info. These are additional tolerations other than default ones. + items: + $ref: '#/components/schemas/k8s.io.api.core.v1.Toleration' + description: NodePlacement describes node scheduling configuration. + v1.PITTimer: + type: object + properties: + present: + type: boolean + description: Enabled set to false makes sure that the machine type or a + preset can't add the timer. Defaults to true. + tickPolicy: + type: string + description: "TickPolicy determines what happens when QEMU misses a deadline\ + \ for injecting a tick to the guest. One of \"delay\", \"catchup\", \"\ + discard\"." + v1.PauseOptions: + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + dryRun: + type: array + description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error\ + \ response and no further processing of the request. Valid values are:\ + \ - All: all dry run stages will be processed" + items: + type: string + default: "" + x-kubernetes-list-type: atomic + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + description: PauseOptions may be provided on pause request. + v1.PciHostDevice: + required: + - pciVendorSelector + - resourceName + type: object + properties: + externalResourceProvider: + type: boolean + description: "If true, KubeVirt will leave the allocation and monitoring\ + \ to an external device plugin" + pciVendorSelector: + type: string + description: The vendor_id:product_id tuple of the PCI device + default: "" + resourceName: + type: string + description: The name of the resource that is representing the device. Exposed + by a device plugin and requested by VMs. Typically of the form vendor.com/product_name + default: "" + description: PciHostDevice represents a host PCI device allowed for passthrough + v1.PermittedHostDevices: + type: object + properties: + mediatedDevices: + type: array + items: + $ref: '#/components/schemas/v1.MediatedHostDevice' + x-kubernetes-list-type: atomic + pciHostDevices: + type: array + items: + $ref: '#/components/schemas/v1.PciHostDevice' + x-kubernetes-list-type: atomic + usb: + type: array + items: + $ref: '#/components/schemas/v1.USBHostDevice' + x-kubernetes-list-type: atomic + description: PermittedHostDevices holds information about devices allowed for + passthrough + v1.PersistentVolumeClaimInfo: + type: object + properties: + accessModes: + type: array + description: "AccessModes contains the desired access modes the volume should\ + \ have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1" + items: + type: string + default: "" + x-kubernetes-list-type: atomic + capacity: + type: object + additionalProperties: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + description: Capacity represents the capacity set on the corresponding PVC + status + filesystemOverhead: + type: string + description: Percentage of filesystem's size to be reserved when resizing + the PVC + preallocated: + type: boolean + description: Preallocated indicates if the PVC's storage is preallocated + or not + requests: + type: object + additionalProperties: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + description: Requests represents the resources requested by the corresponding + PVC spec + volumeMode: + type: string + description: |- + VolumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + + Possible enum values: + - `"Block"` means the volume will not be formatted with a filesystem and will remain a raw block device. + - `"Filesystem"` means the volume will be or is formatted with a filesystem. + enum: + - Block + - Filesystem + description: PersistentVolumeClaimInfo contains the relavant information virt-handler + needs cached about a PVC + v1.PersistentVolumeClaimVolumeSource: + required: + - claimName + type: object + properties: + claimName: + type: string + description: "claimName is the name of a PersistentVolumeClaim in the same\ + \ namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + default: "" + hotpluggable: + type: boolean + description: Hotpluggable indicates whether the volume can be hotplugged + and hotunplugged. + readOnly: + type: boolean + description: readOnly Will force the ReadOnly setting in VolumeMounts. Default + false. + description: "PersistentVolumeClaimVolumeSource represents a reference to a\ + \ PersistentVolumeClaim in the same namespace. Directly attached to the vmi\ + \ via qemu. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims" + v1.PluginBinding: + required: + - name + type: object + properties: + name: + type: string + description: "Name references to the binding name as denined in the kubevirt\ + \ CR. version: 1alphav1" + default: "" + description: PluginBinding represents a binding implemented in a plugin. + v1.PodNetwork: + type: object + properties: + vmIPv6NetworkCIDR: + type: string + description: IPv6 CIDR for the vm network. Defaults to fd10:0:2::/120 if + not specified. + vmNetworkCIDR: + type: string + description: CIDR for vm network. Default 10.0.2.0/24 if not specified. + description: Represents the stock pod network interface. + v1.Port: + required: + - port + type: object + properties: + name: + type: string + description: "If specified, this must be an IANA_SVC_NAME and unique within\ + \ the pod. Each named port in a pod must have a unique name. Name for\ + \ the port that can be referred to by services." + port: + type: integer + description: "Number of port to expose for the virtual machine. This must\ + \ be a valid port number, 0 < x < 65536." + format: int32 + default: 0 + protocol: + type: string + description: Protocol for port. Must be UDP or TCP. Defaults to "TCP". + description: Port represents a port to expose from the virtual machine. Default + protocol TCP. The port field is mandatory + v1.PreferenceMatcher: + type: object + properties: + inferFromVolume: + type: string + description: InferFromVolume lists the name of a volume that should be used + to infer or discover the preference to be used through known annotations + on the underlying resource. Once applied to the PreferenceMatcher this + field is removed. + inferFromVolumeFailurePolicy: + type: string + description: "InferFromVolumeFailurePolicy controls what should happen on\ + \ failure when preference the instancetype. Allowed values are: \"RejectInferFromVolumeFailure\"\ + \ and \"IgnoreInferFromVolumeFailure\". If not specified, \"RejectInferFromVolumeFailure\"\ + \ is used by default." + kind: + type: string + description: "Kind specifies which preference resource is referenced. Allowed\ + \ values are: \"VirtualMachinePreference\" and \"VirtualMachineClusterPreference\"\ + . If not specified, \"VirtualMachineClusterPreference\" is used by default." + name: + type: string + description: Name is the name of the VirtualMachinePreference or VirtualMachineClusterPreference + revisionName: + type: string + description: RevisionName specifies a ControllerRevision containing a specific + copy of the VirtualMachinePreference or VirtualMachineClusterPreference + to be used. This is initially captured the first time the instancetype + is applied to the VirtualMachineInstance. + description: PreferenceMatcher references a set of preference that is used to + fill fields in the VMI template. + v1.Probe: + type: object + properties: + exec: + $ref: '#/components/schemas/k8s.io.api.core.v1.ExecAction' + failureThreshold: + type: integer + description: Minimum consecutive failures for the probe to be considered + failed after having succeeded. Defaults to 3. Minimum value is 1. + format: int32 + guestAgentPing: + $ref: '#/components/schemas/v1.GuestAgentPing' + httpGet: + $ref: '#/components/schemas/k8s.io.api.core.v1.HTTPGetAction' + initialDelaySeconds: + type: integer + description: "Number of seconds after the VirtualMachineInstance has started\ + \ before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + format: int32 + periodSeconds: + type: integer + description: How often (in seconds) to perform the probe. Default to 10 + seconds. Minimum value is 1. + format: int32 + successThreshold: + type: integer + description: Minimum consecutive successes for the probe to be considered + successful after having failed. Defaults to 1. Must be 1 for liveness. + Minimum value is 1. + format: int32 + tcpSocket: + $ref: '#/components/schemas/k8s.io.api.core.v1.TCPSocketAction' + timeoutSeconds: + type: integer + description: "Number of seconds after which the probe times out. For exec\ + \ probes the timeout fails the probe but does not terminate the command\ + \ running on the guest. This means a blocking command can result in an\ + \ increasing load on the guest. A small buffer will be added to the resulting\ + \ workload exec probe to compensate for delays caused by the qemu guest\ + \ exec mechanism. Defaults to 1 second. Minimum value is 1. More info:\ + \ https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes" + format: int32 + description: Probe describes a health check to be performed against a VirtualMachineInstance + to determine whether it is alive or ready to receive traffic. + v1.QemuGuestAgentSSHPublicKeyAccessCredentialPropagation: + required: + - users + type: object + properties: + users: + type: array + description: Users represents a list of guest users that should have the + ssh public keys added to their authorized_keys file. + items: + type: string + default: "" + x-kubernetes-list-type: set + v1.QemuGuestAgentUserPasswordAccessCredentialPropagation: + type: object + v1.RESTClientConfiguration: + type: object + properties: + rateLimiter: + $ref: '#/components/schemas/v1.RateLimiter' + description: RESTClientConfiguration allows configuring certain aspects of the + k8s rest client. + v1.RTCTimer: + type: object + properties: + present: + type: boolean + description: Enabled set to false makes sure that the machine type or a + preset can't add the timer. Defaults to true. + tickPolicy: + type: string + description: "TickPolicy determines what happens when QEMU misses a deadline\ + \ for injecting a tick to the guest. One of \"delay\", \"catchup\"." + track: + type: string + description: Track the guest or the wall clock. + v1.RateLimiter: + type: object + properties: + tokenBucketRateLimiter: + $ref: '#/components/schemas/v1.TokenBucketRateLimiter' + v1.Realtime: + type: object + properties: + mask: + type: string + description: "Mask defines the vcpu mask expression that defines which vcpus\ + \ are used for realtime. Format matches libvirt's expressions. Example:\ + \ \"0-3,^1\",\"0,2,3\",\"2-3\"" + description: Realtime holds the tuning knobs specific for realtime workloads. + v1.ReloadableComponentConfiguration: + type: object + properties: + restClient: + $ref: '#/components/schemas/v1.RESTClientConfiguration' + description: ReloadableComponentConfiguration holds all generic k8s configuration + options which can be reloaded by components without requiring a restart. + v1.RemoveVolumeOptions: + required: + - name + type: object + properties: + dryRun: + type: array + description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error\ + \ response and no further processing of the request. Valid values are:\ + \ - All: all dry run stages will be processed" + items: + type: string + default: "" + x-kubernetes-list-type: atomic + name: + type: string + description: Name represents the name that maps to both the disk and volume + that should be removed + default: "" + description: RemoveVolumeOptions is provided when dynamically hot unplugging + volume and disk + v1.ResourceRequirements: + type: object + properties: + limits: + type: object + properties: {} + description: Limits describes the maximum amount of compute resources allowed. + Valid resource keys are "memory" and "cpu". + overcommitGuestOverhead: + type: boolean + description: Don't ask the scheduler to take the guest-management overhead + into account. Instead put the overhead only into the container's memory + limit. This can lead to crashes if all memory is in use on a node. Defaults + to false. + requests: + type: object + properties: {} + description: Requests is a description of the initial vmi resources. Valid + resource keys are "memory" and "cpu". + v1.RestartOptions: + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + dryRun: + type: array + description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error\ + \ response and no further processing of the request. Valid values are:\ + \ - All: all dry run stages will be processed" + items: + type: string + default: "" + x-kubernetes-list-type: atomic + gracePeriodSeconds: + type: integer + description: "The duration in seconds before the object should be force-restarted.\ + \ Value must be non-negative integer. The value zero indicates, restart\ + \ immediately. If this value is nil, the default grace period for deletion\ + \ of the corresponding VMI for the specified type will be used to determine\ + \ on how much time to give the VMI to restart. Defaults to a per object\ + \ value if not specified. zero means restart immediately. Allowed Values:\ + \ nil and 0" + format: int64 + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + description: RestartOptions may be provided when deleting an API object. + v1.Rng: + type: object + description: Rng represents the random device passed from host + v1.SEV: + type: object + properties: + attestation: + $ref: '#/components/schemas/v1.SEVAttestation' + dhCert: + type: string + description: Base64 encoded guest owner's Diffie-Hellman key. + policy: + $ref: '#/components/schemas/v1.SEVPolicy' + session: + type: string + description: Base64 encoded session blob. + v1.SEVAttestation: + type: object + v1.SEVMeasurementInfo: + type: object + properties: + apiMajor: + type: integer + description: API major version of the SEV host. + format: int32 + apiMinor: + type: integer + description: API minor version of the SEV host. + format: int32 + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + buildID: + type: integer + description: Build ID of the SEV host. + format: int32 + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + loaderSHA: + type: string + description: SHA256 of the loader binary + measurement: + type: string + description: Base64 encoded launch measurement of the SEV guest. + policy: + type: integer + description: Policy of the SEV guest. + format: int32 + description: SEVMeasurementInfo contains information about the guest launch + measurement. + v1.SEVPlatformInfo: + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + certChain: + type: string + description: Base64 encoded SEV certificate chain. + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + pdh: + type: string + description: Base64 encoded platform Diffie-Hellman key. + description: SEVPlatformInfo contains information about the AMD SEV features + for the node. + v1.SEVPolicy: + type: object + properties: + encryptedState: + type: boolean + description: SEV-ES is required. Defaults to false. + v1.SEVSecretOptions: + type: object + properties: + header: + type: string + description: Base64 encoded header needed to decrypt the secret. + secret: + type: string + description: Base64 encoded encrypted launch secret. + description: SEVSecretOptions is used to provide a secret for a running guest. + v1.SEVSessionOptions: + type: object + properties: + dhCert: + type: string + description: Base64 encoded guest owner's Diffie-Hellman key. + session: + type: string + description: Base64 encoded session blob. + description: SEVSessionOptions is used to provide SEV session parameters. + v1.SMBiosConfiguration: + type: object + properties: + family: + type: string + manufacturer: + type: string + product: + type: string + sku: + type: string + version: + type: string + v1.SSHPublicKeyAccessCredential: + required: + - propagationMethod + - source + type: object + properties: + propagationMethod: + $ref: '#/components/schemas/v1.SSHPublicKeyAccessCredentialPropagationMethod' + source: + $ref: '#/components/schemas/v1.SSHPublicKeyAccessCredentialSource' + description: SSHPublicKeyAccessCredential represents a source and propagation + method for injecting ssh public keys into a vm guest + v1.SSHPublicKeyAccessCredentialPropagationMethod: + type: object + properties: + configDrive: + $ref: '#/components/schemas/v1.ConfigDriveSSHPublicKeyAccessCredentialPropagation' + noCloud: + $ref: '#/components/schemas/v1.NoCloudSSHPublicKeyAccessCredentialPropagation' + qemuGuestAgent: + $ref: '#/components/schemas/v1.QemuGuestAgentSSHPublicKeyAccessCredentialPropagation' + description: SSHPublicKeyAccessCredentialPropagationMethod represents the method + used to inject a ssh public key into the vm guest. Only one of its members + may be specified. + v1.SSHPublicKeyAccessCredentialSource: + type: object + properties: + secret: + $ref: '#/components/schemas/v1.AccessCredentialSecretSource' + description: SSHPublicKeyAccessCredentialSource represents where to retrieve + the ssh key credentials Only one of its members may be specified. + v1.SeccompConfiguration: + type: object + properties: + virtualMachineInstanceProfile: + $ref: '#/components/schemas/v1.VirtualMachineInstanceProfile' + description: SeccompConfiguration holds Seccomp configuration for Kubevirt components + v1.SecretVolumeSource: + type: object + properties: + optional: + type: boolean + description: Specify whether the Secret or it's keys must be defined + secretName: + type: string + description: "Name of the secret in the pod's namespace to use. More info:\ + \ https://kubernetes.io/docs/concepts/storage/volumes#secret" + volumeLabel: + type: string + description: "The volume label of the resulting disk inside the VMI. Different\ + \ bootstrapping mechanisms require different values. Typical values are\ + \ \"cidata\" (cloud-init), \"config-2\" (cloud-init) or \"OEMDRV\" (kickstart)." + description: SecretVolumeSource adapts a Secret into a volume. + v1.ServiceAccountVolumeSource: + type: object + properties: + serviceAccountName: + type: string + description: "Name of the service account in the pod's namespace to use.\ + \ More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/" + description: ServiceAccountVolumeSource adapts a ServiceAccount into a volume. + v1.SoundDevice: + required: + - name + type: object + properties: + model: + type: string + description: "We only support ich9 or ac97. If SoundDevice is not set: No\ + \ sound card is emulated. If SoundDevice is set but Model is not: ich9" + name: + type: string + description: User's defined name for this sound device + default: "" + description: Represents the user's configuration to emulate sound cards in the + VMI. + v1.StartOptions: + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + dryRun: + type: array + description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error\ + \ response and no further processing of the request. Valid values are:\ + \ - All: all dry run stages will be processed" + items: + type: string + default: "" + x-kubernetes-list-type: atomic + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + paused: + type: boolean + description: Indicates that VM will be started in paused state. + description: StartOptions may be provided on start request. + v1.StopOptions: + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + dryRun: + type: array + description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error\ + \ response and no further processing of the request. Valid values are:\ + \ - All: all dry run stages will be processed" + items: + type: string + default: "" + x-kubernetes-list-type: atomic + gracePeriod: + type: integer + description: this updates the VMIs terminationGracePeriodSeconds during + shutdown + format: int64 + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + description: StopOptions may be provided when deleting an API object. + v1.SupportContainerResources: + required: + - resources + - type + type: object + properties: + resources: + $ref: '#/components/schemas/k8s.io.api.core.v1.ResourceRequirements' + type: + type: string + default: "" + description: SupportContainerResources are used to specify the cpu/memory request + and limits for the containers that support various features of Virtual Machines. + These containers are usually idle and don't require a lot of memory or cpu. + v1.SyNICTimer: + type: object + properties: + direct: + $ref: '#/components/schemas/v1.FeatureState' + enabled: + type: boolean + v1.SysprepSource: + type: object + properties: + configMap: + $ref: '#/components/schemas/k8s.io.api.core.v1.LocalObjectReference' + secret: + $ref: '#/components/schemas/k8s.io.api.core.v1.LocalObjectReference' + description: Represents a Sysprep volume source. + v1.TLSConfiguration: + type: object + properties: + ciphers: + type: array + items: + type: string + default: "" + x-kubernetes-list-type: set + minTLSVersion: + type: string + description: |- + MinTLSVersion is a way to specify the minimum protocol version that is acceptable for TLS connections. Protocol versions are based on the following most common TLS configurations: + + https://ssl-config.mozilla.org/ + + Note that SSLv3.0 is not a supported protocol version due to well known vulnerabilities such as POODLE: https://en.wikipedia.org/wiki/POODLE + description: TLSConfiguration holds TLS options + v1.TPMDevice: + type: object + properties: + persistent: + type: boolean + description: Persistent indicates the state of the TPM device should be + kept accross reboots Defaults to false + v1.Timer: + type: object + properties: + hpet: + $ref: '#/components/schemas/v1.HPETTimer' + hyperv: + $ref: '#/components/schemas/v1.HypervTimer' + kvm: + $ref: '#/components/schemas/v1.KVMTimer' + pit: + $ref: '#/components/schemas/v1.PITTimer' + rtc: + $ref: '#/components/schemas/v1.RTCTimer' + description: Represents all available timers in a vmi. + v1.TokenBucketRateLimiter: + required: + - burst + - qps + type: object + properties: + burst: + type: integer + description: "Maximum burst for throttle. If it's zero, the component default\ + \ will be used" + format: int32 + default: 0 + qps: + type: number + description: "QPS indicates the maximum QPS to the apiserver from this client.\ + \ If it's zero, the component default will be used" + format: float + default: 0.0 + v1.TopologyHints: + type: object + properties: + tscFrequency: + type: integer + format: int64 + v1.USBHostDevice: + required: + - resourceName + type: object + properties: + externalResourceProvider: + type: boolean + description: "If true, KubeVirt will leave the allocation and monitoring\ + \ to an external device plugin" + resourceName: + type: string + description: "Identifies the list of USB host devices. e.g: kubevirt.io/storage,\ + \ kubevirt.io/bootable-usb, etc" + default: "" + selectors: + type: array + items: + $ref: '#/components/schemas/v1.USBSelector' + x-kubernetes-list-type: atomic + v1.USBSelector: + required: + - product + - vendor + type: object + properties: + product: + type: string + default: "" + vendor: + type: string + default: "" + v1.UnpauseOptions: + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + dryRun: + type: array + description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error\ + \ response and no further processing of the request. Valid values are:\ + \ - All: all dry run stages will be processed" + items: + type: string + default: "" + x-kubernetes-list-type: atomic + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + description: UnpauseOptions may be provided on unpause request. + v1.UserPasswordAccessCredential: + required: + - propagationMethod + - source + type: object + properties: + propagationMethod: + $ref: '#/components/schemas/v1.UserPasswordAccessCredentialPropagationMethod' + source: + $ref: '#/components/schemas/v1.UserPasswordAccessCredentialSource' + description: UserPasswordAccessCredential represents a source and propagation + method for injecting user passwords into a vm guest Only one of its members + may be specified. + v1.UserPasswordAccessCredentialPropagationMethod: + type: object + properties: + qemuGuestAgent: + $ref: '#/components/schemas/v1.QemuGuestAgentUserPasswordAccessCredentialPropagation' + description: UserPasswordAccessCredentialPropagationMethod represents the method + used to inject a user passwords into the vm guest. Only one of its members + may be specified. + v1.UserPasswordAccessCredentialSource: + type: object + properties: + secret: + $ref: '#/components/schemas/v1.AccessCredentialSecretSource' + description: UserPasswordAccessCredentialSource represents where to retrieve + the user password credentials Only one of its members may be specified. + v1.VGPUDisplayOptions: + type: object + properties: + enabled: + type: boolean + description: Enabled determines if a display addapter backed by a vGPU should + be enabled or disabled on the guest. Defaults to true. + ramFB: + $ref: '#/components/schemas/v1.FeatureState' + v1.VGPUOptions: + type: object + properties: + display: + $ref: '#/components/schemas/v1.VGPUDisplayOptions' + v1.VirtualMachine: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.VirtualMachineSpec' + status: + $ref: '#/components/schemas/v1.VirtualMachineStatus' + description: VirtualMachine handles the VirtualMachines that are not running + or are in a stopped state The VirtualMachine contains the template to create + the VirtualMachineInstance. It also mirrors the running state of the created + VirtualMachineInstance in its status. + v1.VirtualMachineCondition: + required: + - status + - type + type: object + properties: + message: + type: string + reason: + type: string + status: + type: string + default: "" + type: + type: string + default: "" + description: VirtualMachineCondition represents the state of VirtualMachine + v1.VirtualMachineInstance: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.VirtualMachineInstanceSpec' + status: + $ref: '#/components/schemas/v1.VirtualMachineInstanceStatus' + description: VirtualMachineInstance is *the* VirtualMachineInstance Definition. + It represents a virtual machine in the runtime environment of kubernetes. + v1.VirtualMachineInstanceCondition: + required: + - status + - type + type: object + properties: + message: + type: string + reason: + type: string + status: + type: string + default: "" + type: + type: string + default: "" + v1.VirtualMachineInstanceFileSystem: + required: + - diskName + - fileSystemType + - mountPoint + - totalBytes + - usedBytes + type: object + properties: + disk: + type: array + items: + $ref: '#/components/schemas/v1.VirtualMachineInstanceFileSystemDisk' + diskName: + type: string + default: "" + fileSystemType: + type: string + default: "" + mountPoint: + type: string + default: "" + totalBytes: + type: integer + format: int32 + default: 0 + usedBytes: + type: integer + format: int32 + default: 0 + description: VirtualMachineInstanceFileSystem represents guest os disk + v1.VirtualMachineInstanceFileSystemDisk: + required: + - busType + type: object + properties: + busType: + type: string + default: "" + serial: + type: string + description: VirtualMachineInstanceFileSystemDisk represents the guest os FS + disks + v1.VirtualMachineInstanceFileSystemInfo: + required: + - disks + type: object + properties: + disks: + type: array + items: + $ref: '#/components/schemas/v1.VirtualMachineInstanceFileSystem' + description: VirtualMachineInstanceFileSystemInfo represents information regarding + single guest os filesystem + v1.VirtualMachineInstanceFileSystemList: + required: + - items + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1.VirtualMachineInstanceFileSystem' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VirtualMachineInstanceFileSystemList comprises the list of all + filesystems on guest machine + v1.VirtualMachineInstanceGuestAgentInfo: + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + fsFreezeStatus: + type: string + description: FSFreezeStatus is the state of the fs of the guest it can be + either frozen or thawed + fsInfo: + $ref: '#/components/schemas/v1.VirtualMachineInstanceFileSystemInfo' + guestAgentVersion: + type: string + description: GAVersion is a version of currently installed guest agent + hostname: + type: string + description: Hostname represents FQDN of a guest + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + os: + $ref: '#/components/schemas/v1.VirtualMachineInstanceGuestOSInfo' + supportedCommands: + type: array + description: Return command list the guest agent supports + items: + $ref: '#/components/schemas/v1.GuestAgentCommandInfo' + x-kubernetes-list-type: atomic + timezone: + type: string + description: Timezone is guest os current timezone + userList: + type: array + description: UserList is a list of active guest OS users + items: + $ref: '#/components/schemas/v1.VirtualMachineInstanceGuestOSUser' + description: VirtualMachineInstanceGuestAgentInfo represents information from + the installed guest agent + v1.VirtualMachineInstanceGuestOSInfo: + type: object + properties: + id: + type: string + description: Guest OS Id + kernelRelease: + type: string + description: Guest OS Kernel Release + kernelVersion: + type: string + description: Kernel version of the Guest OS + machine: + type: string + description: Machine type of the Guest OS + name: + type: string + description: Name of the Guest OS + prettyName: + type: string + description: Guest OS Pretty Name + version: + type: string + description: Guest OS Version + versionId: + type: string + description: Version ID of the Guest OS + v1.VirtualMachineInstanceGuestOSUser: + required: + - userName + type: object + properties: + domain: + type: string + loginTime: + type: number + format: double + userName: + type: string + default: "" + description: VirtualMachineGuestOSUser is the single user of the guest os + v1.VirtualMachineInstanceGuestOSUserList: + required: + - items + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1.VirtualMachineInstanceGuestOSUser' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VirtualMachineInstanceGuestOSUserList comprises the list of all + active users on guest machine + v1.VirtualMachineInstanceList: + required: + - items + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1.VirtualMachineInstance' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VirtualMachineInstanceList is a list of VirtualMachines + v1.VirtualMachineInstanceMigration: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.VirtualMachineInstanceMigrationSpec' + status: + $ref: '#/components/schemas/v1.VirtualMachineInstanceMigrationStatus' + description: VirtualMachineInstanceMigration represents the object tracking + a VMI's migration to another host in the cluster + v1.VirtualMachineInstanceMigrationCondition: + required: + - status + - type + type: object + properties: + message: + type: string + reason: + type: string + status: + type: string + default: "" + type: + type: string + default: "" + v1.VirtualMachineInstanceMigrationList: + required: + - items + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1.VirtualMachineInstanceMigration' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VirtualMachineInstanceMigrationList is a list of VirtualMachineMigrations + v1.VirtualMachineInstanceMigrationPhaseTransitionTimestamp: + type: object + properties: + phase: + type: string + description: "Phase is the status of the VirtualMachineInstanceMigrationPhase\ + \ in kubernetes world. It is not the VirtualMachineInstanceMigrationPhase\ + \ status, but partially correlates to it." + phaseTransitionTimestamp: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + description: VirtualMachineInstanceMigrationPhaseTransitionTimestamp gives a + timestamp in relation to when a phase is set on a vmi + v1.VirtualMachineInstanceMigrationSpec: + type: object + properties: + vmiName: + type: string + description: The name of the VMI to perform the migration on. VMI must exist + in the migration objects namespace + v1.VirtualMachineInstanceMigrationState: + type: object + properties: + abortRequested: + type: boolean + description: Indicates that the migration has been requested to abort + abortStatus: + type: string + description: Indicates the final status of the live migration abortion + completed: + type: boolean + description: Indicates the migration completed + endTimestamp: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + failed: + type: boolean + description: Indicates that the migration failed + failureReason: + type: string + description: Contains the reason why the migration failed + migrationConfiguration: + $ref: '#/components/schemas/v1.MigrationConfiguration' + migrationPolicyName: + type: string + description: "Name of the migration policy. If string is empty, no policy\ + \ is matched" + migrationUid: + type: string + description: The VirtualMachineInstanceMigration object associated with + this migration + mode: + type: string + description: Lets us know if the vmi is currently running pre or post copy + migration + sourceNode: + type: string + description: The source node that the VMI originated on + sourcePod: + type: string + startTimestamp: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + targetAttachmentPodUID: + type: string + description: The UID of the target attachment pod for hotplug volumes + targetCPUSet: + type: array + description: "If the VMI requires dedicated CPUs, this field will hold the\ + \ dedicated CPU set on the target node" + items: + type: integer + format: int32 + default: 0 + x-kubernetes-list-type: atomic + targetDirectMigrationNodePorts: + type: object + additionalProperties: + type: integer + format: int32 + default: 0 + description: The list of ports opened for live migration on the destination + node + targetNode: + type: string + description: The target node that the VMI is moving to + targetNodeAddress: + type: string + description: The address of the target node to use for the migration + targetNodeDomainDetected: + type: boolean + description: The Target Node has seen the Domain Start Event + targetNodeDomainReadyTimestamp: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + targetNodeTopology: + type: string + description: "If the VMI requires dedicated CPUs, this field will hold the\ + \ numa topology on the target node" + targetPod: + type: string + description: The target pod that the VMI is moving to + v1.VirtualMachineInstanceMigrationStatus: + type: object + properties: + conditions: + type: array + items: + $ref: '#/components/schemas/v1.VirtualMachineInstanceMigrationCondition' + migrationState: + $ref: '#/components/schemas/v1.VirtualMachineInstanceMigrationState' + phase: + type: string + phaseTransitionTimestamps: + type: array + description: PhaseTransitionTimestamp is the timestamp of when the last + phase change occurred + items: + $ref: '#/components/schemas/v1.VirtualMachineInstanceMigrationPhaseTransitionTimestamp' + x-kubernetes-list-type: atomic + description: VirtualMachineInstanceMigration reprents information pertaining + to a VMI's migration. + v1.VirtualMachineInstanceNetworkInterface: + type: object + properties: + infoSource: + type: string + description: "Specifies the origin of the interface data collected. values:\ + \ domain, guest-agent, multus-status." + interfaceName: + type: string + description: The interface name inside the Virtual Machine + ipAddress: + type: string + description: IP address of a Virtual Machine interface. It is always the + first item of IPs + ipAddresses: + type: array + description: List of all IP addresses of a Virtual Machine interface + items: + type: string + default: "" + mac: + type: string + description: Hardware address of a Virtual Machine interface + name: + type: string + description: "Name of the interface, corresponds to name of the network\ + \ assigned to the interface" + queueCount: + type: integer + description: Specifies how many queues are allocated by MultiQueue + format: int32 + v1.VirtualMachineInstancePhaseTransitionTimestamp: + type: object + properties: + phase: + type: string + description: "Phase is the status of the VirtualMachineInstance in kubernetes\ + \ world. It is not the VirtualMachineInstance status, but partially correlates\ + \ to it." + phaseTransitionTimestamp: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + description: VirtualMachineInstancePhaseTransitionTimestamp gives a timestamp + in relation to when a phase is set on a vmi + v1.VirtualMachineInstancePreset: + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.VirtualMachineInstancePresetSpec' + description: |- + Deprecated for removal in v2, please use VirtualMachineInstanceType and VirtualMachinePreference instead. + + VirtualMachineInstancePreset defines a VMI spec.domain to be applied to all VMIs that match the provided label selector More info: https://kubevirt.io/user-guide/virtual_machines/presets/#overrides + v1.VirtualMachineInstancePresetList: + required: + - items + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1.VirtualMachineInstancePreset' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VirtualMachineInstancePresetList is a list of VirtualMachinePresets + v1.VirtualMachineInstancePresetSpec: + required: + - selector + type: object + properties: + domain: + $ref: '#/components/schemas/v1.DomainSpec' + selector: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector' + v1.VirtualMachineInstanceProfile: + type: object + properties: + customProfile: + $ref: '#/components/schemas/v1.CustomProfile' + v1.VirtualMachineInstanceReplicaSet: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.VirtualMachineInstanceReplicaSetSpec' + status: + $ref: '#/components/schemas/v1.VirtualMachineInstanceReplicaSetStatus' + description: VirtualMachineInstance is *the* VirtualMachineInstance Definition. + It represents a virtual machine in the runtime environment of kubernetes. + v1.VirtualMachineInstanceReplicaSetCondition: + required: + - status + - type + type: object + properties: + message: + type: string + reason: + type: string + status: + type: string + default: "" + type: + type: string + default: "" + v1.VirtualMachineInstanceReplicaSetList: + required: + - items + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1.VirtualMachineInstanceReplicaSet' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VMIList is a list of VMIs + v1.VirtualMachineInstanceReplicaSetSpec: + required: + - selector + - template + type: object + properties: + paused: + type: boolean + description: Indicates that the replica set is paused. + replicas: + type: integer + description: Number of desired pods. This is a pointer to distinguish between + explicit zero and not specified. Defaults to 1. + format: int32 + selector: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector' + template: + $ref: '#/components/schemas/v1.VirtualMachineInstanceTemplateSpec' + v1.VirtualMachineInstanceReplicaSetStatus: + type: object + properties: + conditions: + type: array + items: + $ref: '#/components/schemas/v1.VirtualMachineInstanceReplicaSetCondition' + labelSelector: + type: string + description: Canonical form of the label selector for HPA which consumes + it through the scale subresource. + readyReplicas: + type: integer + description: The number of ready replicas for this replica set. + format: int32 + replicas: + type: integer + description: Total number of non-terminated pods targeted by this deployment + (their labels match the selector). + format: int32 + v1.VirtualMachineInstanceSpec: + required: + - domain + type: object + properties: + accessCredentials: + type: array + description: Specifies a set of public keys to inject into the vm guest + items: + $ref: '#/components/schemas/v1.AccessCredential' + x-kubernetes-list-type: atomic + affinity: + $ref: '#/components/schemas/k8s.io.api.core.v1.Affinity' + architecture: + type: string + description: Specifies the architecture of the vm guest you are attempting + to run. Defaults to the compiled architecture of the KubeVirt components + dnsConfig: + $ref: '#/components/schemas/k8s.io.api.core.v1.PodDNSConfig' + dnsPolicy: + type: string + description: |- + Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. + + Possible enum values: + - `"ClusterFirst"` indicates that the pod should use cluster DNS first unless hostNetwork is true, if it is available, then fall back on the default (as determined by kubelet) DNS settings. + - `"ClusterFirstWithHostNet"` indicates that the pod should use cluster DNS first, if it is available, then fall back on the default (as determined by kubelet) DNS settings. + - `"Default"` indicates that the pod should use the default (as determined by kubelet) DNS settings. + - `"None"` indicates that the pod should use empty DNS settings. DNS parameters such as nameservers and search paths should be defined via DNSConfig. + enum: + - ClusterFirst + - ClusterFirstWithHostNet + - Default + - None + domain: + $ref: '#/components/schemas/v1.DomainSpec' + evictionStrategy: + type: string + description: "EvictionStrategy describes the strategy to follow when a node\ + \ drain occurs. The possible options are: - \"None\": No action will be\ + \ taken, according to the specified 'RunStrategy' the VirtualMachine will\ + \ be restarted or shutdown. - \"LiveMigrate\": the VirtualMachineInstance\ + \ will be migrated instead of being shutdown. - \"LiveMigrateIfPossible\"\ + : the same as \"LiveMigrate\" but only if the VirtualMachine is Live-Migratable,\ + \ otherwise it will behave as \"None\". - \"External\": the VirtualMachineInstance\ + \ will be protected by a PDB and `vmi.Status.EvacuationNodeName` will\ + \ be set on eviction. This is mainly useful for cluster-api-provider-kubevirt\ + \ (capk) which needs a way for VMI's to be blocked from eviction, yet\ + \ signal capk that eviction has been called on the VMI so the capk controller\ + \ can handle tearing the VMI down. Details can be found in the commit\ + \ description https://github.com/kubevirt/kubevirt/commit/c1d77face705c8b126696bac9a3ee3825f27f1fa." + hostname: + type: string + description: "Specifies the hostname of the vmi If not specified, the hostname\ + \ will be set to the name of the vmi, if dhcp or cloud-init is configured\ + \ properly." + livenessProbe: + $ref: '#/components/schemas/v1.Probe' + networks: + type: array + description: List of networks that can be attached to a vm's virtual interface. + items: + $ref: '#/components/schemas/v1.Network' + nodeSelector: + type: object + additionalProperties: + type: string + default: "" + description: "NodeSelector is a selector which must be true for the vmi\ + \ to fit on a node. Selector which must match a node's labels for the\ + \ vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/" + priorityClassName: + type: string + description: "If specified, indicates the pod's priority. If not specified,\ + \ the pod priority will be default or zero if there is no default." + readinessProbe: + $ref: '#/components/schemas/v1.Probe' + schedulerName: + type: string + description: "If specified, the VMI will be dispatched by specified scheduler.\ + \ If not specified, the VMI will be dispatched by default scheduler." + startStrategy: + type: string + description: StartStrategy can be set to "Paused" if Virtual Machine should + be started in paused state. + subdomain: + type: string + description: "If specified, the fully qualified vmi hostname will be \"\ + ...svc.\". If not\ + \ specified, the vmi will not have a domainname at all. The DNS entry\ + \ will resolve to the vmi, no matter if the vmi itself can pick up a hostname." + terminationGracePeriodSeconds: + type: integer + description: Grace period observed after signalling a VirtualMachineInstance + to stop after which the VirtualMachineInstance is force terminated. + format: int64 + tolerations: + type: array + description: "If toleration is specified, obey all the toleration rules." + items: + $ref: '#/components/schemas/k8s.io.api.core.v1.Toleration' + topologySpreadConstraints: + type: array + description: TopologySpreadConstraints describes how a group of VMIs will + be spread across a given topology domains. K8s scheduler will schedule + VMI pods in a way which abides by the constraints. + items: + $ref: '#/components/schemas/k8s.io.api.core.v1.TopologySpreadConstraint' + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - topologyKey + - whenUnsatisfiable + x-kubernetes-patch-merge-key: topologyKey + volumes: + type: array + description: List of volumes that can be mounted by disks belonging to the + vmi. + items: + $ref: '#/components/schemas/v1.Volume' + description: VirtualMachineInstanceSpec is a description of a VirtualMachineInstance. + v1.VirtualMachineInstanceStatus: + type: object + properties: + VSOCKCID: + type: integer + description: VSOCKCID is used to track the allocated VSOCK CID in the VM. + format: int64 + activePods: + type: object + additionalProperties: + type: string + default: "" + description: ActivePods is a mapping of pod UID to node name. It is possible + for multiple pods to be running for a single VMI during migration. + conditions: + type: array + description: Conditions are specific points in VirtualMachineInstance's + pod runtime. + items: + $ref: '#/components/schemas/v1.VirtualMachineInstanceCondition' + currentCPUTopology: + $ref: '#/components/schemas/v1.CPUTopology' + evacuationNodeName: + type: string + description: EvacuationNodeName is used to track the eviction process of + a VMI. It stores the name of the node that we want to evacuate. It is + meant to be used by KubeVirt core components only and can't be set or + modified by users. + fsFreezeStatus: + type: string + description: FSFreezeStatus is the state of the fs of the guest it can be + either frozen or thawed + guestOSInfo: + $ref: '#/components/schemas/v1.VirtualMachineInstanceGuestOSInfo' + interfaces: + type: array + description: Interfaces represent the details of available network interfaces. + items: + $ref: '#/components/schemas/v1.VirtualMachineInstanceNetworkInterface' + kernelBootStatus: + $ref: '#/components/schemas/v1.KernelBootStatus' + launcherContainerImageVersion: + type: string + description: LauncherContainerImageVersion indicates what container image + is currently active for the vmi. + machine: + $ref: '#/components/schemas/v1.Machine' + memory: + $ref: '#/components/schemas/v1.MemoryStatus' + migrationMethod: + type: string + description: "Represents the method using which the vmi can be migrated:\ + \ live migration or block migration" + migrationState: + $ref: '#/components/schemas/v1.VirtualMachineInstanceMigrationState' + migrationTransport: + type: string + description: This represents the migration transport + nodeName: + type: string + description: NodeName is the name where the VirtualMachineInstance is currently + running. + phase: + type: string + description: "Phase is the status of the VirtualMachineInstance in kubernetes\ + \ world. It is not the VirtualMachineInstance status, but partially correlates\ + \ to it." + phaseTransitionTimestamps: + type: array + description: PhaseTransitionTimestamp is the timestamp of when the last + phase change occurred + items: + $ref: '#/components/schemas/v1.VirtualMachineInstancePhaseTransitionTimestamp' + x-kubernetes-list-type: atomic + qosClass: + type: string + description: |- + The Quality of Service (QOS) classification assigned to the virtual machine instance based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md + + Possible enum values: + - `"BestEffort"` is the BestEffort qos class. + - `"Burstable"` is the Burstable qos class. + - `"Guaranteed"` is the Guaranteed qos class. + enum: + - BestEffort + - Burstable + - Guaranteed + reason: + type: string + description: A brief CamelCase message indicating details about why the + VMI is in this state. e.g. 'NodeUnresponsive' + runtimeUser: + type: integer + description: RuntimeUser is used to determine what user will be used in + launcher + format: int64 + default: 0 + selinuxContext: + type: string + description: SELinuxContext is the actual SELinux context of the virt-launcher + pod + topologyHints: + $ref: '#/components/schemas/v1.TopologyHints' + virtualMachineRevisionName: + type: string + description: VirtualMachineRevisionName is used to get the vm revision of + the vmi when doing an online vm snapshot + volumeStatus: + type: array + description: VolumeStatus contains the statuses of all the volumes + items: + $ref: '#/components/schemas/v1.VolumeStatus' + x-kubernetes-list-type: atomic + description: VirtualMachineInstanceStatus represents information about the status + of a VirtualMachineInstance. Status may trail the actual state of a system. + v1.VirtualMachineInstanceTemplateSpec: + type: object + properties: + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.VirtualMachineInstanceSpec' + v1.VirtualMachineList: + required: + - items + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1.VirtualMachine' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VirtualMachineList is a list of virtualmachines + v1.VirtualMachineMemoryDumpRequest: + required: + - claimName + - phase + type: object + properties: + claimName: + type: string + description: ClaimName is the name of the pvc that will contain the memory + dump + default: "" + endTimestamp: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + fileName: + type: string + description: FileName represents the name of the output file + message: + type: string + description: Message is a detailed message about failure of the memory dump + phase: + type: string + description: Phase represents the memory dump phase + default: "" + remove: + type: boolean + description: Remove represents request of dissociating the memory dump pvc + startTimestamp: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + description: VirtualMachineMemoryDumpRequest represent the memory dump request + phase and info + v1.VirtualMachineOptions: + type: object + properties: + disableFreePageReporting: + $ref: '#/components/schemas/v1.DisableFreePageReporting' + disableSerialConsoleLog: + $ref: '#/components/schemas/v1.DisableSerialConsoleLog' + description: VirtualMachineOptions holds the cluster level information regarding + the virtual machine. + v1.VirtualMachineSpec: + required: + - template + type: object + properties: + dataVolumeTemplates: + type: array + description: dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance + template can reference. DataVolumes in this list are dynamically created + for the VirtualMachine and are tied to the VirtualMachine's life-cycle. + items: + $ref: '#/components/schemas/v1.DataVolumeTemplateSpec' + instancetype: + $ref: '#/components/schemas/v1.InstancetypeMatcher' + preference: + $ref: '#/components/schemas/v1.PreferenceMatcher' + runStrategy: + type: string + description: Running state indicates the requested running state of the + VirtualMachineInstance mutually exclusive with Running + running: + type: boolean + description: Running controls whether the associatied VirtualMachineInstance + is created or not Mutually exclusive with RunStrategy + template: + $ref: '#/components/schemas/v1.VirtualMachineInstanceTemplateSpec' + updateVolumesStrategy: + type: string + description: UpdateVolumesStrategy is the strategy to apply on volumes updates + description: VirtualMachineSpec describes how the proper VirtualMachine should + look like + v1.VirtualMachineStartFailure: + type: object + properties: + consecutiveFailCount: + type: integer + format: int32 + lastFailedVMIUID: + type: string + retryAfterTimestamp: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + description: VirtualMachineStartFailure tracks VMIs which failed to transition + successfully to running using the VM status + v1.VirtualMachineStateChangeRequest: + required: + - action + type: object + properties: + action: + type: string + description: Indicates the type of action that is requested. e.g. Start + or Stop + default: "" + data: + type: object + additionalProperties: + type: string + default: "" + description: Provides additional data in order to perform the Action + uid: + type: string + description: Indicates the UUID of an existing Virtual Machine Instance + that this change request applies to -- if applicable + v1.VirtualMachineStatus: + type: object + properties: + conditions: + type: array + description: Hold the state information of the VirtualMachine and its VirtualMachineInstance + items: + $ref: '#/components/schemas/v1.VirtualMachineCondition' + created: + type: boolean + description: Created indicates if the virtual machine is created in the + cluster + desiredGeneration: + type: integer + description: DesiredGeneration is the generation which is desired for the + VMI. This will be used in comparisons with ObservedGeneration to understand + when the VMI is out of sync. This will be changed at the same time as + ObservedGeneration to remove errors which could occur if Generation is + updated through an Update() before ObservedGeneration in Status. + format: int64 + memoryDumpRequest: + $ref: '#/components/schemas/v1.VirtualMachineMemoryDumpRequest' + observedGeneration: + type: integer + description: ObservedGeneration is the generation observed by the vmi when + started. + format: int64 + printableStatus: + type: string + description: "PrintableStatus is a human readable, high-level representation\ + \ of the status of the virtual machine" + ready: + type: boolean + description: Ready indicates if the virtual machine is running and ready + restoreInProgress: + type: string + description: RestoreInProgress is the name of the VirtualMachineRestore + currently executing + runStrategy: + type: string + description: RunStrategy tracks the last recorded RunStrategy used by the + VM. This is needed to correctly process the next strategy (for now only + the RerunOnFailure) + snapshotInProgress: + type: string + description: SnapshotInProgress is the name of the VirtualMachineSnapshot + currently executing + startFailure: + $ref: '#/components/schemas/v1.VirtualMachineStartFailure' + stateChangeRequests: + type: array + description: StateChangeRequests indicates a list of actions that should + be taken on a VMI e.g. stop a specific VMI then start a new one. + items: + $ref: '#/components/schemas/v1.VirtualMachineStateChangeRequest' + volumeRequests: + type: array + description: VolumeRequests indicates a list of volumes add or remove from + the VMI template and hotplug on an active running VMI. + items: + $ref: '#/components/schemas/v1.VirtualMachineVolumeRequest' + x-kubernetes-list-type: atomic + volumeSnapshotStatuses: + type: array + description: VolumeSnapshotStatuses indicates a list of statuses whether + snapshotting is supported by each volume. + items: + $ref: '#/components/schemas/v1.VolumeSnapshotStatus' + description: VirtualMachineStatus represents the status returned by the controller + to describe how the VirtualMachine is doing + v1.VirtualMachineVolumeRequest: + type: object + properties: + addVolumeOptions: + $ref: '#/components/schemas/v1.AddVolumeOptions' + removeVolumeOptions: + $ref: '#/components/schemas/v1.RemoveVolumeOptions' + v1.Volume: + required: + - name + type: object + properties: + cloudInitConfigDrive: + $ref: '#/components/schemas/v1.CloudInitConfigDriveSource' + cloudInitNoCloud: + $ref: '#/components/schemas/v1.CloudInitNoCloudSource' + configMap: + $ref: '#/components/schemas/v1.ConfigMapVolumeSource' + containerDisk: + $ref: '#/components/schemas/v1.ContainerDiskSource' + dataVolume: + $ref: '#/components/schemas/v1.DataVolumeSource' + downwardAPI: + $ref: '#/components/schemas/v1.DownwardAPIVolumeSource' + downwardMetrics: + $ref: '#/components/schemas/v1.DownwardMetricsVolumeSource' + emptyDisk: + $ref: '#/components/schemas/v1.EmptyDiskSource' + ephemeral: + $ref: '#/components/schemas/v1.EphemeralVolumeSource' + hostDisk: + $ref: '#/components/schemas/v1.HostDisk' + memoryDump: + $ref: '#/components/schemas/v1.MemoryDumpVolumeSource' + name: + type: string + description: "Volume's name. Must be a DNS_LABEL and unique within the vmi.\ + \ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names" + default: "" + persistentVolumeClaim: + $ref: '#/components/schemas/v1.PersistentVolumeClaimVolumeSource' + secret: + $ref: '#/components/schemas/v1.SecretVolumeSource' + serviceAccount: + $ref: '#/components/schemas/v1.ServiceAccountVolumeSource' + sysprep: + $ref: '#/components/schemas/v1.SysprepSource' + description: Volume represents a named volume in a vmi. + v1.VolumeSnapshotStatus: + required: + - enabled + - name + type: object + properties: + enabled: + type: boolean + description: True if the volume supports snapshotting + default: false + name: + type: string + description: Volume name + default: "" + reason: + type: string + description: "Empty if snapshotting is enabled, contains reason otherwise" + v1.VolumeStatus: + required: + - name + - target + type: object + properties: + containerDiskVolume: + $ref: '#/components/schemas/v1.ContainerDiskInfo' + hotplugVolume: + $ref: '#/components/schemas/v1.HotplugVolumeStatus' + memoryDumpVolume: + $ref: '#/components/schemas/v1.DomainMemoryDumpInfo' + message: + type: string + description: Message is a detailed message about the current hotplug volume + phase + name: + type: string + description: Name is the name of the volume + default: "" + persistentVolumeClaimInfo: + $ref: '#/components/schemas/v1.PersistentVolumeClaimInfo' + phase: + type: string + description: Phase is the phase + reason: + type: string + description: Reason is a brief description of why we are in the current + hotplug volume phase + size: + type: integer + description: Represents the size of the volume + format: int64 + target: + type: string + description: "Target is the target name used when adding the volume to the\ + \ VM, eg: vda" + default: "" + description: VolumeStatus represents information about the status of volumes + attached to the VirtualMachineInstance. + v1.Watchdog: + required: + - name + type: object + properties: + i6300esb: + $ref: '#/components/schemas/v1.I6300ESBWatchdog' + name: + type: string + description: Name of the watchdog. + default: "" + description: Named watchdog device. + v1alpha1.Condition: + required: + - status + - type + type: object + properties: + message: + type: string + reason: + type: string + status: + type: string + default: "" + type: + type: string + default: "" + description: Condition defines conditions + v1alpha1.Error: + type: object + properties: + message: + type: string + time: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + description: Error is the last error encountered during the snapshot/restore + v1alpha1.MigrationPolicy: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1alpha1.MigrationPolicySpec' + status: + $ref: '#/components/schemas/v1alpha1.MigrationPolicyStatus' + description: MigrationPolicy holds migration policy (i.e. configurations) to + apply to a VM or group of VMs + v1alpha1.MigrationPolicyList: + required: + - items + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1alpha1.MigrationPolicy' + x-kubernetes-list-type: atomic + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: MigrationPolicyList is a list of MigrationPolicy + v1alpha1.MigrationPolicySpec: + required: + - selectors + type: object + properties: + allowAutoConverge: + type: boolean + allowPostCopy: + type: boolean + bandwidthPerMigration: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + completionTimeoutPerGiB: + type: integer + format: int64 + selectors: + $ref: '#/components/schemas/v1alpha1.Selectors' + v1alpha1.MigrationPolicyStatus: + type: object + v1alpha1.PersistentVolumeClaim: + type: object + properties: + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/k8s.io.api.core.v1.PersistentVolumeClaimSpec' + v1alpha1.Selectors: + type: object + properties: + namespaceSelector: + type: object + additionalProperties: + type: string + default: "" + virtualMachineInstanceSelector: + type: object + additionalProperties: + type: string + default: "" + v1alpha1.SnapshotVolumesLists: + type: object + properties: + excludedVolumes: + type: array + items: + type: string + default: "" + x-kubernetes-list-type: set + includedVolumes: + type: array + items: + type: string + default: "" + x-kubernetes-list-type: set + description: SnapshotVolumesLists includes the list of volumes which were included + in the snapshot and volumes which were excluded from the snapshot + v1alpha1.SourceSpec: + type: object + properties: + virtualMachine: + $ref: '#/components/schemas/v1alpha1.VirtualMachine' + description: SourceSpec contains the appropriate spec for the resource being + snapshotted + v1alpha1.VirtualMachine: + type: object + properties: + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.VirtualMachineSpec' + status: + $ref: '#/components/schemas/v1.VirtualMachineStatus' + v1alpha1.VirtualMachineClone: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1alpha1.VirtualMachineCloneSpec' + status: + $ref: '#/components/schemas/v1alpha1.VirtualMachineCloneStatus' + description: VirtualMachineClone is a CRD that clones one VM into another. + v1alpha1.VirtualMachineCloneList: + required: + - items + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1alpha1.VirtualMachineClone' + x-kubernetes-list-type: atomic + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VirtualMachineCloneList is a list of MigrationPolicy + v1alpha1.VirtualMachineCloneSpec: + required: + - source + type: object + properties: + annotationFilters: + type: array + description: "Example use: \"!some/key*\". For a detailed description, please\ + \ refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters." + items: + type: string + default: "" + x-kubernetes-list-type: atomic + labelFilters: + type: array + description: "Example use: \"!some/key*\". For a detailed description, please\ + \ refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters." + items: + type: string + default: "" + x-kubernetes-list-type: atomic + newMacAddresses: + type: object + additionalProperties: + type: string + default: "" + description: "NewMacAddresses manually sets that target interfaces' mac\ + \ addresses. The key is the interface name and the value is the new mac\ + \ address. If this field is not specified, a new MAC address will be generated\ + \ automatically, as for any interface that is not included in this map." + newSMBiosSerial: + type: string + description: "NewSMBiosSerial manually sets that target's SMbios serial.\ + \ If this field is not specified, a new serial will be generated automatically." + source: + $ref: '#/components/schemas/k8s.io.api.core.v1.TypedLocalObjectReference' + target: + $ref: '#/components/schemas/k8s.io.api.core.v1.TypedLocalObjectReference' + template: + $ref: '#/components/schemas/v1alpha1.VirtualMachineCloneTemplateFilters' + v1alpha1.VirtualMachineCloneStatus: + type: object + properties: + conditions: + type: array + items: + $ref: '#/components/schemas/v1alpha1.Condition' + x-kubernetes-list-type: atomic + creationTime: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + phase: + type: string + restoreName: + type: string + snapshotName: + type: string + targetName: + type: string + v1alpha1.VirtualMachineCloneTemplateFilters: + type: object + properties: + annotationFilters: + type: array + description: "Example use: \"!some/key*\". For a detailed description, please\ + \ refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters." + items: + type: string + default: "" + x-kubernetes-list-type: atomic + labelFilters: + type: array + description: "Example use: \"!some/key*\". For a detailed description, please\ + \ refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters." + items: + type: string + default: "" + x-kubernetes-list-type: atomic + v1alpha1.VirtualMachineExport: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1alpha1.VirtualMachineExportSpec' + status: + $ref: '#/components/schemas/v1alpha1.VirtualMachineExportStatus' + description: VirtualMachineExport defines the operation of exporting a VM source + v1alpha1.VirtualMachineExportLink: + required: + - cert + type: object + properties: + cert: + type: string + description: Cert is the public CA certificate base64 encoded + default: "" + manifests: + type: array + description: Manifests is a list of available manifests for the export + items: + $ref: '#/components/schemas/v1alpha1.VirtualMachineExportManifest' + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + volumes: + type: array + description: Volumes is a list of available volumes to export + items: + $ref: '#/components/schemas/v1alpha1.VirtualMachineExportVolume' + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + description: "VirtualMachineExportLink contains a list of volumes available\ + \ for export, as well as the URLs to obtain these volumes" + v1alpha1.VirtualMachineExportLinks: + type: object + properties: + external: + $ref: '#/components/schemas/v1alpha1.VirtualMachineExportLink' + internal: + $ref: '#/components/schemas/v1alpha1.VirtualMachineExportLink' + description: VirtualMachineExportLinks contains the links that point the exported + VM resources + v1alpha1.VirtualMachineExportList: + required: + - items + - metadata + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1alpha1.VirtualMachineExport' + x-kubernetes-list-type: atomic + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VirtualMachineExportList is a list of VirtualMachineExport resources + v1alpha1.VirtualMachineExportManifest: + required: + - type + - url + type: object + properties: + type: + type: string + description: Type is the type of manifest returned + default: "" + url: + type: string + description: Url is the url of the endpoint that returns the manifest + default: "" + description: VirtualMachineExportManifest contains the type and URL of the exported + manifest + v1alpha1.VirtualMachineExportSpec: + required: + - source + type: object + properties: + source: + $ref: '#/components/schemas/k8s.io.api.core.v1.TypedLocalObjectReference' + tokenSecretRef: + type: string + description: TokenSecretRef is the name of the custom-defined secret that + contains the token used by the export server pod + ttlDuration: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration' + description: VirtualMachineExportSpec is the spec for a VirtualMachineExport + resource + v1alpha1.VirtualMachineExportStatus: + type: object + properties: + conditions: + type: array + items: + $ref: '#/components/schemas/v1alpha1.Condition' + x-kubernetes-list-type: atomic + links: + $ref: '#/components/schemas/v1alpha1.VirtualMachineExportLinks' + phase: + type: string + serviceName: + type: string + description: ServiceName is the name of the service created associated with + the Virtual Machine export. It will be used to create the internal URLs + for downloading the images + tokenSecretRef: + type: string + description: TokenSecretRef is the name of the secret that contains the + token used by the export server pod + ttlExpirationTime: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + virtualMachineName: + type: string + description: VirtualMachineName shows the name of the source virtual machine + if the source is either a VirtualMachine or a VirtualMachineSnapshot. + This is mainly to easily identify the source VirtualMachine in case of + a VirtualMachineSnapshot + description: VirtualMachineExportStatus is the status for a VirtualMachineExport + resource + v1alpha1.VirtualMachineExportVolume: + required: + - name + type: object + properties: + formats: + type: array + items: + $ref: '#/components/schemas/v1alpha1.VirtualMachineExportVolumeFormat' + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - format + name: + type: string + description: Name is the name of the exported volume + default: "" + description: VirtualMachineExportVolume contains the name and available formats + for the exported volume + v1alpha1.VirtualMachineExportVolumeFormat: + required: + - format + - url + type: object + properties: + format: + type: string + description: Format is the format of the image at the specified URL + default: "" + url: + type: string + description: Url is the url that contains the volume in the format specified + default: "" + description: VirtualMachineExportVolumeFormat contains the format type and URL + to get the volume in that format + v1alpha1.VirtualMachinePool: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1alpha1.VirtualMachinePoolSpec' + status: + $ref: '#/components/schemas/v1alpha1.VirtualMachinePoolStatus' + description: VirtualMachinePool resource contains a VirtualMachine configuration + that can be used to replicate multiple VirtualMachine resources. + v1alpha1.VirtualMachinePoolCondition: + required: + - status + - type + type: object + properties: + message: + type: string + reason: + type: string + status: + type: string + default: "" + type: + type: string + default: "" + v1alpha1.VirtualMachinePoolList: + required: + - items + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1alpha1.VirtualMachinePool' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VirtualMachinePoolList is a list of VirtualMachinePool resources. + v1alpha1.VirtualMachinePoolSpec: + required: + - selector + - virtualMachineTemplate + type: object + properties: + paused: + type: boolean + description: Indicates that the pool is paused. + replicas: + type: integer + description: Number of desired pods. This is a pointer to distinguish between + explicit zero and not specified. Defaults to 1. + format: int32 + selector: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector' + virtualMachineTemplate: + $ref: '#/components/schemas/v1alpha1.VirtualMachineTemplateSpec' + v1alpha1.VirtualMachinePoolStatus: + type: object + properties: + conditions: + type: array + items: + $ref: '#/components/schemas/v1alpha1.VirtualMachinePoolCondition' + x-kubernetes-list-type: atomic + labelSelector: + type: string + description: Canonical form of the label selector for HPA which consumes + it through the scale subresource. + readyReplicas: + type: integer + format: int32 + replicas: + type: integer + format: int32 + v1alpha1.VirtualMachineRestore: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1alpha1.VirtualMachineRestoreSpec' + status: + $ref: '#/components/schemas/v1alpha1.VirtualMachineRestoreStatus' + description: VirtualMachineRestore defines the operation of restoring a VM + v1alpha1.VirtualMachineRestoreList: + required: + - items + - metadata + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1alpha1.VirtualMachineRestore' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VirtualMachineRestoreList is a list of VirtualMachineRestore resources + v1alpha1.VirtualMachineRestoreSpec: + required: + - target + - virtualMachineSnapshotName + type: object + properties: + patches: + type: array + description: |- + If the target for the restore does not exist, it will be created. Patches holds JSON patches that would be applied to the target manifest before it's created. Patches should fit the target's Kind. + + Example for a patch: {"op": "replace", "path": "/metadata/name", "value": "new-vm-name"} + items: + type: string + default: "" + x-kubernetes-list-type: atomic + target: + $ref: '#/components/schemas/k8s.io.api.core.v1.TypedLocalObjectReference' + virtualMachineSnapshotName: + type: string + default: "" + description: VirtualMachineRestoreSpec is the spec for a VirtualMachineRestoreresource + v1alpha1.VirtualMachineRestoreStatus: + type: object + properties: + complete: + type: boolean + conditions: + type: array + items: + $ref: '#/components/schemas/v1alpha1.Condition' + deletedDataVolumes: + type: array + items: + type: string + default: "" + restoreTime: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + restores: + type: array + items: + $ref: '#/components/schemas/v1alpha1.VolumeRestore' + description: VirtualMachineRestoreStatus is the spec for a VirtualMachineRestoreresource + v1alpha1.VirtualMachineSnapshot: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1alpha1.VirtualMachineSnapshotSpec' + status: + $ref: '#/components/schemas/v1alpha1.VirtualMachineSnapshotStatus' + description: VirtualMachineSnapshot defines the operation of snapshotting a + VM + v1alpha1.VirtualMachineSnapshotContent: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1alpha1.VirtualMachineSnapshotContentSpec' + status: + $ref: '#/components/schemas/v1alpha1.VirtualMachineSnapshotContentStatus' + description: VirtualMachineSnapshotContent contains the snapshot data + v1alpha1.VirtualMachineSnapshotContentList: + required: + - items + - metadata + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1alpha1.VirtualMachineSnapshotContent' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VirtualMachineSnapshotContentList is a list of VirtualMachineSnapshot + resources + v1alpha1.VirtualMachineSnapshotContentSpec: + required: + - source + type: object + properties: + source: + $ref: '#/components/schemas/v1alpha1.SourceSpec' + virtualMachineSnapshotName: + type: string + volumeBackups: + type: array + items: + $ref: '#/components/schemas/v1alpha1.VolumeBackup' + description: VirtualMachineSnapshotContentSpec is the spec for a VirtualMachineSnapshotContent + resource + v1alpha1.VirtualMachineSnapshotContentStatus: + type: object + properties: + creationTime: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + error: + $ref: '#/components/schemas/v1alpha1.Error' + readyToUse: + type: boolean + volumeSnapshotStatus: + type: array + items: + $ref: '#/components/schemas/v1alpha1.VolumeSnapshotStatus' + description: VirtualMachineSnapshotContentStatus is the status for a VirtualMachineSnapshotStatus + resource + v1alpha1.VirtualMachineSnapshotList: + required: + - items + - metadata + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1alpha1.VirtualMachineSnapshot' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VirtualMachineSnapshotList is a list of VirtualMachineSnapshot + resources + v1alpha1.VirtualMachineSnapshotSpec: + required: + - source + type: object + properties: + deletionPolicy: + type: string + failureDeadline: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Duration' + source: + $ref: '#/components/schemas/k8s.io.api.core.v1.TypedLocalObjectReference' + description: VirtualMachineSnapshotSpec is the spec for a VirtualMachineSnapshot + resource + v1alpha1.VirtualMachineSnapshotStatus: + type: object + properties: + conditions: + type: array + items: + $ref: '#/components/schemas/v1alpha1.Condition' + creationTime: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + error: + $ref: '#/components/schemas/v1alpha1.Error' + indications: + type: array + items: + type: string + default: "" + x-kubernetes-list-type: set + phase: + type: string + readyToUse: + type: boolean + snapshotVolumes: + $ref: '#/components/schemas/v1alpha1.SnapshotVolumesLists' + sourceUID: + type: string + virtualMachineSnapshotContentName: + type: string + description: VirtualMachineSnapshotStatus is the status for a VirtualMachineSnapshot + resource + v1alpha1.VirtualMachineTemplateSpec: + type: object + properties: + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1.VirtualMachineSpec' + v1alpha1.VolumeBackup: + required: + - persistentVolumeClaim + - volumeName + type: object + properties: + persistentVolumeClaim: + $ref: '#/components/schemas/v1alpha1.PersistentVolumeClaim' + volumeName: + type: string + default: "" + volumeSnapshotName: + type: string + description: VolumeBackup contains the data neeed to restore a PVC + v1alpha1.VolumeRestore: + required: + - persistentVolumeClaim + - volumeName + - volumeSnapshotName + type: object + properties: + dataVolumeName: + type: string + persistentVolumeClaim: + type: string + default: "" + volumeName: + type: string + default: "" + volumeSnapshotName: + type: string + default: "" + description: VolumeRestore contains the data neeed to restore a PVC + v1alpha1.VolumeSnapshotStatus: + required: + - volumeSnapshotName + type: object + properties: + creationTime: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.Time' + error: + $ref: '#/components/schemas/v1alpha1.Error' + readyToUse: + type: boolean + volumeSnapshotName: + type: string + default: "" + description: VolumeSnapshotStatus is the status of a VolumeSnapshot + v1beta1.CPUInstancetype: + required: + - guest + type: object + properties: + dedicatedCPUPlacement: + type: boolean + description: DedicatedCPUPlacement requests the scheduler to place the VirtualMachineInstance + on a node with enough dedicated pCPUs and pin the vCPUs to it. + guest: + type: integer + description: |- + Required number of vCPUs to expose to the guest. + + The resulting CPU topology being derived from the optional PreferredCPUTopology attribute of CPUPreferences that itself defaults to PreferSockets. + format: int64 + default: 0 + isolateEmulatorThread: + type: boolean + description: IsolateEmulatorThread requests one more dedicated pCPU to be + allocated for the VMI to place the emulator thread on it. + model: + type: string + description: Model specifies the CPU model inside the VMI. List of available + models https://github.com/libvirt/libvirt/tree/master/src/cpu_map. It + is possible to specify special cases like "host-passthrough" to get the + same CPU as the node and "host-model" to get CPU closest to the node one. + Defaults to host-model. + numa: + $ref: '#/components/schemas/v1.NUMA' + realtime: + $ref: '#/components/schemas/v1.Realtime' + description: |- + CPUInstancetype contains the CPU related configuration of a given VirtualMachineInstancetypeSpec. + + Guest is a required attribute and defines the number of vCPUs to be exposed to the guest by the instancetype. + v1beta1.CPUPreferenceRequirement: + required: + - guest + type: object + properties: + guest: + type: integer + description: Minimal number of vCPUs required by the preference. + format: int64 + default: 0 + v1beta1.CPUPreferences: + type: object + properties: + preferredCPUFeatures: + type: array + description: PreferredCPUFeatures optionally defines a slice of preferred + CPU features. + items: + $ref: '#/components/schemas/v1.CPUFeature' + preferredCPUTopology: + type: string + description: "PreferredCPUTopology optionally defines the preferred guest\ + \ visible CPU topology, defaults to PreferSockets." + spreadOptions: + $ref: '#/components/schemas/v1beta1.SpreadOptions' + description: CPUPreferences contains various optional CPU preferences. + v1beta1.ClockPreferences: + type: object + properties: + preferredClockOffset: + $ref: '#/components/schemas/v1.ClockOffset' + preferredTimer: + $ref: '#/components/schemas/v1.Timer' + description: ClockPreferences contains various optional defaults for Clock. + v1beta1.DataVolumeBlankImage: + type: object + description: DataVolumeBlankImage provides the parameters to create a new raw + blank image for the PVC + v1beta1.DataVolumeCheckpoint: + required: + - current + - previous + type: object + properties: + current: + type: string + description: Current is the identifier of the snapshot created for this + checkpoint. + default: "" + previous: + type: string + description: Previous is the identifier of the snapshot from the previous + checkpoint. + default: "" + description: DataVolumeCheckpoint defines a stage in a warm migration. + v1beta1.DataVolumeSource: + type: object + properties: + blank: + $ref: '#/components/schemas/v1beta1.DataVolumeBlankImage' + gcs: + $ref: '#/components/schemas/v1beta1.DataVolumeSourceGCS' + http: + $ref: '#/components/schemas/v1beta1.DataVolumeSourceHTTP' + imageio: + $ref: '#/components/schemas/v1beta1.DataVolumeSourceImageIO' + pvc: + $ref: '#/components/schemas/v1beta1.DataVolumeSourcePVC' + registry: + $ref: '#/components/schemas/v1beta1.DataVolumeSourceRegistry' + s3: + $ref: '#/components/schemas/v1beta1.DataVolumeSourceS3' + snapshot: + $ref: '#/components/schemas/v1beta1.DataVolumeSourceSnapshot' + upload: + $ref: '#/components/schemas/v1beta1.DataVolumeSourceUpload' + vddk: + $ref: '#/components/schemas/v1beta1.DataVolumeSourceVDDK' + description: "DataVolumeSource represents the source for our Data Volume, this\ + \ can be HTTP, Imageio, S3, GCS, Registry or an existing PVC" + v1beta1.DataVolumeSourceGCS: + required: + - url + type: object + properties: + secretRef: + type: string + description: SecretRef provides the secret reference needed to access the + GCS source + url: + type: string + description: URL is the url of the GCS source + default: "" + description: DataVolumeSourceGCS provides the parameters to create a Data Volume + from an GCS source + v1beta1.DataVolumeSourceHTTP: + required: + - url + type: object + properties: + certConfigMap: + type: string + description: "CertConfigMap is a configmap reference, containing a Certificate\ + \ Authority(CA) public key, and a base64 encoded pem certificate" + extraHeaders: + type: array + description: ExtraHeaders is a list of strings containing extra headers + to include with HTTP transfer requests + items: + type: string + default: "" + secretExtraHeaders: + type: array + description: "SecretExtraHeaders is a list of Secret references, each containing\ + \ an extra HTTP header that may include sensitive information" + items: + type: string + default: "" + secretRef: + type: string + description: "SecretRef A Secret reference, the secret should contain accessKeyId\ + \ (user name) base64 encoded, and secretKey (password) also base64 encoded" + url: + type: string + description: URL is the URL of the http(s) endpoint + default: "" + description: "DataVolumeSourceHTTP can be either an http or https endpoint,\ + \ with an optional basic auth user name and password, and an optional configmap\ + \ containing additional CAs" + v1beta1.DataVolumeSourceImageIO: + required: + - diskId + - url + type: object + properties: + certConfigMap: + type: string + description: CertConfigMap provides a reference to the CA cert + diskId: + type: string + description: DiskID provides id of a disk to be imported + default: "" + secretRef: + type: string + description: SecretRef provides the secret reference needed to access the + ovirt-engine + url: + type: string + description: URL is the URL of the ovirt-engine + default: "" + description: DataVolumeSourceImageIO provides the parameters to create a Data + Volume from an imageio source + v1beta1.DataVolumeSourcePVC: + required: + - name + - namespace + type: object + properties: + name: + type: string + description: The name of the source PVC + default: "" + namespace: + type: string + description: The namespace of the source PVC + default: "" + description: DataVolumeSourcePVC provides the parameters to create a Data Volume + from an existing PVC + v1beta1.DataVolumeSourceRef: + required: + - kind + - name + type: object + properties: + kind: + type: string + description: "The kind of the source reference, currently only \"DataSource\"\ + \ is supported" + default: "" + name: + type: string + description: The name of the source reference + default: "" + namespace: + type: string + description: "The namespace of the source reference, defaults to the DataVolume\ + \ namespace" + description: DataVolumeSourceRef defines an indirect reference to the source + of data for the DataVolume + v1beta1.DataVolumeSourceRegistry: + type: object + properties: + certConfigMap: + type: string + description: CertConfigMap provides a reference to the Registry certs + imageStream: + type: string + description: ImageStream is the name of image stream for import + pullMethod: + type: string + description: "PullMethod can be either \"pod\" (default import), or \"node\"\ + \ (node docker cache based import)" + secretRef: + type: string + description: SecretRef provides the secret reference needed to access the + Registry source + url: + type: string + description: "URL is the url of the registry source (starting with the scheme:\ + \ docker, oci-archive)" + description: DataVolumeSourceRegistry provides the parameters to create a Data + Volume from an registry source + v1beta1.DataVolumeSourceS3: + required: + - url + type: object + properties: + certConfigMap: + type: string + description: "CertConfigMap is a configmap reference, containing a Certificate\ + \ Authority(CA) public key, and a base64 encoded pem certificate" + secretRef: + type: string + description: SecretRef provides the secret reference needed to access the + S3 source + url: + type: string + description: URL is the url of the S3 source + default: "" + description: DataVolumeSourceS3 provides the parameters to create a Data Volume + from an S3 source + v1beta1.DataVolumeSourceSnapshot: + required: + - name + - namespace + type: object + properties: + name: + type: string + description: The name of the source VolumeSnapshot + default: "" + namespace: + type: string + description: The namespace of the source VolumeSnapshot + default: "" + description: DataVolumeSourceSnapshot provides the parameters to create a Data + Volume from an existing VolumeSnapshot + v1beta1.DataVolumeSourceUpload: + type: object + description: DataVolumeSourceUpload provides the parameters to create a Data + Volume by uploading the source + v1beta1.DataVolumeSourceVDDK: + type: object + properties: + backingFile: + type: string + description: BackingFile is the path to the virtual hard disk to migrate + from vCenter/ESXi + initImageURL: + type: string + description: "InitImageURL is an optional URL to an image containing an\ + \ extracted VDDK library, overrides v2v-vmware config map" + secretRef: + type: string + description: SecretRef provides a reference to a secret containing the username + and password needed to access the vCenter or ESXi host + thumbprint: + type: string + description: Thumbprint is the certificate thumbprint of the vCenter or + ESXi host + url: + type: string + description: URL is the URL of the vCenter or ESXi host with the VM to migrate + uuid: + type: string + description: UUID is the UUID of the virtual machine that the backing file + is attached to in vCenter/ESXi + description: DataVolumeSourceVDDK provides the parameters to create a Data Volume + from a Vmware source + v1beta1.DataVolumeSpec: + type: object + properties: + checkpoints: + type: array + description: "Checkpoints is a list of DataVolumeCheckpoints, representing\ + \ stages in a multistage import." + items: + $ref: '#/components/schemas/v1beta1.DataVolumeCheckpoint' + contentType: + type: string + description: "DataVolumeContentType options: \"kubevirt\", \"archive\"" + finalCheckpoint: + type: boolean + description: FinalCheckpoint indicates whether the current DataVolumeCheckpoint + is the final checkpoint. + preallocation: + type: boolean + description: Preallocation controls whether storage for DataVolumes should + be allocated in advance. + priorityClassName: + type: string + description: "PriorityClassName for Importer, Cloner and Uploader pod" + pvc: + $ref: '#/components/schemas/k8s.io.api.core.v1.PersistentVolumeClaimSpec' + source: + $ref: '#/components/schemas/v1beta1.DataVolumeSource' + sourceRef: + $ref: '#/components/schemas/v1beta1.DataVolumeSourceRef' + storage: + $ref: '#/components/schemas/v1beta1.StorageSpec' + description: DataVolumeSpec defines the DataVolume type specification + v1beta1.DevicePreferences: + type: object + properties: + preferredAutoattachGraphicsDevice: + type: boolean + description: PreferredAutoattachGraphicsDevice optionally defines the preferred + value of AutoattachGraphicsDevice + preferredAutoattachInputDevice: + type: boolean + description: PreferredAutoattachInputDevice optionally defines the preferred + value of AutoattachInputDevice + preferredAutoattachMemBalloon: + type: boolean + description: PreferredAutoattachMemBalloon optionally defines the preferred + value of AutoattachMemBalloon + preferredAutoattachPodInterface: + type: boolean + description: PreferredAutoattachPodInterface optionally defines the preferred + value of AutoattachPodInterface + preferredAutoattachSerialConsole: + type: boolean + description: PreferredAutoattachSerialConsole optionally defines the preferred + value of AutoattachSerialConsole + preferredBlockMultiQueue: + type: boolean + description: PreferredBlockMultiQueue optionally enables the vhost multiqueue + feature for virtio disks. + preferredCdromBus: + type: string + description: PreferredCdromBus optionally defines the preferred bus for + Cdrom Disk devices. + preferredDisableHotplug: + type: boolean + description: PreferredDisableHotplug optionally defines the preferred value + of DisableHotplug + preferredDiskBlockSize: + $ref: '#/components/schemas/v1.BlockSize' + preferredDiskBus: + type: string + description: PreferredDiskBus optionally defines the preferred bus for Disk + Disk devices. + preferredDiskCache: + type: string + description: PreferredCache optionally defines the DriverCache to be used + by Disk devices. + preferredDiskDedicatedIoThread: + type: boolean + description: PreferredDedicatedIoThread optionally enables dedicated IO + threads for Disk devices. + preferredDiskIO: + type: string + description: PreferredIo optionally defines the QEMU disk IO mode to be + used by Disk devices. + preferredInputBus: + type: string + description: PreferredInputBus optionally defines the preferred bus for + Input devices. + preferredInputType: + type: string + description: PreferredInputType optionally defines the preferred type for + Input devices. + preferredInterfaceMasquerade: + $ref: '#/components/schemas/v1.InterfaceMasquerade' + preferredInterfaceModel: + type: string + description: PreferredInterfaceModel optionally defines the preferred model + to be used by Interface devices. + preferredLunBus: + type: string + description: PreferredLunBus optionally defines the preferred bus for Lun + Disk devices. + preferredNetworkInterfaceMultiQueue: + type: boolean + description: PreferredNetworkInterfaceMultiQueue optionally enables the + vhost multiqueue feature for virtio interfaces. + preferredRng: + $ref: '#/components/schemas/v1.Rng' + preferredSoundModel: + type: string + description: PreferredSoundModel optionally defines the preferred model + for Sound devices. + preferredTPM: + $ref: '#/components/schemas/v1.TPMDevice' + preferredUseVirtioTransitional: + type: boolean + description: PreferredUseVirtioTransitional optionally defines the preferred + value of UseVirtioTransitional + preferredVirtualGPUOptions: + $ref: '#/components/schemas/v1.VGPUOptions' + description: DevicePreferences contains various optional Device preferences. + v1beta1.FeaturePreferences: + type: object + properties: + preferredAcpi: + $ref: '#/components/schemas/v1.FeatureState' + preferredApic: + $ref: '#/components/schemas/v1.FeatureAPIC' + preferredHyperv: + $ref: '#/components/schemas/v1.FeatureHyperv' + preferredKvm: + $ref: '#/components/schemas/v1.FeatureKVM' + preferredPvspinlock: + $ref: '#/components/schemas/v1.FeatureState' + preferredSmm: + $ref: '#/components/schemas/v1.FeatureState' + description: FeaturePreferences contains various optional defaults for Features. + v1beta1.FirmwarePreferences: + type: object + properties: + preferredUseBios: + type: boolean + description: PreferredUseBios optionally enables BIOS + preferredUseBiosSerial: + type: boolean + description: |- + PreferredUseBiosSerial optionally transmitts BIOS output over the serial. + + Requires PreferredUseBios to be enabled. + preferredUseEfi: + type: boolean + description: PreferredUseEfi optionally enables EFI + preferredUseSecureBoot: + type: boolean + description: |- + PreferredUseSecureBoot optionally enables SecureBoot and the OVMF roms will be swapped for SecureBoot-enabled ones. + + Requires PreferredUseEfi and PreferredSmm to be enabled. + description: FirmwarePreferences contains various optional defaults for Firmware. + v1beta1.MachinePreferences: + type: object + properties: + preferredMachineType: + type: string + description: PreferredMachineType optionally defines the preferred machine + type to use. + description: MachinePreferences contains various optional defaults for Machine. + v1beta1.MemoryInstancetype: + required: + - guest + type: object + properties: + guest: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + hugepages: + $ref: '#/components/schemas/v1.Hugepages' + overcommitPercent: + type: integer + description: "OvercommitPercent is the percentage of the guest memory which\ + \ will be overcommitted. This means that the VMIs parent pod (virt-launcher)\ + \ will request less physical memory by a factor specified by the OvercommitPercent.\ + \ Overcommits can lead to memory exhaustion, which in turn can lead to\ + \ crashes. Use carefully. Defaults to 0" + format: int32 + description: |- + MemoryInstancetype contains the Memory related configuration of a given VirtualMachineInstancetypeSpec. + + Guest is a required attribute and defines the amount of RAM to be exposed to the guest by the instancetype. + v1beta1.MemoryPreferenceRequirement: + required: + - guest + type: object + properties: + guest: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.api.resource.Quantity' + v1beta1.PreferenceRequirements: + type: object + properties: + cpu: + $ref: '#/components/schemas/v1beta1.CPUPreferenceRequirement' + memory: + $ref: '#/components/schemas/v1beta1.MemoryPreferenceRequirement' + v1beta1.SpreadOptions: + type: object + properties: + across: + type: string + description: "Across optionally defines how to spread vCPUs across the guest\ + \ visible topology. Default: SocketsCores" + ratio: + type: integer + description: |- + Ratio optionally defines the ratio to spread vCPUs across the guest visible topology: + + CoresThreads - 1:2 - Controls the ratio of cores to threads. Only a ratio of 2 is currently accepted. SocketsCores - 1:N - Controls the ratio of socket to cores. SocketsCoresThreads - 1:N:2 - Controls the ratio of socket to cores. Each core providing 2 threads. + + Default: 2 + format: int64 + v1beta1.StorageSpec: + type: object + properties: + accessModes: + type: array + description: "AccessModes contains the desired access modes the volume should\ + \ have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1" + items: + type: string + default: "" + dataSource: + $ref: '#/components/schemas/k8s.io.api.core.v1.TypedLocalObjectReference' + dataSourceRef: + $ref: '#/components/schemas/k8s.io.api.core.v1.TypedObjectReference' + resources: + $ref: '#/components/schemas/k8s.io.api.core.v1.ResourceRequirements' + selector: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector' + storageClassName: + type: string + description: "Name of the StorageClass required by the claim. More info:\ + \ https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1" + volumeMode: + type: string + description: |- + volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. + + Possible enum values: + - `"Block"` means the volume will not be formatted with a filesystem and will remain a raw block device. + - `"Filesystem"` means the volume will be or is formatted with a filesystem. + enum: + - Block + - Filesystem + volumeName: + type: string + description: VolumeName is the binding reference to the PersistentVolume + backing this claim. + description: StorageSpec defines the Storage type specification + v1beta1.VirtualMachineClusterInstancetype: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1beta1.VirtualMachineInstancetypeSpec' + description: VirtualMachineClusterInstancetype is a cluster scoped version of + VirtualMachineInstancetype resource. + v1beta1.VirtualMachineClusterInstancetypeList: + required: + - items + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1beta1.VirtualMachineClusterInstancetype' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VirtualMachineClusterInstancetypeList is a list of VirtualMachineClusterInstancetype + resources. + v1beta1.VirtualMachineClusterPreference: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1beta1.VirtualMachinePreferenceSpec' + description: VirtualMachineClusterPreference is a cluster scoped version of + the VirtualMachinePreference resource. + v1beta1.VirtualMachineClusterPreferenceList: + required: + - items + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1beta1.VirtualMachineClusterPreference' + x-kubernetes-list-type: set + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VirtualMachineClusterPreferenceList is a list of VirtualMachineClusterPreference + resources. + v1beta1.VirtualMachineInstancetype: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1beta1.VirtualMachineInstancetypeSpec' + description: VirtualMachineInstancetype resource contains quantitative and resource + related VirtualMachine configuration that can be used by multiple VirtualMachine + resources. + v1beta1.VirtualMachineInstancetypeList: + required: + - items + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1beta1.VirtualMachineInstancetype' + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VirtualMachineInstancetypeList is a list of VirtualMachineInstancetype + resources. + v1beta1.VirtualMachineInstancetypeSpec: + required: + - cpu + - memory + type: object + properties: + annotations: + type: object + additionalProperties: + type: string + default: "" + description: Optionally defines the required Annotations to be used by the + instance type and applied to the VirtualMachineInstance + cpu: + $ref: '#/components/schemas/v1beta1.CPUInstancetype' + gpus: + type: array + description: Optionally defines any GPU devices associated with the instancetype. + items: + $ref: '#/components/schemas/v1.GPU' + x-kubernetes-list-type: atomic + hostDevices: + type: array + description: Optionally defines any HostDevices associated with the instancetype. + items: + $ref: '#/components/schemas/v1.HostDevice' + x-kubernetes-list-type: atomic + ioThreadsPolicy: + type: string + description: Optionally defines the IOThreadsPolicy to be used by the instancetype. + launchSecurity: + $ref: '#/components/schemas/v1.LaunchSecurity' + memory: + $ref: '#/components/schemas/v1beta1.MemoryInstancetype' + nodeSelector: + type: object + additionalProperties: + type: string + default: "" + description: |- + NodeSelector is a selector which must be true for the vmi to fit on a node. Selector which must match a node's labels for the vmi to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ + + NodeSelector is the name of the custom node selector for the instancetype. + schedulerName: + type: string + description: |- + If specified, the VMI will be dispatched by specified scheduler. If not specified, the VMI will be dispatched by default scheduler. + + SchedulerName is the name of the custom K8s scheduler for the instancetype. + description: |- + VirtualMachineInstancetypeSpec is a description of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype. + + CPU and Memory are required attributes with both requiring that their Guest attribute is defined, ensuring a number of vCPUs and amount of RAM is always provided by each instancetype. + v1beta1.VirtualMachinePreference: + required: + - spec + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta' + spec: + $ref: '#/components/schemas/v1beta1.VirtualMachinePreferenceSpec' + description: VirtualMachinePreference resource contains optional preferences + related to the VirtualMachine. + v1beta1.VirtualMachinePreferenceList: + required: + - items + type: object + properties: + apiVersion: + type: string + description: "APIVersion defines the versioned schema of this representation\ + \ of an object. Servers should convert recognized schemas to the latest\ + \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" + items: + type: array + items: + $ref: '#/components/schemas/v1beta1.VirtualMachinePreference' + x-kubernetes-list-type: set + kind: + type: string + description: "Kind is a string value representing the REST resource this\ + \ object represents. Servers may infer this from the endpoint the client\ + \ submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + metadata: + $ref: '#/components/schemas/k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta' + description: VirtualMachinePreferenceList is a list of VirtualMachinePreference + resources. + v1beta1.VirtualMachinePreferenceSpec: + type: object + properties: + annotations: + type: object + additionalProperties: + type: string + default: "" + description: Optionally defines preferred Annotations to be applied to the + VirtualMachineInstance + clock: + $ref: '#/components/schemas/v1beta1.ClockPreferences' + cpu: + $ref: '#/components/schemas/v1beta1.CPUPreferences' + devices: + $ref: '#/components/schemas/v1beta1.DevicePreferences' + features: + $ref: '#/components/schemas/v1beta1.FeaturePreferences' + firmware: + $ref: '#/components/schemas/v1beta1.FirmwarePreferences' + machine: + $ref: '#/components/schemas/v1beta1.MachinePreferences' + preferSpreadSocketToCoreRatio: + type: integer + description: "PreferSpreadSocketToCoreRatio defines the ratio to spread\ + \ vCPUs between cores and sockets, it defaults to 2." + format: int64 + preferredSubdomain: + type: string + description: Subdomain of the VirtualMachineInstance + preferredTerminationGracePeriodSeconds: + type: integer + description: Grace period observed after signalling a VirtualMachineInstance + to stop after which the VirtualMachineInstance is force terminated. + format: int64 + requirements: + $ref: '#/components/schemas/v1beta1.PreferenceRequirements' + volumes: + $ref: '#/components/schemas/v1beta1.VolumePreferences' + description: VirtualMachinePreferenceSpec is a description of the VirtualMachinePreference + or VirtualMachineClusterPreference. + v1beta1.VolumePreferences: + type: object + properties: + preferredStorageClassName: + type: string + description: PreffereedStorageClassName optionally defines the preferred + storageClass + securitySchemes: + BearerToken: + type: http + scheme: bearer + description: Bearer Token authentication + x-original-swagger-version: "2.0" + notifications-openapi.yaml: |- + openapi: 3.0.3 + info: + title: Notifications Plugin - OpenAPI Specs + description: |- + Notifications Plugin - OpenAPI Specs + version: 1.0.0 + tags: + - name: notifications + description: notifications plugin + paths: + /notifications: + post: + tags: + - notifications + summary: Create notification + description: Create notification + operationId: createNotification + requestBody: + description: Create a new notification + content: + application/json: + schema: + $ref: '#/components/schemas/CreateBody' + responses: + '200': + description: Successful operation + content: + application/json: + schema: + type: object + properties: + messageId: + type: string + example: bc9f19de-8b7b-49a8-9262-c5036a1ed35e + required: ['messageId'] + get: + tags: + - notifications + summary: Gets notifications + description: Gets notifications + operationId: getNotifications + parameters: + - name: pageSize + in: query + description: Page size of the result + required: false + schema: + type: integer + minimum: 0 + - name: pageNumber + in: query + description: Page number of the result + required: false + schema: + type: integer + minimum: 0 + - name: orderBy + in: query + description: order by field. e.g. created, origin. + required: false + schema: + type: string + enum: + - title + - message + - created + - topic + - origin + - name: orderByDirec + in: query + description: order ascending or descending + required: false + schema: + type: string + enum: + - asc + - desc + - name: containsText + in: query + description: Filter notifications whose either title or message contains the provided string + required: false + schema: + type: string + - name: createdAfter + in: query + description: Only notifications created after this timestamp will be included + required: false + schema: + type: string + format: date-time + - name: messageScope + in: query + description: retrieve either logged-in user messages, system messages or both + required: false + schema: + type: string + enum: + - all + - user + - system + - name: read + in: query + description: Notifications read or not + required: false + schema: + type: boolean + responses: + '200': + description: Successful operation + content: + application/json: + schema: + $ref: '#/components/schemas/Notifications' + /notifications/count: + get: + tags: + - notifications + summary: Get notifications count + description: Gets notifications count + operationId: getNotificationsCount + parameters: + - name: containsText + in: query + description: Filter notifications whose either title or message contains the provided string + required: false + schema: + type: string + - name: createdAfter + in: query + description: Only notifications created after this timestamp will be included + required: false + schema: + type: string + format: date-time + - name: messageScope + in: query + description: retrieve either logged-in user messages, system messages or both + required: false + schema: + type: string + enum: + - all + - user + - system + - name: read + in: query + description: Notifications read or not + required: false + schema: + type: boolean + responses: + '200': + description: Successful operation + content: + application/json: + schema: + type: object + properties: + count: + type: number + required: ['count'] + /notifications/read: + put: + tags: + - notifications + summary: Set notification as read/unread + description: Set notification as read/unread + operationId: setRead + parameters: + - name: messageId + in: query + description: The message ID + required: true + schema: + type: string + - name: read + in: query + description: read/unread + required: true + schema: + type: boolean + responses: + '200': + description: Successful operation + components: + schemas: + Notifications: + type: array + items: + $ref: '#/components/schemas/Notification' + Notification: + properties: + id: + type: string + created: + type: string + format: date-time + readByUser: + type: boolean + isSystem: + type: boolean + origin: + type: string + title: + type: string + message: + type: string + topic: + type: string + actions: + type: array + items: + $ref: '#/components/schemas/Action' + required: [id, created, readByUser, isSystem, origin, title, actions] + Action: + properties: + id: + type: string + title: + type: string + url: + type: string + required: [id, title, url] + CreateBody: + properties: + origin: + type: string + title: + type: string + message: + type: string + actions: + type: array + items: + type: object + properties: + title: + type: string + url: + type: string + required: [title, url] + topic: + type: string + targetUsers: + type: array + items: + type: string + targetGroups: + type: array + items: + type: string + required: [origin, title] +kind: ConfigMap +metadata: + creationTimestamp: null + name: 02-request-vm-cnv-resources diff --git a/workflows/request-vm-cnv/manifests/03-configmap_request-cm-cnv-props.yaml b/workflows/request-vm-cnv/manifests/03-configmap_request-cm-cnv-props.yaml new file mode 100755 index 00000000..63023b56 --- /dev/null +++ b/workflows/request-vm-cnv/manifests/03-configmap_request-cm-cnv-props.yaml @@ -0,0 +1,29 @@ +apiVersion: v1 +data: + application.properties: | + quarkus.rest-client.notifications_openapi_yaml.url=${BACKSTAGE_NOTIFICATIONS_URL:http://backstage-backstage.rhdh-operator/api/notifications} + + vm_check_running_max_retries=${VM_CHECK_RUNNING_MAX_RETRIES:10} + + jira_url=https://masayag.atlassian.net + quarkus.rest-client.jira_openapi_json.url=https://masayag.atlassian.net + quarkus.openapi-generator.jira_openapi_json.auth.basicAuth.username=moti.asayag@gmail.com + quarkus.openapi-generator.jira_openapi_json.auth.basicAuth.password=ATATT3xFfGF0dcmVcCOlKk2TByafskgXfjyBpAMUga49ivLl9wifXpp9gLRW-iNL4tbSITvBYci285LfL_9hbdkgJWRdI_jsHD1OMuKOZ8bsDGRHoBdoMtU9ZWE5omo3vyu6nygvhAmiZjKs7Z02v7987uAEZoYtUMHX9iVRSTILMrBHPTHqHWw=C5BF56F5 + + # OpenShift API Server + quarkus.rest-client.kubevirt_openapi_yaml.url=https://api.cluster-bpmcb.bpmcb.gcp.redhatworkshops.io:6443 + quarkus.openapi-generator.kubevirt_openapi_yaml.auth.BearerToken.bearer-token=sha256~lmE6UcIH6hWfy_Q44tZabqqxidXvBTpcwCPZDEKglNA + + cluster_console_url=https://console-openshift-console.apps.cluster-ddf9q.dynamic.redhatworkshops.io + quarkus.tls.trust-all=true + quarkus.kubernetes-client.trust-certs=true + + quarkus.flyway.migrate-at-start=true + quarkus.flyway.migrate-at-start=true +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app: request-vm-cnv + sonataflow.org/workflow-app: request-vm-cnv + name: request-vm-cnv-props diff --git a/request-vm-cnv/request-vm-cnv.svg b/workflows/request-vm-cnv/request-vm-cnv.svg similarity index 100% rename from request-vm-cnv/request-vm-cnv.svg rename to workflows/request-vm-cnv/request-vm-cnv.svg diff --git a/request-vm-cnv/request-vm-cnv.sw.yaml b/workflows/request-vm-cnv/request-vm-cnv.sw.yaml similarity index 100% rename from request-vm-cnv/request-vm-cnv.sw.yaml rename to workflows/request-vm-cnv/request-vm-cnv.sw.yaml diff --git a/request-vm-cnv/schemas/request-vm-cnv__main-schema.json b/workflows/request-vm-cnv/schemas/request-vm-cnv__main-schema.json similarity index 100% rename from request-vm-cnv/schemas/request-vm-cnv__main-schema.json rename to workflows/request-vm-cnv/schemas/request-vm-cnv__main-schema.json diff --git a/request-vm-cnv/schemas/workflow-output-schema.json b/workflows/request-vm-cnv/schemas/workflow-output-schema.json similarity index 100% rename from request-vm-cnv/schemas/workflow-output-schema.json rename to workflows/request-vm-cnv/schemas/workflow-output-schema.json diff --git a/request-vm-cnv/secret.properties b/workflows/request-vm-cnv/secret.properties similarity index 100% rename from request-vm-cnv/secret.properties rename to workflows/request-vm-cnv/secret.properties diff --git a/request-vm-cnv/specs/jira-openapi.json b/workflows/request-vm-cnv/specs/jira-openapi.json similarity index 100% rename from request-vm-cnv/specs/jira-openapi.json rename to workflows/request-vm-cnv/specs/jira-openapi.json diff --git a/request-vm-cnv/specs/kubevirt-openapi.yaml b/workflows/request-vm-cnv/specs/kubevirt-openapi.yaml similarity index 100% rename from request-vm-cnv/specs/kubevirt-openapi.yaml rename to workflows/request-vm-cnv/specs/kubevirt-openapi.yaml diff --git a/rpj/.dockerignore b/workflows/rpj/.dockerignore similarity index 100% rename from rpj/.dockerignore rename to workflows/rpj/.dockerignore diff --git a/rpj/LICENSE b/workflows/rpj/LICENSE similarity index 100% rename from rpj/LICENSE rename to workflows/rpj/LICENSE diff --git a/rpj/README.md b/workflows/rpj/README.md similarity index 100% rename from rpj/README.md rename to workflows/rpj/README.md diff --git a/rpj/application.properties b/workflows/rpj/application.properties similarity index 100% rename from rpj/application.properties rename to workflows/rpj/application.properties diff --git a/rpj/argfile.conf b/workflows/rpj/argfile.conf similarity index 100% rename from rpj/argfile.conf rename to workflows/rpj/argfile.conf diff --git a/workflows/rpj/manifests/00-proxy.yaml b/workflows/rpj/manifests/00-proxy.yaml new file mode 100644 index 00000000..20d98234 --- /dev/null +++ b/workflows/rpj/manifests/00-proxy.yaml @@ -0,0 +1,54 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: rpj-proxy-configmap +data: + TARGET_URL: "https://rpj-rp-jira-sync-pre.apps.mig08.rhos-psi.cnv-qe.rhood.us" +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: rpj-python-proxy +spec: + selector: + matchLabels: + app: rpj-python-proxy + template: + metadata: + labels: + app: rpj-python-proxy + spec: + containers: + - name: rpj-python-proxy + image: quay.io/gfarache/rpj-proxy:latest + ports: + - containerPort: 8080 + envFrom: + - configMapRef: + name: rpj-proxy-configmap + livenessProbe: + httpGet: + path: /health # Health check endpoint + port: 8080 # Port where the application is running + initialDelaySeconds: 10 # Delay before the probe is initiated + periodSeconds: 15 # Frequency of the probe + failureThreshold: 3 # Number of failures before the container is restarted + readinessProbe: + httpGet: + path: /health # Health check endpoint + port: 8080 # Port where the application is running + initialDelaySeconds: 5 # Delay before the probe is initiated + periodSeconds: 10 # Frequency of the probe + failureThreshold: 3 # Number of failures before the container is considered not ready +--- +apiVersion: v1 +kind: Service +metadata: + name: rpj-python-proxy-service +spec: + selector: + app: rpj-python-proxy + ports: + - protocol: TCP + port: 80 + targetPort: 8080 diff --git a/workflows/rpj/manifests/00-secret_rpj.yaml b/workflows/rpj/manifests/00-secret_rpj.yaml new file mode 100644 index 00000000..84174744 --- /dev/null +++ b/workflows/rpj/manifests/00-secret_rpj.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +data: + NOTIFICATIONS_BEARER_TOKEN: "" +kind: Secret +metadata: + creationTimestamp: null + name: rpj-creds diff --git a/workflows/rpj/manifests/01-configmap_01-rpj-resources.yaml b/workflows/rpj/manifests/01-configmap_01-rpj-resources.yaml new file mode 100755 index 00000000..b6ea6af3 --- /dev/null +++ b/workflows/rpj/manifests/01-configmap_01-rpj-resources.yaml @@ -0,0 +1,105 @@ +apiVersion: v1 +data: + rpj.json: |- + { + "openapi": "3.0.1", + "info": { + "title": "RPJ API", + "contact": {}, + "license": { + "name": "Apache 2.0", + "url": "http://www.apache.org/licenses/LICENSE-2.0.html" + }, + "version": "0.3.z" + }, + "servers": [ + { + "url": "/" + } + ], + "paths": { + "/{launch_id}": { + "get": { + "operationId": "run", + "tags": [ + "run" + ], + "summary": "Create Jira tickets from a launch in Report Portal.", + "description": "create Jira tickets from a launch in Report Portal.", + "parameters": [ + { + "name": "launch_id", + "in": "path", + "description": "ID of the launch for which Jira ticket shall be created.", + "required": true, + "example": "1234", + "schema": { + "$ref": "#/components/schemas/ID" + } + }, + { + "name": "epic", + "in": "query", + "description": "Epic code in which include the created Jira ticket.", + "required": false, + "example": "XX-11", + "schema": { + "$ref": "#/components/schemas/EpicCode" + } + } + ], + "responses": { + "200": { + "description": "OK", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/StartResponse" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "ID": { + "type": "string", + "description": "A unique ID.", + "example": "1234" + }, + "EpicCode": { + "pattern": "^[a-zA-Z0-9-_]+$", + "type": "string", + "description": "Epic code.", + "example": "id-1234" + }, + "StartResponse": { + "required": [ + "success", + "message", + "data" + ], + "type": "object", + "properties": { + "success": { + "type": "boolean" + }, + "message": { + "type": "string" + }, + "data": { + "type": "string" + } + } + } + }, + "x-original-swagger-version": "2.0" + } + } +kind: ConfigMap +metadata: + creationTimestamp: null + name: 01-rpj-resources diff --git a/workflows/rpj/manifests/01-sonataflow_rpj.yaml b/workflows/rpj/manifests/01-sonataflow_rpj.yaml new file mode 100755 index 00000000..6dcca367 --- /dev/null +++ b/workflows/rpj/manifests/01-sonataflow_rpj.yaml @@ -0,0 +1,119 @@ +apiVersion: sonataflow.org/v1alpha08 +kind: SonataFlow +metadata: + annotations: + sonataflow.org/description: Workflow to execute RPJ + sonataflow.org/expressionLang: jq + sonataflow.org/profile: prod + sonataflow.org/version: "1.0" + creationTimestamp: null + labels: + app: rpj + sonataflow.org/workflow-app: rpj + name: rpj +spec: + flow: + annotations: + - workflow-type/infrastructure + dataInputSchema: + failOnValidationErrors: true + schema: schemas/rpj-input.json + functions: + - name: run + operation: specs/rpj.json#run + type: rest + - name: createNotification + operation: notifications#createNotification + type: rest + - name: systemOut + operation: sysout + type: custom + start: + stateName: Run + states: + - actionMode: sequential + actions: + - actionDataFilter: + toStateData: .runResults + useResults: true + functionRef: + arguments: + epic: .epicCode + launch_id: .launchId + invoke: sync + refName: run + name: getApp + name: Run + transition: + nextState: CheckResults + type: operation + - dataConditions: + - condition: .runResults.success == true + name: success + transition: + nextState: NotifyBackstage + - condition: .runResults.success == false + name: failure + transition: + nextState: NotifyFailureBackstage + defaultCondition: + transition: + nextState: NotifyFailureBackstage + name: CheckResults + type: switch + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: '"RPJ run results for launch " + .launchId + ": " + .runResults' + invoke: sync + refName: systemOut + name: printSystemOut + end: + terminate: true + name: NotifyBackstage + type: operation + - actionMode: sequential + actions: + - actionDataFilter: + useResults: true + functionRef: + arguments: + message: '"RPJ run results for launch " + .launchId + ": " + .runResults' + invoke: sync + refName: systemOut + name: printSystemOut + end: + terminate: true + name: NotifyFailureBackstage + type: operation + timeouts: + workflowExecTimeout: + duration: PT1H + resources: + configMaps: + - configMap: + name: 01-rpj-resources + workflowPath: specs + podTemplate: + container: + image: quay.io/gfarache/serverless-workflow-rpj:32e6c046 + envFrom: + - secretRef: + name: rpj-creds + persistence: + postgresql: + secretRef: + name: sonataflow-psql-postgresql + userKey: postgres-username + passwordKey: postgres-password + serviceRef: + name: sonataflow-psql-postgresql + port: 5432 + databaseName: sonataflow + databaseSchema: rpj +status: + address: {} + lastTimeRecoverAttempt: null diff --git a/workflows/rpj/manifests/02-configmap_rpj-props.yaml b/workflows/rpj/manifests/02-configmap_rpj-props.yaml new file mode 100755 index 00000000..8b3908ed --- /dev/null +++ b/workflows/rpj/manifests/02-configmap_rpj-props.yaml @@ -0,0 +1,26 @@ +apiVersion: v1 +data: + application.properties: | + # RPJ + rpj.url = ${RPJ_URL:http://rpj-proxy-service} + quarkus.rest-client.rpj_json.url = ${rpj.url} + + # Backstage Notifications service + quarkus.rest-client.notifications.url=${BACKSTAGE_NOTIFICATIONS_URL:http://backstage-backstage.rhdh-operator} + quarkus.openapi-generator.notifications.auth.BearerToken.bearer-token=${NOTIFICATIONS_BEARER_TOKEN:njmd0GEK3MO6z9Nv0UYdh3q} + + # This property is used to select the log level, which controls the amount + # of information logged on HTTP requests based on the severity of the events. + # Possible values: OFF, FATAL, ERROR, WARN, INFO, DEBUG, ALL. + # and see https://quarkus.io/guides/logging for documentation + quarkus.log.category."org.apache.http".level=INFO + quarkus.log.level=INFO + + quarkus.flyway.migrate-at-start=true +kind: ConfigMap +metadata: + creationTimestamp: null + labels: + app: rpj + sonataflow.org/workflow-app: rpj + name: rpj-props diff --git a/rpj/proxy/Dockerfile b/workflows/rpj/proxy/Dockerfile similarity index 100% rename from rpj/proxy/Dockerfile rename to workflows/rpj/proxy/Dockerfile diff --git a/rpj/proxy/app.py b/workflows/rpj/proxy/app.py similarity index 100% rename from rpj/proxy/app.py rename to workflows/rpj/proxy/app.py diff --git a/rpj/proxy/requirements.txt b/workflows/rpj/proxy/requirements.txt similarity index 100% rename from rpj/proxy/requirements.txt rename to workflows/rpj/proxy/requirements.txt diff --git a/rpj/rpj.svg b/workflows/rpj/rpj.svg similarity index 100% rename from rpj/rpj.svg rename to workflows/rpj/rpj.svg diff --git a/rpj/rpj.sw.yaml b/workflows/rpj/rpj.sw.yaml similarity index 100% rename from rpj/rpj.sw.yaml rename to workflows/rpj/rpj.sw.yaml diff --git a/rpj/schemas/rpj-input.json b/workflows/rpj/schemas/rpj-input.json similarity index 100% rename from rpj/schemas/rpj-input.json rename to workflows/rpj/schemas/rpj-input.json diff --git a/rpj/schemas/workflow-output-schema.json b/workflows/rpj/schemas/workflow-output-schema.json similarity index 100% rename from rpj/schemas/workflow-output-schema.json rename to workflows/rpj/schemas/workflow-output-schema.json diff --git a/rpj/secret.properties b/workflows/rpj/secret.properties similarity index 100% rename from rpj/secret.properties rename to workflows/rpj/secret.properties diff --git a/rpj/specs/rpj.json b/workflows/rpj/specs/rpj.json similarity index 100% rename from rpj/specs/rpj.json rename to workflows/rpj/specs/rpj.json diff --git a/shared/schemas/workflow-result-schema.json b/workflows/shared/schemas/workflow-result-schema.json similarity index 100% rename from shared/schemas/workflow-result-schema.json rename to workflows/shared/schemas/workflow-result-schema.json diff --git a/shared/specs/notifications-openapi-doc/.openapi-generator-ignore b/workflows/shared/specs/notifications-openapi-doc/.openapi-generator-ignore similarity index 100% rename from shared/specs/notifications-openapi-doc/.openapi-generator-ignore rename to workflows/shared/specs/notifications-openapi-doc/.openapi-generator-ignore diff --git a/shared/specs/notifications-openapi-doc/.openapi-generator/FILES b/workflows/shared/specs/notifications-openapi-doc/.openapi-generator/FILES similarity index 100% rename from shared/specs/notifications-openapi-doc/.openapi-generator/FILES rename to workflows/shared/specs/notifications-openapi-doc/.openapi-generator/FILES diff --git a/shared/specs/notifications-openapi-doc/.openapi-generator/VERSION b/workflows/shared/specs/notifications-openapi-doc/.openapi-generator/VERSION similarity index 100% rename from shared/specs/notifications-openapi-doc/.openapi-generator/VERSION rename to workflows/shared/specs/notifications-openapi-doc/.openapi-generator/VERSION diff --git a/shared/specs/notifications-openapi-doc/Apis/NotificationsApi.md b/workflows/shared/specs/notifications-openapi-doc/Apis/NotificationsApi.md similarity index 100% rename from shared/specs/notifications-openapi-doc/Apis/NotificationsApi.md rename to workflows/shared/specs/notifications-openapi-doc/Apis/NotificationsApi.md diff --git a/shared/specs/notifications-openapi-doc/Models/Count.md b/workflows/shared/specs/notifications-openapi-doc/Models/Count.md similarity index 100% rename from shared/specs/notifications-openapi-doc/Models/Count.md rename to workflows/shared/specs/notifications-openapi-doc/Models/Count.md diff --git a/shared/specs/notifications-openapi-doc/Models/CreateBody.md b/workflows/shared/specs/notifications-openapi-doc/Models/CreateBody.md similarity index 100% rename from shared/specs/notifications-openapi-doc/Models/CreateBody.md rename to workflows/shared/specs/notifications-openapi-doc/Models/CreateBody.md diff --git a/shared/specs/notifications-openapi-doc/Models/CreateBody_recipients.md b/workflows/shared/specs/notifications-openapi-doc/Models/CreateBody_recipients.md similarity index 100% rename from shared/specs/notifications-openapi-doc/Models/CreateBody_recipients.md rename to workflows/shared/specs/notifications-openapi-doc/Models/CreateBody_recipients.md diff --git a/shared/specs/notifications-openapi-doc/Models/GetNotifications.md b/workflows/shared/specs/notifications-openapi-doc/Models/GetNotifications.md similarity index 100% rename from shared/specs/notifications-openapi-doc/Models/GetNotifications.md rename to workflows/shared/specs/notifications-openapi-doc/Models/GetNotifications.md diff --git a/shared/specs/notifications-openapi-doc/Models/Notification.md b/workflows/shared/specs/notifications-openapi-doc/Models/Notification.md similarity index 100% rename from shared/specs/notifications-openapi-doc/Models/Notification.md rename to workflows/shared/specs/notifications-openapi-doc/Models/Notification.md diff --git a/shared/specs/notifications-openapi-doc/Models/NotificationPayload.md b/workflows/shared/specs/notifications-openapi-doc/Models/NotificationPayload.md similarity index 100% rename from shared/specs/notifications-openapi-doc/Models/NotificationPayload.md rename to workflows/shared/specs/notifications-openapi-doc/Models/NotificationPayload.md diff --git a/shared/specs/notifications-openapi-doc/Models/SetReadRequest.md b/workflows/shared/specs/notifications-openapi-doc/Models/SetReadRequest.md similarity index 100% rename from shared/specs/notifications-openapi-doc/Models/SetReadRequest.md rename to workflows/shared/specs/notifications-openapi-doc/Models/SetReadRequest.md diff --git a/shared/specs/notifications-openapi-doc/README.md b/workflows/shared/specs/notifications-openapi-doc/README.md similarity index 100% rename from shared/specs/notifications-openapi-doc/README.md rename to workflows/shared/specs/notifications-openapi-doc/README.md diff --git a/shared/specs/notifications-openapi.yaml b/workflows/shared/specs/notifications-openapi.yaml similarity index 100% rename from shared/specs/notifications-openapi.yaml rename to workflows/shared/specs/notifications-openapi.yaml diff --git a/shared/specs/scaffolder-v1.30.x-openapi-doc/.openapi-generator-ignore b/workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/.openapi-generator-ignore similarity index 100% rename from shared/specs/scaffolder-v1.30.x-openapi-doc/.openapi-generator-ignore rename to workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/.openapi-generator-ignore diff --git a/shared/specs/scaffolder-v1.30.x-openapi-doc/.openapi-generator/FILES b/workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/.openapi-generator/FILES similarity index 100% rename from shared/specs/scaffolder-v1.30.x-openapi-doc/.openapi-generator/FILES rename to workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/.openapi-generator/FILES diff --git a/shared/specs/scaffolder-v1.30.x-openapi-doc/.openapi-generator/VERSION b/workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/.openapi-generator/VERSION similarity index 100% rename from shared/specs/scaffolder-v1.30.x-openapi-doc/.openapi-generator/VERSION rename to workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/.openapi-generator/VERSION diff --git a/shared/specs/scaffolder-v1.30.x-openapi-doc/Apis/DefaultApi.md b/workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/Apis/DefaultApi.md similarity index 100% rename from shared/specs/scaffolder-v1.30.x-openapi-doc/Apis/DefaultApi.md rename to workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/Apis/DefaultApi.md diff --git a/shared/specs/scaffolder-v1.30.x-openapi-doc/Models/Task.md b/workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/Models/Task.md similarity index 100% rename from shared/specs/scaffolder-v1.30.x-openapi-doc/Models/Task.md rename to workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/Models/Task.md diff --git a/shared/specs/scaffolder-v1.30.x-openapi-doc/Models/Template.md b/workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/Models/Template.md similarity index 100% rename from shared/specs/scaffolder-v1.30.x-openapi-doc/Models/Template.md rename to workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/Models/Template.md diff --git a/shared/specs/scaffolder-v1.30.x-openapi-doc/Models/Template_steps_inner.md b/workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/Models/Template_steps_inner.md similarity index 100% rename from shared/specs/scaffolder-v1.30.x-openapi-doc/Models/Template_steps_inner.md rename to workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/Models/Template_steps_inner.md diff --git a/shared/specs/scaffolder-v1.30.x-openapi-doc/Models/createTask_201_response.md b/workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/Models/createTask_201_response.md similarity index 100% rename from shared/specs/scaffolder-v1.30.x-openapi-doc/Models/createTask_201_response.md rename to workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/Models/createTask_201_response.md diff --git a/shared/specs/scaffolder-v1.30.x-openapi-doc/Models/listAvailableActions_200_response_inner.md b/workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/Models/listAvailableActions_200_response_inner.md similarity index 100% rename from shared/specs/scaffolder-v1.30.x-openapi-doc/Models/listAvailableActions_200_response_inner.md rename to workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/Models/listAvailableActions_200_response_inner.md diff --git a/shared/specs/scaffolder-v1.30.x-openapi-doc/README.md b/workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/README.md similarity index 100% rename from shared/specs/scaffolder-v1.30.x-openapi-doc/README.md rename to workflows/shared/specs/scaffolder-v1.30.x-openapi-doc/README.md diff --git a/shared/specs/scaffolder-v1.30.x-openapi.yaml b/workflows/shared/specs/scaffolder-v1.30.x-openapi.yaml similarity index 100% rename from shared/specs/scaffolder-v1.30.x-openapi.yaml rename to workflows/shared/specs/scaffolder-v1.30.x-openapi.yaml