Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c2bf28ee95 | ||
|
|
ae6ea842f1 | ||
|
|
2402f7258a | ||
|
|
45d3a14195 |
+403
-246
@@ -22,7 +22,11 @@ spec:
|
||||
singular: migrationplan
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .status.migrationStatus
|
||||
name: Status
|
||||
type: string
|
||||
name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: MigrationPlan is the Schema for the migrationplans API
|
||||
@@ -97,7 +101,7 @@ spec:
|
||||
type: string
|
||||
retry:
|
||||
type: boolean
|
||||
virtualmachines:
|
||||
virtualMachines:
|
||||
items:
|
||||
items:
|
||||
type: string
|
||||
@@ -106,7 +110,7 @@ spec:
|
||||
required:
|
||||
- migrationStrategy
|
||||
- migrationTemplate
|
||||
- virtualmachines
|
||||
- virtualMachines
|
||||
type: object
|
||||
status:
|
||||
description: MigrationPlanStatus defines the observed state of MigrationPlan
|
||||
@@ -140,7 +144,14 @@ spec:
|
||||
singular: migration
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .status.phase
|
||||
name: Phase
|
||||
type: string
|
||||
- jsonPath: .status.agentName
|
||||
name: AgentName
|
||||
type: string
|
||||
name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: Migration is the Schema for the migrations API
|
||||
@@ -187,7 +198,7 @@ spec:
|
||||
status:
|
||||
description: Status defines the observed state of Migration
|
||||
properties:
|
||||
AgentName:
|
||||
agentName:
|
||||
description: AgentName is the name of the agent where migration is
|
||||
running
|
||||
type: string
|
||||
@@ -303,12 +314,9 @@ spec:
|
||||
description: MigrationTemplateSource defines the source details for
|
||||
the migrationtemplate
|
||||
properties:
|
||||
datacenter:
|
||||
type: string
|
||||
vmwareRef:
|
||||
type: string
|
||||
required:
|
||||
- datacenter
|
||||
- vmwareRef
|
||||
type: object
|
||||
storageMapping:
|
||||
@@ -321,51 +329,6 @@ spec:
|
||||
- source
|
||||
- storageMapping
|
||||
type: object
|
||||
status:
|
||||
description: MigrationTemplateStatus defines the observed state of MigrationTemplate
|
||||
properties:
|
||||
openstack:
|
||||
properties:
|
||||
networks:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
volumeTypes:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
vmware:
|
||||
description: |-
|
||||
INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
|
||||
Important: Run "make" to regenerate code after modifying this file
|
||||
items:
|
||||
properties:
|
||||
datastores:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
disks:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
ipAddress:
|
||||
type: string
|
||||
name:
|
||||
type: string
|
||||
networks:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
osType:
|
||||
type: string
|
||||
vmState:
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
type: object
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
@@ -387,7 +350,11 @@ spec:
|
||||
singular: networkmapping
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .status.NetworkmappingValidationStatus
|
||||
name: Status
|
||||
type: string
|
||||
name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: NetworkMapping is the Schema for the networkmappings API
|
||||
@@ -457,7 +424,11 @@ spec:
|
||||
singular: openstackcreds
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .status.openstackValidationStatus
|
||||
name: Status
|
||||
type: string
|
||||
name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: OpenstackCreds is the Schema for the openstackcreds API
|
||||
@@ -482,177 +453,8 @@ spec:
|
||||
spec:
|
||||
description: OpenstackCredsSpec defines the desired state of OpenstackCreds
|
||||
properties:
|
||||
secretRef:
|
||||
description: SecretRef is the reference to the Kubernetes secret holding
|
||||
OpenStack credentials
|
||||
properties:
|
||||
apiVersion:
|
||||
description: API version of the referent.
|
||||
type: string
|
||||
fieldPath:
|
||||
description: |-
|
||||
If referring to a piece of an object instead of an entire object, this string
|
||||
should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
|
||||
For example, if the object reference is to a container within a pod, this would take on a value like:
|
||||
"spec.containers{name}" (where "name" refers to the name of the container that triggered
|
||||
the event) or if no container name is specified "spec.containers[2]" (container with
|
||||
index 2 in this pod). This syntax is chosen only to have some well-defined way of
|
||||
referencing a part of an object.
|
||||
type: string
|
||||
kind:
|
||||
description: |-
|
||||
Kind of the referent.
|
||||
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||
type: string
|
||||
name:
|
||||
description: |-
|
||||
Name of the referent.
|
||||
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
||||
type: string
|
||||
namespace:
|
||||
description: |-
|
||||
Namespace of the referent.
|
||||
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
|
||||
type: string
|
||||
resourceVersion:
|
||||
description: |-
|
||||
Specific resourceVersion to which this reference is made, if any.
|
||||
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
|
||||
type: string
|
||||
uid:
|
||||
description: |-
|
||||
UID of the referent.
|
||||
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
|
||||
type: string
|
||||
type: object
|
||||
x-kubernetes-map-type: atomic
|
||||
type: object
|
||||
status:
|
||||
description: OpenstackCredsStatus defines the observed state of OpenstackCreds
|
||||
properties:
|
||||
openstackValidationMessage:
|
||||
type: string
|
||||
openstackValidationStatus:
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
---
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.17.1
|
||||
name: storagemappings.vjailbreak.k8s.pf9.io
|
||||
spec:
|
||||
group: vjailbreak.k8s.pf9.io
|
||||
names:
|
||||
kind: StorageMapping
|
||||
listKind: StorageMappingList
|
||||
plural: storagemappings
|
||||
singular: storagemapping
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: StorageMapping is the Schema for the storagemappings API
|
||||
properties:
|
||||
apiVersion:
|
||||
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
|
||||
type: string
|
||||
kind:
|
||||
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
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: StorageMappingSpec defines the desired state of StorageMapping
|
||||
properties:
|
||||
storages:
|
||||
items:
|
||||
properties:
|
||||
source:
|
||||
type: string
|
||||
target:
|
||||
type: string
|
||||
required:
|
||||
- source
|
||||
- target
|
||||
type: object
|
||||
type: array
|
||||
required:
|
||||
- storages
|
||||
type: object
|
||||
status:
|
||||
description: StorageMappingStatus defines the observed state of StorageMapping
|
||||
properties:
|
||||
storageMappingValidationMessage:
|
||||
type: string
|
||||
storageMappingValidationStatus:
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
---
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.17.1
|
||||
name: vjailbreaknodes.vjailbreak.k8s.pf9.io
|
||||
spec:
|
||||
group: vjailbreak.k8s.pf9.io
|
||||
names:
|
||||
kind: VjailbreakNode
|
||||
listKind: VjailbreakNodeList
|
||||
plural: vjailbreaknodes
|
||||
singular: vjailbreaknode
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: VjailbreakNode is the Schema for the vjailbreaknodes API
|
||||
properties:
|
||||
apiVersion:
|
||||
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
|
||||
type: string
|
||||
kind:
|
||||
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
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: Spec defines the desired state of VjailbreakNode
|
||||
properties:
|
||||
availableflavors:
|
||||
description: AvailableFlavors is the list of available flavors in
|
||||
openstack
|
||||
flavors:
|
||||
description: Flavors is the list of available flavors in openstack
|
||||
items:
|
||||
description: |-
|
||||
Flavor represent (virtual) hardware configurations for server resources
|
||||
@@ -703,13 +505,202 @@ spec:
|
||||
- vcpus
|
||||
type: object
|
||||
type: array
|
||||
imageid:
|
||||
description: OpenstackImageID is the image of the VM
|
||||
secretRef:
|
||||
description: SecretRef is the reference to the Kubernetes secret holding
|
||||
OpenStack credentials
|
||||
properties:
|
||||
apiVersion:
|
||||
description: API version of the referent.
|
||||
type: string
|
||||
fieldPath:
|
||||
description: |-
|
||||
If referring to a piece of an object instead of an entire object, this string
|
||||
should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
|
||||
For example, if the object reference is to a container within a pod, this would take on a value like:
|
||||
"spec.containers{name}" (where "name" refers to the name of the container that triggered
|
||||
the event) or if no container name is specified "spec.containers[2]" (container with
|
||||
index 2 in this pod). This syntax is chosen only to have some well-defined way of
|
||||
referencing a part of an object.
|
||||
type: string
|
||||
kind:
|
||||
description: |-
|
||||
Kind of the referent.
|
||||
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
|
||||
type: string
|
||||
name:
|
||||
description: |-
|
||||
Name of the referent.
|
||||
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
|
||||
type: string
|
||||
namespace:
|
||||
description: |-
|
||||
Namespace of the referent.
|
||||
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
|
||||
type: string
|
||||
resourceVersion:
|
||||
description: |-
|
||||
Specific resourceVersion to which this reference is made, if any.
|
||||
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
|
||||
type: string
|
||||
uid:
|
||||
description: |-
|
||||
UID of the referent.
|
||||
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
|
||||
type: string
|
||||
type: object
|
||||
x-kubernetes-map-type: atomic
|
||||
type: object
|
||||
status:
|
||||
description: OpenstackCredsStatus defines the observed state of OpenstackCreds
|
||||
properties:
|
||||
openstack:
|
||||
description: Openstack is the Openstack configuration for the openstackcreds
|
||||
properties:
|
||||
networks:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
volumeTypes:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
type: object
|
||||
openstackValidationMessage:
|
||||
type: string
|
||||
noderole:
|
||||
openstackValidationStatus:
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
---
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.17.1
|
||||
name: storagemappings.vjailbreak.k8s.pf9.io
|
||||
spec:
|
||||
group: vjailbreak.k8s.pf9.io
|
||||
names:
|
||||
kind: StorageMapping
|
||||
listKind: StorageMappingList
|
||||
plural: storagemappings
|
||||
singular: storagemapping
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .status.storageMappingValidationStatus
|
||||
name: Status
|
||||
type: string
|
||||
name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: StorageMapping is the Schema for the storagemappings API
|
||||
properties:
|
||||
apiVersion:
|
||||
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
|
||||
type: string
|
||||
kind:
|
||||
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
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: StorageMappingSpec defines the desired state of StorageMapping
|
||||
properties:
|
||||
storages:
|
||||
description: Storages is a list of storage mappings
|
||||
items:
|
||||
properties:
|
||||
source:
|
||||
type: string
|
||||
target:
|
||||
type: string
|
||||
required:
|
||||
- source
|
||||
- target
|
||||
type: object
|
||||
type: array
|
||||
required:
|
||||
- storages
|
||||
type: object
|
||||
status:
|
||||
description: StorageMappingStatus defines the observed state of StorageMapping
|
||||
properties:
|
||||
storageMappingValidationMessage:
|
||||
type: string
|
||||
storageMappingValidationStatus:
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
---
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.17.1
|
||||
name: vjailbreaknodes.vjailbreak.k8s.pf9.io
|
||||
spec:
|
||||
group: vjailbreak.k8s.pf9.io
|
||||
names:
|
||||
kind: VjailbreakNode
|
||||
listKind: VjailbreakNodeList
|
||||
plural: vjailbreaknodes
|
||||
singular: vjailbreaknode
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .status.phase
|
||||
name: Phase
|
||||
type: string
|
||||
- jsonPath: .status.vmIP
|
||||
name: VMIP
|
||||
type: string
|
||||
name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: VjailbreakNode is the Schema for the vjailbreaknodes API
|
||||
properties:
|
||||
apiVersion:
|
||||
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
|
||||
type: string
|
||||
kind:
|
||||
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
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: Spec defines the desired state of VjailbreakNode
|
||||
properties:
|
||||
nodeRole:
|
||||
description: NodeRole is the role assigned to the node
|
||||
type: string
|
||||
openstackcreds:
|
||||
openstackCreds:
|
||||
description: OpenstackCreds is the credentials for Openstack Environment
|
||||
properties:
|
||||
apiVersion:
|
||||
@@ -752,34 +743,38 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
x-kubernetes-map-type: atomic
|
||||
openstackflavorid:
|
||||
openstackFlavorID:
|
||||
description: OpenstackFlavorID is the flavor of the VM
|
||||
type: string
|
||||
openstackImageID:
|
||||
description: OpenstackImageID is the image of the VM
|
||||
type: string
|
||||
required:
|
||||
- noderole
|
||||
- openstackcreds
|
||||
- openstackflavorid
|
||||
- nodeRole
|
||||
- openstackCreds
|
||||
- openstackFlavorID
|
||||
- openstackImageID
|
||||
type: object
|
||||
status:
|
||||
description: Status defines the observed state of VjailbreakNode
|
||||
properties:
|
||||
activemigrations:
|
||||
activeMigrations:
|
||||
description: ActiveMigrations is the list of active migrations happening
|
||||
on the node
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
openstackuuid:
|
||||
openstackUUID:
|
||||
description: OpenstackUUID is the UUID of the VM in OpenStack
|
||||
type: string
|
||||
phase:
|
||||
description: Phase is the current phase of the node
|
||||
type: string
|
||||
vmip:
|
||||
vmIP:
|
||||
description: VMIP is the IP address of the VM
|
||||
type: string
|
||||
required:
|
||||
- vmip
|
||||
- vmIP
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
@@ -802,7 +797,11 @@ spec:
|
||||
singular: vmwarecreds
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
- additionalPrinterColumns:
|
||||
- jsonPath: .status.vmwareValidationStatus
|
||||
name: Status
|
||||
type: string
|
||||
name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: VMwareCreds is the Schema for the vmwarecreds API
|
||||
@@ -827,10 +826,11 @@ spec:
|
||||
spec:
|
||||
description: VMwareCredsSpec defines the desired state of VMwareCreds
|
||||
properties:
|
||||
datacenter:
|
||||
type: string
|
||||
secretRef:
|
||||
description: |-
|
||||
INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
|
||||
Important: Run "make" to regenerate code after modifying this file
|
||||
description: ObjectReference contains enough information to let you
|
||||
inspect or modify the referred object.
|
||||
properties:
|
||||
apiVersion:
|
||||
description: API version of the referent.
|
||||
@@ -872,6 +872,8 @@ spec:
|
||||
type: string
|
||||
type: object
|
||||
x-kubernetes-map-type: atomic
|
||||
required:
|
||||
- datacenter
|
||||
type: object
|
||||
status:
|
||||
description: VMwareCredsStatus defines the observed state of VMwareCreds
|
||||
@@ -879,9 +881,6 @@ spec:
|
||||
vmwareValidationMessage:
|
||||
type: string
|
||||
vmwareValidationStatus:
|
||||
description: |-
|
||||
INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
|
||||
Important: Run "make" to regenerate code after modifying this file
|
||||
type: string
|
||||
type: object
|
||||
type: object
|
||||
@@ -890,6 +889,100 @@ spec:
|
||||
subresources:
|
||||
status: {}
|
||||
---
|
||||
apiVersion: apiextensions.k8s.io/v1
|
||||
kind: CustomResourceDefinition
|
||||
metadata:
|
||||
annotations:
|
||||
controller-gen.kubebuilder.io/version: v0.17.1
|
||||
name: vmwaremachines.vjailbreak.k8s.pf9.io
|
||||
spec:
|
||||
group: vjailbreak.k8s.pf9.io
|
||||
names:
|
||||
kind: VMwareMachine
|
||||
listKind: VMwareMachineList
|
||||
plural: vmwaremachines
|
||||
singular: vmwaremachine
|
||||
scope: Namespaced
|
||||
versions:
|
||||
- name: v1alpha1
|
||||
schema:
|
||||
openAPIV3Schema:
|
||||
description: VMwareMachine is the Schema for the vmwaremachines API
|
||||
properties:
|
||||
apiVersion:
|
||||
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
|
||||
type: string
|
||||
kind:
|
||||
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
|
||||
type: string
|
||||
metadata:
|
||||
type: object
|
||||
spec:
|
||||
description: VMwareMachineSpec defines the desired state of VMwareMachine
|
||||
properties:
|
||||
targetFlavorId:
|
||||
description: TargetFlavorId is the flavor to be used to create the
|
||||
target VM on openstack
|
||||
type: string
|
||||
vms:
|
||||
description: VMInfo is the info of the VMs in the VMwareMachine
|
||||
properties:
|
||||
cpu:
|
||||
type: integer
|
||||
datastores:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
disks:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
ipAddress:
|
||||
type: string
|
||||
memory:
|
||||
type: integer
|
||||
name:
|
||||
type: string
|
||||
networks:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
osType:
|
||||
type: string
|
||||
vmState:
|
||||
type: string
|
||||
required:
|
||||
- name
|
||||
type: object
|
||||
type: object
|
||||
status:
|
||||
description: VMwareMachineStatus defines the observed state of VMwareMachine
|
||||
properties:
|
||||
migrated:
|
||||
default: false
|
||||
description: Migrated flag to indicate if the VMs have been migrated
|
||||
type: boolean
|
||||
powerState:
|
||||
description: PowerState is the state of the VMs in the VMware
|
||||
type: string
|
||||
required:
|
||||
- migrated
|
||||
type: object
|
||||
type: object
|
||||
served: true
|
||||
storage: true
|
||||
subresources:
|
||||
status: {}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
@@ -984,6 +1077,18 @@ rules:
|
||||
- get
|
||||
- patch
|
||||
- update
|
||||
- apiGroups:
|
||||
- batch
|
||||
resources:
|
||||
- jobs
|
||||
verbs:
|
||||
- create
|
||||
- delete
|
||||
- get
|
||||
- list
|
||||
- patch
|
||||
- update
|
||||
- watch
|
||||
- apiGroups:
|
||||
- vjailbreak.k8s.pf9.io
|
||||
resources:
|
||||
@@ -995,6 +1100,7 @@ rules:
|
||||
- storagemappings
|
||||
- vjailbreaknodes
|
||||
- vmwarecreds
|
||||
- vmwaremachines
|
||||
verbs:
|
||||
- create
|
||||
- delete
|
||||
@@ -1026,6 +1132,7 @@ rules:
|
||||
- storagemappings/status
|
||||
- vjailbreaknodes/status
|
||||
- vmwarecreds/status
|
||||
- vmwaremachines/status
|
||||
verbs:
|
||||
- get
|
||||
- patch
|
||||
@@ -1432,6 +1539,56 @@ rules:
|
||||
- get
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
app.kubernetes.io/name: migration
|
||||
name: migration-vmwaremachine-editor-role
|
||||
rules:
|
||||
- apiGroups:
|
||||
- vjailbreak.k8s.pf9.io
|
||||
resources:
|
||||
- vmwaremachines
|
||||
verbs:
|
||||
- create
|
||||
- delete
|
||||
- get
|
||||
- list
|
||||
- patch
|
||||
- update
|
||||
- watch
|
||||
- apiGroups:
|
||||
- vjailbreak.k8s.pf9.io
|
||||
resources:
|
||||
- vmwaremachines/status
|
||||
verbs:
|
||||
- get
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
app.kubernetes.io/name: migration
|
||||
name: migration-vmwaremachine-viewer-role
|
||||
rules:
|
||||
- apiGroups:
|
||||
- vjailbreak.k8s.pf9.io
|
||||
resources:
|
||||
- vmwaremachines
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
- apiGroups:
|
||||
- vjailbreak.k8s.pf9.io
|
||||
resources:
|
||||
- vmwaremachines/status
|
||||
verbs:
|
||||
- get
|
||||
---
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
labels:
|
||||
@@ -1498,7 +1655,7 @@ spec:
|
||||
- --health-probe-bind-address=:8081
|
||||
command:
|
||||
- /manager
|
||||
image: quay.io/platform9/vjailbreak-controller:v0.1.5
|
||||
image: quay.io/platform9/vjailbreak-controller:v0.1.8
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: sync-daemon
|
||||
namespace: kube-system
|
||||
labels:
|
||||
app: sync-daemon
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: sync-daemon
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: sync-daemon
|
||||
spec:
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- name: fix-perms
|
||||
image: alpine:latest
|
||||
securityContext:
|
||||
privileged: true
|
||||
runAsUser: 0
|
||||
command: ["/bin/sh", "-c"]
|
||||
args:
|
||||
- |
|
||||
echo "Fixing permissions on /home/ubuntu/vmware-vix-disklib-distrib..."
|
||||
chown -R 1000:1000 /home/ubuntu/vmware-vix-disklib-distrib
|
||||
chmod 755 /home/ubuntu/vmware-vix-disklib-distrib
|
||||
volumeMounts:
|
||||
- name: vmwarelib
|
||||
mountPath: /home/ubuntu/vmware-vix-disklib-distrib
|
||||
containers:
|
||||
- name: sync-container
|
||||
image: alpine:latest
|
||||
securityContext:
|
||||
privileged: true
|
||||
runAsUser: 0
|
||||
runAsGroup: 0
|
||||
ports:
|
||||
- containerPort: 873
|
||||
volumeMounts:
|
||||
- name: pf9-env
|
||||
mountPath: /etc/pf9
|
||||
readOnly: true
|
||||
- name: vmwarelib
|
||||
mountPath: /home/ubuntu/vmware-vix-disklib-distrib
|
||||
command: ["/bin/sh", "-c"]
|
||||
args:
|
||||
- |
|
||||
apk add --no-cache rsync coreutils grep
|
||||
IS_MASTER=$(grep -E '^export IS_MASTER=' /etc/pf9/k3s.env | cut -d'=' -f2)
|
||||
MASTER_IP=$(grep -E '^export MASTER_IP=' /etc/pf9/k3s.env | cut -d'=' -f2)
|
||||
if [ "$IS_MASTER" = "true" ]; then
|
||||
echo "Master node detected. IP: $MASTER_IP"
|
||||
echo "Starting rsync daemon..."
|
||||
rsync --daemon --config=/etc/pf9/rsyncd.conf --no-detach
|
||||
if ps aux | grep rsync | grep -v grep; then
|
||||
echo "rsync daemon is running."
|
||||
else
|
||||
echo "Failed to start rsync daemon."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "Worker node detected. Syncing from Master..."
|
||||
while true; do
|
||||
mkdir -p /home/ubuntu/vmware-vix-disklib-distrib/
|
||||
echo "Syncing from rsync://${MASTER_IP}"
|
||||
rsync -avz rsync://${MASTER_IP}/vmwarelib/ /home/ubuntu/vmware-vix-disklib-distrib/
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Sync completed successfully."
|
||||
else
|
||||
echo "Sync failed. Retrying in 60 seconds..."
|
||||
fi
|
||||
sleep 20
|
||||
done
|
||||
fi
|
||||
volumes:
|
||||
- name: pf9-env
|
||||
hostPath:
|
||||
path: /etc/pf9
|
||||
type: Directory
|
||||
- name: vmwarelib
|
||||
hostPath:
|
||||
path: /home/ubuntu/vmware-vix-disklib-distrib
|
||||
type: DirectoryOrCreate
|
||||
- name: env
|
||||
hostPath:
|
||||
type: Directory
|
||||
path: /etc/pf9/env
|
||||
@@ -0,0 +1,4 @@
|
||||
# This file is used to set environment variables to be injected into v2v-helper
|
||||
# User can populate this file via cloud-init
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# Rsync Daemon Configuration
|
||||
uid = root
|
||||
gid = root
|
||||
use chroot = no
|
||||
read only = no
|
||||
max connections = 5
|
||||
log file = /var/log/rsync.log
|
||||
timeout = 300
|
||||
|
||||
[vmwarelib]
|
||||
path = /home/ubuntu/vmware-vix-disklib-distrib
|
||||
comment = VMware VIX Disk Library
|
||||
read only = no
|
||||
write only = no
|
||||
list = yes
|
||||
@@ -0,0 +1,17 @@
|
||||
# v0.1.10
|
||||
|
||||
- **Tag:** `v0.1.10`
|
||||
- **Published:** 2025-05-07T17:34:01Z
|
||||
- **Source release:** https://github.com/platform9/vjailbreak/releases/tag/v0.1.10
|
||||
|
||||
## Release Notes
|
||||
|
||||
## What's Changed
|
||||
* added os icons in vms list table in Migrations by @patil-pratik-87 in https://github.com/platform9/vjailbreak/pull/431
|
||||
* Backend change to block selection of vms without appropriate flavors in openstack by @spai-p9 in https://github.com/platform9/vjailbreak/pull/424
|
||||
* Backend:Retrieve correct network names from backing Network references instead of device summary by @spai-p9 in https://github.com/platform9/vjailbreak/pull/432
|
||||
* Backend: Improve the error handling and event reporting on these failures. by @spai-p9 in https://github.com/platform9/vjailbreak/pull/411
|
||||
* Backend: Preserve the job logs. by @spai-p9 in https://github.com/platform9/vjailbreak/pull/435
|
||||
|
||||
|
||||
**Full Changelog**: https://github.com/platform9/vjailbreak/compare/v0.1.9...v0.1.10
|
||||
@@ -0,0 +1,40 @@
|
||||
# v0.1.7
|
||||
|
||||
- **Tag:** `v0.1.7`
|
||||
- **Published:** 2025-03-26T09:01:10Z
|
||||
- **Source release:** https://github.com/platform9/vjailbreak/releases/tag/v0.1.7
|
||||
|
||||
## Release Notes
|
||||
|
||||
## What's Changed
|
||||
* Update video link to latest by @anmolsachan in https://github.com/platform9/vjailbreak/pull/290
|
||||
* fix readme for openstackcreds and vmware creds by @OmkarDeshpande7 in https://github.com/platform9/vjailbreak/pull/288
|
||||
* ( release ) Change base image to ubuntu base image, reduced image size. by @spai-p9 in https://github.com/platform9/vjailbreak/pull/286
|
||||
* Ignore Failed phase on retry by @OmkarDeshpande7 in https://github.com/platform9/vjailbreak/pull/289
|
||||
* api cosmetic fixes by @OmkarDeshpande7 in https://github.com/platform9/vjailbreak/pull/274
|
||||
* Support rollback for failed VM by @OmkarDeshpande7 in https://github.com/platform9/vjailbreak/pull/300
|
||||
* check VM status before marking migration as complete by @OmkarDeshpande7 in https://github.com/platform9/vjailbreak/pull/295
|
||||
* UI: Api cosmetic changes UI by @patil-pratik-87 in https://github.com/platform9/vjailbreak/pull/297
|
||||
* UI: Fix active migration by @spai-p9 in https://github.com/platform9/vjailbreak/pull/304
|
||||
* fix mocks, unit tests by @OmkarDeshpande7 in https://github.com/platform9/vjailbreak/pull/308
|
||||
* block openstackcreds deletion for master creds by @OmkarDeshpande7 in https://github.com/platform9/vjailbreak/pull/303
|
||||
* UI: Implement a new credential addition workflow, and remove the creds addition from MigrationForm and Scaleup drawer by @patil-pratik-87 in https://github.com/platform9/vjailbreak/pull/298
|
||||
* Easy debug config by @OmkarDeshpande7 in https://github.com/platform9/vjailbreak/pull/287
|
||||
* resolved lint issues by @patil-pratik-87 in https://github.com/platform9/vjailbreak/pull/311
|
||||
* 270 identically named source destination credentials arent displayed properly by @patil-pratik-87 in https://github.com/platform9/vjailbreak/pull/312
|
||||
* Actions enhancement: Build and push on every PR raised to main or release branch. by @spai-p9 in https://github.com/platform9/vjailbreak/pull/313
|
||||
* Heavily re-organized docs pages by @damian-pf9 in https://github.com/platform9/vjailbreak/pull/309
|
||||
* Update the docs github page by @sharma-tapas in https://github.com/platform9/vjailbreak/pull/314
|
||||
* Sync VDDK across agents without any manual intervention by @spai-p9 in https://github.com/platform9/vjailbreak/pull/296
|
||||
* Fix versions and github actions by @sharma-tapas in https://github.com/platform9/vjailbreak/pull/316
|
||||
* Fixed regression while updating cosmetic api changes, virtualmac… by @patil-pratik-87 in https://github.com/platform9/vjailbreak/pull/317
|
||||
* 0.1.7 release fixes by @OmkarDeshpande7 in https://github.com/platform9/vjailbreak/pull/318
|
||||
* Build: Fix CGO Linking for libnbd Library in Build Process (release) by @spai-p9 in https://github.com/platform9/vjailbreak/pull/315
|
||||
* fix migration status with random pod ref name by @OmkarDeshpande7 in https://github.com/platform9/vjailbreak/pull/320
|
||||
* UI: Disable scale down of a node when active migration is going on by @spai-p9 in https://github.com/platform9/vjailbreak/pull/319
|
||||
* release: Fix github action when PR raised from release branch by @sharma-tapas in https://github.com/platform9/vjailbreak/pull/323
|
||||
* update astro action to use v4 by @sharma-tapas in https://github.com/platform9/vjailbreak/pull/324
|
||||
* Add optional dependency by @spai-p9 in https://github.com/platform9/vjailbreak/pull/325
|
||||
|
||||
|
||||
**Full Changelog**: https://github.com/platform9/vjailbreak/compare/v0.1.6...v0.1.7
|
||||
@@ -0,0 +1,20 @@
|
||||
# v0.1.8
|
||||
|
||||
- **Tag:** `v0.1.8`
|
||||
- **Published:** 2025-04-10T06:48:23Z
|
||||
- **Source release:** https://github.com/platform9/vjailbreak/releases/tag/v0.1.8
|
||||
|
||||
## Release Notes
|
||||
|
||||
## What's Changed
|
||||
* Release v0.1.7 by @sharma-tapas in https://github.com/platform9/vjailbreak/pull/322
|
||||
* Update release notes by @sharma-tapas in https://github.com/platform9/vjailbreak/pull/326
|
||||
* Updating the video by @roopakparikh in https://github.com/platform9/vjailbreak/pull/342
|
||||
* Update the readme to point to the 'Getting Started' by @roopakparikh in https://github.com/platform9/vjailbreak/pull/349
|
||||
* release v0.1.8 by @spai-p9 in https://github.com/platform9/vjailbreak/pull/354
|
||||
* Update release notes for v0.1.8 by @github-actions in https://github.com/platform9/vjailbreak/pull/358
|
||||
|
||||
## New Contributors
|
||||
* @roopakparikh made their first contribution in https://github.com/platform9/vjailbreak/pull/342
|
||||
|
||||
**Full Changelog**: https://github.com/platform9/vjailbreak/compare/v0.1.7...v0.1.8
|
||||
@@ -0,0 +1,24 @@
|
||||
# v0.1.9
|
||||
|
||||
- **Tag:** `v0.1.9`
|
||||
- **Published:** 2025-04-25T06:14:53Z
|
||||
- **Source release:** https://github.com/platform9/vjailbreak/releases/tag/v0.1.9
|
||||
|
||||
## Release Notes
|
||||
|
||||
## What's Changed
|
||||
* Backend: Add check if datacenter exists by @spai-p9 in https://github.com/platform9/vjailbreak/pull/368
|
||||
* Proxy env injection via configmap by @spai-p9 in https://github.com/platform9/vjailbreak/pull/364
|
||||
* removed creds from logs and Made changes to match OS_INSECURE value t… by @sarika-p9 in https://github.com/platform9/vjailbreak/pull/379
|
||||
* vddk files check before migration ( release ) by @sarika-p9 in https://github.com/platform9/vjailbreak/pull/375
|
||||
* Damian doc updates by @damian-pf9 in https://github.com/platform9/vjailbreak/pull/377
|
||||
* Doc: Inject any environment variables required by user into v2v-helper pod. by @spai-p9 in https://github.com/platform9/vjailbreak/pull/381
|
||||
* Backend: Change ownership of /home/ubuntu/vmware-vix-disklib-distrib to ubuntu:ubuntu via init container. by @spai-p9 in https://github.com/platform9/vjailbreak/pull/378
|
||||
* ensure correct permissions on shared vmwarelib directory for rsync ac… by @spai-p9 in https://github.com/platform9/vjailbreak/pull/383
|
||||
* Scaling doc update by @damian-pf9 in https://github.com/platform9/vjailbreak/pull/391
|
||||
* Backend: Remove logs in vmwaremachines by @spai-p9 in https://github.com/platform9/vjailbreak/pull/390
|
||||
|
||||
## New Contributors
|
||||
* @sarika-p9 made their first contribution in https://github.com/platform9/vjailbreak/pull/379
|
||||
|
||||
**Full Changelog**: https://github.com/platform9/vjailbreak/compare/v0.1.8...v0.1.9
|
||||
Reference in New Issue
Block a user