@kubevirt-ui-ext/kubevirt-api 2.1.1 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -480,6 +480,16 @@ interface V1alpha1VirtualMachineTemplateRequestSpecVirtualMachineRef {
480
480
  * @export
481
481
  */
482
482
  interface V1alpha1VirtualMachineTemplateRequestSpec {
483
+ /** templateLabels
484
+ * TemplateLabels holds optional labels to apply to the created VirtualMachineTemplate.
485
+ Labels with the "template.kubevirt.io/" prefix are reserved for system use and are not allowed.
486
+ *
487
+ * @required {false}
488
+ * @originalType {V1alpha1VirtualMachineTemplateRequestSpecTemplateLabels}
489
+ */
490
+ templateLabels?: {
491
+ [key: string]: string;
492
+ };
483
493
  /** templateName
484
494
  * TemplateName holds the optional name for the new VirtualMachineTemplate.
485
495
  If not specified the template will have the same name as the VirtualMachineTemplateRequest.
@@ -487,6 +497,20 @@ interface V1alpha1VirtualMachineTemplateRequestSpec {
487
497
  * @required {false}
488
498
  */
489
499
  templateName?: string;
500
+ /** ttlSecondsAfterFinished
501
+ * TTLSecondsAfterFinished limits the lifetime of a VirtualMachineTemplateRequest
502
+ that has finished execution. Failed VirtualMachineTemplateRequests are never
503
+ cleaned up by the TTL controller, so they remain available for debugging. If
504
+ this field is unset, the VirtualMachineTemplateRequest is not automatically
505
+ deleted and must be removed manually or through the owner reference cleanup
506
+ described below. If this field is set to zero, the VirtualMachineTemplateRequest
507
+ becomes eligible to be deleted immediately after it finishes.
508
+ *
509
+ * @required {false}
510
+ * @format {int32}
511
+ * @originalType {integer}
512
+ */
513
+ ttlSecondsAfterFinished?: number;
490
514
  /** virtualMachineRef
491
515
  * VirtualMachineReference holds a reference to a VirtualMachine.kubevirt.io
492
516
  *
@@ -681,4 +705,551 @@ interface V1alpha1VirtualMachineTemplateRequest {
681
705
  status?: V1alpha1VirtualMachineTemplateRequestStatus;
682
706
  }
683
707
 
684
- export type { IoK8sApimachineryPkgApisMetaV1ObjectMeta, IoK8sApimachineryPkgApisMetaV1OwnerReference, V1alpha1VirtualMachineTemplate, V1alpha1VirtualMachineTemplateRequest, V1alpha1VirtualMachineTemplateRequestSpec, V1alpha1VirtualMachineTemplateRequestSpecVirtualMachineRef, V1alpha1VirtualMachineTemplateRequestStatus, V1alpha1VirtualMachineTemplateRequestStatusConditions, V1alpha1VirtualMachineTemplateRequestStatusTemplateRef, V1alpha1VirtualMachineTemplateSpec, V1alpha1VirtualMachineTemplateSpecParameters, V1alpha1VirtualMachineTemplateStatus, V1alpha1VirtualMachineTemplateStatusConditions };
708
+ /**
709
+ *
710
+ *
711
+ *
712
+ * The version of the OpenAPI document:
713
+ * Contact Email:
714
+ * License:
715
+ *
716
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
717
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
718
+ */
719
+ /**
720
+ * Parameter defines a name/value combination that is to be substituted during
721
+ processing of the template.
722
+ *
723
+ * @export
724
+ */
725
+ interface V1beta1VirtualMachineTemplateSpecParameters {
726
+ /** description
727
+ * Description is the description of the parameter. Optional.
728
+ *
729
+ * @required {false}
730
+ */
731
+ description?: string;
732
+ /** displayName
733
+ * DisplayName is an alternative name that can be shown in a UI
734
+ instead of the parameter's name. Optional.
735
+ *
736
+ * @required {false}
737
+ */
738
+ displayName?: string;
739
+ /** from
740
+ * From is used as input for the generator specified in Generate. Optional.
741
+ *
742
+ * @required {false}
743
+ */
744
+ from?: string;
745
+ /** generate
746
+ * Generate specifies the generator to be used to generate a Value for this
747
+ parameter. The From field can be used to provide input to this generator
748
+ If empty, no generator is being used, leaving the result Value untouched. Optional.
749
+
750
+ The only supported generator is "expression", which accepts a From
751
+ value with a regex-like syntax, which should follow the form of "[a-zA-Z0-9]{length}".
752
+ The expression defines the range and length of the resulting random characters.
753
+
754
+ The following character classes are supported in the range:
755
+
756
+ range | characters
757
+ *
758
+ * @required {false}
759
+ * @originalType {string}
760
+ */
761
+ generate?: 'expression';
762
+ /** name
763
+ * Name is the name of the parameter. It can be referenced in
764
+ the template VirtualMachine using ${PARAMETER_NAME}. Required.
765
+ *
766
+ * @required {true}
767
+ */
768
+ name: string;
769
+ /** required
770
+ * Indicates that the parameter must have a Value or valid Generate and From values.
771
+ Defaults to false. Optional.
772
+ *
773
+ * @required {false}
774
+ */
775
+ required?: boolean;
776
+ /** value
777
+ * Value holds the value of the Parameter. If specified, a generator will be
778
+ ignored. The value replaces all occurrences of the ${PARAMETER_NAME}
779
+ expression during processing of the template. Optional.
780
+ *
781
+ * @required {false}
782
+ */
783
+ value?: string;
784
+ }
785
+
786
+ /**
787
+ *
788
+ *
789
+ *
790
+ * The version of the OpenAPI document:
791
+ * Contact Email:
792
+ * License:
793
+ *
794
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
795
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
796
+ */
797
+
798
+ /**
799
+ * Spec defines the desired state of the template
800
+ *
801
+ * @export
802
+ */
803
+ interface V1beta1VirtualMachineTemplateSpec {
804
+ /** message
805
+ * Message is an optional instructional message for this template.
806
+ This field should inform the user how to utilize the newly created VirtualMachine.
807
+ *
808
+ * @required {false}
809
+ */
810
+ message?: string;
811
+ /** parameters
812
+ * Parameter defines a name/value combination that is to be substituted during
813
+ processing of the template.
814
+ *
815
+ * @required {false}
816
+ */
817
+ parameters?: V1beta1VirtualMachineTemplateSpecParameters[];
818
+ /** virtualMachine
819
+ * VirtualMachine is the template VirtualMachine to include in this template.
820
+ If a namespace value is hardcoded, it will be removed during processing of the
821
+ template. If the namespace value however contains a ${PARAMETER_REFERENCE},
822
+ the resolved value after parameter substitution will be respected and the
823
+ VirtualMachine will be created in that namespace.
824
+ *
825
+ * @required {true}
826
+ * @originalType {not defined}
827
+ */
828
+ virtualMachine: unknown | null;
829
+ }
830
+
831
+ /**
832
+ *
833
+ *
834
+ *
835
+ * The version of the OpenAPI document:
836
+ * Contact Email:
837
+ * License:
838
+ *
839
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
840
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
841
+ */
842
+ /**
843
+ * Condition contains details for one aspect of the current state of this API Resource.
844
+ *
845
+ * @export
846
+ */
847
+ interface V1beta1VirtualMachineTemplateStatusConditions {
848
+ /** lastTransitionTime
849
+ * lastTransitionTime is the last time the condition transitioned from one status to another.
850
+ This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
851
+ *
852
+ * @required {true}
853
+ * @format {date-time}
854
+ */
855
+ lastTransitionTime: string;
856
+ /** message
857
+ * message is a human readable message indicating details about the transition.
858
+ This may be an empty string.
859
+ *
860
+ * @required {true}
861
+ */
862
+ message: string;
863
+ /** observedGeneration
864
+ * observedGeneration represents the .metadata.generation that the condition was set based upon.
865
+ For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
866
+ with respect to the current state of the instance.
867
+ *
868
+ * @required {false}
869
+ * @format {int64}
870
+ * @originalType {integer}
871
+ */
872
+ observedGeneration?: number;
873
+ /** reason
874
+ * reason contains a programmatic identifier indicating the reason for the condition's last transition.
875
+ Producers of specific condition types may define expected values and meanings for this field,
876
+ and whether the values are considered a guaranteed API.
877
+ The value should be a CamelCase string.
878
+ This field may not be empty.
879
+ *
880
+ * @required {true}
881
+ */
882
+ reason: string;
883
+ /** status
884
+ * status of the condition, one of True, False, Unknown.
885
+ *
886
+ * @required {true}
887
+ * @originalType {string}
888
+ */
889
+ status: 'True' | 'False' | 'Unknown';
890
+ /** type
891
+ * type of condition in CamelCase or in foo.example.com/CamelCase.
892
+ *
893
+ * @required {true}
894
+ */
895
+ type: string;
896
+ }
897
+
898
+ /**
899
+ *
900
+ *
901
+ *
902
+ * The version of the OpenAPI document:
903
+ * Contact Email:
904
+ * License:
905
+ *
906
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
907
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
908
+ */
909
+
910
+ /**
911
+ * Status defines the observed state of the template
912
+ *
913
+ * @export
914
+ */
915
+ interface V1beta1VirtualMachineTemplateStatus {
916
+ /** conditions
917
+ * Condition contains details for one aspect of the current state of this API Resource.
918
+ *
919
+ * @required {false}
920
+ */
921
+ conditions?: V1beta1VirtualMachineTemplateStatusConditions[];
922
+ }
923
+
924
+ /**
925
+ *
926
+ *
927
+ *
928
+ * The version of the OpenAPI document:
929
+ * Contact Email:
930
+ * License:
931
+ *
932
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
933
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
934
+ */
935
+
936
+ /**
937
+ * VirtualMachineTemplate is the Schema for the virtualmachinetemplates API
938
+ *
939
+ * @export
940
+ */
941
+ interface V1beta1VirtualMachineTemplate {
942
+ /** apiVersion
943
+ * APIVersion defines the versioned schema of this representation of an object.
944
+ Servers should convert recognized schemas to the latest internal value, and
945
+ may reject unrecognized values.
946
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
947
+ *
948
+ * @required {true}
949
+ */
950
+ apiVersion: string;
951
+ /** kind
952
+ * Kind is a string value representing the REST resource this object represents.
953
+ Servers may infer this from the endpoint the client submits requests to.
954
+ Cannot be updated.
955
+ In CamelCase.
956
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
957
+ *
958
+ * @required {true}
959
+ */
960
+ kind: string;
961
+ /** metadata
962
+ *
963
+ * @required {false}
964
+ * @originalType {V1beta1VirtualMachineTemplateMetadata}
965
+ */
966
+ metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta;
967
+ /** spec
968
+ * Spec defines the desired state of the template
969
+ *
970
+ * @required {true}
971
+ */
972
+ spec: V1beta1VirtualMachineTemplateSpec;
973
+ /** status
974
+ * Status defines the observed state of the template
975
+ *
976
+ * @required {false}
977
+ */
978
+ status?: V1beta1VirtualMachineTemplateStatus;
979
+ }
980
+
981
+ /**
982
+ *
983
+ *
984
+ *
985
+ * The version of the OpenAPI document:
986
+ * Contact Email:
987
+ * License:
988
+ *
989
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
990
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
991
+ */
992
+ /**
993
+ * VirtualMachineReference holds a reference to a VirtualMachine.kubevirt.io
994
+ *
995
+ * @export
996
+ */
997
+ interface V1beta1VirtualMachineTemplateRequestSpecVirtualMachineRef {
998
+ /** name
999
+ * Name is the name of the VirtualMachine.
1000
+ *
1001
+ * @required {true}
1002
+ */
1003
+ name: string;
1004
+ /** namespace
1005
+ * Namespace is the namespace of the VirtualMachine.
1006
+ *
1007
+ * @required {true}
1008
+ */
1009
+ namespace: string;
1010
+ }
1011
+
1012
+ /**
1013
+ *
1014
+ *
1015
+ *
1016
+ * The version of the OpenAPI document:
1017
+ * Contact Email:
1018
+ * License:
1019
+ *
1020
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
1021
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
1022
+ */
1023
+
1024
+ /**
1025
+ * Spec defines the desired state of the template requests
1026
+ *
1027
+ * @export
1028
+ */
1029
+ interface V1beta1VirtualMachineTemplateRequestSpec {
1030
+ /** templateLabels
1031
+ * TemplateLabels holds optional labels to apply to the created VirtualMachineTemplate.
1032
+ Labels with the "template.kubevirt.io/" prefix are reserved for system use and are not allowed.
1033
+ *
1034
+ * @required {false}
1035
+ * @originalType {V1beta1VirtualMachineTemplateRequestSpecTemplateLabels}
1036
+ */
1037
+ templateLabels?: {
1038
+ [key: string]: string;
1039
+ };
1040
+ /** templateName
1041
+ * TemplateName holds the optional name for the new VirtualMachineTemplate.
1042
+ If not specified the template will have the same name as the VirtualMachineTemplateRequest.
1043
+ *
1044
+ * @required {false}
1045
+ */
1046
+ templateName?: string;
1047
+ /** ttlSecondsAfterFinished
1048
+ * TTLSecondsAfterFinished limits the lifetime of a VirtualMachineTemplateRequest
1049
+ that has finished execution. Failed VirtualMachineTemplateRequests are never
1050
+ cleaned up by the TTL controller, so they remain available for debugging. If
1051
+ this field is unset, the VirtualMachineTemplateRequest is not automatically
1052
+ deleted and must be removed manually or through the owner reference cleanup
1053
+ described below. If this field is set to zero, the VirtualMachineTemplateRequest
1054
+ becomes eligible to be deleted immediately after it finishes.
1055
+ *
1056
+ * @required {false}
1057
+ * @format {int32}
1058
+ * @originalType {integer}
1059
+ */
1060
+ ttlSecondsAfterFinished?: number;
1061
+ /** virtualMachineRef
1062
+ * VirtualMachineReference holds a reference to a VirtualMachine.kubevirt.io
1063
+ *
1064
+ * @required {true}
1065
+ */
1066
+ virtualMachineRef: V1beta1VirtualMachineTemplateRequestSpecVirtualMachineRef;
1067
+ }
1068
+
1069
+ /**
1070
+ *
1071
+ *
1072
+ *
1073
+ * The version of the OpenAPI document:
1074
+ * Contact Email:
1075
+ * License:
1076
+ *
1077
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
1078
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
1079
+ */
1080
+ /**
1081
+ * Condition contains details for one aspect of the current state of this API Resource.
1082
+ *
1083
+ * @export
1084
+ */
1085
+ interface V1beta1VirtualMachineTemplateRequestStatusConditions {
1086
+ /** lastTransitionTime
1087
+ * lastTransitionTime is the last time the condition transitioned from one status to another.
1088
+ This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
1089
+ *
1090
+ * @required {true}
1091
+ * @format {date-time}
1092
+ */
1093
+ lastTransitionTime: string;
1094
+ /** message
1095
+ * message is a human readable message indicating details about the transition.
1096
+ This may be an empty string.
1097
+ *
1098
+ * @required {true}
1099
+ */
1100
+ message: string;
1101
+ /** observedGeneration
1102
+ * observedGeneration represents the .metadata.generation that the condition was set based upon.
1103
+ For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
1104
+ with respect to the current state of the instance.
1105
+ *
1106
+ * @required {false}
1107
+ * @format {int64}
1108
+ * @originalType {integer}
1109
+ */
1110
+ observedGeneration?: number;
1111
+ /** reason
1112
+ * reason contains a programmatic identifier indicating the reason for the condition's last transition.
1113
+ Producers of specific condition types may define expected values and meanings for this field,
1114
+ and whether the values are considered a guaranteed API.
1115
+ The value should be a CamelCase string.
1116
+ This field may not be empty.
1117
+ *
1118
+ * @required {true}
1119
+ */
1120
+ reason: string;
1121
+ /** status
1122
+ * status of the condition, one of True, False, Unknown.
1123
+ *
1124
+ * @required {true}
1125
+ * @originalType {string}
1126
+ */
1127
+ status: 'True' | 'False' | 'Unknown';
1128
+ /** type
1129
+ * type of condition in CamelCase or in foo.example.com/CamelCase.
1130
+ *
1131
+ * @required {true}
1132
+ */
1133
+ type: string;
1134
+ }
1135
+
1136
+ /**
1137
+ *
1138
+ *
1139
+ *
1140
+ * The version of the OpenAPI document:
1141
+ * Contact Email:
1142
+ * License:
1143
+ *
1144
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
1145
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
1146
+ */
1147
+ /**
1148
+ * TemplateRef is a reference to the created VirtualMachineTemplate.
1149
+ *
1150
+ * @export
1151
+ */
1152
+ interface V1beta1VirtualMachineTemplateRequestStatusTemplateRef {
1153
+ /** name
1154
+ * Name of the referent.
1155
+ This field is effectively required, but due to backwards compatibility is
1156
+ allowed to be empty. Instances of this type with an empty value here are
1157
+ almost certainly wrong.
1158
+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1159
+ *
1160
+ * @required {false}
1161
+ * @required {}
1162
+ */
1163
+ name?: string;
1164
+ }
1165
+
1166
+ /**
1167
+ *
1168
+ *
1169
+ *
1170
+ * The version of the OpenAPI document:
1171
+ * Contact Email:
1172
+ * License:
1173
+ *
1174
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
1175
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
1176
+ */
1177
+
1178
+ /**
1179
+ * Status defines the observed state of the template request
1180
+ *
1181
+ * @export
1182
+ */
1183
+ interface V1beta1VirtualMachineTemplateRequestStatus {
1184
+ /** conditions
1185
+ * Condition contains details for one aspect of the current state of this API Resource.
1186
+ *
1187
+ * @required {false}
1188
+ */
1189
+ conditions?: V1beta1VirtualMachineTemplateRequestStatusConditions[];
1190
+ /** templateRef
1191
+ * TemplateRef is a reference to the created VirtualMachineTemplate.
1192
+ *
1193
+ * @required {false}
1194
+ */
1195
+ templateRef?: V1beta1VirtualMachineTemplateRequestStatusTemplateRef;
1196
+ }
1197
+
1198
+ /**
1199
+ *
1200
+ *
1201
+ *
1202
+ * The version of the OpenAPI document:
1203
+ * Contact Email:
1204
+ * License:
1205
+ *
1206
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
1207
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
1208
+ */
1209
+
1210
+ /**
1211
+ * VirtualMachineTemplateRequest is the Schema for the virtualmachinetemplaterequests API
1212
+ *
1213
+ * @export
1214
+ */
1215
+ interface V1beta1VirtualMachineTemplateRequest {
1216
+ /** apiVersion
1217
+ * APIVersion defines the versioned schema of this representation of an object.
1218
+ Servers should convert recognized schemas to the latest internal value, and
1219
+ may reject unrecognized values.
1220
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
1221
+ *
1222
+ * @required {true}
1223
+ */
1224
+ apiVersion: string;
1225
+ /** kind
1226
+ * Kind is a string value representing the REST resource this object represents.
1227
+ Servers may infer this from the endpoint the client submits requests to.
1228
+ Cannot be updated.
1229
+ In CamelCase.
1230
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1231
+ *
1232
+ * @required {true}
1233
+ */
1234
+ kind: string;
1235
+ /** metadata
1236
+ *
1237
+ * @required {false}
1238
+ * @originalType {V1beta1VirtualMachineTemplateRequestMetadata}
1239
+ */
1240
+ metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta;
1241
+ /** spec
1242
+ * Spec defines the desired state of the template requests
1243
+ *
1244
+ * @required {true}
1245
+ */
1246
+ spec: V1beta1VirtualMachineTemplateRequestSpec;
1247
+ /** status
1248
+ * Status defines the observed state of the template request
1249
+ *
1250
+ * @required {false}
1251
+ */
1252
+ status?: V1beta1VirtualMachineTemplateRequestStatus;
1253
+ }
1254
+
1255
+ export type { IoK8sApimachineryPkgApisMetaV1ObjectMeta, IoK8sApimachineryPkgApisMetaV1OwnerReference, V1alpha1VirtualMachineTemplate, V1alpha1VirtualMachineTemplateRequest, V1alpha1VirtualMachineTemplateRequestSpec, V1alpha1VirtualMachineTemplateRequestSpecVirtualMachineRef, V1alpha1VirtualMachineTemplateRequestStatus, V1alpha1VirtualMachineTemplateRequestStatusConditions, V1alpha1VirtualMachineTemplateRequestStatusTemplateRef, V1alpha1VirtualMachineTemplateSpec, V1alpha1VirtualMachineTemplateSpecParameters, V1alpha1VirtualMachineTemplateStatus, V1alpha1VirtualMachineTemplateStatusConditions, V1beta1VirtualMachineTemplate, V1beta1VirtualMachineTemplateRequest, V1beta1VirtualMachineTemplateRequestSpec, V1beta1VirtualMachineTemplateRequestSpecVirtualMachineRef, V1beta1VirtualMachineTemplateRequestStatus, V1beta1VirtualMachineTemplateRequestStatusConditions, V1beta1VirtualMachineTemplateRequestStatusTemplateRef, V1beta1VirtualMachineTemplateSpec, V1beta1VirtualMachineTemplateSpecParameters, V1beta1VirtualMachineTemplateStatus, V1beta1VirtualMachineTemplateStatusConditions };
@@ -480,6 +480,16 @@ interface V1alpha1VirtualMachineTemplateRequestSpecVirtualMachineRef {
480
480
  * @export
481
481
  */
482
482
  interface V1alpha1VirtualMachineTemplateRequestSpec {
483
+ /** templateLabels
484
+ * TemplateLabels holds optional labels to apply to the created VirtualMachineTemplate.
485
+ Labels with the "template.kubevirt.io/" prefix are reserved for system use and are not allowed.
486
+ *
487
+ * @required {false}
488
+ * @originalType {V1alpha1VirtualMachineTemplateRequestSpecTemplateLabels}
489
+ */
490
+ templateLabels?: {
491
+ [key: string]: string;
492
+ };
483
493
  /** templateName
484
494
  * TemplateName holds the optional name for the new VirtualMachineTemplate.
485
495
  If not specified the template will have the same name as the VirtualMachineTemplateRequest.
@@ -487,6 +497,20 @@ interface V1alpha1VirtualMachineTemplateRequestSpec {
487
497
  * @required {false}
488
498
  */
489
499
  templateName?: string;
500
+ /** ttlSecondsAfterFinished
501
+ * TTLSecondsAfterFinished limits the lifetime of a VirtualMachineTemplateRequest
502
+ that has finished execution. Failed VirtualMachineTemplateRequests are never
503
+ cleaned up by the TTL controller, so they remain available for debugging. If
504
+ this field is unset, the VirtualMachineTemplateRequest is not automatically
505
+ deleted and must be removed manually or through the owner reference cleanup
506
+ described below. If this field is set to zero, the VirtualMachineTemplateRequest
507
+ becomes eligible to be deleted immediately after it finishes.
508
+ *
509
+ * @required {false}
510
+ * @format {int32}
511
+ * @originalType {integer}
512
+ */
513
+ ttlSecondsAfterFinished?: number;
490
514
  /** virtualMachineRef
491
515
  * VirtualMachineReference holds a reference to a VirtualMachine.kubevirt.io
492
516
  *
@@ -681,4 +705,551 @@ interface V1alpha1VirtualMachineTemplateRequest {
681
705
  status?: V1alpha1VirtualMachineTemplateRequestStatus;
682
706
  }
683
707
 
684
- export type { IoK8sApimachineryPkgApisMetaV1ObjectMeta, IoK8sApimachineryPkgApisMetaV1OwnerReference, V1alpha1VirtualMachineTemplate, V1alpha1VirtualMachineTemplateRequest, V1alpha1VirtualMachineTemplateRequestSpec, V1alpha1VirtualMachineTemplateRequestSpecVirtualMachineRef, V1alpha1VirtualMachineTemplateRequestStatus, V1alpha1VirtualMachineTemplateRequestStatusConditions, V1alpha1VirtualMachineTemplateRequestStatusTemplateRef, V1alpha1VirtualMachineTemplateSpec, V1alpha1VirtualMachineTemplateSpecParameters, V1alpha1VirtualMachineTemplateStatus, V1alpha1VirtualMachineTemplateStatusConditions };
708
+ /**
709
+ *
710
+ *
711
+ *
712
+ * The version of the OpenAPI document:
713
+ * Contact Email:
714
+ * License:
715
+ *
716
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
717
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
718
+ */
719
+ /**
720
+ * Parameter defines a name/value combination that is to be substituted during
721
+ processing of the template.
722
+ *
723
+ * @export
724
+ */
725
+ interface V1beta1VirtualMachineTemplateSpecParameters {
726
+ /** description
727
+ * Description is the description of the parameter. Optional.
728
+ *
729
+ * @required {false}
730
+ */
731
+ description?: string;
732
+ /** displayName
733
+ * DisplayName is an alternative name that can be shown in a UI
734
+ instead of the parameter's name. Optional.
735
+ *
736
+ * @required {false}
737
+ */
738
+ displayName?: string;
739
+ /** from
740
+ * From is used as input for the generator specified in Generate. Optional.
741
+ *
742
+ * @required {false}
743
+ */
744
+ from?: string;
745
+ /** generate
746
+ * Generate specifies the generator to be used to generate a Value for this
747
+ parameter. The From field can be used to provide input to this generator
748
+ If empty, no generator is being used, leaving the result Value untouched. Optional.
749
+
750
+ The only supported generator is "expression", which accepts a From
751
+ value with a regex-like syntax, which should follow the form of "[a-zA-Z0-9]{length}".
752
+ The expression defines the range and length of the resulting random characters.
753
+
754
+ The following character classes are supported in the range:
755
+
756
+ range | characters
757
+ *
758
+ * @required {false}
759
+ * @originalType {string}
760
+ */
761
+ generate?: 'expression';
762
+ /** name
763
+ * Name is the name of the parameter. It can be referenced in
764
+ the template VirtualMachine using ${PARAMETER_NAME}. Required.
765
+ *
766
+ * @required {true}
767
+ */
768
+ name: string;
769
+ /** required
770
+ * Indicates that the parameter must have a Value or valid Generate and From values.
771
+ Defaults to false. Optional.
772
+ *
773
+ * @required {false}
774
+ */
775
+ required?: boolean;
776
+ /** value
777
+ * Value holds the value of the Parameter. If specified, a generator will be
778
+ ignored. The value replaces all occurrences of the ${PARAMETER_NAME}
779
+ expression during processing of the template. Optional.
780
+ *
781
+ * @required {false}
782
+ */
783
+ value?: string;
784
+ }
785
+
786
+ /**
787
+ *
788
+ *
789
+ *
790
+ * The version of the OpenAPI document:
791
+ * Contact Email:
792
+ * License:
793
+ *
794
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
795
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
796
+ */
797
+
798
+ /**
799
+ * Spec defines the desired state of the template
800
+ *
801
+ * @export
802
+ */
803
+ interface V1beta1VirtualMachineTemplateSpec {
804
+ /** message
805
+ * Message is an optional instructional message for this template.
806
+ This field should inform the user how to utilize the newly created VirtualMachine.
807
+ *
808
+ * @required {false}
809
+ */
810
+ message?: string;
811
+ /** parameters
812
+ * Parameter defines a name/value combination that is to be substituted during
813
+ processing of the template.
814
+ *
815
+ * @required {false}
816
+ */
817
+ parameters?: V1beta1VirtualMachineTemplateSpecParameters[];
818
+ /** virtualMachine
819
+ * VirtualMachine is the template VirtualMachine to include in this template.
820
+ If a namespace value is hardcoded, it will be removed during processing of the
821
+ template. If the namespace value however contains a ${PARAMETER_REFERENCE},
822
+ the resolved value after parameter substitution will be respected and the
823
+ VirtualMachine will be created in that namespace.
824
+ *
825
+ * @required {true}
826
+ * @originalType {not defined}
827
+ */
828
+ virtualMachine: unknown | null;
829
+ }
830
+
831
+ /**
832
+ *
833
+ *
834
+ *
835
+ * The version of the OpenAPI document:
836
+ * Contact Email:
837
+ * License:
838
+ *
839
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
840
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
841
+ */
842
+ /**
843
+ * Condition contains details for one aspect of the current state of this API Resource.
844
+ *
845
+ * @export
846
+ */
847
+ interface V1beta1VirtualMachineTemplateStatusConditions {
848
+ /** lastTransitionTime
849
+ * lastTransitionTime is the last time the condition transitioned from one status to another.
850
+ This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
851
+ *
852
+ * @required {true}
853
+ * @format {date-time}
854
+ */
855
+ lastTransitionTime: string;
856
+ /** message
857
+ * message is a human readable message indicating details about the transition.
858
+ This may be an empty string.
859
+ *
860
+ * @required {true}
861
+ */
862
+ message: string;
863
+ /** observedGeneration
864
+ * observedGeneration represents the .metadata.generation that the condition was set based upon.
865
+ For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
866
+ with respect to the current state of the instance.
867
+ *
868
+ * @required {false}
869
+ * @format {int64}
870
+ * @originalType {integer}
871
+ */
872
+ observedGeneration?: number;
873
+ /** reason
874
+ * reason contains a programmatic identifier indicating the reason for the condition's last transition.
875
+ Producers of specific condition types may define expected values and meanings for this field,
876
+ and whether the values are considered a guaranteed API.
877
+ The value should be a CamelCase string.
878
+ This field may not be empty.
879
+ *
880
+ * @required {true}
881
+ */
882
+ reason: string;
883
+ /** status
884
+ * status of the condition, one of True, False, Unknown.
885
+ *
886
+ * @required {true}
887
+ * @originalType {string}
888
+ */
889
+ status: 'True' | 'False' | 'Unknown';
890
+ /** type
891
+ * type of condition in CamelCase or in foo.example.com/CamelCase.
892
+ *
893
+ * @required {true}
894
+ */
895
+ type: string;
896
+ }
897
+
898
+ /**
899
+ *
900
+ *
901
+ *
902
+ * The version of the OpenAPI document:
903
+ * Contact Email:
904
+ * License:
905
+ *
906
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
907
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
908
+ */
909
+
910
+ /**
911
+ * Status defines the observed state of the template
912
+ *
913
+ * @export
914
+ */
915
+ interface V1beta1VirtualMachineTemplateStatus {
916
+ /** conditions
917
+ * Condition contains details for one aspect of the current state of this API Resource.
918
+ *
919
+ * @required {false}
920
+ */
921
+ conditions?: V1beta1VirtualMachineTemplateStatusConditions[];
922
+ }
923
+
924
+ /**
925
+ *
926
+ *
927
+ *
928
+ * The version of the OpenAPI document:
929
+ * Contact Email:
930
+ * License:
931
+ *
932
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
933
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
934
+ */
935
+
936
+ /**
937
+ * VirtualMachineTemplate is the Schema for the virtualmachinetemplates API
938
+ *
939
+ * @export
940
+ */
941
+ interface V1beta1VirtualMachineTemplate {
942
+ /** apiVersion
943
+ * APIVersion defines the versioned schema of this representation of an object.
944
+ Servers should convert recognized schemas to the latest internal value, and
945
+ may reject unrecognized values.
946
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
947
+ *
948
+ * @required {true}
949
+ */
950
+ apiVersion: string;
951
+ /** kind
952
+ * Kind is a string value representing the REST resource this object represents.
953
+ Servers may infer this from the endpoint the client submits requests to.
954
+ Cannot be updated.
955
+ In CamelCase.
956
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
957
+ *
958
+ * @required {true}
959
+ */
960
+ kind: string;
961
+ /** metadata
962
+ *
963
+ * @required {false}
964
+ * @originalType {V1beta1VirtualMachineTemplateMetadata}
965
+ */
966
+ metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta;
967
+ /** spec
968
+ * Spec defines the desired state of the template
969
+ *
970
+ * @required {true}
971
+ */
972
+ spec: V1beta1VirtualMachineTemplateSpec;
973
+ /** status
974
+ * Status defines the observed state of the template
975
+ *
976
+ * @required {false}
977
+ */
978
+ status?: V1beta1VirtualMachineTemplateStatus;
979
+ }
980
+
981
+ /**
982
+ *
983
+ *
984
+ *
985
+ * The version of the OpenAPI document:
986
+ * Contact Email:
987
+ * License:
988
+ *
989
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
990
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
991
+ */
992
+ /**
993
+ * VirtualMachineReference holds a reference to a VirtualMachine.kubevirt.io
994
+ *
995
+ * @export
996
+ */
997
+ interface V1beta1VirtualMachineTemplateRequestSpecVirtualMachineRef {
998
+ /** name
999
+ * Name is the name of the VirtualMachine.
1000
+ *
1001
+ * @required {true}
1002
+ */
1003
+ name: string;
1004
+ /** namespace
1005
+ * Namespace is the namespace of the VirtualMachine.
1006
+ *
1007
+ * @required {true}
1008
+ */
1009
+ namespace: string;
1010
+ }
1011
+
1012
+ /**
1013
+ *
1014
+ *
1015
+ *
1016
+ * The version of the OpenAPI document:
1017
+ * Contact Email:
1018
+ * License:
1019
+ *
1020
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
1021
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
1022
+ */
1023
+
1024
+ /**
1025
+ * Spec defines the desired state of the template requests
1026
+ *
1027
+ * @export
1028
+ */
1029
+ interface V1beta1VirtualMachineTemplateRequestSpec {
1030
+ /** templateLabels
1031
+ * TemplateLabels holds optional labels to apply to the created VirtualMachineTemplate.
1032
+ Labels with the "template.kubevirt.io/" prefix are reserved for system use and are not allowed.
1033
+ *
1034
+ * @required {false}
1035
+ * @originalType {V1beta1VirtualMachineTemplateRequestSpecTemplateLabels}
1036
+ */
1037
+ templateLabels?: {
1038
+ [key: string]: string;
1039
+ };
1040
+ /** templateName
1041
+ * TemplateName holds the optional name for the new VirtualMachineTemplate.
1042
+ If not specified the template will have the same name as the VirtualMachineTemplateRequest.
1043
+ *
1044
+ * @required {false}
1045
+ */
1046
+ templateName?: string;
1047
+ /** ttlSecondsAfterFinished
1048
+ * TTLSecondsAfterFinished limits the lifetime of a VirtualMachineTemplateRequest
1049
+ that has finished execution. Failed VirtualMachineTemplateRequests are never
1050
+ cleaned up by the TTL controller, so they remain available for debugging. If
1051
+ this field is unset, the VirtualMachineTemplateRequest is not automatically
1052
+ deleted and must be removed manually or through the owner reference cleanup
1053
+ described below. If this field is set to zero, the VirtualMachineTemplateRequest
1054
+ becomes eligible to be deleted immediately after it finishes.
1055
+ *
1056
+ * @required {false}
1057
+ * @format {int32}
1058
+ * @originalType {integer}
1059
+ */
1060
+ ttlSecondsAfterFinished?: number;
1061
+ /** virtualMachineRef
1062
+ * VirtualMachineReference holds a reference to a VirtualMachine.kubevirt.io
1063
+ *
1064
+ * @required {true}
1065
+ */
1066
+ virtualMachineRef: V1beta1VirtualMachineTemplateRequestSpecVirtualMachineRef;
1067
+ }
1068
+
1069
+ /**
1070
+ *
1071
+ *
1072
+ *
1073
+ * The version of the OpenAPI document:
1074
+ * Contact Email:
1075
+ * License:
1076
+ *
1077
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
1078
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
1079
+ */
1080
+ /**
1081
+ * Condition contains details for one aspect of the current state of this API Resource.
1082
+ *
1083
+ * @export
1084
+ */
1085
+ interface V1beta1VirtualMachineTemplateRequestStatusConditions {
1086
+ /** lastTransitionTime
1087
+ * lastTransitionTime is the last time the condition transitioned from one status to another.
1088
+ This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
1089
+ *
1090
+ * @required {true}
1091
+ * @format {date-time}
1092
+ */
1093
+ lastTransitionTime: string;
1094
+ /** message
1095
+ * message is a human readable message indicating details about the transition.
1096
+ This may be an empty string.
1097
+ *
1098
+ * @required {true}
1099
+ */
1100
+ message: string;
1101
+ /** observedGeneration
1102
+ * observedGeneration represents the .metadata.generation that the condition was set based upon.
1103
+ For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
1104
+ with respect to the current state of the instance.
1105
+ *
1106
+ * @required {false}
1107
+ * @format {int64}
1108
+ * @originalType {integer}
1109
+ */
1110
+ observedGeneration?: number;
1111
+ /** reason
1112
+ * reason contains a programmatic identifier indicating the reason for the condition's last transition.
1113
+ Producers of specific condition types may define expected values and meanings for this field,
1114
+ and whether the values are considered a guaranteed API.
1115
+ The value should be a CamelCase string.
1116
+ This field may not be empty.
1117
+ *
1118
+ * @required {true}
1119
+ */
1120
+ reason: string;
1121
+ /** status
1122
+ * status of the condition, one of True, False, Unknown.
1123
+ *
1124
+ * @required {true}
1125
+ * @originalType {string}
1126
+ */
1127
+ status: 'True' | 'False' | 'Unknown';
1128
+ /** type
1129
+ * type of condition in CamelCase or in foo.example.com/CamelCase.
1130
+ *
1131
+ * @required {true}
1132
+ */
1133
+ type: string;
1134
+ }
1135
+
1136
+ /**
1137
+ *
1138
+ *
1139
+ *
1140
+ * The version of the OpenAPI document:
1141
+ * Contact Email:
1142
+ * License:
1143
+ *
1144
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
1145
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
1146
+ */
1147
+ /**
1148
+ * TemplateRef is a reference to the created VirtualMachineTemplate.
1149
+ *
1150
+ * @export
1151
+ */
1152
+ interface V1beta1VirtualMachineTemplateRequestStatusTemplateRef {
1153
+ /** name
1154
+ * Name of the referent.
1155
+ This field is effectively required, but due to backwards compatibility is
1156
+ allowed to be empty. Instances of this type with an empty value here are
1157
+ almost certainly wrong.
1158
+ More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
1159
+ *
1160
+ * @required {false}
1161
+ * @required {}
1162
+ */
1163
+ name?: string;
1164
+ }
1165
+
1166
+ /**
1167
+ *
1168
+ *
1169
+ *
1170
+ * The version of the OpenAPI document:
1171
+ * Contact Email:
1172
+ * License:
1173
+ *
1174
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
1175
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
1176
+ */
1177
+
1178
+ /**
1179
+ * Status defines the observed state of the template request
1180
+ *
1181
+ * @export
1182
+ */
1183
+ interface V1beta1VirtualMachineTemplateRequestStatus {
1184
+ /** conditions
1185
+ * Condition contains details for one aspect of the current state of this API Resource.
1186
+ *
1187
+ * @required {false}
1188
+ */
1189
+ conditions?: V1beta1VirtualMachineTemplateRequestStatusConditions[];
1190
+ /** templateRef
1191
+ * TemplateRef is a reference to the created VirtualMachineTemplate.
1192
+ *
1193
+ * @required {false}
1194
+ */
1195
+ templateRef?: V1beta1VirtualMachineTemplateRequestStatusTemplateRef;
1196
+ }
1197
+
1198
+ /**
1199
+ *
1200
+ *
1201
+ *
1202
+ * The version of the OpenAPI document:
1203
+ * Contact Email:
1204
+ * License:
1205
+ *
1206
+ * NOTE: This file is auto generated by crdtotypes (https://github.com/yaacov/crdtoapi/).
1207
+ * https://github.com/yaacov/crdtoapi/README.crdtotypes
1208
+ */
1209
+
1210
+ /**
1211
+ * VirtualMachineTemplateRequest is the Schema for the virtualmachinetemplaterequests API
1212
+ *
1213
+ * @export
1214
+ */
1215
+ interface V1beta1VirtualMachineTemplateRequest {
1216
+ /** apiVersion
1217
+ * APIVersion defines the versioned schema of this representation of an object.
1218
+ Servers should convert recognized schemas to the latest internal value, and
1219
+ may reject unrecognized values.
1220
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
1221
+ *
1222
+ * @required {true}
1223
+ */
1224
+ apiVersion: string;
1225
+ /** kind
1226
+ * Kind is a string value representing the REST resource this object represents.
1227
+ Servers may infer this from the endpoint the client submits requests to.
1228
+ Cannot be updated.
1229
+ In CamelCase.
1230
+ More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
1231
+ *
1232
+ * @required {true}
1233
+ */
1234
+ kind: string;
1235
+ /** metadata
1236
+ *
1237
+ * @required {false}
1238
+ * @originalType {V1beta1VirtualMachineTemplateRequestMetadata}
1239
+ */
1240
+ metadata?: IoK8sApimachineryPkgApisMetaV1ObjectMeta;
1241
+ /** spec
1242
+ * Spec defines the desired state of the template requests
1243
+ *
1244
+ * @required {true}
1245
+ */
1246
+ spec: V1beta1VirtualMachineTemplateRequestSpec;
1247
+ /** status
1248
+ * Status defines the observed state of the template request
1249
+ *
1250
+ * @required {false}
1251
+ */
1252
+ status?: V1beta1VirtualMachineTemplateRequestStatus;
1253
+ }
1254
+
1255
+ export type { IoK8sApimachineryPkgApisMetaV1ObjectMeta, IoK8sApimachineryPkgApisMetaV1OwnerReference, V1alpha1VirtualMachineTemplate, V1alpha1VirtualMachineTemplateRequest, V1alpha1VirtualMachineTemplateRequestSpec, V1alpha1VirtualMachineTemplateRequestSpecVirtualMachineRef, V1alpha1VirtualMachineTemplateRequestStatus, V1alpha1VirtualMachineTemplateRequestStatusConditions, V1alpha1VirtualMachineTemplateRequestStatusTemplateRef, V1alpha1VirtualMachineTemplateSpec, V1alpha1VirtualMachineTemplateSpecParameters, V1alpha1VirtualMachineTemplateStatus, V1alpha1VirtualMachineTemplateStatusConditions, V1beta1VirtualMachineTemplate, V1beta1VirtualMachineTemplateRequest, V1beta1VirtualMachineTemplateRequestSpec, V1beta1VirtualMachineTemplateRequestSpecVirtualMachineRef, V1beta1VirtualMachineTemplateRequestStatus, V1beta1VirtualMachineTemplateRequestStatusConditions, V1beta1VirtualMachineTemplateRequestStatusTemplateRef, V1beta1VirtualMachineTemplateSpec, V1beta1VirtualMachineTemplateSpecParameters, V1beta1VirtualMachineTemplateStatus, V1beta1VirtualMachineTemplateStatusConditions };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubevirt-ui-ext/kubevirt-api",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "kubevirt OpenAPI automation for TypeScript",
5
5
  "type": "module",
6
6
  "exports": {