Skip to content

Commit b0da200

Browse files
committed
Merge pull request #28 from miq-bot/openapi_generate
Update kubevirt gem
2 parents 924755b + 29c5ae4 commit b0da200

12 files changed

+65
-10
lines changed

docs/K8sIoApiCoreV1PodDNSConfigOption.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
7-
| **name** | **String** | Required. | [optional] |
8-
| **value** | **String** | | [optional] |
7+
| **name** | **String** | Name is this DNS resolver option's name. Required. | [optional] |
8+
| **value** | **String** | Value is this DNS resolver option's value. | [optional] |
99

1010
## Example
1111

docs/K8sIoApimachineryPkgApisMetaV1DeleteOptions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
| **api_version** | **String** | 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 | [optional] |
88
| **dry_run** | **Array<String>** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] |
99
| **grace_period_seconds** | **Integer** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] |
10+
| **ignore_store_read_error_with_cluster_breaking_potential** | **Boolean** | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] |
1011
| **kind** | **String** | 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 | [optional] |
1112
| **orphan_dependents** | **Boolean** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] |
1213
| **preconditions** | [**K8sIoApimachineryPkgApisMetaV1Preconditions**](K8sIoApimachineryPkgApisMetaV1Preconditions.md) | | [optional] |
@@ -21,6 +22,7 @@ instance = Kubevirt::K8sIoApimachineryPkgApisMetaV1DeleteOptions.new(
2122
api_version: null,
2223
dry_run: null,
2324
grace_period_seconds: null,
25+
ignore_store_read_error_with_cluster_breaking_potential: null,
2426
kind: null,
2527
orphan_dependents: null,
2628
preconditions: null,

docs/V1KubeVirtSpec.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
| **product_name** | **String** | Designate the apps.kubevirt.io/part-of label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductName is not specified, the part-of label will be omitted. | [optional] |
1919
| **product_version** | **String** | Designate the apps.kubevirt.io/version label for KubeVirt components. Useful if KubeVirt is included as part of a product. If ProductVersion is not specified, KubeVirt's version will be used. | [optional] |
2020
| **service_monitor_namespace** | **String** | The namespace the service monitor will be deployed When ServiceMonitorNamespace is set, then we'll install the service monitor object in that namespace otherwise we will use the monitoring namespace. | [optional] |
21+
| **synchronization_port** | **String** | Specify the port to listen on for VMI status synchronization traffic. Default is 9185 | [optional] |
2122
| **uninstall_strategy** | **String** | Specifies if kubevirt can be deleted if workloads are still present. This is mainly a precaution to avoid accidental data loss | [optional] |
2223
| **workload_update_strategy** | [**V1KubeVirtWorkloadUpdateStrategy**](V1KubeVirtWorkloadUpdateStrategy.md) | | [optional] |
2324
| **workloads** | [**V1ComponentConfig**](V1ComponentConfig.md) | | [optional] |
@@ -42,6 +43,7 @@ instance = Kubevirt::V1KubeVirtSpec.new(
4243
product_name: null,
4344
product_version: null,
4445
service_monitor_namespace: null,
46+
synchronization_port: null,
4547
uninstall_strategy: null,
4648
workload_update_strategy: null,
4749
workloads: null

docs/V1LogVerbosity.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
| **virt_handler** | **Integer** | | [optional] |
1111
| **virt_launcher** | **Integer** | | [optional] |
1212
| **virt_operator** | **Integer** | | [optional] |
13+
| **virt_synchronization_controller** | **Integer** | | [optional] |
1314

1415
## Example
1516

@@ -22,7 +23,8 @@ instance = Kubevirt::V1LogVerbosity.new(
2223
virt_controller: null,
2324
virt_handler: null,
2425
virt_launcher: null,
25-
virt_operator: null
26+
virt_operator: null,
27+
virt_synchronization_controller: null
2628
)
2729
```
2830

lib/kubevirt/models/k8s_io_api_core_v1_pod_dns_config_option.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
module Kubevirt
1717
# PodDNSConfigOption defines DNS resolver options of a pod.
1818
class K8sIoApiCoreV1PodDNSConfigOption
19-
# Required.
19+
# Name is this DNS resolver option's name. Required.
2020
attr_accessor :name
2121

22+
# Value is this DNS resolver option's value.
2223
attr_accessor :value
2324

2425
# Attribute mapping from ruby-style variable name to JSON key.

lib/kubevirt/models/k8s_io_api_core_v1_typed_object_reference.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
require 'time'
1515

1616
module Kubevirt
17+
# TypedObjectReference contains enough information to let you locate the typed referenced object
1718
class K8sIoApiCoreV1TypedObjectReference
1819
# APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
1920
attr_accessor :api_group

lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ class K8sIoApimachineryPkgApisMetaV1DeleteOptions
2525
# The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
2626
attr_accessor :grace_period_seconds
2727

28+
# if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
29+
attr_accessor :ignore_store_read_error_with_cluster_breaking_potential
30+
2831
# 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
2932
attr_accessor :kind
3033

@@ -42,6 +45,7 @@ def self.attribute_map
4245
:'api_version' => :'apiVersion',
4346
:'dry_run' => :'dryRun',
4447
:'grace_period_seconds' => :'gracePeriodSeconds',
48+
:'ignore_store_read_error_with_cluster_breaking_potential' => :'ignoreStoreReadErrorWithClusterBreakingPotential',
4549
:'kind' => :'kind',
4650
:'orphan_dependents' => :'orphanDependents',
4751
:'preconditions' => :'preconditions',
@@ -65,6 +69,7 @@ def self.openapi_types
6569
:'api_version' => :'String',
6670
:'dry_run' => :'Array<String>',
6771
:'grace_period_seconds' => :'Integer',
72+
:'ignore_store_read_error_with_cluster_breaking_potential' => :'Boolean',
6873
:'kind' => :'String',
6974
:'orphan_dependents' => :'Boolean',
7075
:'preconditions' => :'K8sIoApimachineryPkgApisMetaV1Preconditions',
@@ -108,6 +113,10 @@ def initialize(attributes = {})
108113
self.grace_period_seconds = attributes[:'grace_period_seconds']
109114
end
110115

116+
if attributes.key?(:'ignore_store_read_error_with_cluster_breaking_potential')
117+
self.ignore_store_read_error_with_cluster_breaking_potential = attributes[:'ignore_store_read_error_with_cluster_breaking_potential']
118+
end
119+
111120
if attributes.key?(:'kind')
112121
self.kind = attributes[:'kind']
113122
end
@@ -148,6 +157,7 @@ def ==(o)
148157
api_version == o.api_version &&
149158
dry_run == o.dry_run &&
150159
grace_period_seconds == o.grace_period_seconds &&
160+
ignore_store_read_error_with_cluster_breaking_potential == o.ignore_store_read_error_with_cluster_breaking_potential &&
151161
kind == o.kind &&
152162
orphan_dependents == o.orphan_dependents &&
153163
preconditions == o.preconditions &&
@@ -163,7 +173,7 @@ def eql?(o)
163173
# Calculates hash code according to all attributes.
164174
# @return [Integer] Hash code
165175
def hash
166-
[api_version, dry_run, grace_period_seconds, kind, orphan_dependents, preconditions, propagation_policy].hash
176+
[api_version, dry_run, grace_period_seconds, ignore_store_read_error_with_cluster_breaking_potential, kind, orphan_dependents, preconditions, propagation_policy].hash
167177
end
168178

169179
# Builds the object from hash

lib/kubevirt/models/v1_kube_virt_spec.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ class V1KubeVirtSpec
5353
# The namespace the service monitor will be deployed When ServiceMonitorNamespace is set, then we'll install the service monitor object in that namespace otherwise we will use the monitoring namespace.
5454
attr_accessor :service_monitor_namespace
5555

56+
# Specify the port to listen on for VMI status synchronization traffic. Default is 9185
57+
attr_accessor :synchronization_port
58+
5659
# Specifies if kubevirt can be deleted if workloads are still present. This is mainly a precaution to avoid accidental data loss
5760
attr_accessor :uninstall_strategy
5861

@@ -99,6 +102,7 @@ def self.attribute_map
99102
:'product_name' => :'productName',
100103
:'product_version' => :'productVersion',
101104
:'service_monitor_namespace' => :'serviceMonitorNamespace',
105+
:'synchronization_port' => :'synchronizationPort',
102106
:'uninstall_strategy' => :'uninstallStrategy',
103107
:'workload_update_strategy' => :'workloadUpdateStrategy',
104108
:'workloads' => :'workloads'
@@ -132,6 +136,7 @@ def self.openapi_types
132136
:'product_name' => :'String',
133137
:'product_version' => :'String',
134138
:'service_monitor_namespace' => :'String',
139+
:'synchronization_port' => :'String',
135140
:'uninstall_strategy' => :'String',
136141
:'workload_update_strategy' => :'V1KubeVirtWorkloadUpdateStrategy',
137142
:'workloads' => :'V1ComponentConfig'
@@ -218,6 +223,10 @@ def initialize(attributes = {})
218223
self.service_monitor_namespace = attributes[:'service_monitor_namespace']
219224
end
220225

226+
if attributes.key?(:'synchronization_port')
227+
self.synchronization_port = attributes[:'synchronization_port']
228+
end
229+
221230
if attributes.key?(:'uninstall_strategy')
222231
self.uninstall_strategy = attributes[:'uninstall_strategy']
223232
end
@@ -277,6 +286,7 @@ def ==(o)
277286
product_name == o.product_name &&
278287
product_version == o.product_version &&
279288
service_monitor_namespace == o.service_monitor_namespace &&
289+
synchronization_port == o.synchronization_port &&
280290
uninstall_strategy == o.uninstall_strategy &&
281291
workload_update_strategy == o.workload_update_strategy &&
282292
workloads == o.workloads
@@ -291,7 +301,7 @@ def eql?(o)
291301
# Calculates hash code according to all attributes.
292302
# @return [Integer] Hash code
293303
def hash
294-
[certificate_rotate_strategy, configuration, customize_components, image_pull_policy, image_pull_secrets, image_registry, image_tag, infra, monitor_account, monitor_namespace, product_component, product_name, product_version, service_monitor_namespace, uninstall_strategy, workload_update_strategy, workloads].hash
304+
[certificate_rotate_strategy, configuration, customize_components, image_pull_policy, image_pull_secrets, image_registry, image_tag, infra, monitor_account, monitor_namespace, product_component, product_name, product_version, service_monitor_namespace, synchronization_port, uninstall_strategy, workload_update_strategy, workloads].hash
295305
end
296306

297307
# Builds the object from hash

lib/kubevirt/models/v1_log_verbosity.rb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class V1LogVerbosity
2929

3030
attr_accessor :virt_operator
3131

32+
attr_accessor :virt_synchronization_controller
33+
3234
# Attribute mapping from ruby-style variable name to JSON key.
3335
def self.attribute_map
3436
{
@@ -37,7 +39,8 @@ def self.attribute_map
3739
:'virt_controller' => :'virtController',
3840
:'virt_handler' => :'virtHandler',
3941
:'virt_launcher' => :'virtLauncher',
40-
:'virt_operator' => :'virtOperator'
42+
:'virt_operator' => :'virtOperator',
43+
:'virt_synchronization_controller' => :'virtSynchronizationController'
4144
}
4245
end
4346

@@ -59,7 +62,8 @@ def self.openapi_types
5962
:'virt_controller' => :'Integer',
6063
:'virt_handler' => :'Integer',
6164
:'virt_launcher' => :'Integer',
62-
:'virt_operator' => :'Integer'
65+
:'virt_operator' => :'Integer',
66+
:'virt_synchronization_controller' => :'Integer'
6367
}
6468
end
6569

@@ -110,6 +114,10 @@ def initialize(attributes = {})
110114
if attributes.key?(:'virt_operator')
111115
self.virt_operator = attributes[:'virt_operator']
112116
end
117+
118+
if attributes.key?(:'virt_synchronization_controller')
119+
self.virt_synchronization_controller = attributes[:'virt_synchronization_controller']
120+
end
113121
end
114122

115123
# Show invalid properties with the reasons. Usually used together with valid?
@@ -137,7 +145,8 @@ def ==(o)
137145
virt_controller == o.virt_controller &&
138146
virt_handler == o.virt_handler &&
139147
virt_launcher == o.virt_launcher &&
140-
virt_operator == o.virt_operator
148+
virt_operator == o.virt_operator &&
149+
virt_synchronization_controller == o.virt_synchronization_controller
141150
end
142151

143152
# @see the `==` method
@@ -149,7 +158,7 @@ def eql?(o)
149158
# Calculates hash code according to all attributes.
150159
# @return [Integer] Hash code
151160
def hash
152-
[node_verbosity, virt_api, virt_controller, virt_handler, virt_launcher, virt_operator].hash
161+
[node_verbosity, virt_api, virt_controller, virt_handler, virt_launcher, virt_operator, virt_synchronization_controller].hash
153162
end
154163

155164
# Builds the object from hash

spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
end
4646
end
4747

48+
describe 'test attribute "ignore_store_read_error_with_cluster_breaking_potential"' do
49+
it 'should work' do
50+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51+
end
52+
end
53+
4854
describe 'test attribute "kind"' do
4955
it 'should work' do
5056
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/

0 commit comments

Comments
 (0)