-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor LabTemplate API to support new scenarios #347
Conversation
d0016b1
to
e7671d6
Compare
/rebase |
e7671d6
to
ff4826a
Compare
b0fe5f0
to
9a40238
Compare
1d9fee9
to
9179868
Compare
/deploy-staging |
Your staging environment has been correctly deployed/updated!
|
7d1e4e0
to
e93ea4a
Compare
/deploy-staging |
/undeploy-staging |
Your staging environment has been correctly deployed/updated!
|
Your staging environment has been correctly teared-down! |
/deploy-staging |
Your staging environment has been correctly deployed/updated!
|
4957c37
to
a2db207
Compare
c584054
to
b5b39fc
Compare
/rebase |
b5b39fc
to
c5ce544
Compare
The generated files in the Please, ensure you are using the correct version of
Here it is an excerpt of the diff:diff --git a/operators/deploy/crds/crownlabs.polito.it_imagelists.yaml b/operators/deploy/crds/crownlabs.polito.it_imagelists.yaml
index 33ca57b..f06d78f 100644
--- a/operators/deploy/crds/crownlabs.polito.it_imagelists.yaml
+++ b/operators/deploy/crds/crownlabs.polito.it_imagelists.yaml
@@ -26,10 +26,12 @@ spec:
description: ImageList is the Schema for the ImageList API
properties:
apiVersion:
- description: APIVersion defines the versioned schema of this representation of an object.
+ description: APIVersion defines the versioned schema of this representation
+ of an object.
type: string
kind:
- description: Kind is a string value representing the REST resource this object represents.
+ description: Kind is a string value representing the REST resource this
+ object represents.
type: string
metadata:
type: object
diff --git a/operators/deploy/crds/crownlabs.polito.it_instances.yaml b/operators/deploy/crds/crownlabs.polito.it_instances.yaml
index 4416635..d61d977 100644
--- a/operators/deploy/crds/crownlabs.polito.it_instances.yaml
+++ b/operators/deploy/crds/crownlabs.polito.it_instances.yaml
@@ -24,10 +24,12 @@ spec:
description: Instance is the Schema for the labinstances API
properties:
apiVersion:
- description: APIVersion defines the versioned schema of this representation of an object.
+ description: APIVersion defines the versioned schema of this representation
+ of an object.
type: string
kind:
- description: Kind is a string value representing the REST resource this object represents.
+ description: Kind is a string value representing the REST resource this
+ object represents.
type: string
metadata:
type: object
diff --git a/operators/deploy/crds/crownlabs.polito.it_labinstances.yaml b/operators/deploy/crds/crownlabs.polito.it_labinstances.yaml
index a845e96..9e8d32e 100644
--- a/operators/deploy/crds/crownlabs.polito.it_labinstances.yaml
+++ b/operators/deploy/crds/crownlabs.polito.it_labinstances.yaml
@@ -24,10 +24,12 @@ spec:
description: LabInstance is the Schema for the labinstances API
properties:
apiVersion:
- description: APIVersion defines the versioned schema of this representation of an object.
+ description: APIVersion defines the versioned schema of this representation
+ of an object.
type: string
kind:
- description: Kind is a string value representing the REST resource this object represents.
+ description: Kind is a string value representing the REST resource this
+ object represents.
type: string
metadata:
type: object
diff --git a/operators/deploy/crds/crownlabs.polito.it_labtemplates.yaml b/operators/deploy/crds/crownlabs.polito.it_labtemplates.yaml
index e47539a..a2d51f8 100644
--- a/operators/deploy/crds/crownlabs.polito.it_labtemplates.yaml
+++ b/operators/deploy/crds/crownlabs.polito.it_labtemplates.yaml
@@ -24,10 +24,12 @@ spec:
description: LabTemplate is the Schema for the labtemplates API
properties:
apiVersion:
- description: APIVersion defines the versioned schema of this representation of an object.
+ description: APIVersion defines the versioned schema of this representation
+ of an object.
type: string
kind:
- description: Kind is a string value representing the REST resource this object represents.
+ description: Kind is a string value representing the REST resource this
+ object represents.
type: string
metadata:
type: object
@@ -47,46 +49,67 @@ spec:
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
vm:
- description: VirtualMachineInstance is *the* VirtualMachineInstance Definition.
+ description: VirtualMachineInstance is *the* VirtualMachineInstance
+ Definition.
properties:
apiVersion:
- description: APIVersion defines the versioned schema of this representation of an object.
+ description: APIVersion defines the versioned schema of this representation
+ of an object.
type: string
kind:
- description: Kind is a string value representing the REST resource this object represents.
+ description: Kind is a string value representing the REST resource
+ this object represents.
type: string
metadata:
type: object
spec:
- description: VirtualMachineInstance Spec contains the VirtualMachineInstance specification.
+ description: VirtualMachineInstance Spec contains the VirtualMachineInstance
+ specification. |
/rebase |
c5ce544
to
2c8770a
Compare
The generated files in the Please, ensure you are using the correct version of
Here it is an excerpt of the diff:diff --git a/operators/deploy/crds/crownlabs.polito.it_imagelists.yaml b/operators/deploy/crds/crownlabs.polito.it_imagelists.yaml
index 33ca57b..f06d78f 100644
--- a/operators/deploy/crds/crownlabs.polito.it_imagelists.yaml
+++ b/operators/deploy/crds/crownlabs.polito.it_imagelists.yaml
@@ -26,10 +26,12 @@ spec:
description: ImageList is the Schema for the ImageList API
properties:
apiVersion:
- description: APIVersion defines the versioned schema of this representation of an object.
+ description: APIVersion defines the versioned schema of this representation
+ of an object.
type: string
kind:
- description: Kind is a string value representing the REST resource this object represents.
+ description: Kind is a string value representing the REST resource this
+ object represents.
type: string
metadata:
type: object
diff --git a/operators/deploy/crds/crownlabs.polito.it_instances.yaml b/operators/deploy/crds/crownlabs.polito.it_instances.yaml
index 4416635..d61d977 100644
--- a/operators/deploy/crds/crownlabs.polito.it_instances.yaml
+++ b/operators/deploy/crds/crownlabs.polito.it_instances.yaml
@@ -24,10 +24,12 @@ spec:
description: Instance is the Schema for the labinstances API
properties:
apiVersion:
- description: APIVersion defines the versioned schema of this representation of an object.
+ description: APIVersion defines the versioned schema of this representation
+ of an object.
type: string
kind:
- description: Kind is a string value representing the REST resource this object represents.
+ description: Kind is a string value representing the REST resource this
+ object represents.
type: string
metadata:
type: object
diff --git a/operators/deploy/crds/crownlabs.polito.it_labinstances.yaml b/operators/deploy/crds/crownlabs.polito.it_labinstances.yaml
index a845e96..9e8d32e 100644
--- a/operators/deploy/crds/crownlabs.polito.it_labinstances.yaml
+++ b/operators/deploy/crds/crownlabs.polito.it_labinstances.yaml
@@ -24,10 +24,12 @@ spec:
description: LabInstance is the Schema for the labinstances API
properties:
apiVersion:
- description: APIVersion defines the versioned schema of this representation of an object.
+ description: APIVersion defines the versioned schema of this representation
+ of an object.
type: string
kind:
- description: Kind is a string value representing the REST resource this object represents.
+ description: Kind is a string value representing the REST resource this
+ object represents.
type: string
metadata:
type: object
diff --git a/operators/deploy/crds/crownlabs.polito.it_labtemplates.yaml b/operators/deploy/crds/crownlabs.polito.it_labtemplates.yaml
index e47539a..a2d51f8 100644
--- a/operators/deploy/crds/crownlabs.polito.it_labtemplates.yaml
+++ b/operators/deploy/crds/crownlabs.polito.it_labtemplates.yaml
@@ -24,10 +24,12 @@ spec:
description: LabTemplate is the Schema for the labtemplates API
properties:
apiVersion:
- description: APIVersion defines the versioned schema of this representation of an object.
+ description: APIVersion defines the versioned schema of this representation
+ of an object.
type: string
kind:
- description: Kind is a string value representing the REST resource this object represents.
+ description: Kind is a string value representing the REST resource this
+ object represents.
type: string
metadata:
type: object
@@ -47,46 +49,67 @@ spec:
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
vm:
- description: VirtualMachineInstance is *the* VirtualMachineInstance Definition.
+ description: VirtualMachineInstance is *the* VirtualMachineInstance
+ Definition.
properties:
apiVersion:
- description: APIVersion defines the versioned schema of this representation of an object.
+ description: APIVersion defines the versioned schema of this representation
+ of an object.
type: string
kind:
- description: Kind is a string value representing the REST resource this object represents.
+ description: Kind is a string value representing the REST resource
+ this object represents.
type: string
metadata:
type: object
spec:
- description: VirtualMachineInstance Spec contains the VirtualMachineInstance specification.
+ description: VirtualMachineInstance Spec contains the VirtualMachineInstance
+ specification. |
2c8770a
to
7881f89
Compare
The generated files in the Please, ensure you are using the correct version of
Here it is an excerpt of the diff:diff --git a/operators/deploy/crds/crownlabs.polito.it_imagelists.yaml b/operators/deploy/crds/crownlabs.polito.it_imagelists.yaml
index 9a04056..a92e8fe 100644
--- a/operators/deploy/crds/crownlabs.polito.it_imagelists.yaml
+++ b/operators/deploy/crds/crownlabs.polito.it_imagelists.yaml
@@ -26,10 +26,14 @@ spec:
description: ImageList is the Schema for the ImageList 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'
+ 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'
+ 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
diff --git a/operators/deploy/crds/crownlabs.polito.it_instances.yaml b/operators/deploy/crds/crownlabs.polito.it_instances.yaml
index 6d2a656..f92321f 100644
--- a/operators/deploy/crds/crownlabs.polito.it_instances.yaml
+++ b/operators/deploy/crds/crownlabs.polito.it_instances.yaml
@@ -24,10 +24,14 @@ spec:
description: Instance is the Schema for the labinstances 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'
+ 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'
+ 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
diff --git a/operators/deploy/crds/crownlabs.polito.it_labinstances.yaml b/operators/deploy/crds/crownlabs.polito.it_labinstances.yaml
index 282786d..057d5c2 100644
--- a/operators/deploy/crds/crownlabs.polito.it_labinstances.yaml
+++ b/operators/deploy/crds/crownlabs.polito.it_labinstances.yaml
@@ -24,10 +24,14 @@ spec:
description: LabInstance is the Schema for the labinstances 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'
+ 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'
+ 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
diff --git a/operators/deploy/crds/crownlabs.polito.it_labtemplates.yaml b/operators/deploy/crds/crownlabs.polito.it_labtemplates.yaml
index 2d1c63f..fc8d5eb 100644
--- a/operators/deploy/crds/crownlabs.polito.it_labtemplates.yaml
+++ b/operators/deploy/crds/crownlabs.polito.it_labtemplates.yaml
@@ -24,10 +24,14 @@ spec:
description: LabTemplate is the Schema for the labtemplates 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'
+ 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'
+ 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
@@ -47,46 +51,89 @@ spec:
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
vm:
- description: VirtualMachineInstance is *the* VirtualMachineInstance Definition. It represents a virtual machine in the runtime environment of kubernetes.
+ description: VirtualMachineInstance is *the* VirtualMachineInstance
+ Definition. It represents a virtual machine in the runtime environment
+ of kubernetes.
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'
+ 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 |
7881f89
to
7b7fc31
Compare
Co-Authored-By: Marco Iorio <giorio94@gmail.com>
7b7fc31
to
a359763
Compare
/merge |
Your staging environment has been correctly teared-down! |
Description
This PR refactors the LabTemplate API to enable possible support to:
To do so, we are required to change the APIs:
How Has This Been Tested?