From 68d8d08bfd1e20f5bb5795c80210f441c890bcfa Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 31 Jul 2023 14:31:18 +0000 Subject: [PATCH] fix(deps): update all non-major dependencies --- .github/workflows/release.yml | 4 +- .github/workflows/test.yml | 2 +- go.mod | 6 +- go.sum | 6 + .../go-openapi/strfmt/.golangci.yml | 33 + vendor/github.com/go-openapi/strfmt/Makefile | 7 + vendor/github.com/go-openapi/strfmt/types.go | 25 +- .../api/apps/v1/controller_revision.go | 5 +- .../apps/v1/controller_revision_easyjson.go | 155 - .../v1/controller_revision_list_easyjson.go | 165 - .../apps/v1/daemon_set_condition_easyjson.go | 164 - .../api/apps/v1/daemon_set_easyjson.go | 734 --- .../api/apps/v1/daemon_set_list_easyjson.go | 165 - .../api/apps/v1/daemon_set_spec.go | 2 +- .../api/apps/v1/daemon_set_spec_easyjson.go | 293 -- .../api/apps/v1/daemon_set_status_easyjson.go | 249 - .../api/apps/v1/daemon_set_update_strategy.go | 2 - .../v1/daemon_set_update_strategy_easyjson.go | 178 - .../apps/v1/deployment_condition_easyjson.go | 186 - .../api/apps/v1/deployment_easyjson.go | 755 --- .../api/apps/v1/deployment_list_easyjson.go | 165 - .../api/apps/v1/deployment_spec.go | 2 +- .../api/apps/v1/deployment_spec_easyjson.go | 329 -- .../api/apps/v1/deployment_status_easyjson.go | 212 - .../api/apps/v1/deployment_strategy.go | 2 - .../apps/v1/deployment_strategy_easyjson.go | 178 - .../apps/v1/replica_set_condition_easyjson.go | 164 - .../api/apps/v1/replica_set_easyjson.go | 531 -- .../api/apps/v1/replica_set_list_easyjson.go | 165 - .../api/apps/v1/replica_set_spec_easyjson.go | 139 - .../api/apps/v1/replica_set_status.go | 2 +- .../apps/v1/replica_set_status_easyjson.go | 200 - .../api/apps/v1/rolling_update_daemon_set.go | 2 +- .../v1/rolling_update_daemon_set_easyjson.go | 115 - .../v1/rolling_update_deployment_easyjson.go | 115 - ...g_update_stateful_set_strategy_easyjson.go | 107 - .../k8s-objects/api/apps/v1/stateful_set.go | 5 +- .../v1/stateful_set_condition_easyjson.go | 164 - .../api/apps/v1/stateful_set_easyjson.go | 818 --- .../api/apps/v1/stateful_set_list_easyjson.go | 165 - .../api/apps/v1/stateful_set_ordinals.go | 18 + ..._volume_claim_retention_policy_easyjson.go | 98 - .../api/apps/v1/stateful_set_spec.go | 9 +- .../api/apps/v1/stateful_set_spec_easyjson.go | 333 -- .../api/apps/v1/stateful_set_status.go | 2 +- .../apps/v1/stateful_set_status_easyjson.go | 238 - .../apps/v1/stateful_set_update_strategy.go | 2 - .../stateful_set_update_strategy_easyjson.go | 106 - .../k8s-objects/api/apps/v1/swagger.json | 2 +- .../api/batch/v1/cron_job_easyjson.go | 652 --- .../api/batch/v1/cron_job_list_easyjson.go | 165 - .../k8s-objects/api/batch/v1/cron_job_spec.go | 6 +- .../api/batch/v1/cron_job_spec_easyjson.go | 408 -- .../api/batch/v1/cron_job_status_easyjson.go | 174 - .../api/batch/v1/job_condition_easyjson.go | 186 - .../k8s-objects/api/batch/v1/job_easyjson.go | 792 --- .../api/batch/v1/job_list_easyjson.go | 165 - .../k8s-objects/api/batch/v1/job_spec.go | 13 +- .../api/batch/v1/job_spec_easyjson.go | 211 - .../k8s-objects/api/batch/v1/job_status.go | 10 +- .../api/batch/v1/job_status_easyjson.go | 368 -- .../batch/v1/job_template_spec_easyjson.go | 115 - .../api/batch/v1/pod_failure_policy.go | 16 + ...ailure_policy_on_exit_codes_requirement.go | 31 + ...ailure_policy_on_pod_conditions_pattern.go | 20 + .../api/batch/v1/pod_failure_policy_rule.go | 31 + .../k8s-objects/api/batch/v1/swagger.json | 2 +- .../api/batch/v1/uncounted_terminated_pods.go | 4 +- .../v1/uncounted_terminated_pods_easyjson.go | 158 - .../api/core/v1/affinity_easyjson.go | 1136 ----- .../api/core/v1/attached_volume_easyjson.go | 116 - ...stic_block_store_volume_source_easyjson.go | 134 - .../v1/azure_disk_volume_source_easyjson.go | 150 - ..._file_persistent_volume_source_easyjson.go | 136 - .../v1/azure_file_volume_source_easyjson.go | 129 - .../api/core/v1/binding_easyjson.go | 258 - .../api/core/v1/capabilities_easyjson.go | 158 - ...ph_fs_persistent_volume_source_easyjson.go | 215 - .../core/v1/ceph_fs_volume_source_easyjson.go | 203 - ...inder_persistent_volume_source_easyjson.go | 197 - .../core/v1/cinder_volume_source_easyjson.go | 185 - .../k8s-objects/api/core/v1/claim_source.go | 26 + .../api/core/v1/client_ip_config_easyjson.go | 86 - .../core/v1/component_condition_easyjson.go | 141 - .../api/core/v1/component_status_easyjson.go | 173 - .../core/v1/component_status_list_easyjson.go | 165 - .../api/core/v1/config_map_easyjson.go | 225 - .../core/v1/config_map_env_source_easyjson.go | 98 - .../v1/config_map_key_selector_easyjson.go | 111 - .../api/core/v1/config_map_list_easyjson.go | 165 - .../config_map_node_config_source_easyjson.go | 149 - .../core/v1/config_map_projection_easyjson.go | 232 - .../v1/config_map_volume_source_easyjson.go | 244 - .../k8s-objects/api/core/v1/container.go | 9 +- .../api/core/v1/container_easyjson.go | 2730 ---------- .../api/core/v1/container_image.go | 2 +- .../api/core/v1/container_image_easyjson.go | 128 - .../k8s-objects/api/core/v1/container_port.go | 2 - .../api/core/v1/container_port_easyjson.go | 125 - .../api/core/v1/container_resize_policy.go | 20 + .../api/core/v1/container_state_easyjson.go | 365 -- .../v1/container_state_running_easyjson.go | 97 - .../v1/container_state_terminated_easyjson.go | 166 - .../v1/container_state_waiting_easyjson.go | 98 - .../api/core/v1/container_status.go | 30 +- .../api/core/v1/container_status_easyjson.go | 223 - .../core/v1/csi_persistent_volume_source.go | 5 +- .../csi_persistent_volume_source_easyjson.go | 295 -- .../api/core/v1/csi_volume_source_easyjson.go | 208 - .../api/core/v1/daemon_endpoint_easyjson.go | 97 - .../v1/downward_api_projection_easyjson.go | 385 -- .../v1/downward_api_volume_file_easyjson.go | 300 -- .../v1/downward_api_volume_source_easyjson.go | 140 - .../api/core/v1/empty_dir_volume_source.go | 2 +- .../v1/empty_dir_volume_source_easyjson.go | 107 - .../api/core/v1/endpoint_address.go | 2 +- .../api/core/v1/endpoint_address_easyjson.go | 247 - .../k8s-objects/api/core/v1/endpoint_port.go | 11 +- .../api/core/v1/endpoint_port_easyjson.go | 129 - .../api/core/v1/endpoint_subset.go | 15 +- .../api/core/v1/endpoint_subset_easyjson.go | 236 - .../k8s-objects/api/core/v1/endpoints.go | 23 +- .../api/core/v1/endpoints_easyjson.go | 173 - .../api/core/v1/endpoints_list_easyjson.go | 165 - .../api/core/v1/env_from_source_easyjson.go | 181 - .../api/core/v1/env_var_easyjson.go | 453 -- .../api/core/v1/env_var_source_easyjson.go | 377 -- .../api/core/v1/ephemeral_container.go | 9 +- .../core/v1/ephemeral_container_easyjson.go | 2108 -------- .../v1/ephemeral_volume_source_easyjson.go | 589 --- .../k8s-objects/api/core/v1/event_easyjson.go | 537 -- .../api/core/v1/event_list_easyjson.go | 165 - .../api/core/v1/event_series_easyjson.go | 109 - .../api/core/v1/event_source_easyjson.go | 98 - .../api/core/v1/exec_action_easyjson.go | 116 - .../api/core/v1/fc_volume_source_easyjson.go | 194 - .../flex_persistent_volume_source_easyjson.go | 220 - .../core/v1/flex_volume_source_easyjson.go | 208 - .../core/v1/flocker_volume_source_easyjson.go | 98 - ..._persistent_disk_volume_source_easyjson.go | 129 - .../v1/git_repo_volume_source_easyjson.go | 117 - ...terfs_persistent_volume_source_easyjson.go | 130 - .../v1/glusterfs_volume_source_easyjson.go | 123 - .../api/core/v1/grpc_action_easyjson.go | 104 - .../api/core/v1/host_alias_easyjson.go | 128 - .../v1/host_path_volume_source_easyjson.go | 104 - .../api/core/v1/http_get_action.go | 2 - .../api/core/v1/http_get_action_easyjson.go | 257 - .../api/core/v1/http_header_easyjson.go | 116 - ...iscsi_persistent_volume_source_easyjson.go | 305 -- .../core/v1/iscsi_volume_source_easyjson.go | 293 -- .../api/core/v1/key_to_path_easyjson.go | 123 - .../api/core/v1/lifecycle_easyjson.go | 273 - .../api/core/v1/lifecycle_handler_easyjson.go | 202 - .../api/core/v1/limit_range_easyjson.go | 561 --- .../api/core/v1/limit_range_item_easyjson.go | 379 -- .../api/core/v1/limit_range_list_easyjson.go | 165 - .../api/core/v1/limit_range_spec_easyjson.go | 129 - .../core/v1/load_balancer_ingress_easyjson.go | 238 - .../core/v1/load_balancer_status_easyjson.go | 128 - .../v1/local_object_reference_easyjson.go | 86 - .../core/v1/local_volume_source_easyjson.go | 110 - .../core/v1/namespace_condition_easyjson.go | 164 - .../api/core/v1/namespace_easyjson.go | 449 -- .../api/core/v1/namespace_list_easyjson.go | 165 - .../api/core/v1/namespace_spec_easyjson.go | 116 - .../api/core/v1/namespace_status.go | 2 - .../api/core/v1/namespace_status_easyjson.go | 140 - .../api/core/v1/nfs_volume_source_easyjson.go | 123 - .../api/core/v1/node_address_easyjson.go | 116 - .../api/core/v1/node_affinity_easyjson.go | 556 --- .../api/core/v1/node_condition_easyjson.go | 186 - .../core/v1/node_config_source_easyjson.go | 94 - .../core/v1/node_config_status_easyjson.go | 146 - .../core/v1/node_daemon_endpoints_easyjson.go | 94 - .../k8s-objects/api/core/v1/node_easyjson.go | 1570 ------ .../api/core/v1/node_list_easyjson.go | 165 - .../api/core/v1/node_selector_easyjson.go | 378 -- .../api/core/v1/node_selector_requirement.go | 2 - .../v1/node_selector_requirement_easyjson.go | 153 - .../core/v1/node_selector_term_easyjson.go | 182 - .../k8s-objects/api/core/v1/node_spec.go | 2 +- .../api/core/v1/node_spec_easyjson.go | 336 -- .../k8s-objects/api/core/v1/node_status.go | 4 +- .../api/core/v1/node_status_easyjson.go | 742 --- .../api/core/v1/node_system_info_easyjson.go | 268 - .../core/v1/object_field_selector_easyjson.go | 110 - .../api/core/v1/object_reference_easyjson.go | 158 - .../v1/persistent_volume_claim_condition.go | 2 +- ...sistent_volume_claim_condition_easyjson.go | 186 - .../v1/persistent_volume_claim_easyjson.go | 983 ---- .../persistent_volume_claim_list_easyjson.go | 165 - .../core/v1/persistent_volume_claim_spec.go | 12 +- .../persistent_volume_claim_spec_easyjson.go | 463 -- .../core/v1/persistent_volume_claim_status.go | 2 - ...persistent_volume_claim_status_easyjson.go | 307 -- ...rsistent_volume_claim_template_easyjson.go | 119 - ...ent_volume_claim_volume_source_easyjson.go | 104 - .../api/core/v1/persistent_volume_easyjson.go | 1764 ------- .../v1/persistent_volume_list_easyjson.go | 165 - .../api/core/v1/persistent_volume_spec.go | 2 - .../v1/persistent_volume_spec_easyjson.go | 1581 ------ .../api/core/v1/persistent_volume_status.go | 2 - .../v1/persistent_volume_status_easyjson.go | 110 - ..._persistent_disk_volume_source_easyjson.go | 110 - .../api/core/v1/pod_affinity_easyjson.go | 393 -- .../api/core/v1/pod_affinity_term_easyjson.go | 181 - .../api/core/v1/pod_anti_affinity_easyjson.go | 255 - .../api/core/v1/pod_condition_easyjson.go | 186 - .../api/core/v1/pod_dns_config_easyjson.go | 267 - .../core/v1/pod_dns_config_option_easyjson.go | 98 - .../k8s-objects/api/core/v1/pod_easyjson.go | 4405 ----------------- .../k8s-objects/api/core/v1/pod_ip.go | 3 +- .../api/core/v1/pod_ip_easyjson.go | 86 - .../api/core/v1/pod_list_easyjson.go | 165 - .../api/core/v1/pod_os_easyjson.go | 97 - .../core/v1/pod_readiness_gate_easyjson.go | 97 - .../api/core/v1/pod_resource_claim.go | 19 + .../api/core/v1/pod_scheduling_gate.go | 16 + .../api/core/v1/pod_security_context.go | 2 +- .../core/v1/pod_security_context_easyjson.go | 588 --- .../k8s-objects/api/core/v1/pod_spec.go | 23 +- .../api/core/v1/pod_spec_easyjson.go | 2821 ----------- .../k8s-objects/api/core/v1/pod_status.go | 11 +- .../api/core/v1/pod_status_easyjson.go | 451 -- .../api/core/v1/pod_template_easyjson.go | 210 - .../api/core/v1/pod_template_list_easyjson.go | 165 - .../api/core/v1/pod_template_spec_easyjson.go | 115 - .../k8s-objects/api/core/v1/port_status.go | 2 - .../api/core/v1/port_status_easyjson.go | 129 - .../v1/portworx_volume_source_easyjson.go | 122 - .../v1/preferred_scheduling_term_easyjson.go | 116 - .../k8s-objects/api/core/v1/probe.go | 2 +- .../k8s-objects/api/core/v1/probe_easyjson.go | 294 -- .../v1/projected_volume_source_easyjson.go | 439 -- .../core/v1/quobyte_volume_source_easyjson.go | 155 - .../rbd_persistent_volume_source_easyjson.go | 247 - .../api/core/v1/rbd_volume_source_easyjson.go | 192 - ...plication_controller_condition_easyjson.go | 164 - .../v1/replication_controller_easyjson.go | 555 --- .../replication_controller_list_easyjson.go | 165 - .../core/v1/replication_controller_spec.go | 2 +- .../replication_controller_spec_easyjson.go | 162 - .../core/v1/replication_controller_status.go | 2 +- .../replication_controller_status_easyjson.go | 200 - .../k8s-objects/api/core/v1/resource_claim.go | 16 + .../v1/resource_field_selector_easyjson.go | 131 - .../api/core/v1/resource_quota_easyjson.go | 647 --- .../core/v1/resource_quota_list_easyjson.go | 165 - .../core/v1/resource_quota_spec_easyjson.go | 388 -- .../core/v1/resource_quota_status_easyjson.go | 187 - .../api/core/v1/resource_requirements.go | 9 +- .../core/v1/resource_requirements_easyjson.go | 187 - ...le_io_persistent_volume_source_easyjson.go | 245 - .../v1/scale_io_volume_source_easyjson.go | 190 - .../api/core/v1/scope_selector_easyjson.go | 238 - .../scoped_resource_selector_requirement.go | 4 - ..._resource_selector_requirement_easyjson.go | 153 - .../api/core/v1/se_linux_options_easyjson.go | 122 - .../api/core/v1/seccomp_profile.go | 2 - .../api/core/v1/seccomp_profile_easyjson.go | 110 - .../api/core/v1/secret_easyjson.go | 237 - .../api/core/v1/secret_env_source_easyjson.go | 98 - .../core/v1/secret_key_selector_easyjson.go | 111 - .../api/core/v1/secret_list_easyjson.go | 165 - .../api/core/v1/secret_projection_easyjson.go | 152 - .../api/core/v1/secret_reference_easyjson.go | 98 - .../core/v1/secret_volume_source_easyjson.go | 164 - .../api/core/v1/security_context_easyjson.go | 317 -- .../api/core/v1/service_account_easyjson.go | 239 - .../core/v1/service_account_list_easyjson.go | 165 - ...rvice_account_token_projection_easyjson.go | 122 - .../api/core/v1/service_easyjson.go | 890 ---- .../api/core/v1/service_list_easyjson.go | 165 - .../k8s-objects/api/core/v1/service_port.go | 2 - .../api/core/v1/service_port_easyjson.go | 157 - .../k8s-objects/api/core/v1/service_spec.go | 12 +- .../api/core/v1/service_spec_easyjson.go | 555 --- .../api/core/v1/service_status_easyjson.go | 149 - .../v1/session_affinity_config_easyjson.go | 94 - ...ge_os_persistent_volume_source_easyjson.go | 142 - .../v1/storage_os_volume_source_easyjson.go | 142 - .../k8s-objects/api/core/v1/swagger.json | 2 +- .../api/core/v1/sysctl_easyjson.go | 116 - .../k8s-objects/api/core/v1/taint.go | 2 - .../k8s-objects/api/core/v1/taint_easyjson.go | 141 - .../api/core/v1/tcp_socket_action_easyjson.go | 111 - .../k8s-objects/api/core/v1/toleration.go | 4 - .../api/core/v1/toleration_easyjson.go | 134 - ...ogy_selector_label_requirement_easyjson.go | 136 - .../v1/topology_selector_term_easyjson.go | 128 - .../api/core/v1/topology_spread_constraint.go | 21 +- .../v1/topology_spread_constraint_easyjson.go | 164 - .../typed_local_object_reference_easyjson.go | 129 - .../api/core/v1/typed_object_reference.go | 26 + .../api/core/v1/volume_device_easyjson.go | 116 - .../api/core/v1/volume_easyjson.go | 714 --- .../api/core/v1/volume_mount_easyjson.go | 144 - .../core/v1/volume_node_affinity_easyjson.go | 94 - .../api/core/v1/volume_projection_easyjson.go | 154 - ...ere_virtual_disk_volume_source_easyjson.go | 134 - .../v1/weighted_pod_affinity_term_easyjson.go | 116 - ...ndows_security_context_options_easyjson.go | 122 - .../apimachinery/pkg/api/resource/quantity.go | 26 +- .../pkg/api/resource/quantity_easyjson.go | 18 - .../pkg/api/resource/swagger.json | 2 +- .../pkg/apis/meta/v1/api_group_easyjson.go | 383 -- .../apis/meta/v1/api_group_list_easyjson.go | 149 - .../pkg/apis/meta/v1/api_resource_easyjson.go | 299 -- .../meta/v1/api_resource_list_easyjson.go | 168 - .../pkg/apis/meta/v1/api_versions_easyjson.go | 266 - .../pkg/apis/meta/v1/condition_easyjson.go | 182 - .../apis/meta/v1/delete_options_easyjson.go | 251 - .../group_version_for_discovery_easyjson.go | 116 - .../apis/meta/v1/label_selector_easyjson.go | 282 -- .../v1/label_selector_requirement_easyjson.go | 153 - .../pkg/apis/meta/v1/list_meta_easyjson.go | 122 - .../pkg/apis/meta/v1/managed_fields_entry.go | 4 +- .../meta/v1/managed_fields_entry_easyjson.go | 160 - .../pkg/apis/meta/v1/micro_time_easyjson.go | 18 - .../pkg/apis/meta/v1/object_meta.go | 15 +- .../pkg/apis/meta/v1/object_meta_easyjson.go | 573 --- .../pkg/apis/meta/v1/owner_reference.go | 4 +- .../apis/meta/v1/owner_reference_easyjson.go | 168 - .../apis/meta/v1/preconditions_easyjson.go | 98 - .../server_address_by_client_cidr_easyjson.go | 116 - .../pkg/apis/meta/v1/status_cause_easyjson.go | 110 - .../pkg/apis/meta/v1/status_details.go | 2 +- .../apis/meta/v1/status_details_easyjson.go | 188 - .../pkg/apis/meta/v1/status_easyjson.go | 398 -- .../pkg/apis/meta/v1/status_gvk.go | 18 - .../pkg/apis/meta/v1/swagger.json | 2 +- .../pkg/apis/meta/v1/time_easyjson.go | 18 - .../pkg/apis/meta/v1/watch_event.go | 4 +- .../pkg/apis/meta/v1/watch_event_easyjson.go | 104 - .../pkg/util/intstr/int_or_string_easyjson.go | 18 - .../kubewarden/policy-sdk-go/Makefile | 3 - .../kubewarden/policy-sdk-go/README.md | 53 +- .../kubewarden/policy-sdk-go/kubewarden.go | 46 +- .../policy-sdk-go/protocol/types.go | 35 +- .../policy-sdk-go/protocol/types_easyjson.go | 724 --- .../policy-sdk-go/testing/helpers.go | 25 +- vendor/modules.txt | 10 +- 343 files changed, 581 insertions(+), 72610 deletions(-) create mode 100644 vendor/github.com/go-openapi/strfmt/.golangci.yml create mode 100644 vendor/github.com/go-openapi/strfmt/Makefile delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_condition_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_spec_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_update_strategy_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_condition_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_spec_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_strategy_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_condition_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_spec_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/rolling_update_daemon_set_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/rolling_update_deployment_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/rolling_update_stateful_set_strategy_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_condition_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_list_easyjson.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_ordinals.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_persistent_volume_claim_retention_policy_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_spec_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_update_strategy_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_spec_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_condition_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_spec_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_template_spec_easyjson.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/pod_failure_policy.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/pod_failure_policy_on_exit_codes_requirement.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/pod_failure_policy_on_pod_conditions_pattern.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/pod_failure_policy_rule.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/uncounted_terminated_pods_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/affinity_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/attached_volume_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/aws_elastic_block_store_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/azure_disk_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/azure_file_persistent_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/azure_file_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/binding_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/capabilities_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_persistent_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/cinder_persistent_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/cinder_volume_source_easyjson.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/claim_source.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/client_ip_config_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_condition_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_status_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_env_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_key_selector_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_node_config_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_projection_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_image_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_port_easyjson.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_resize_policy.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_state_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_state_running_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_state_terminated_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_state_waiting_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_persistent_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/daemon_endpoint_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/downward_api_projection_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/downward_api_volume_file_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/downward_api_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/empty_dir_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_address_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_port_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_subset_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/env_from_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/env_var_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/env_var_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/ephemeral_container_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/ephemeral_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_series_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/exec_action_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/fc_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/flex_persistent_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/flex_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/flocker_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/gce_persistent_disk_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/git_repo_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/glusterfs_persistent_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/glusterfs_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/grpc_action_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/host_alias_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/host_path_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/http_get_action_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/http_header_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_persistent_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/key_to_path_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/lifecycle_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/lifecycle_handler_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_item_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_spec_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/load_balancer_ingress_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/load_balancer_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/local_object_reference_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/local_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_condition_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_spec_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/nfs_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_address_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_affinity_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_condition_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_config_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_config_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_daemon_endpoints_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_selector_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_selector_requirement_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_selector_term_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_spec_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_system_info_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/object_field_selector_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/object_reference_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_condition_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_spec_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_template_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_spec_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/photon_persistent_disk_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_affinity_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_affinity_term_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_anti_affinity_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_condition_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_dns_config_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_dns_config_option_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_ip_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_os_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_readiness_gate_easyjson.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_resource_claim.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_scheduling_gate.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_security_context_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_spec_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_spec_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/port_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/portworx_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/preferred_scheduling_term_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/probe_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/projected_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/quobyte_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_persistent_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_condition_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_spec_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_status_easyjson.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_claim.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_field_selector_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_spec_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_requirements_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_persistent_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/scope_selector_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/scoped_resource_selector_requirement_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/se_linux_options_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/seccomp_profile_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_env_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_key_selector_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_projection_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_reference_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/security_context_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_token_projection_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_port_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_spec_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/session_affinity_config_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_persistent_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/sysctl_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/taint_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/tcp_socket_action_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/toleration_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/topology_selector_label_requirement_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/topology_selector_term_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/topology_spread_constraint_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/typed_local_object_reference_easyjson.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/typed_object_reference.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_device_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_mount_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_node_affinity_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_projection_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/vsphere_virtual_disk_volume_source_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/weighted_pod_affinity_term_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/windows_security_context_options_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource/quantity_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_group_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_group_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_resource_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_resource_list_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_versions_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/condition_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/delete_options_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/group_version_for_discovery_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/label_selector_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/label_selector_requirement_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/list_meta_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/managed_fields_entry_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/micro_time_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/object_meta_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/owner_reference_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/preconditions_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/server_address_by_client_cidr_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_cause_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_details_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_gvk.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/time_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/watch_event_easyjson.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr/int_or_string_easyjson.go delete mode 100644 vendor/github.com/kubewarden/policy-sdk-go/protocol/types_easyjson.go diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 680948a..5599719 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: test: name: run tests and linters - uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.1.4 + uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.1.6 release: needs: test @@ -23,6 +23,6 @@ jobs: # Required by cosign keyless signing id-token: write - uses: kubewarden/github-actions/.github/workflows/reusable-release-policy-go.yml@v3.1.4 + uses: kubewarden/github-actions/.github/workflows/reusable-release-policy-go.yml@v3.1.6 with: oci-target: ghcr.io/${{ github.repository_owner }}/policies/sysctl-psp diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a4d4ddc..4a585e4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,4 +3,4 @@ name: Continuous integration jobs: test: name: run tests and linters - uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.1.4 + uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.1.6 diff --git a/go.mod b/go.mod index a9c9ded..0b82b30 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/deckarep/golang-set/v2 v2.3.0 github.com/francoispqt/onelog v0.0.0-20190306043706-8c2bb31b10a4 github.com/kubewarden/gjson v1.7.2 - github.com/kubewarden/policy-sdk-go v0.4.1 + github.com/kubewarden/policy-sdk-go v0.5.0 github.com/mailru/easyjson v0.7.7 github.com/wapc/wapc-guest-tinygo v0.3.3 ) @@ -15,9 +15,9 @@ require ( github.com/francoispqt/gojay v0.0.0-20181220093123-f2cc13a668ca // indirect github.com/go-openapi/strfmt v0.21.3 // indirect github.com/josharian/intern v1.0.0 // indirect - github.com/kubewarden/k8s-objects v1.24.0-kw7 // indirect + github.com/kubewarden/k8s-objects v1.27.0-kw2 // indirect github.com/tidwall/match v1.0.3 // indirect github.com/tidwall/pretty v1.0.2 // indirect ) -replace github.com/go-openapi/strfmt => github.com/kubewarden/strfmt v0.1.2 +replace github.com/go-openapi/strfmt => github.com/kubewarden/strfmt v0.1.3 diff --git a/go.sum b/go.sum index 7e1dbb1..57a64c5 100644 --- a/go.sum +++ b/go.sum @@ -14,14 +14,20 @@ github.com/kubewarden/k8s-objects v1.24.0-kw4 h1:/XAEdK8uHUz+asM/PgUs1T4vgCN7d+t github.com/kubewarden/k8s-objects v1.24.0-kw4/go.mod h1:0d8vhSnO2G4bwo58G9ncQYhsgBggGzgh+V0Wqc3CLe8= github.com/kubewarden/k8s-objects v1.24.0-kw7 h1:uXGSLyyp/qnipq7yNxFy5zebFRy8utoO+wn1fW6QkkU= github.com/kubewarden/k8s-objects v1.24.0-kw7/go.mod h1:IuIHLG1JtxjC1JnY7SyEEA9MukCh/FACcwpzaBjgdLQ= +github.com/kubewarden/k8s-objects v1.27.0-kw2 h1:6ZA72SFtDSbCupwxlIyJimUzN0nSweMCUx5jUEnoxkw= +github.com/kubewarden/k8s-objects v1.27.0-kw2/go.mod h1:wVx4Rg1HKml8yewPwAHUWp1wYSAtBlKV/tsmteDuK1g= github.com/kubewarden/policy-sdk-go v0.3.0 h1:5WqhrC3eJP+gRti14d4vCyXCITeM95X4hob6QA96eX8= github.com/kubewarden/policy-sdk-go v0.3.0/go.mod h1:zJLxhZkoFVKOlHJ3mlbG8qTCvVbkZprZ7odVwVsunUo= github.com/kubewarden/policy-sdk-go v0.4.0 h1:qxYHarQ3fHD90QErZEjXRzErEOXLQVtTYKmtyv0rtMQ= github.com/kubewarden/policy-sdk-go v0.4.0/go.mod h1:pY1FrcuGdhnzzN31wNieAimI4+7rYWbtkP+tYGna0Ug= github.com/kubewarden/policy-sdk-go v0.4.1 h1:MTGxJaWWH6dZBwCdZ+FYVUclxveGzW3p4kuUJiZw+7M= github.com/kubewarden/policy-sdk-go v0.4.1/go.mod h1:pY1FrcuGdhnzzN31wNieAimI4+7rYWbtkP+tYGna0Ug= +github.com/kubewarden/policy-sdk-go v0.5.0 h1:JnSRf5pHjFzTNNp6jJbSP5a4cwzFzkUBjLujqJd+Z+w= +github.com/kubewarden/policy-sdk-go v0.5.0/go.mod h1:1IZXauwI5iCuOZj7tU58nE/SZFb/HsCmj3ZpDVStVQs= github.com/kubewarden/strfmt v0.1.2 h1:S0YUVkPeyUMikz8QssbMzfd1MC5K8ZqxLI2zfF8euMs= github.com/kubewarden/strfmt v0.1.2/go.mod h1:sqLlis8qlm4A4pnZsRyRjNxyH86fiM+7Ee7bO+uJk94= +github.com/kubewarden/strfmt v0.1.3 h1:bb+2rbotioROjCkziSt+hqnHXzOlumN94NxDKdV2kPI= +github.com/kubewarden/strfmt v0.1.3/go.mod h1:DXoaaIYwqW1LyyRoMeyxfHUU+VUSTNFdj38juCXfRzs= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= diff --git a/vendor/github.com/go-openapi/strfmt/.golangci.yml b/vendor/github.com/go-openapi/strfmt/.golangci.yml new file mode 100644 index 0000000..2af908c --- /dev/null +++ b/vendor/github.com/go-openapi/strfmt/.golangci.yml @@ -0,0 +1,33 @@ +linters-settings: + govet: + check-shadowing: true + golint: + min-confidence: 0 + gocyclo: + min-complexity: 31 + maligned: + suggest-new: true + dupl: + threshold: 100 + goconst: + min-len: 2 + min-occurrences: 4 + +linters: + enable: + - revive + - goimports + - gosec + - unparam + - unconvert + - predeclared + - prealloc + - misspell + +issues: + exclude-rules: + - path: bson.go + text: "should be .*ObjectID" + linters: + - golint + - stylecheck diff --git a/vendor/github.com/go-openapi/strfmt/Makefile b/vendor/github.com/go-openapi/strfmt/Makefile new file mode 100644 index 0000000..a4c8476 --- /dev/null +++ b/vendor/github.com/go-openapi/strfmt/Makefile @@ -0,0 +1,7 @@ +.PHONY: lint +lint: + golangci-lint run + +.PHONY: test +test: + go test ./... diff --git a/vendor/github.com/go-openapi/strfmt/types.go b/vendor/github.com/go-openapi/strfmt/types.go index bf3e8dc..ca5351f 100644 --- a/vendor/github.com/go-openapi/strfmt/types.go +++ b/vendor/github.com/go-openapi/strfmt/types.go @@ -3,10 +3,8 @@ package strfmt import ( + "encoding/json" "time" - - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" ) type Base64 []byte @@ -49,30 +47,17 @@ var ( // MarshalJSON returns the DateTime as JSON func (t DateTime) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - - timeForMarshal := NormalizeTimeForMarshal(time.Time(t)) - - if timeForMarshal.IsZero() { - w.RawString(jsonNull) - } else { - tstr, err := timeForMarshal.MarshalJSON() - w.Raw(tstr, err) - } - - return w.Buffer.BuildBytes(), w.Error + return json.Marshal(NormalizeTimeForMarshal(time.Time(t)).Format(MarshalFormat)) } -// UnmarshalJSON supports json.Unmarshaler interface +// UnmarshalJSON sets the DateTime from JSON func (t *DateTime) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - if string(data) == jsonNull { return nil } - var tstr string = string(r.String()) - if err := r.Error(); err != nil { + var tstr string + if err := json.Unmarshal(data, &tstr); err != nil { return err } tt, err := ParseDateTime(tstr) diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision.go index 22bee2c..d3c1a30 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision.go @@ -6,8 +6,9 @@ package v1 // Editing this file might prove futile when you re-run the swagger generate command import ( + jsonext "encoding/json" + apimachinery_pkg_apis_meta_v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - "github.com/mailru/easyjson" ) // ControllerRevision ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. @@ -19,7 +20,7 @@ type ControllerRevision struct { APIVersion string `json:"apiVersion,omitempty"` // Data is the serialized representation of the state. - Data easyjson.RawMessage `json:"data,omitempty"` + Data jsonext.RawMessage `json:"data,omitempty"` // 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 Kind string `json:"kind,omitempty"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision_easyjson.go deleted file mode 100644 index a2ac9dc..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision_easyjson.go +++ /dev/null @@ -1,155 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson2ed617caDecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *ControllerRevision) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "data": - (out.Data).UnmarshalEasyJSON(in) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "revision": - if in.IsNull() { - in.Skip() - out.Revision = nil - } else { - if out.Revision == nil { - out.Revision = new(int64) - } - *out.Revision = int64(in.Int64()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2ed617caEncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in ControllerRevision) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if (in.Data).IsDefined() { - const prefix string = ",\"data\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (in.Data).MarshalEasyJSON(out) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - { - const prefix string = ",\"revision\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Revision == nil { - out.RawString("null") - } else { - out.Int64(int64(*in.Revision)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ControllerRevision) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson2ed617caEncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ControllerRevision) MarshalEasyJSON(w *jwriter.Writer) { - easyjson2ed617caEncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ControllerRevision) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson2ed617caDecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ControllerRevision) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson2ed617caDecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision_list_easyjson.go deleted file mode 100644 index 1c8fd1b..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE4e1d48fDecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *ControllerRevisionList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*ControllerRevision, 0, 8) - } else { - out.Items = []*ControllerRevision{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *ControllerRevision - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ControllerRevision) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE4e1d48fEncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in ControllerRevisionList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ControllerRevisionList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE4e1d48fEncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ControllerRevisionList) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE4e1d48fEncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ControllerRevisionList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE4e1d48fDecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ControllerRevisionList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE4e1d48fDecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_condition_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_condition_easyjson.go deleted file mode 100644 index c7727dd..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_condition_easyjson.go +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson65a00d7DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *DaemonSetCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson65a00d7EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in DaemonSetCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DaemonSetCondition) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson65a00d7EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DaemonSetCondition) MarshalEasyJSON(w *jwriter.Writer) { - easyjson65a00d7EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DaemonSetCondition) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson65a00d7DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DaemonSetCondition) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson65a00d7DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_easyjson.go deleted file mode 100644 index 691fe57..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_easyjson.go +++ /dev/null @@ -1,734 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v11 "github.com/kubewarden/k8s-objects/api/core/v1" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson21f59f41DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *DaemonSet) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(DaemonSetSpec) - } - easyjson21f59f41DecodeGithubComKubewardenK8sObjectsApiAppsV11(in, out.Spec) - } - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(DaemonSetStatus) - } - easyjson21f59f41DecodeGithubComKubewardenK8sObjectsApiAppsV12(in, out.Status) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson21f59f41EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in DaemonSet) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson21f59f41EncodeGithubComKubewardenK8sObjectsApiAppsV11(out, *in.Spec) - } - if in.Status != nil { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson21f59f41EncodeGithubComKubewardenK8sObjectsApiAppsV12(out, *in.Status) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DaemonSet) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson21f59f41EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DaemonSet) MarshalEasyJSON(w *jwriter.Writer) { - easyjson21f59f41EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DaemonSet) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson21f59f41DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DaemonSet) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson21f59f41DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} -func easyjson21f59f41DecodeGithubComKubewardenK8sObjectsApiAppsV12(in *jlexer.Lexer, out *DaemonSetStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "collisionCount": - out.CollisionCount = int32(in.Int32()) - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*DaemonSetCondition, 0, 8) - } else { - out.Conditions = []*DaemonSetCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *DaemonSetCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(DaemonSetCondition) - } - easyjson21f59f41DecodeGithubComKubewardenK8sObjectsApiAppsV13(in, v1) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "currentNumberScheduled": - if in.IsNull() { - in.Skip() - out.CurrentNumberScheduled = nil - } else { - if out.CurrentNumberScheduled == nil { - out.CurrentNumberScheduled = new(int32) - } - *out.CurrentNumberScheduled = int32(in.Int32()) - } - case "desiredNumberScheduled": - if in.IsNull() { - in.Skip() - out.DesiredNumberScheduled = nil - } else { - if out.DesiredNumberScheduled == nil { - out.DesiredNumberScheduled = new(int32) - } - *out.DesiredNumberScheduled = int32(in.Int32()) - } - case "numberAvailable": - out.NumberAvailable = int32(in.Int32()) - case "numberMisscheduled": - if in.IsNull() { - in.Skip() - out.NumberMisscheduled = nil - } else { - if out.NumberMisscheduled == nil { - out.NumberMisscheduled = new(int32) - } - *out.NumberMisscheduled = int32(in.Int32()) - } - case "numberReady": - if in.IsNull() { - in.Skip() - out.NumberReady = nil - } else { - if out.NumberReady == nil { - out.NumberReady = new(int32) - } - *out.NumberReady = int32(in.Int32()) - } - case "numberUnavailable": - out.NumberUnavailable = int32(in.Int32()) - case "observedGeneration": - out.ObservedGeneration = int64(in.Int64()) - case "updatedNumberScheduled": - out.UpdatedNumberScheduled = int32(in.Int32()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson21f59f41EncodeGithubComKubewardenK8sObjectsApiAppsV12(out *jwriter.Writer, in DaemonSetStatus) { - out.RawByte('{') - first := true - _ = first - if in.CollisionCount != 0 { - const prefix string = ",\"collisionCount\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.CollisionCount)) - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjson21f59f41EncodeGithubComKubewardenK8sObjectsApiAppsV13(out, *v3) - } - } - out.RawByte(']') - } - } - { - const prefix string = ",\"currentNumberScheduled\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.CurrentNumberScheduled == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.CurrentNumberScheduled)) - } - } - { - const prefix string = ",\"desiredNumberScheduled\":" - out.RawString(prefix) - if in.DesiredNumberScheduled == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.DesiredNumberScheduled)) - } - } - if in.NumberAvailable != 0 { - const prefix string = ",\"numberAvailable\":" - out.RawString(prefix) - out.Int32(int32(in.NumberAvailable)) - } - { - const prefix string = ",\"numberMisscheduled\":" - out.RawString(prefix) - if in.NumberMisscheduled == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.NumberMisscheduled)) - } - } - { - const prefix string = ",\"numberReady\":" - out.RawString(prefix) - if in.NumberReady == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.NumberReady)) - } - } - if in.NumberUnavailable != 0 { - const prefix string = ",\"numberUnavailable\":" - out.RawString(prefix) - out.Int32(int32(in.NumberUnavailable)) - } - if in.ObservedGeneration != 0 { - const prefix string = ",\"observedGeneration\":" - out.RawString(prefix) - out.Int64(int64(in.ObservedGeneration)) - } - if in.UpdatedNumberScheduled != 0 { - const prefix string = ",\"updatedNumberScheduled\":" - out.RawString(prefix) - out.Int32(int32(in.UpdatedNumberScheduled)) - } - out.RawByte('}') -} -func easyjson21f59f41DecodeGithubComKubewardenK8sObjectsApiAppsV13(in *jlexer.Lexer, out *DaemonSetCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson21f59f41EncodeGithubComKubewardenK8sObjectsApiAppsV13(out *jwriter.Writer, in DaemonSetCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} -func easyjson21f59f41DecodeGithubComKubewardenK8sObjectsApiAppsV11(in *jlexer.Lexer, out *DaemonSetSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "minReadySeconds": - out.MinReadySeconds = int32(in.Int32()) - case "revisionHistoryLimit": - out.RevisionHistoryLimit = int32(in.Int32()) - case "selector": - if in.IsNull() { - in.Skip() - out.Selector = nil - } else { - if out.Selector == nil { - out.Selector = new(_v1.LabelSelector) - } - (*out.Selector).UnmarshalEasyJSON(in) - } - case "template": - if in.IsNull() { - in.Skip() - out.Template = nil - } else { - if out.Template == nil { - out.Template = new(_v11.PodTemplateSpec) - } - (*out.Template).UnmarshalEasyJSON(in) - } - case "updateStrategy": - if in.IsNull() { - in.Skip() - out.UpdateStrategy = nil - } else { - if out.UpdateStrategy == nil { - out.UpdateStrategy = new(DaemonSetUpdateStrategy) - } - easyjson21f59f41DecodeGithubComKubewardenK8sObjectsApiAppsV14(in, out.UpdateStrategy) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson21f59f41EncodeGithubComKubewardenK8sObjectsApiAppsV11(out *jwriter.Writer, in DaemonSetSpec) { - out.RawByte('{') - first := true - _ = first - if in.MinReadySeconds != 0 { - const prefix string = ",\"minReadySeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.MinReadySeconds)) - } - if in.RevisionHistoryLimit != 0 { - const prefix string = ",\"revisionHistoryLimit\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.RevisionHistoryLimit)) - } - { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Selector == nil { - out.RawString("null") - } else { - (*in.Selector).MarshalEasyJSON(out) - } - } - { - const prefix string = ",\"template\":" - out.RawString(prefix) - if in.Template == nil { - out.RawString("null") - } else { - (*in.Template).MarshalEasyJSON(out) - } - } - if in.UpdateStrategy != nil { - const prefix string = ",\"updateStrategy\":" - out.RawString(prefix) - easyjson21f59f41EncodeGithubComKubewardenK8sObjectsApiAppsV14(out, *in.UpdateStrategy) - } - out.RawByte('}') -} -func easyjson21f59f41DecodeGithubComKubewardenK8sObjectsApiAppsV14(in *jlexer.Lexer, out *DaemonSetUpdateStrategy) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "rollingUpdate": - if in.IsNull() { - in.Skip() - out.RollingUpdate = nil - } else { - if out.RollingUpdate == nil { - out.RollingUpdate = new(RollingUpdateDaemonSet) - } - easyjson21f59f41DecodeGithubComKubewardenK8sObjectsApiAppsV15(in, out.RollingUpdate) - } - case "type": - out.Type = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson21f59f41EncodeGithubComKubewardenK8sObjectsApiAppsV14(out *jwriter.Writer, in DaemonSetUpdateStrategy) { - out.RawByte('{') - first := true - _ = first - if in.RollingUpdate != nil { - const prefix string = ",\"rollingUpdate\":" - first = false - out.RawString(prefix[1:]) - easyjson21f59f41EncodeGithubComKubewardenK8sObjectsApiAppsV15(out, *in.RollingUpdate) - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - out.RawByte('}') -} -func easyjson21f59f41DecodeGithubComKubewardenK8sObjectsApiAppsV15(in *jlexer.Lexer, out *RollingUpdateDaemonSet) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "maxSurge": - if in.IsNull() { - in.Skip() - out.MaxSurge = nil - } else { - if out.MaxSurge == nil { - out.MaxSurge = new(intstr.IntOrString) - } - *out.MaxSurge = intstr.IntOrString(in.String()) - } - case "maxUnavailable": - if in.IsNull() { - in.Skip() - out.MaxUnavailable = nil - } else { - if out.MaxUnavailable == nil { - out.MaxUnavailable = new(intstr.IntOrString) - } - *out.MaxUnavailable = intstr.IntOrString(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson21f59f41EncodeGithubComKubewardenK8sObjectsApiAppsV15(out *jwriter.Writer, in RollingUpdateDaemonSet) { - out.RawByte('{') - first := true - _ = first - if in.MaxSurge != nil { - const prefix string = ",\"maxSurge\":" - first = false - out.RawString(prefix[1:]) - out.String(string(*in.MaxSurge)) - } - if in.MaxUnavailable != nil { - const prefix string = ",\"maxUnavailable\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(*in.MaxUnavailable)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_list_easyjson.go deleted file mode 100644 index 96ed284..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson9179629aDecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *DaemonSetList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*DaemonSet, 0, 8) - } else { - out.Items = []*DaemonSet{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *DaemonSet - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(DaemonSet) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9179629aEncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in DaemonSetList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DaemonSetList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson9179629aEncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DaemonSetList) MarshalEasyJSON(w *jwriter.Writer) { - easyjson9179629aEncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DaemonSetList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson9179629aDecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DaemonSetList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson9179629aDecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_spec.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_spec.go index d9ed943..7a54c27 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_spec.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_spec.go @@ -25,7 +25,7 @@ type DaemonSetSpec struct { // Required: true Selector *apimachinery_pkg_apis_meta_v1.LabelSelector `json:"selector"` - // An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + // An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template // Required: true Template *api_core_v1.PodTemplateSpec `json:"template"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_spec_easyjson.go deleted file mode 100644 index 5ac970a..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_spec_easyjson.go +++ /dev/null @@ -1,293 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v11 "github.com/kubewarden/k8s-objects/api/core/v1" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson143303c7DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *DaemonSetSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "minReadySeconds": - out.MinReadySeconds = int32(in.Int32()) - case "revisionHistoryLimit": - out.RevisionHistoryLimit = int32(in.Int32()) - case "selector": - if in.IsNull() { - in.Skip() - out.Selector = nil - } else { - if out.Selector == nil { - out.Selector = new(_v1.LabelSelector) - } - (*out.Selector).UnmarshalEasyJSON(in) - } - case "template": - if in.IsNull() { - in.Skip() - out.Template = nil - } else { - if out.Template == nil { - out.Template = new(_v11.PodTemplateSpec) - } - (*out.Template).UnmarshalEasyJSON(in) - } - case "updateStrategy": - if in.IsNull() { - in.Skip() - out.UpdateStrategy = nil - } else { - if out.UpdateStrategy == nil { - out.UpdateStrategy = new(DaemonSetUpdateStrategy) - } - easyjson143303c7DecodeGithubComKubewardenK8sObjectsApiAppsV11(in, out.UpdateStrategy) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson143303c7EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in DaemonSetSpec) { - out.RawByte('{') - first := true - _ = first - if in.MinReadySeconds != 0 { - const prefix string = ",\"minReadySeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.MinReadySeconds)) - } - if in.RevisionHistoryLimit != 0 { - const prefix string = ",\"revisionHistoryLimit\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.RevisionHistoryLimit)) - } - { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Selector == nil { - out.RawString("null") - } else { - (*in.Selector).MarshalEasyJSON(out) - } - } - { - const prefix string = ",\"template\":" - out.RawString(prefix) - if in.Template == nil { - out.RawString("null") - } else { - (*in.Template).MarshalEasyJSON(out) - } - } - if in.UpdateStrategy != nil { - const prefix string = ",\"updateStrategy\":" - out.RawString(prefix) - easyjson143303c7EncodeGithubComKubewardenK8sObjectsApiAppsV11(out, *in.UpdateStrategy) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DaemonSetSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson143303c7EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DaemonSetSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjson143303c7EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DaemonSetSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson143303c7DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DaemonSetSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson143303c7DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} -func easyjson143303c7DecodeGithubComKubewardenK8sObjectsApiAppsV11(in *jlexer.Lexer, out *DaemonSetUpdateStrategy) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "rollingUpdate": - if in.IsNull() { - in.Skip() - out.RollingUpdate = nil - } else { - if out.RollingUpdate == nil { - out.RollingUpdate = new(RollingUpdateDaemonSet) - } - easyjson143303c7DecodeGithubComKubewardenK8sObjectsApiAppsV12(in, out.RollingUpdate) - } - case "type": - out.Type = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson143303c7EncodeGithubComKubewardenK8sObjectsApiAppsV11(out *jwriter.Writer, in DaemonSetUpdateStrategy) { - out.RawByte('{') - first := true - _ = first - if in.RollingUpdate != nil { - const prefix string = ",\"rollingUpdate\":" - first = false - out.RawString(prefix[1:]) - easyjson143303c7EncodeGithubComKubewardenK8sObjectsApiAppsV12(out, *in.RollingUpdate) - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - out.RawByte('}') -} -func easyjson143303c7DecodeGithubComKubewardenK8sObjectsApiAppsV12(in *jlexer.Lexer, out *RollingUpdateDaemonSet) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "maxSurge": - if in.IsNull() { - in.Skip() - out.MaxSurge = nil - } else { - if out.MaxSurge == nil { - out.MaxSurge = new(intstr.IntOrString) - } - *out.MaxSurge = intstr.IntOrString(in.String()) - } - case "maxUnavailable": - if in.IsNull() { - in.Skip() - out.MaxUnavailable = nil - } else { - if out.MaxUnavailable == nil { - out.MaxUnavailable = new(intstr.IntOrString) - } - *out.MaxUnavailable = intstr.IntOrString(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson143303c7EncodeGithubComKubewardenK8sObjectsApiAppsV12(out *jwriter.Writer, in RollingUpdateDaemonSet) { - out.RawByte('{') - first := true - _ = first - if in.MaxSurge != nil { - const prefix string = ",\"maxSurge\":" - first = false - out.RawString(prefix[1:]) - out.String(string(*in.MaxSurge)) - } - if in.MaxUnavailable != nil { - const prefix string = ",\"maxUnavailable\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(*in.MaxUnavailable)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_status_easyjson.go deleted file mode 100644 index 5e50bfb..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_status_easyjson.go +++ /dev/null @@ -1,249 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson1477c5c0DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *DaemonSetStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "collisionCount": - out.CollisionCount = int32(in.Int32()) - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*DaemonSetCondition, 0, 8) - } else { - out.Conditions = []*DaemonSetCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *DaemonSetCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(DaemonSetCondition) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "currentNumberScheduled": - if in.IsNull() { - in.Skip() - out.CurrentNumberScheduled = nil - } else { - if out.CurrentNumberScheduled == nil { - out.CurrentNumberScheduled = new(int32) - } - *out.CurrentNumberScheduled = int32(in.Int32()) - } - case "desiredNumberScheduled": - if in.IsNull() { - in.Skip() - out.DesiredNumberScheduled = nil - } else { - if out.DesiredNumberScheduled == nil { - out.DesiredNumberScheduled = new(int32) - } - *out.DesiredNumberScheduled = int32(in.Int32()) - } - case "numberAvailable": - out.NumberAvailable = int32(in.Int32()) - case "numberMisscheduled": - if in.IsNull() { - in.Skip() - out.NumberMisscheduled = nil - } else { - if out.NumberMisscheduled == nil { - out.NumberMisscheduled = new(int32) - } - *out.NumberMisscheduled = int32(in.Int32()) - } - case "numberReady": - if in.IsNull() { - in.Skip() - out.NumberReady = nil - } else { - if out.NumberReady == nil { - out.NumberReady = new(int32) - } - *out.NumberReady = int32(in.Int32()) - } - case "numberUnavailable": - out.NumberUnavailable = int32(in.Int32()) - case "observedGeneration": - out.ObservedGeneration = int64(in.Int64()) - case "updatedNumberScheduled": - out.UpdatedNumberScheduled = int32(in.Int32()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1477c5c0EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in DaemonSetStatus) { - out.RawByte('{') - first := true - _ = first - if in.CollisionCount != 0 { - const prefix string = ",\"collisionCount\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.CollisionCount)) - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - { - const prefix string = ",\"currentNumberScheduled\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.CurrentNumberScheduled == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.CurrentNumberScheduled)) - } - } - { - const prefix string = ",\"desiredNumberScheduled\":" - out.RawString(prefix) - if in.DesiredNumberScheduled == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.DesiredNumberScheduled)) - } - } - if in.NumberAvailable != 0 { - const prefix string = ",\"numberAvailable\":" - out.RawString(prefix) - out.Int32(int32(in.NumberAvailable)) - } - { - const prefix string = ",\"numberMisscheduled\":" - out.RawString(prefix) - if in.NumberMisscheduled == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.NumberMisscheduled)) - } - } - { - const prefix string = ",\"numberReady\":" - out.RawString(prefix) - if in.NumberReady == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.NumberReady)) - } - } - if in.NumberUnavailable != 0 { - const prefix string = ",\"numberUnavailable\":" - out.RawString(prefix) - out.Int32(int32(in.NumberUnavailable)) - } - if in.ObservedGeneration != 0 { - const prefix string = ",\"observedGeneration\":" - out.RawString(prefix) - out.Int64(int64(in.ObservedGeneration)) - } - if in.UpdatedNumberScheduled != 0 { - const prefix string = ",\"updatedNumberScheduled\":" - out.RawString(prefix) - out.Int32(int32(in.UpdatedNumberScheduled)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DaemonSetStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson1477c5c0EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DaemonSetStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjson1477c5c0EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DaemonSetStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson1477c5c0DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DaemonSetStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson1477c5c0DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_update_strategy.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_update_strategy.go index 1774793..6bcdf8c 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_update_strategy.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_update_strategy.go @@ -14,7 +14,5 @@ type DaemonSetUpdateStrategy struct { RollingUpdate *RollingUpdateDaemonSet `json:"rollingUpdate,omitempty"` // Type of daemon set update. Can be "RollingUpdate" or "OnDelete". Default is RollingUpdate. - // - // Type string `json:"type,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_update_strategy_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_update_strategy_easyjson.go deleted file mode 100644 index 585e744..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_update_strategy_easyjson.go +++ /dev/null @@ -1,178 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson2b5a1f69DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *DaemonSetUpdateStrategy) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "rollingUpdate": - if in.IsNull() { - in.Skip() - out.RollingUpdate = nil - } else { - if out.RollingUpdate == nil { - out.RollingUpdate = new(RollingUpdateDaemonSet) - } - easyjson2b5a1f69DecodeGithubComKubewardenK8sObjectsApiAppsV11(in, out.RollingUpdate) - } - case "type": - out.Type = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2b5a1f69EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in DaemonSetUpdateStrategy) { - out.RawByte('{') - first := true - _ = first - if in.RollingUpdate != nil { - const prefix string = ",\"rollingUpdate\":" - first = false - out.RawString(prefix[1:]) - easyjson2b5a1f69EncodeGithubComKubewardenK8sObjectsApiAppsV11(out, *in.RollingUpdate) - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DaemonSetUpdateStrategy) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson2b5a1f69EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DaemonSetUpdateStrategy) MarshalEasyJSON(w *jwriter.Writer) { - easyjson2b5a1f69EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DaemonSetUpdateStrategy) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson2b5a1f69DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DaemonSetUpdateStrategy) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson2b5a1f69DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} -func easyjson2b5a1f69DecodeGithubComKubewardenK8sObjectsApiAppsV11(in *jlexer.Lexer, out *RollingUpdateDaemonSet) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "maxSurge": - if in.IsNull() { - in.Skip() - out.MaxSurge = nil - } else { - if out.MaxSurge == nil { - out.MaxSurge = new(intstr.IntOrString) - } - *out.MaxSurge = intstr.IntOrString(in.String()) - } - case "maxUnavailable": - if in.IsNull() { - in.Skip() - out.MaxUnavailable = nil - } else { - if out.MaxUnavailable == nil { - out.MaxUnavailable = new(intstr.IntOrString) - } - *out.MaxUnavailable = intstr.IntOrString(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2b5a1f69EncodeGithubComKubewardenK8sObjectsApiAppsV11(out *jwriter.Writer, in RollingUpdateDaemonSet) { - out.RawByte('{') - first := true - _ = first - if in.MaxSurge != nil { - const prefix string = ",\"maxSurge\":" - first = false - out.RawString(prefix[1:]) - out.String(string(*in.MaxSurge)) - } - if in.MaxUnavailable != nil { - const prefix string = ",\"maxUnavailable\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(*in.MaxUnavailable)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_condition_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_condition_easyjson.go deleted file mode 100644 index 2dcec42..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_condition_easyjson.go +++ /dev/null @@ -1,186 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson7ddec57fDecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *DeploymentCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "lastUpdateTime": - if in.IsNull() { - in.Skip() - out.LastUpdateTime = nil - } else { - if out.LastUpdateTime == nil { - out.LastUpdateTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastUpdateTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7ddec57fEncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in DeploymentCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.LastUpdateTime != nil { - const prefix string = ",\"lastUpdateTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.LastUpdateTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DeploymentCondition) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson7ddec57fEncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DeploymentCondition) MarshalEasyJSON(w *jwriter.Writer) { - easyjson7ddec57fEncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DeploymentCondition) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson7ddec57fDecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DeploymentCondition) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson7ddec57fDecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_easyjson.go deleted file mode 100644 index 111109c..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_easyjson.go +++ /dev/null @@ -1,755 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v11 "github.com/kubewarden/k8s-objects/api/core/v1" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonC7c6e959DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *Deployment) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(DeploymentSpec) - } - easyjsonC7c6e959DecodeGithubComKubewardenK8sObjectsApiAppsV11(in, out.Spec) - } - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(DeploymentStatus) - } - easyjsonC7c6e959DecodeGithubComKubewardenK8sObjectsApiAppsV12(in, out.Status) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7c6e959EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in Deployment) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonC7c6e959EncodeGithubComKubewardenK8sObjectsApiAppsV11(out, *in.Spec) - } - if in.Status != nil { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonC7c6e959EncodeGithubComKubewardenK8sObjectsApiAppsV12(out, *in.Status) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Deployment) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC7c6e959EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Deployment) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC7c6e959EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Deployment) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC7c6e959DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Deployment) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC7c6e959DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} -func easyjsonC7c6e959DecodeGithubComKubewardenK8sObjectsApiAppsV12(in *jlexer.Lexer, out *DeploymentStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "availableReplicas": - out.AvailableReplicas = int32(in.Int32()) - case "collisionCount": - out.CollisionCount = int32(in.Int32()) - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*DeploymentCondition, 0, 8) - } else { - out.Conditions = []*DeploymentCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *DeploymentCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(DeploymentCondition) - } - easyjsonC7c6e959DecodeGithubComKubewardenK8sObjectsApiAppsV13(in, v1) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "observedGeneration": - out.ObservedGeneration = int64(in.Int64()) - case "readyReplicas": - out.ReadyReplicas = int32(in.Int32()) - case "replicas": - out.Replicas = int32(in.Int32()) - case "unavailableReplicas": - out.UnavailableReplicas = int32(in.Int32()) - case "updatedReplicas": - out.UpdatedReplicas = int32(in.Int32()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7c6e959EncodeGithubComKubewardenK8sObjectsApiAppsV12(out *jwriter.Writer, in DeploymentStatus) { - out.RawByte('{') - first := true - _ = first - if in.AvailableReplicas != 0 { - const prefix string = ",\"availableReplicas\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.AvailableReplicas)) - } - if in.CollisionCount != 0 { - const prefix string = ",\"collisionCount\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.CollisionCount)) - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjsonC7c6e959EncodeGithubComKubewardenK8sObjectsApiAppsV13(out, *v3) - } - } - out.RawByte(']') - } - } - if in.ObservedGeneration != 0 { - const prefix string = ",\"observedGeneration\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.ObservedGeneration)) - } - if in.ReadyReplicas != 0 { - const prefix string = ",\"readyReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.ReadyReplicas)) - } - if in.Replicas != 0 { - const prefix string = ",\"replicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Replicas)) - } - if in.UnavailableReplicas != 0 { - const prefix string = ",\"unavailableReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.UnavailableReplicas)) - } - if in.UpdatedReplicas != 0 { - const prefix string = ",\"updatedReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.UpdatedReplicas)) - } - out.RawByte('}') -} -func easyjsonC7c6e959DecodeGithubComKubewardenK8sObjectsApiAppsV13(in *jlexer.Lexer, out *DeploymentCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "lastUpdateTime": - if in.IsNull() { - in.Skip() - out.LastUpdateTime = nil - } else { - if out.LastUpdateTime == nil { - out.LastUpdateTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastUpdateTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7c6e959EncodeGithubComKubewardenK8sObjectsApiAppsV13(out *jwriter.Writer, in DeploymentCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.LastUpdateTime != nil { - const prefix string = ",\"lastUpdateTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.LastUpdateTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} -func easyjsonC7c6e959DecodeGithubComKubewardenK8sObjectsApiAppsV11(in *jlexer.Lexer, out *DeploymentSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "minReadySeconds": - out.MinReadySeconds = int32(in.Int32()) - case "paused": - out.Paused = bool(in.Bool()) - case "progressDeadlineSeconds": - out.ProgressDeadlineSeconds = int32(in.Int32()) - case "replicas": - out.Replicas = int32(in.Int32()) - case "revisionHistoryLimit": - out.RevisionHistoryLimit = int32(in.Int32()) - case "selector": - if in.IsNull() { - in.Skip() - out.Selector = nil - } else { - if out.Selector == nil { - out.Selector = new(_v1.LabelSelector) - } - (*out.Selector).UnmarshalEasyJSON(in) - } - case "strategy": - if in.IsNull() { - in.Skip() - out.Strategy = nil - } else { - if out.Strategy == nil { - out.Strategy = new(DeploymentStrategy) - } - easyjsonC7c6e959DecodeGithubComKubewardenK8sObjectsApiAppsV14(in, out.Strategy) - } - case "template": - if in.IsNull() { - in.Skip() - out.Template = nil - } else { - if out.Template == nil { - out.Template = new(_v11.PodTemplateSpec) - } - (*out.Template).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7c6e959EncodeGithubComKubewardenK8sObjectsApiAppsV11(out *jwriter.Writer, in DeploymentSpec) { - out.RawByte('{') - first := true - _ = first - if in.MinReadySeconds != 0 { - const prefix string = ",\"minReadySeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.MinReadySeconds)) - } - if in.Paused { - const prefix string = ",\"paused\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Paused)) - } - if in.ProgressDeadlineSeconds != 0 { - const prefix string = ",\"progressDeadlineSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.ProgressDeadlineSeconds)) - } - if in.Replicas != 0 { - const prefix string = ",\"replicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Replicas)) - } - if in.RevisionHistoryLimit != 0 { - const prefix string = ",\"revisionHistoryLimit\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.RevisionHistoryLimit)) - } - { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Selector == nil { - out.RawString("null") - } else { - (*in.Selector).MarshalEasyJSON(out) - } - } - if in.Strategy != nil { - const prefix string = ",\"strategy\":" - out.RawString(prefix) - easyjsonC7c6e959EncodeGithubComKubewardenK8sObjectsApiAppsV14(out, *in.Strategy) - } - { - const prefix string = ",\"template\":" - out.RawString(prefix) - if in.Template == nil { - out.RawString("null") - } else { - (*in.Template).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} -func easyjsonC7c6e959DecodeGithubComKubewardenK8sObjectsApiAppsV14(in *jlexer.Lexer, out *DeploymentStrategy) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "rollingUpdate": - if in.IsNull() { - in.Skip() - out.RollingUpdate = nil - } else { - if out.RollingUpdate == nil { - out.RollingUpdate = new(RollingUpdateDeployment) - } - easyjsonC7c6e959DecodeGithubComKubewardenK8sObjectsApiAppsV15(in, out.RollingUpdate) - } - case "type": - out.Type = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7c6e959EncodeGithubComKubewardenK8sObjectsApiAppsV14(out *jwriter.Writer, in DeploymentStrategy) { - out.RawByte('{') - first := true - _ = first - if in.RollingUpdate != nil { - const prefix string = ",\"rollingUpdate\":" - first = false - out.RawString(prefix[1:]) - easyjsonC7c6e959EncodeGithubComKubewardenK8sObjectsApiAppsV15(out, *in.RollingUpdate) - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - out.RawByte('}') -} -func easyjsonC7c6e959DecodeGithubComKubewardenK8sObjectsApiAppsV15(in *jlexer.Lexer, out *RollingUpdateDeployment) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "maxSurge": - if in.IsNull() { - in.Skip() - out.MaxSurge = nil - } else { - if out.MaxSurge == nil { - out.MaxSurge = new(intstr.IntOrString) - } - *out.MaxSurge = intstr.IntOrString(in.String()) - } - case "maxUnavailable": - if in.IsNull() { - in.Skip() - out.MaxUnavailable = nil - } else { - if out.MaxUnavailable == nil { - out.MaxUnavailable = new(intstr.IntOrString) - } - *out.MaxUnavailable = intstr.IntOrString(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7c6e959EncodeGithubComKubewardenK8sObjectsApiAppsV15(out *jwriter.Writer, in RollingUpdateDeployment) { - out.RawByte('{') - first := true - _ = first - if in.MaxSurge != nil { - const prefix string = ",\"maxSurge\":" - first = false - out.RawString(prefix[1:]) - out.String(string(*in.MaxSurge)) - } - if in.MaxUnavailable != nil { - const prefix string = ",\"maxUnavailable\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(*in.MaxUnavailable)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_list_easyjson.go deleted file mode 100644 index 02b29a8..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson82e9aad2DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *DeploymentList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*Deployment, 0, 8) - } else { - out.Items = []*Deployment{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *Deployment - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(Deployment) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson82e9aad2EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in DeploymentList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DeploymentList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson82e9aad2EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DeploymentList) MarshalEasyJSON(w *jwriter.Writer) { - easyjson82e9aad2EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DeploymentList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson82e9aad2DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DeploymentList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson82e9aad2DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_spec.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_spec.go index 73720a6..10ef8eb 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_spec.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_spec.go @@ -37,7 +37,7 @@ type DeploymentSpec struct { // The deployment strategy to use to replace existing pods with new ones. Strategy *DeploymentStrategy `json:"strategy,omitempty"` - // Template describes the pods that will be created. + // Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is "Always". // Required: true Template *api_core_v1.PodTemplateSpec `json:"template"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_spec_easyjson.go deleted file mode 100644 index 60f683e..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_spec_easyjson.go +++ /dev/null @@ -1,329 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v11 "github.com/kubewarden/k8s-objects/api/core/v1" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson9460807fDecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *DeploymentSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "minReadySeconds": - out.MinReadySeconds = int32(in.Int32()) - case "paused": - out.Paused = bool(in.Bool()) - case "progressDeadlineSeconds": - out.ProgressDeadlineSeconds = int32(in.Int32()) - case "replicas": - out.Replicas = int32(in.Int32()) - case "revisionHistoryLimit": - out.RevisionHistoryLimit = int32(in.Int32()) - case "selector": - if in.IsNull() { - in.Skip() - out.Selector = nil - } else { - if out.Selector == nil { - out.Selector = new(_v1.LabelSelector) - } - (*out.Selector).UnmarshalEasyJSON(in) - } - case "strategy": - if in.IsNull() { - in.Skip() - out.Strategy = nil - } else { - if out.Strategy == nil { - out.Strategy = new(DeploymentStrategy) - } - easyjson9460807fDecodeGithubComKubewardenK8sObjectsApiAppsV11(in, out.Strategy) - } - case "template": - if in.IsNull() { - in.Skip() - out.Template = nil - } else { - if out.Template == nil { - out.Template = new(_v11.PodTemplateSpec) - } - (*out.Template).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9460807fEncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in DeploymentSpec) { - out.RawByte('{') - first := true - _ = first - if in.MinReadySeconds != 0 { - const prefix string = ",\"minReadySeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.MinReadySeconds)) - } - if in.Paused { - const prefix string = ",\"paused\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Paused)) - } - if in.ProgressDeadlineSeconds != 0 { - const prefix string = ",\"progressDeadlineSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.ProgressDeadlineSeconds)) - } - if in.Replicas != 0 { - const prefix string = ",\"replicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Replicas)) - } - if in.RevisionHistoryLimit != 0 { - const prefix string = ",\"revisionHistoryLimit\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.RevisionHistoryLimit)) - } - { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Selector == nil { - out.RawString("null") - } else { - (*in.Selector).MarshalEasyJSON(out) - } - } - if in.Strategy != nil { - const prefix string = ",\"strategy\":" - out.RawString(prefix) - easyjson9460807fEncodeGithubComKubewardenK8sObjectsApiAppsV11(out, *in.Strategy) - } - { - const prefix string = ",\"template\":" - out.RawString(prefix) - if in.Template == nil { - out.RawString("null") - } else { - (*in.Template).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DeploymentSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson9460807fEncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DeploymentSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjson9460807fEncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DeploymentSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson9460807fDecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DeploymentSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson9460807fDecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} -func easyjson9460807fDecodeGithubComKubewardenK8sObjectsApiAppsV11(in *jlexer.Lexer, out *DeploymentStrategy) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "rollingUpdate": - if in.IsNull() { - in.Skip() - out.RollingUpdate = nil - } else { - if out.RollingUpdate == nil { - out.RollingUpdate = new(RollingUpdateDeployment) - } - easyjson9460807fDecodeGithubComKubewardenK8sObjectsApiAppsV12(in, out.RollingUpdate) - } - case "type": - out.Type = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9460807fEncodeGithubComKubewardenK8sObjectsApiAppsV11(out *jwriter.Writer, in DeploymentStrategy) { - out.RawByte('{') - first := true - _ = first - if in.RollingUpdate != nil { - const prefix string = ",\"rollingUpdate\":" - first = false - out.RawString(prefix[1:]) - easyjson9460807fEncodeGithubComKubewardenK8sObjectsApiAppsV12(out, *in.RollingUpdate) - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - out.RawByte('}') -} -func easyjson9460807fDecodeGithubComKubewardenK8sObjectsApiAppsV12(in *jlexer.Lexer, out *RollingUpdateDeployment) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "maxSurge": - if in.IsNull() { - in.Skip() - out.MaxSurge = nil - } else { - if out.MaxSurge == nil { - out.MaxSurge = new(intstr.IntOrString) - } - *out.MaxSurge = intstr.IntOrString(in.String()) - } - case "maxUnavailable": - if in.IsNull() { - in.Skip() - out.MaxUnavailable = nil - } else { - if out.MaxUnavailable == nil { - out.MaxUnavailable = new(intstr.IntOrString) - } - *out.MaxUnavailable = intstr.IntOrString(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9460807fEncodeGithubComKubewardenK8sObjectsApiAppsV12(out *jwriter.Writer, in RollingUpdateDeployment) { - out.RawByte('{') - first := true - _ = first - if in.MaxSurge != nil { - const prefix string = ",\"maxSurge\":" - first = false - out.RawString(prefix[1:]) - out.String(string(*in.MaxSurge)) - } - if in.MaxUnavailable != nil { - const prefix string = ",\"maxUnavailable\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(*in.MaxUnavailable)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_status_easyjson.go deleted file mode 100644 index d6c06b4..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_status_easyjson.go +++ /dev/null @@ -1,212 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson7381fb58DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *DeploymentStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "availableReplicas": - out.AvailableReplicas = int32(in.Int32()) - case "collisionCount": - out.CollisionCount = int32(in.Int32()) - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*DeploymentCondition, 0, 8) - } else { - out.Conditions = []*DeploymentCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *DeploymentCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(DeploymentCondition) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "observedGeneration": - out.ObservedGeneration = int64(in.Int64()) - case "readyReplicas": - out.ReadyReplicas = int32(in.Int32()) - case "replicas": - out.Replicas = int32(in.Int32()) - case "unavailableReplicas": - out.UnavailableReplicas = int32(in.Int32()) - case "updatedReplicas": - out.UpdatedReplicas = int32(in.Int32()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7381fb58EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in DeploymentStatus) { - out.RawByte('{') - first := true - _ = first - if in.AvailableReplicas != 0 { - const prefix string = ",\"availableReplicas\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.AvailableReplicas)) - } - if in.CollisionCount != 0 { - const prefix string = ",\"collisionCount\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.CollisionCount)) - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.ObservedGeneration != 0 { - const prefix string = ",\"observedGeneration\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.ObservedGeneration)) - } - if in.ReadyReplicas != 0 { - const prefix string = ",\"readyReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.ReadyReplicas)) - } - if in.Replicas != 0 { - const prefix string = ",\"replicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Replicas)) - } - if in.UnavailableReplicas != 0 { - const prefix string = ",\"unavailableReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.UnavailableReplicas)) - } - if in.UpdatedReplicas != 0 { - const prefix string = ",\"updatedReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.UpdatedReplicas)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DeploymentStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson7381fb58EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DeploymentStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjson7381fb58EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DeploymentStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson7381fb58DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DeploymentStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson7381fb58DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_strategy.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_strategy.go index c57cec6..046c5f0 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_strategy.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_strategy.go @@ -14,7 +14,5 @@ type DeploymentStrategy struct { RollingUpdate *RollingUpdateDeployment `json:"rollingUpdate,omitempty"` // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate. - // - // Type string `json:"type,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_strategy_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_strategy_easyjson.go deleted file mode 100644 index 8ade724..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_strategy_easyjson.go +++ /dev/null @@ -1,178 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonAd2c9e15DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *DeploymentStrategy) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "rollingUpdate": - if in.IsNull() { - in.Skip() - out.RollingUpdate = nil - } else { - if out.RollingUpdate == nil { - out.RollingUpdate = new(RollingUpdateDeployment) - } - easyjsonAd2c9e15DecodeGithubComKubewardenK8sObjectsApiAppsV11(in, out.RollingUpdate) - } - case "type": - out.Type = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonAd2c9e15EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in DeploymentStrategy) { - out.RawByte('{') - first := true - _ = first - if in.RollingUpdate != nil { - const prefix string = ",\"rollingUpdate\":" - first = false - out.RawString(prefix[1:]) - easyjsonAd2c9e15EncodeGithubComKubewardenK8sObjectsApiAppsV11(out, *in.RollingUpdate) - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DeploymentStrategy) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonAd2c9e15EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DeploymentStrategy) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonAd2c9e15EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DeploymentStrategy) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonAd2c9e15DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DeploymentStrategy) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonAd2c9e15DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} -func easyjsonAd2c9e15DecodeGithubComKubewardenK8sObjectsApiAppsV11(in *jlexer.Lexer, out *RollingUpdateDeployment) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "maxSurge": - if in.IsNull() { - in.Skip() - out.MaxSurge = nil - } else { - if out.MaxSurge == nil { - out.MaxSurge = new(intstr.IntOrString) - } - *out.MaxSurge = intstr.IntOrString(in.String()) - } - case "maxUnavailable": - if in.IsNull() { - in.Skip() - out.MaxUnavailable = nil - } else { - if out.MaxUnavailable == nil { - out.MaxUnavailable = new(intstr.IntOrString) - } - *out.MaxUnavailable = intstr.IntOrString(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonAd2c9e15EncodeGithubComKubewardenK8sObjectsApiAppsV11(out *jwriter.Writer, in RollingUpdateDeployment) { - out.RawByte('{') - first := true - _ = first - if in.MaxSurge != nil { - const prefix string = ",\"maxSurge\":" - first = false - out.RawString(prefix[1:]) - out.String(string(*in.MaxSurge)) - } - if in.MaxUnavailable != nil { - const prefix string = ",\"maxUnavailable\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(*in.MaxUnavailable)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_condition_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_condition_easyjson.go deleted file mode 100644 index e46e6c3..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_condition_easyjson.go +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson270ebef5DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *ReplicaSetCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson270ebef5EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in ReplicaSetCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ReplicaSetCondition) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson270ebef5EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReplicaSetCondition) MarshalEasyJSON(w *jwriter.Writer) { - easyjson270ebef5EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReplicaSetCondition) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson270ebef5DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ReplicaSetCondition) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson270ebef5DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_easyjson.go deleted file mode 100644 index c2fd13c..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_easyjson.go +++ /dev/null @@ -1,531 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v11 "github.com/kubewarden/k8s-objects/api/core/v1" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson1601854fDecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *ReplicaSet) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(ReplicaSetSpec) - } - easyjson1601854fDecodeGithubComKubewardenK8sObjectsApiAppsV11(in, out.Spec) - } - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(ReplicaSetStatus) - } - easyjson1601854fDecodeGithubComKubewardenK8sObjectsApiAppsV12(in, out.Status) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1601854fEncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in ReplicaSet) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1601854fEncodeGithubComKubewardenK8sObjectsApiAppsV11(out, *in.Spec) - } - if in.Status != nil { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1601854fEncodeGithubComKubewardenK8sObjectsApiAppsV12(out, *in.Status) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ReplicaSet) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson1601854fEncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReplicaSet) MarshalEasyJSON(w *jwriter.Writer) { - easyjson1601854fEncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReplicaSet) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson1601854fDecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ReplicaSet) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson1601854fDecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} -func easyjson1601854fDecodeGithubComKubewardenK8sObjectsApiAppsV12(in *jlexer.Lexer, out *ReplicaSetStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "availableReplicas": - out.AvailableReplicas = int32(in.Int32()) - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*ReplicaSetCondition, 0, 8) - } else { - out.Conditions = []*ReplicaSetCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *ReplicaSetCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ReplicaSetCondition) - } - easyjson1601854fDecodeGithubComKubewardenK8sObjectsApiAppsV13(in, v1) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "fullyLabeledReplicas": - out.FullyLabeledReplicas = int32(in.Int32()) - case "observedGeneration": - out.ObservedGeneration = int64(in.Int64()) - case "readyReplicas": - out.ReadyReplicas = int32(in.Int32()) - case "replicas": - if in.IsNull() { - in.Skip() - out.Replicas = nil - } else { - if out.Replicas == nil { - out.Replicas = new(int32) - } - *out.Replicas = int32(in.Int32()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1601854fEncodeGithubComKubewardenK8sObjectsApiAppsV12(out *jwriter.Writer, in ReplicaSetStatus) { - out.RawByte('{') - first := true - _ = first - if in.AvailableReplicas != 0 { - const prefix string = ",\"availableReplicas\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.AvailableReplicas)) - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjson1601854fEncodeGithubComKubewardenK8sObjectsApiAppsV13(out, *v3) - } - } - out.RawByte(']') - } - } - if in.FullyLabeledReplicas != 0 { - const prefix string = ",\"fullyLabeledReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.FullyLabeledReplicas)) - } - if in.ObservedGeneration != 0 { - const prefix string = ",\"observedGeneration\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.ObservedGeneration)) - } - if in.ReadyReplicas != 0 { - const prefix string = ",\"readyReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.ReadyReplicas)) - } - { - const prefix string = ",\"replicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Replicas == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Replicas)) - } - } - out.RawByte('}') -} -func easyjson1601854fDecodeGithubComKubewardenK8sObjectsApiAppsV13(in *jlexer.Lexer, out *ReplicaSetCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1601854fEncodeGithubComKubewardenK8sObjectsApiAppsV13(out *jwriter.Writer, in ReplicaSetCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} -func easyjson1601854fDecodeGithubComKubewardenK8sObjectsApiAppsV11(in *jlexer.Lexer, out *ReplicaSetSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "minReadySeconds": - out.MinReadySeconds = int32(in.Int32()) - case "replicas": - out.Replicas = int32(in.Int32()) - case "selector": - if in.IsNull() { - in.Skip() - out.Selector = nil - } else { - if out.Selector == nil { - out.Selector = new(_v1.LabelSelector) - } - (*out.Selector).UnmarshalEasyJSON(in) - } - case "template": - if in.IsNull() { - in.Skip() - out.Template = nil - } else { - if out.Template == nil { - out.Template = new(_v11.PodTemplateSpec) - } - (*out.Template).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1601854fEncodeGithubComKubewardenK8sObjectsApiAppsV11(out *jwriter.Writer, in ReplicaSetSpec) { - out.RawByte('{') - first := true - _ = first - if in.MinReadySeconds != 0 { - const prefix string = ",\"minReadySeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.MinReadySeconds)) - } - if in.Replicas != 0 { - const prefix string = ",\"replicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Replicas)) - } - { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Selector == nil { - out.RawString("null") - } else { - (*in.Selector).MarshalEasyJSON(out) - } - } - if in.Template != nil { - const prefix string = ",\"template\":" - out.RawString(prefix) - (*in.Template).MarshalEasyJSON(out) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_list_easyjson.go deleted file mode 100644 index fe8ab36..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson738eae34DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *ReplicaSetList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*ReplicaSet, 0, 8) - } else { - out.Items = []*ReplicaSet{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *ReplicaSet - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ReplicaSet) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson738eae34EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in ReplicaSetList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ReplicaSetList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson738eae34EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReplicaSetList) MarshalEasyJSON(w *jwriter.Writer) { - easyjson738eae34EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReplicaSetList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson738eae34DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ReplicaSetList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson738eae34DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_spec_easyjson.go deleted file mode 100644 index 1960e4c..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_spec_easyjson.go +++ /dev/null @@ -1,139 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v11 "github.com/kubewarden/k8s-objects/api/core/v1" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE559dd25DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *ReplicaSetSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "minReadySeconds": - out.MinReadySeconds = int32(in.Int32()) - case "replicas": - out.Replicas = int32(in.Int32()) - case "selector": - if in.IsNull() { - in.Skip() - out.Selector = nil - } else { - if out.Selector == nil { - out.Selector = new(_v1.LabelSelector) - } - (*out.Selector).UnmarshalEasyJSON(in) - } - case "template": - if in.IsNull() { - in.Skip() - out.Template = nil - } else { - if out.Template == nil { - out.Template = new(_v11.PodTemplateSpec) - } - (*out.Template).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE559dd25EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in ReplicaSetSpec) { - out.RawByte('{') - first := true - _ = first - if in.MinReadySeconds != 0 { - const prefix string = ",\"minReadySeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.MinReadySeconds)) - } - if in.Replicas != 0 { - const prefix string = ",\"replicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Replicas)) - } - { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Selector == nil { - out.RawString("null") - } else { - (*in.Selector).MarshalEasyJSON(out) - } - } - if in.Template != nil { - const prefix string = ",\"template\":" - out.RawString(prefix) - (*in.Template).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ReplicaSetSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE559dd25EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReplicaSetSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE559dd25EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReplicaSetSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE559dd25DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ReplicaSetSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE559dd25DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_status.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_status.go index 7914882..43e4e63 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_status.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_status.go @@ -25,7 +25,7 @@ type ReplicaSetStatus struct { // readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition. ReadyReplicas int32 `json:"readyReplicas,omitempty"` - // Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller + // Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller // Required: true Replicas *int32 `json:"replicas"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_status_easyjson.go deleted file mode 100644 index 9775282..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_status_easyjson.go +++ /dev/null @@ -1,200 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson80489276DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *ReplicaSetStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "availableReplicas": - out.AvailableReplicas = int32(in.Int32()) - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*ReplicaSetCondition, 0, 8) - } else { - out.Conditions = []*ReplicaSetCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *ReplicaSetCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ReplicaSetCondition) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "fullyLabeledReplicas": - out.FullyLabeledReplicas = int32(in.Int32()) - case "observedGeneration": - out.ObservedGeneration = int64(in.Int64()) - case "readyReplicas": - out.ReadyReplicas = int32(in.Int32()) - case "replicas": - if in.IsNull() { - in.Skip() - out.Replicas = nil - } else { - if out.Replicas == nil { - out.Replicas = new(int32) - } - *out.Replicas = int32(in.Int32()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson80489276EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in ReplicaSetStatus) { - out.RawByte('{') - first := true - _ = first - if in.AvailableReplicas != 0 { - const prefix string = ",\"availableReplicas\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.AvailableReplicas)) - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.FullyLabeledReplicas != 0 { - const prefix string = ",\"fullyLabeledReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.FullyLabeledReplicas)) - } - if in.ObservedGeneration != 0 { - const prefix string = ",\"observedGeneration\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.ObservedGeneration)) - } - if in.ReadyReplicas != 0 { - const prefix string = ",\"readyReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.ReadyReplicas)) - } - { - const prefix string = ",\"replicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Replicas == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Replicas)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ReplicaSetStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson80489276EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReplicaSetStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjson80489276EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReplicaSetStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson80489276DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ReplicaSetStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson80489276DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/rolling_update_daemon_set.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/rolling_update_daemon_set.go index 6744941..5b31af5 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/rolling_update_daemon_set.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/rolling_update_daemon_set.go @@ -14,7 +14,7 @@ import ( // swagger:model RollingUpdateDaemonSet type RollingUpdateDaemonSet struct { - // The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate. + // The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. MaxSurge *apimachinery_pkg_util_intstr.IntOrString `json:"maxSurge,omitempty"` // The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/rolling_update_daemon_set_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/rolling_update_daemon_set_easyjson.go deleted file mode 100644 index a35cf06..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/rolling_update_daemon_set_easyjson.go +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonEdf3b953DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *RollingUpdateDaemonSet) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "maxSurge": - if in.IsNull() { - in.Skip() - out.MaxSurge = nil - } else { - if out.MaxSurge == nil { - out.MaxSurge = new(intstr.IntOrString) - } - *out.MaxSurge = intstr.IntOrString(in.String()) - } - case "maxUnavailable": - if in.IsNull() { - in.Skip() - out.MaxUnavailable = nil - } else { - if out.MaxUnavailable == nil { - out.MaxUnavailable = new(intstr.IntOrString) - } - *out.MaxUnavailable = intstr.IntOrString(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonEdf3b953EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in RollingUpdateDaemonSet) { - out.RawByte('{') - first := true - _ = first - if in.MaxSurge != nil { - const prefix string = ",\"maxSurge\":" - first = false - out.RawString(prefix[1:]) - out.String(string(*in.MaxSurge)) - } - if in.MaxUnavailable != nil { - const prefix string = ",\"maxUnavailable\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(*in.MaxUnavailable)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RollingUpdateDaemonSet) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonEdf3b953EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RollingUpdateDaemonSet) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonEdf3b953EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RollingUpdateDaemonSet) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonEdf3b953DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RollingUpdateDaemonSet) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonEdf3b953DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/rolling_update_deployment_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/rolling_update_deployment_easyjson.go deleted file mode 100644 index 8deb0bc..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/rolling_update_deployment_easyjson.go +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE6692ddbDecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *RollingUpdateDeployment) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "maxSurge": - if in.IsNull() { - in.Skip() - out.MaxSurge = nil - } else { - if out.MaxSurge == nil { - out.MaxSurge = new(intstr.IntOrString) - } - *out.MaxSurge = intstr.IntOrString(in.String()) - } - case "maxUnavailable": - if in.IsNull() { - in.Skip() - out.MaxUnavailable = nil - } else { - if out.MaxUnavailable == nil { - out.MaxUnavailable = new(intstr.IntOrString) - } - *out.MaxUnavailable = intstr.IntOrString(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE6692ddbEncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in RollingUpdateDeployment) { - out.RawByte('{') - first := true - _ = first - if in.MaxSurge != nil { - const prefix string = ",\"maxSurge\":" - first = false - out.RawString(prefix[1:]) - out.String(string(*in.MaxSurge)) - } - if in.MaxUnavailable != nil { - const prefix string = ",\"maxUnavailable\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(*in.MaxUnavailable)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RollingUpdateDeployment) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE6692ddbEncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RollingUpdateDeployment) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE6692ddbEncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RollingUpdateDeployment) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE6692ddbDecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RollingUpdateDeployment) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE6692ddbDecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/rolling_update_stateful_set_strategy_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/rolling_update_stateful_set_strategy_easyjson.go deleted file mode 100644 index acc47e2..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/rolling_update_stateful_set_strategy_easyjson.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson923deb3fDecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *RollingUpdateStatefulSetStrategy) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "maxUnavailable": - if in.IsNull() { - in.Skip() - out.MaxUnavailable = nil - } else { - if out.MaxUnavailable == nil { - out.MaxUnavailable = new(intstr.IntOrString) - } - *out.MaxUnavailable = intstr.IntOrString(in.String()) - } - case "partition": - out.Partition = int32(in.Int32()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson923deb3fEncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in RollingUpdateStatefulSetStrategy) { - out.RawByte('{') - first := true - _ = first - if in.MaxUnavailable != nil { - const prefix string = ",\"maxUnavailable\":" - first = false - out.RawString(prefix[1:]) - out.String(string(*in.MaxUnavailable)) - } - if in.Partition != 0 { - const prefix string = ",\"partition\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Partition)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RollingUpdateStatefulSetStrategy) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson923deb3fEncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RollingUpdateStatefulSetStrategy) MarshalEasyJSON(w *jwriter.Writer) { - easyjson923deb3fEncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RollingUpdateStatefulSetStrategy) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson923deb3fDecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RollingUpdateStatefulSetStrategy) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson923deb3fDecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set.go index 1b0821c..b7f678d 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set.go @@ -10,8 +10,9 @@ import ( ) // StatefulSet StatefulSet represents a set of pods with consistent identities. Identities are defined as: -// - Network: A single stable DNS and hostname. -// - Storage: As many VolumeClaims as requested. +// - Network: A single stable DNS and hostname. +// - Storage: As many VolumeClaims as requested. +// // The StatefulSet guarantees that a given network identity will always map to the same storage identity. // // swagger:model StatefulSet diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_condition_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_condition_easyjson.go deleted file mode 100644 index b816eef..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_condition_easyjson.go +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson3621af33DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *StatefulSetCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson3621af33EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in StatefulSetCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StatefulSetCondition) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson3621af33EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StatefulSetCondition) MarshalEasyJSON(w *jwriter.Writer) { - easyjson3621af33EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StatefulSetCondition) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson3621af33DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StatefulSetCondition) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson3621af33DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_easyjson.go deleted file mode 100644 index c5d7c78..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_easyjson.go +++ /dev/null @@ -1,818 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v11 "github.com/kubewarden/k8s-objects/api/core/v1" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonB4d3c875DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *StatefulSet) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(StatefulSetSpec) - } - easyjsonB4d3c875DecodeGithubComKubewardenK8sObjectsApiAppsV11(in, out.Spec) - } - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(StatefulSetStatus) - } - easyjsonB4d3c875DecodeGithubComKubewardenK8sObjectsApiAppsV12(in, out.Status) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB4d3c875EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in StatefulSet) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonB4d3c875EncodeGithubComKubewardenK8sObjectsApiAppsV11(out, *in.Spec) - } - if in.Status != nil { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonB4d3c875EncodeGithubComKubewardenK8sObjectsApiAppsV12(out, *in.Status) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StatefulSet) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonB4d3c875EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StatefulSet) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonB4d3c875EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StatefulSet) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonB4d3c875DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StatefulSet) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonB4d3c875DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} -func easyjsonB4d3c875DecodeGithubComKubewardenK8sObjectsApiAppsV12(in *jlexer.Lexer, out *StatefulSetStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "availableReplicas": - out.AvailableReplicas = int32(in.Int32()) - case "collisionCount": - out.CollisionCount = int32(in.Int32()) - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*StatefulSetCondition, 0, 8) - } else { - out.Conditions = []*StatefulSetCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *StatefulSetCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(StatefulSetCondition) - } - easyjsonB4d3c875DecodeGithubComKubewardenK8sObjectsApiAppsV13(in, v1) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "currentReplicas": - out.CurrentReplicas = int32(in.Int32()) - case "currentRevision": - out.CurrentRevision = string(in.String()) - case "observedGeneration": - out.ObservedGeneration = int64(in.Int64()) - case "readyReplicas": - out.ReadyReplicas = int32(in.Int32()) - case "replicas": - if in.IsNull() { - in.Skip() - out.Replicas = nil - } else { - if out.Replicas == nil { - out.Replicas = new(int32) - } - *out.Replicas = int32(in.Int32()) - } - case "updateRevision": - out.UpdateRevision = string(in.String()) - case "updatedReplicas": - out.UpdatedReplicas = int32(in.Int32()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB4d3c875EncodeGithubComKubewardenK8sObjectsApiAppsV12(out *jwriter.Writer, in StatefulSetStatus) { - out.RawByte('{') - first := true - _ = first - if in.AvailableReplicas != 0 { - const prefix string = ",\"availableReplicas\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.AvailableReplicas)) - } - if in.CollisionCount != 0 { - const prefix string = ",\"collisionCount\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.CollisionCount)) - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjsonB4d3c875EncodeGithubComKubewardenK8sObjectsApiAppsV13(out, *v3) - } - } - out.RawByte(']') - } - } - if in.CurrentReplicas != 0 { - const prefix string = ",\"currentReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.CurrentReplicas)) - } - if in.CurrentRevision != "" { - const prefix string = ",\"currentRevision\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.CurrentRevision)) - } - if in.ObservedGeneration != 0 { - const prefix string = ",\"observedGeneration\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.ObservedGeneration)) - } - if in.ReadyReplicas != 0 { - const prefix string = ",\"readyReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.ReadyReplicas)) - } - { - const prefix string = ",\"replicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Replicas == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Replicas)) - } - } - if in.UpdateRevision != "" { - const prefix string = ",\"updateRevision\":" - out.RawString(prefix) - out.String(string(in.UpdateRevision)) - } - if in.UpdatedReplicas != 0 { - const prefix string = ",\"updatedReplicas\":" - out.RawString(prefix) - out.Int32(int32(in.UpdatedReplicas)) - } - out.RawByte('}') -} -func easyjsonB4d3c875DecodeGithubComKubewardenK8sObjectsApiAppsV13(in *jlexer.Lexer, out *StatefulSetCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB4d3c875EncodeGithubComKubewardenK8sObjectsApiAppsV13(out *jwriter.Writer, in StatefulSetCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} -func easyjsonB4d3c875DecodeGithubComKubewardenK8sObjectsApiAppsV11(in *jlexer.Lexer, out *StatefulSetSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "minReadySeconds": - out.MinReadySeconds = int32(in.Int32()) - case "persistentVolumeClaimRetentionPolicy": - if in.IsNull() { - in.Skip() - out.PersistentVolumeClaimRetentionPolicy = nil - } else { - if out.PersistentVolumeClaimRetentionPolicy == nil { - out.PersistentVolumeClaimRetentionPolicy = new(StatefulSetPersistentVolumeClaimRetentionPolicy) - } - easyjsonB4d3c875DecodeGithubComKubewardenK8sObjectsApiAppsV14(in, out.PersistentVolumeClaimRetentionPolicy) - } - case "podManagementPolicy": - out.PodManagementPolicy = string(in.String()) - case "replicas": - out.Replicas = int32(in.Int32()) - case "revisionHistoryLimit": - out.RevisionHistoryLimit = int32(in.Int32()) - case "selector": - if in.IsNull() { - in.Skip() - out.Selector = nil - } else { - if out.Selector == nil { - out.Selector = new(_v1.LabelSelector) - } - (*out.Selector).UnmarshalEasyJSON(in) - } - case "serviceName": - if in.IsNull() { - in.Skip() - out.ServiceName = nil - } else { - if out.ServiceName == nil { - out.ServiceName = new(string) - } - *out.ServiceName = string(in.String()) - } - case "template": - if in.IsNull() { - in.Skip() - out.Template = nil - } else { - if out.Template == nil { - out.Template = new(_v11.PodTemplateSpec) - } - (*out.Template).UnmarshalEasyJSON(in) - } - case "updateStrategy": - if in.IsNull() { - in.Skip() - out.UpdateStrategy = nil - } else { - if out.UpdateStrategy == nil { - out.UpdateStrategy = new(StatefulSetUpdateStrategy) - } - easyjsonB4d3c875DecodeGithubComKubewardenK8sObjectsApiAppsV15(in, out.UpdateStrategy) - } - case "volumeClaimTemplates": - if in.IsNull() { - in.Skip() - out.VolumeClaimTemplates = nil - } else { - in.Delim('[') - if out.VolumeClaimTemplates == nil { - if !in.IsDelim(']') { - out.VolumeClaimTemplates = make([]*_v11.PersistentVolumeClaim, 0, 8) - } else { - out.VolumeClaimTemplates = []*_v11.PersistentVolumeClaim{} - } - } else { - out.VolumeClaimTemplates = (out.VolumeClaimTemplates)[:0] - } - for !in.IsDelim(']') { - var v4 *_v11.PersistentVolumeClaim - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(_v11.PersistentVolumeClaim) - } - (*v4).UnmarshalEasyJSON(in) - } - out.VolumeClaimTemplates = append(out.VolumeClaimTemplates, v4) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB4d3c875EncodeGithubComKubewardenK8sObjectsApiAppsV11(out *jwriter.Writer, in StatefulSetSpec) { - out.RawByte('{') - first := true - _ = first - if in.MinReadySeconds != 0 { - const prefix string = ",\"minReadySeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.MinReadySeconds)) - } - if in.PersistentVolumeClaimRetentionPolicy != nil { - const prefix string = ",\"persistentVolumeClaimRetentionPolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonB4d3c875EncodeGithubComKubewardenK8sObjectsApiAppsV14(out, *in.PersistentVolumeClaimRetentionPolicy) - } - if in.PodManagementPolicy != "" { - const prefix string = ",\"podManagementPolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.PodManagementPolicy)) - } - if in.Replicas != 0 { - const prefix string = ",\"replicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Replicas)) - } - if in.RevisionHistoryLimit != 0 { - const prefix string = ",\"revisionHistoryLimit\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.RevisionHistoryLimit)) - } - { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Selector == nil { - out.RawString("null") - } else { - (*in.Selector).MarshalEasyJSON(out) - } - } - { - const prefix string = ",\"serviceName\":" - out.RawString(prefix) - if in.ServiceName == nil { - out.RawString("null") - } else { - out.String(string(*in.ServiceName)) - } - } - { - const prefix string = ",\"template\":" - out.RawString(prefix) - if in.Template == nil { - out.RawString("null") - } else { - (*in.Template).MarshalEasyJSON(out) - } - } - if in.UpdateStrategy != nil { - const prefix string = ",\"updateStrategy\":" - out.RawString(prefix) - easyjsonB4d3c875EncodeGithubComKubewardenK8sObjectsApiAppsV15(out, *in.UpdateStrategy) - } - if len(in.VolumeClaimTemplates) != 0 { - const prefix string = ",\"volumeClaimTemplates\":" - out.RawString(prefix) - { - out.RawByte('[') - for v5, v6 := range in.VolumeClaimTemplates { - if v5 > 0 { - out.RawByte(',') - } - if v6 == nil { - out.RawString("null") - } else { - (*v6).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjsonB4d3c875DecodeGithubComKubewardenK8sObjectsApiAppsV15(in *jlexer.Lexer, out *StatefulSetUpdateStrategy) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "rollingUpdate": - if in.IsNull() { - in.Skip() - out.RollingUpdate = nil - } else { - if out.RollingUpdate == nil { - out.RollingUpdate = new(RollingUpdateStatefulSetStrategy) - } - (*out.RollingUpdate).UnmarshalEasyJSON(in) - } - case "type": - out.Type = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB4d3c875EncodeGithubComKubewardenK8sObjectsApiAppsV15(out *jwriter.Writer, in StatefulSetUpdateStrategy) { - out.RawByte('{') - first := true - _ = first - if in.RollingUpdate != nil { - const prefix string = ",\"rollingUpdate\":" - first = false - out.RawString(prefix[1:]) - (*in.RollingUpdate).MarshalEasyJSON(out) - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - out.RawByte('}') -} -func easyjsonB4d3c875DecodeGithubComKubewardenK8sObjectsApiAppsV14(in *jlexer.Lexer, out *StatefulSetPersistentVolumeClaimRetentionPolicy) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "whenDeleted": - out.WhenDeleted = string(in.String()) - case "whenScaled": - out.WhenScaled = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB4d3c875EncodeGithubComKubewardenK8sObjectsApiAppsV14(out *jwriter.Writer, in StatefulSetPersistentVolumeClaimRetentionPolicy) { - out.RawByte('{') - first := true - _ = first - if in.WhenDeleted != "" { - const prefix string = ",\"whenDeleted\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.WhenDeleted)) - } - if in.WhenScaled != "" { - const prefix string = ",\"whenScaled\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.WhenScaled)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_list_easyjson.go deleted file mode 100644 index 9a963fc..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson87bcad4eDecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *StatefulSetList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*StatefulSet, 0, 8) - } else { - out.Items = []*StatefulSet{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *StatefulSet - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(StatefulSet) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson87bcad4eEncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in StatefulSetList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StatefulSetList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson87bcad4eEncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StatefulSetList) MarshalEasyJSON(w *jwriter.Writer) { - easyjson87bcad4eEncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StatefulSetList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson87bcad4eDecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StatefulSetList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson87bcad4eDecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_ordinals.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_ordinals.go new file mode 100644 index 0000000..b15c2ba --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_ordinals.go @@ -0,0 +1,18 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +// StatefulSetOrdinals StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet. +// +// swagger:model StatefulSetOrdinals +type StatefulSetOrdinals struct { + + // start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range: + // [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas). + // If unset, defaults to 0. Replica indices will be in the range: + // [0, .spec.replicas). + Start int32 `json:"start,omitempty"` +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_persistent_volume_claim_retention_policy_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_persistent_volume_claim_retention_policy_easyjson.go deleted file mode 100644 index 703250a..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_persistent_volume_claim_retention_policy_easyjson.go +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson50a656b5DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *StatefulSetPersistentVolumeClaimRetentionPolicy) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "whenDeleted": - out.WhenDeleted = string(in.String()) - case "whenScaled": - out.WhenScaled = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson50a656b5EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in StatefulSetPersistentVolumeClaimRetentionPolicy) { - out.RawByte('{') - first := true - _ = first - if in.WhenDeleted != "" { - const prefix string = ",\"whenDeleted\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.WhenDeleted)) - } - if in.WhenScaled != "" { - const prefix string = ",\"whenScaled\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.WhenScaled)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StatefulSetPersistentVolumeClaimRetentionPolicy) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson50a656b5EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StatefulSetPersistentVolumeClaimRetentionPolicy) MarshalEasyJSON(w *jwriter.Writer) { - easyjson50a656b5EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StatefulSetPersistentVolumeClaimRetentionPolicy) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson50a656b5DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StatefulSetPersistentVolumeClaimRetentionPolicy) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson50a656b5DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_spec.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_spec.go index 0406d7b..9e49f6a 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_spec.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_spec.go @@ -15,15 +15,16 @@ import ( // swagger:model StatefulSetSpec type StatefulSetSpec struct { - // Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate. + // Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) MinReadySeconds int32 `json:"minReadySeconds,omitempty"` + // ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a "0" index to the first replica and increments the index by one for each additional replica requested. Using the ordinals field requires the StatefulSetStartOrdinal feature gate to be enabled, which is beta. + Ordinals *StatefulSetOrdinals `json:"ordinals,omitempty"` + // persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. +optional PersistentVolumeClaimRetentionPolicy *StatefulSetPersistentVolumeClaimRetentionPolicy `json:"persistentVolumeClaimRetentionPolicy,omitempty"` // podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. - // - // PodManagementPolicy string `json:"podManagementPolicy,omitempty"` // replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. @@ -40,7 +41,7 @@ type StatefulSetSpec struct { // Required: true ServiceName *string `json:"serviceName"` - // template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + // template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format -. For example, a pod in a StatefulSet named "web" with index number "3" would be named "web-3". The only allowed template.spec.restartPolicy value is "Always". // Required: true Template *api_core_v1.PodTemplateSpec `json:"template"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_spec_easyjson.go deleted file mode 100644 index 1f26431..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_spec_easyjson.go +++ /dev/null @@ -1,333 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v11 "github.com/kubewarden/k8s-objects/api/core/v1" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonC8b5e123DecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *StatefulSetSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "minReadySeconds": - out.MinReadySeconds = int32(in.Int32()) - case "persistentVolumeClaimRetentionPolicy": - if in.IsNull() { - in.Skip() - out.PersistentVolumeClaimRetentionPolicy = nil - } else { - if out.PersistentVolumeClaimRetentionPolicy == nil { - out.PersistentVolumeClaimRetentionPolicy = new(StatefulSetPersistentVolumeClaimRetentionPolicy) - } - (*out.PersistentVolumeClaimRetentionPolicy).UnmarshalEasyJSON(in) - } - case "podManagementPolicy": - out.PodManagementPolicy = string(in.String()) - case "replicas": - out.Replicas = int32(in.Int32()) - case "revisionHistoryLimit": - out.RevisionHistoryLimit = int32(in.Int32()) - case "selector": - if in.IsNull() { - in.Skip() - out.Selector = nil - } else { - if out.Selector == nil { - out.Selector = new(_v1.LabelSelector) - } - (*out.Selector).UnmarshalEasyJSON(in) - } - case "serviceName": - if in.IsNull() { - in.Skip() - out.ServiceName = nil - } else { - if out.ServiceName == nil { - out.ServiceName = new(string) - } - *out.ServiceName = string(in.String()) - } - case "template": - if in.IsNull() { - in.Skip() - out.Template = nil - } else { - if out.Template == nil { - out.Template = new(_v11.PodTemplateSpec) - } - (*out.Template).UnmarshalEasyJSON(in) - } - case "updateStrategy": - if in.IsNull() { - in.Skip() - out.UpdateStrategy = nil - } else { - if out.UpdateStrategy == nil { - out.UpdateStrategy = new(StatefulSetUpdateStrategy) - } - easyjsonC8b5e123DecodeGithubComKubewardenK8sObjectsApiAppsV11(in, out.UpdateStrategy) - } - case "volumeClaimTemplates": - if in.IsNull() { - in.Skip() - out.VolumeClaimTemplates = nil - } else { - in.Delim('[') - if out.VolumeClaimTemplates == nil { - if !in.IsDelim(']') { - out.VolumeClaimTemplates = make([]*_v11.PersistentVolumeClaim, 0, 8) - } else { - out.VolumeClaimTemplates = []*_v11.PersistentVolumeClaim{} - } - } else { - out.VolumeClaimTemplates = (out.VolumeClaimTemplates)[:0] - } - for !in.IsDelim(']') { - var v1 *_v11.PersistentVolumeClaim - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(_v11.PersistentVolumeClaim) - } - (*v1).UnmarshalEasyJSON(in) - } - out.VolumeClaimTemplates = append(out.VolumeClaimTemplates, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC8b5e123EncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in StatefulSetSpec) { - out.RawByte('{') - first := true - _ = first - if in.MinReadySeconds != 0 { - const prefix string = ",\"minReadySeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.MinReadySeconds)) - } - if in.PersistentVolumeClaimRetentionPolicy != nil { - const prefix string = ",\"persistentVolumeClaimRetentionPolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.PersistentVolumeClaimRetentionPolicy).MarshalEasyJSON(out) - } - if in.PodManagementPolicy != "" { - const prefix string = ",\"podManagementPolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.PodManagementPolicy)) - } - if in.Replicas != 0 { - const prefix string = ",\"replicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Replicas)) - } - if in.RevisionHistoryLimit != 0 { - const prefix string = ",\"revisionHistoryLimit\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.RevisionHistoryLimit)) - } - { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Selector == nil { - out.RawString("null") - } else { - (*in.Selector).MarshalEasyJSON(out) - } - } - { - const prefix string = ",\"serviceName\":" - out.RawString(prefix) - if in.ServiceName == nil { - out.RawString("null") - } else { - out.String(string(*in.ServiceName)) - } - } - { - const prefix string = ",\"template\":" - out.RawString(prefix) - if in.Template == nil { - out.RawString("null") - } else { - (*in.Template).MarshalEasyJSON(out) - } - } - if in.UpdateStrategy != nil { - const prefix string = ",\"updateStrategy\":" - out.RawString(prefix) - easyjsonC8b5e123EncodeGithubComKubewardenK8sObjectsApiAppsV11(out, *in.UpdateStrategy) - } - if len(in.VolumeClaimTemplates) != 0 { - const prefix string = ",\"volumeClaimTemplates\":" - out.RawString(prefix) - { - out.RawByte('[') - for v2, v3 := range in.VolumeClaimTemplates { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StatefulSetSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC8b5e123EncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StatefulSetSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC8b5e123EncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StatefulSetSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC8b5e123DecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StatefulSetSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC8b5e123DecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} -func easyjsonC8b5e123DecodeGithubComKubewardenK8sObjectsApiAppsV11(in *jlexer.Lexer, out *StatefulSetUpdateStrategy) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "rollingUpdate": - if in.IsNull() { - in.Skip() - out.RollingUpdate = nil - } else { - if out.RollingUpdate == nil { - out.RollingUpdate = new(RollingUpdateStatefulSetStrategy) - } - (*out.RollingUpdate).UnmarshalEasyJSON(in) - } - case "type": - out.Type = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC8b5e123EncodeGithubComKubewardenK8sObjectsApiAppsV11(out *jwriter.Writer, in StatefulSetUpdateStrategy) { - out.RawByte('{') - first := true - _ = first - if in.RollingUpdate != nil { - const prefix string = ",\"rollingUpdate\":" - first = false - out.RawString(prefix[1:]) - (*in.RollingUpdate).MarshalEasyJSON(out) - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_status.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_status.go index f96bc18..e7f9d42 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_status.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_status.go @@ -10,7 +10,7 @@ package v1 // swagger:model StatefulSetStatus type StatefulSetStatus struct { - // Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate. + // Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. AvailableReplicas int32 `json:"availableReplicas,omitempty"` // collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_status_easyjson.go deleted file mode 100644 index 057e376..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_status_easyjson.go +++ /dev/null @@ -1,238 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson30c5d56cDecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *StatefulSetStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "availableReplicas": - out.AvailableReplicas = int32(in.Int32()) - case "collisionCount": - out.CollisionCount = int32(in.Int32()) - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*StatefulSetCondition, 0, 8) - } else { - out.Conditions = []*StatefulSetCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *StatefulSetCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(StatefulSetCondition) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "currentReplicas": - out.CurrentReplicas = int32(in.Int32()) - case "currentRevision": - out.CurrentRevision = string(in.String()) - case "observedGeneration": - out.ObservedGeneration = int64(in.Int64()) - case "readyReplicas": - out.ReadyReplicas = int32(in.Int32()) - case "replicas": - if in.IsNull() { - in.Skip() - out.Replicas = nil - } else { - if out.Replicas == nil { - out.Replicas = new(int32) - } - *out.Replicas = int32(in.Int32()) - } - case "updateRevision": - out.UpdateRevision = string(in.String()) - case "updatedReplicas": - out.UpdatedReplicas = int32(in.Int32()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson30c5d56cEncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in StatefulSetStatus) { - out.RawByte('{') - first := true - _ = first - if in.AvailableReplicas != 0 { - const prefix string = ",\"availableReplicas\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.AvailableReplicas)) - } - if in.CollisionCount != 0 { - const prefix string = ",\"collisionCount\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.CollisionCount)) - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.CurrentReplicas != 0 { - const prefix string = ",\"currentReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.CurrentReplicas)) - } - if in.CurrentRevision != "" { - const prefix string = ",\"currentRevision\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.CurrentRevision)) - } - if in.ObservedGeneration != 0 { - const prefix string = ",\"observedGeneration\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.ObservedGeneration)) - } - if in.ReadyReplicas != 0 { - const prefix string = ",\"readyReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.ReadyReplicas)) - } - { - const prefix string = ",\"replicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Replicas == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Replicas)) - } - } - if in.UpdateRevision != "" { - const prefix string = ",\"updateRevision\":" - out.RawString(prefix) - out.String(string(in.UpdateRevision)) - } - if in.UpdatedReplicas != 0 { - const prefix string = ",\"updatedReplicas\":" - out.RawString(prefix) - out.Int32(int32(in.UpdatedReplicas)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StatefulSetStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson30c5d56cEncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StatefulSetStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjson30c5d56cEncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StatefulSetStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson30c5d56cDecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StatefulSetStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson30c5d56cDecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_update_strategy.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_update_strategy.go index c9d16f6..7ecfe0c 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_update_strategy.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_update_strategy.go @@ -14,7 +14,5 @@ type StatefulSetUpdateStrategy struct { RollingUpdate *RollingUpdateStatefulSetStrategy `json:"rollingUpdate,omitempty"` // Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. - // - // Type string `json:"type,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_update_strategy_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_update_strategy_easyjson.go deleted file mode 100644 index 7bdda5f..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_update_strategy_easyjson.go +++ /dev/null @@ -1,106 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson6d23a70dDecodeGithubComKubewardenK8sObjectsApiAppsV1(in *jlexer.Lexer, out *StatefulSetUpdateStrategy) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "rollingUpdate": - if in.IsNull() { - in.Skip() - out.RollingUpdate = nil - } else { - if out.RollingUpdate == nil { - out.RollingUpdate = new(RollingUpdateStatefulSetStrategy) - } - (*out.RollingUpdate).UnmarshalEasyJSON(in) - } - case "type": - out.Type = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6d23a70dEncodeGithubComKubewardenK8sObjectsApiAppsV1(out *jwriter.Writer, in StatefulSetUpdateStrategy) { - out.RawByte('{') - first := true - _ = first - if in.RollingUpdate != nil { - const prefix string = ",\"rollingUpdate\":" - first = false - out.RawString(prefix[1:]) - (*in.RollingUpdate).MarshalEasyJSON(out) - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StatefulSetUpdateStrategy) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson6d23a70dEncodeGithubComKubewardenK8sObjectsApiAppsV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StatefulSetUpdateStrategy) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6d23a70dEncodeGithubComKubewardenK8sObjectsApiAppsV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StatefulSetUpdateStrategy) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson6d23a70dDecodeGithubComKubewardenK8sObjectsApiAppsV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StatefulSetUpdateStrategy) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6d23a70dDecodeGithubComKubewardenK8sObjectsApiAppsV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/swagger.json b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/swagger.json index 851609f..354a13c 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/swagger.json +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/swagger.json @@ -1 +1 @@ -{"swagger":"2.0","info":{"title":"kubernetes","version":"unversioned"},"paths":{},"definitions":{"ControllerRevision":{"description":"ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.","type":"object","required":["revision"],"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","x-omitempty":true},"data":{"description":"Data is the serialized representation of the state.","x-go-type":{"import":{"package":"github.com/mailru/easyjson"},"type":"RawMessage"},"x-nullable":false,"x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"revision":{"description":"Revision indicates the revision of the state represented by Data.","type":"integer","format":"int64"}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"ControllerRevision","version":"v1"}]},"ControllerRevisionList":{"description":"ControllerRevisionList is a resource containing a list of ControllerRevision objects.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"Items is the list of ControllerRevisions","type":"array","items":{"$ref":"#/definitions/ControllerRevision"}},"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","x-omitempty":true},"metadata":{"description":"More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"ControllerRevisionList","version":"v1"}]},"DaemonSet":{"description":"DaemonSet represents the configuration of a daemon set.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DaemonSetSpec"},"status":{"description":"The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DaemonSetStatus"}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"DaemonSet","version":"v1"}]},"DaemonSetCondition":{"description":"DaemonSetCondition describes the state of a DaemonSet at a certain point.","type":"object","required":["type","status"],"properties":{"lastTransitionTime":{"description":"Last time the condition transitioned from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"A human readable message indicating details about the transition.","type":"string","x-omitempty":true},"reason":{"description":"The reason for the condition's last transition.","type":"string","x-omitempty":true},"status":{"description":"Status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"Type of DaemonSet condition.","type":"string"}}},"DaemonSetList":{"description":"DaemonSetList is a collection of daemon sets.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"A list of daemon sets.","type":"array","items":{"$ref":"#/definitions/DaemonSet"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"DaemonSetList","version":"v1"}]},"DaemonSetSpec":{"description":"DaemonSetSpec is the specification of a daemon set.","type":"object","required":["selector","template"],"properties":{"minReadySeconds":{"description":"The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).","type":"integer","format":"int32","x-omitempty":true},"revisionHistoryLimit":{"description":"The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.","type":"integer","format":"int32","x-omitempty":true},"selector":{"description":"A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"}},"template":{"description":"An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template","x-go-type":{"import":{"alias":"api_core_v1","package":"github.com/kubewarden/k8s-objects/api/core/v1"},"type":"PodTemplateSpec"}},"updateStrategy":{"description":"An update strategy to replace existing DaemonSet pods with new pods.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DaemonSetUpdateStrategy"}}},"DaemonSetStatus":{"description":"DaemonSetStatus represents the current status of a daemon set.","type":"object","required":["currentNumberScheduled","numberMisscheduled","desiredNumberScheduled","numberReady"],"properties":{"collisionCount":{"description":"Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.","type":"integer","format":"int32","x-omitempty":true},"conditions":{"description":"Represents the latest available observations of a DaemonSet's current state.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DaemonSetCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"currentNumberScheduled":{"description":"The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/","type":"integer","format":"int32"},"desiredNumberScheduled":{"description":"The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/","type":"integer","format":"int32"},"numberAvailable":{"description":"The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)","type":"integer","format":"int32","x-omitempty":true},"numberMisscheduled":{"description":"The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/","type":"integer","format":"int32"},"numberReady":{"description":"numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.","type":"integer","format":"int32"},"numberUnavailable":{"description":"The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)","type":"integer","format":"int32","x-omitempty":true},"observedGeneration":{"description":"The most recent generation observed by the daemon set controller.","type":"integer","format":"int64","x-omitempty":true},"updatedNumberScheduled":{"description":"The total number of nodes that are running updated daemon pod","type":"integer","format":"int32","x-omitempty":true}}},"DaemonSetUpdateStrategy":{"description":"DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.","type":"object","properties":{"rollingUpdate":{"description":"Rolling update config params. Present only if type = \"RollingUpdate\".","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/RollingUpdateDaemonSet"},"type":{"description":"Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.\n\n","type":"string","x-omitempty":true}}},"Deployment":{"description":"Deployment enables declarative updates for Pods and ReplicaSets.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Specification of the desired behavior of the Deployment.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DeploymentSpec"},"status":{"description":"Most recently observed status of the Deployment.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DeploymentStatus"}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"Deployment","version":"v1"}]},"DeploymentCondition":{"description":"DeploymentCondition describes the state of a deployment at a certain point.","type":"object","required":["type","status"],"properties":{"lastTransitionTime":{"description":"Last time the condition transitioned from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"lastUpdateTime":{"description":"The last time this condition was updated.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"A human readable message indicating details about the transition.","type":"string","x-omitempty":true},"reason":{"description":"The reason for the condition's last transition.","type":"string","x-omitempty":true},"status":{"description":"Status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"Type of deployment condition.","type":"string"}}},"DeploymentList":{"description":"DeploymentList is a list of Deployments.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"Items is the list of Deployments.","type":"array","items":{"$ref":"#/definitions/Deployment"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"DeploymentList","version":"v1"}]},"DeploymentSpec":{"description":"DeploymentSpec is the specification of the desired behavior of the Deployment.","type":"object","required":["selector","template"],"properties":{"minReadySeconds":{"description":"Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)","type":"integer","format":"int32","x-omitempty":true},"paused":{"description":"Indicates that the deployment is paused.","type":"boolean","x-omitempty":true},"progressDeadlineSeconds":{"description":"The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.","type":"integer","format":"int32","x-omitempty":true},"replicas":{"description":"Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.","type":"integer","format":"int32","x-omitempty":true},"revisionHistoryLimit":{"description":"The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.","type":"integer","format":"int32","x-omitempty":true},"selector":{"description":"Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"}},"strategy":{"description":"The deployment strategy to use to replace existing pods with new ones.","x-kubernetes-patch-strategy":"retainKeys","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DeploymentStrategy"},"template":{"description":"Template describes the pods that will be created.","x-go-type":{"import":{"alias":"api_core_v1","package":"github.com/kubewarden/k8s-objects/api/core/v1"},"type":"PodTemplateSpec"}}}},"DeploymentStatus":{"description":"DeploymentStatus is the most recently observed status of the Deployment.","type":"object","properties":{"availableReplicas":{"description":"Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.","type":"integer","format":"int32","x-omitempty":true},"collisionCount":{"description":"Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.","type":"integer","format":"int32","x-omitempty":true},"conditions":{"description":"Represents the latest available observations of a deployment's current state.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DeploymentCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"observedGeneration":{"description":"The generation observed by the deployment controller.","type":"integer","format":"int64","x-omitempty":true},"readyReplicas":{"description":"readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.","type":"integer","format":"int32","x-omitempty":true},"replicas":{"description":"Total number of non-terminated pods targeted by this deployment (their labels match the selector).","type":"integer","format":"int32","x-omitempty":true},"unavailableReplicas":{"description":"Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.","type":"integer","format":"int32","x-omitempty":true},"updatedReplicas":{"description":"Total number of non-terminated pods targeted by this deployment that have the desired template spec.","type":"integer","format":"int32","x-omitempty":true}}},"DeploymentStrategy":{"description":"DeploymentStrategy describes how to replace existing pods with new ones.","type":"object","properties":{"rollingUpdate":{"description":"Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/RollingUpdateDeployment"},"type":{"description":"Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.\n\n","type":"string","x-omitempty":true}}},"ReplicaSet":{"description":"ReplicaSet ensures that a specified number of pod replicas are running at any given time.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ReplicaSetSpec"},"status":{"description":"Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ReplicaSetStatus"}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"ReplicaSet","version":"v1"}]},"ReplicaSetCondition":{"description":"ReplicaSetCondition describes the state of a replica set at a certain point.","type":"object","required":["type","status"],"properties":{"lastTransitionTime":{"description":"The last time the condition transitioned from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"A human readable message indicating details about the transition.","type":"string","x-omitempty":true},"reason":{"description":"The reason for the condition's last transition.","type":"string","x-omitempty":true},"status":{"description":"Status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"Type of replica set condition.","type":"string"}}},"ReplicaSetList":{"description":"ReplicaSetList is a collection of ReplicaSets.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller","type":"array","items":{"$ref":"#/definitions/ReplicaSet"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"ReplicaSetList","version":"v1"}]},"ReplicaSetSpec":{"description":"ReplicaSetSpec is the specification of a ReplicaSet.","type":"object","required":["selector"],"properties":{"minReadySeconds":{"description":"Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)","type":"integer","format":"int32","x-omitempty":true},"replicas":{"description":"Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller","type":"integer","format":"int32","x-omitempty":true},"selector":{"description":"Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"}},"template":{"description":"Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template","x-go-type":{"import":{"alias":"api_core_v1","package":"github.com/kubewarden/k8s-objects/api/core/v1"},"type":"PodTemplateSpec"},"x-nullable":true,"x-omitempty":true}}},"ReplicaSetStatus":{"description":"ReplicaSetStatus represents the current status of a ReplicaSet.","type":"object","required":["replicas"],"properties":{"availableReplicas":{"description":"The number of available replicas (ready for at least minReadySeconds) for this replica set.","type":"integer","format":"int32","x-omitempty":true},"conditions":{"description":"Represents the latest available observations of a replica set's current state.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ReplicaSetCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"fullyLabeledReplicas":{"description":"The number of pods that have labels matching the labels of the pod template of the replicaset.","type":"integer","format":"int32","x-omitempty":true},"observedGeneration":{"description":"ObservedGeneration reflects the generation of the most recently observed ReplicaSet.","type":"integer","format":"int64","x-omitempty":true},"readyReplicas":{"description":"readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.","type":"integer","format":"int32","x-omitempty":true},"replicas":{"description":"Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller","type":"integer","format":"int32"}}},"RollingUpdateDaemonSet":{"description":"Spec to control the desired behavior of daemon set rolling update.","type":"object","properties":{"maxSurge":{"description":"The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. This is beta field and enabled/disabled by DaemonSetUpdateSurge feature gate.","x-go-type":{"import":{"alias":"apimachinery_pkg_util_intstr","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr"},"type":"IntOrString"},"x-nullable":true,"x-omitempty":true},"maxUnavailable":{"description":"The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.","x-go-type":{"import":{"alias":"apimachinery_pkg_util_intstr","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr"},"type":"IntOrString"},"x-nullable":true,"x-omitempty":true}}},"RollingUpdateDeployment":{"description":"Spec to control the desired behavior of rolling update.","type":"object","properties":{"maxSurge":{"description":"The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.","x-go-type":{"import":{"alias":"apimachinery_pkg_util_intstr","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr"},"type":"IntOrString"},"x-nullable":true,"x-omitempty":true},"maxUnavailable":{"description":"The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.","x-go-type":{"import":{"alias":"apimachinery_pkg_util_intstr","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr"},"type":"IntOrString"},"x-nullable":true,"x-omitempty":true}}},"RollingUpdateStatefulSetStrategy":{"description":"RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.","type":"object","properties":{"maxUnavailable":{"description":"The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable.","x-go-type":{"import":{"alias":"apimachinery_pkg_util_intstr","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr"},"type":"IntOrString"},"x-nullable":true,"x-omitempty":true},"partition":{"description":"Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.","type":"integer","format":"int32","x-omitempty":true}}},"StatefulSet":{"description":"StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Spec defines the desired identities of pods in this set.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StatefulSetSpec"},"status":{"description":"Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StatefulSetStatus"}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"StatefulSet","version":"v1"}]},"StatefulSetCondition":{"description":"StatefulSetCondition describes the state of a statefulset at a certain point.","type":"object","required":["type","status"],"properties":{"lastTransitionTime":{"description":"Last time the condition transitioned from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"A human readable message indicating details about the transition.","type":"string","x-omitempty":true},"reason":{"description":"The reason for the condition's last transition.","type":"string","x-omitempty":true},"status":{"description":"Status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"Type of statefulset condition.","type":"string"}}},"StatefulSetList":{"description":"StatefulSetList is a collection of StatefulSets.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"Items is the list of stateful sets.","type":"array","items":{"$ref":"#/definitions/StatefulSet"}},"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","x-omitempty":true},"metadata":{"description":"Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"StatefulSetList","version":"v1"}]},"StatefulSetPersistentVolumeClaimRetentionPolicy":{"description":"StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.","type":"object","properties":{"whenDeleted":{"description":"WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.","type":"string","x-omitempty":true},"whenScaled":{"description":"WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.","type":"string","x-omitempty":true}}},"StatefulSetSpec":{"description":"A StatefulSetSpec is the specification of a StatefulSet.","type":"object","required":["selector","template","serviceName"],"properties":{"minReadySeconds":{"description":"Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.","type":"integer","format":"int32","x-omitempty":true},"persistentVolumeClaimRetentionPolicy":{"description":"persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. +optional","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StatefulSetPersistentVolumeClaimRetentionPolicy"},"podManagementPolicy":{"description":"podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.\n\n","type":"string","x-omitempty":true},"replicas":{"description":"replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.","type":"integer","format":"int32","x-omitempty":true},"revisionHistoryLimit":{"description":"revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.","type":"integer","format":"int32","x-omitempty":true},"selector":{"description":"selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"}},"serviceName":{"description":"serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.","type":"string"},"template":{"description":"template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.","x-go-type":{"import":{"alias":"api_core_v1","package":"github.com/kubewarden/k8s-objects/api/core/v1"},"type":"PodTemplateSpec"}},"updateStrategy":{"description":"updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StatefulSetUpdateStrategy"},"volumeClaimTemplates":{"description":"volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.","type":"array","items":{"x-go-type":{"import":{"alias":"api_core_v1","package":"github.com/kubewarden/k8s-objects/api/core/v1"},"type":"PersistentVolumeClaim"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true}}},"StatefulSetStatus":{"description":"StatefulSetStatus represents the current state of a StatefulSet.","type":"object","required":["replicas"],"properties":{"availableReplicas":{"description":"Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset. This is a beta field and enabled/disabled by StatefulSetMinReadySeconds feature gate.","type":"integer","format":"int32","x-omitempty":true},"collisionCount":{"description":"collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.","type":"integer","format":"int32","x-omitempty":true},"conditions":{"description":"Represents the latest available observations of a statefulset's current state.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StatefulSetCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"currentReplicas":{"description":"currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.","type":"integer","format":"int32","x-omitempty":true},"currentRevision":{"description":"currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).","type":"string","x-omitempty":true},"observedGeneration":{"description":"observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.","type":"integer","format":"int64","x-omitempty":true},"readyReplicas":{"description":"readyReplicas is the number of pods created for this StatefulSet with a Ready Condition.","type":"integer","format":"int32","x-omitempty":true},"replicas":{"description":"replicas is the number of Pods created by the StatefulSet controller.","type":"integer","format":"int32"},"updateRevision":{"description":"updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)","type":"string","x-omitempty":true},"updatedReplicas":{"description":"updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.","type":"integer","format":"int32","x-omitempty":true}}},"StatefulSetUpdateStrategy":{"description":"StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.","type":"object","properties":{"rollingUpdate":{"description":"RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/RollingUpdateStatefulSetStrategy"},"type":{"description":"Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.\n\n","type":"string","x-omitempty":true}}}}} \ No newline at end of file +{"swagger":"2.0","info":{"title":"kubernetes","version":"unversioned"},"paths":{},"definitions":{"ControllerRevision":{"description":"ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.","type":"object","required":["revision"],"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","x-omitempty":true},"data":{"description":"Data is the serialized representation of the state.","x-go-type":{"import":{"package":"encoding/json"},"type":"RawMessage"},"x-nullable":false,"x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"revision":{"description":"Revision indicates the revision of the state represented by Data.","type":"integer","format":"int64"}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"ControllerRevision","version":"v1"}]},"ControllerRevisionList":{"description":"ControllerRevisionList is a resource containing a list of ControllerRevision objects.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"Items is the list of ControllerRevisions","type":"array","items":{"$ref":"#/definitions/ControllerRevision"}},"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","x-omitempty":true},"metadata":{"description":"More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"ControllerRevisionList","version":"v1"}]},"DaemonSet":{"description":"DaemonSet represents the configuration of a daemon set.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DaemonSetSpec"},"status":{"description":"The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DaemonSetStatus"}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"DaemonSet","version":"v1"}]},"DaemonSetCondition":{"description":"DaemonSetCondition describes the state of a DaemonSet at a certain point.","type":"object","required":["type","status"],"properties":{"lastTransitionTime":{"description":"Last time the condition transitioned from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"A human readable message indicating details about the transition.","type":"string","x-omitempty":true},"reason":{"description":"The reason for the condition's last transition.","type":"string","x-omitempty":true},"status":{"description":"Status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"Type of DaemonSet condition.","type":"string"}}},"DaemonSetList":{"description":"DaemonSetList is a collection of daemon sets.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"A list of daemon sets.","type":"array","items":{"$ref":"#/definitions/DaemonSet"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"DaemonSetList","version":"v1"}]},"DaemonSetSpec":{"description":"DaemonSetSpec is the specification of a daemon set.","type":"object","required":["selector","template"],"properties":{"minReadySeconds":{"description":"The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).","type":"integer","format":"int32","x-omitempty":true},"revisionHistoryLimit":{"description":"The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.","type":"integer","format":"int32","x-omitempty":true},"selector":{"description":"A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"}},"template":{"description":"An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template","x-go-type":{"import":{"alias":"api_core_v1","package":"github.com/kubewarden/k8s-objects/api/core/v1"},"type":"PodTemplateSpec"}},"updateStrategy":{"description":"An update strategy to replace existing DaemonSet pods with new pods.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DaemonSetUpdateStrategy"}}},"DaemonSetStatus":{"description":"DaemonSetStatus represents the current status of a daemon set.","type":"object","required":["currentNumberScheduled","numberMisscheduled","desiredNumberScheduled","numberReady"],"properties":{"collisionCount":{"description":"Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.","type":"integer","format":"int32","x-omitempty":true},"conditions":{"description":"Represents the latest available observations of a DaemonSet's current state.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DaemonSetCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"currentNumberScheduled":{"description":"The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/","type":"integer","format":"int32"},"desiredNumberScheduled":{"description":"The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/","type":"integer","format":"int32"},"numberAvailable":{"description":"The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)","type":"integer","format":"int32","x-omitempty":true},"numberMisscheduled":{"description":"The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/","type":"integer","format":"int32"},"numberReady":{"description":"numberReady is the number of nodes that should be running the daemon pod and have one or more of the daemon pod running with a Ready Condition.","type":"integer","format":"int32"},"numberUnavailable":{"description":"The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)","type":"integer","format":"int32","x-omitempty":true},"observedGeneration":{"description":"The most recent generation observed by the daemon set controller.","type":"integer","format":"int64","x-omitempty":true},"updatedNumberScheduled":{"description":"The total number of nodes that are running updated daemon pod","type":"integer","format":"int32","x-omitempty":true}}},"DaemonSetUpdateStrategy":{"description":"DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.","type":"object","properties":{"rollingUpdate":{"description":"Rolling update config params. Present only if type = \"RollingUpdate\".","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/RollingUpdateDaemonSet"},"type":{"description":"Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.","type":"string","x-omitempty":true}}},"Deployment":{"description":"Deployment enables declarative updates for Pods and ReplicaSets.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Specification of the desired behavior of the Deployment.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DeploymentSpec"},"status":{"description":"Most recently observed status of the Deployment.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DeploymentStatus"}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"Deployment","version":"v1"}]},"DeploymentCondition":{"description":"DeploymentCondition describes the state of a deployment at a certain point.","type":"object","required":["type","status"],"properties":{"lastTransitionTime":{"description":"Last time the condition transitioned from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"lastUpdateTime":{"description":"The last time this condition was updated.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"A human readable message indicating details about the transition.","type":"string","x-omitempty":true},"reason":{"description":"The reason for the condition's last transition.","type":"string","x-omitempty":true},"status":{"description":"Status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"Type of deployment condition.","type":"string"}}},"DeploymentList":{"description":"DeploymentList is a list of Deployments.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"Items is the list of Deployments.","type":"array","items":{"$ref":"#/definitions/Deployment"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"DeploymentList","version":"v1"}]},"DeploymentSpec":{"description":"DeploymentSpec is the specification of the desired behavior of the Deployment.","type":"object","required":["selector","template"],"properties":{"minReadySeconds":{"description":"Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)","type":"integer","format":"int32","x-omitempty":true},"paused":{"description":"Indicates that the deployment is paused.","type":"boolean","x-omitempty":true},"progressDeadlineSeconds":{"description":"The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.","type":"integer","format":"int32","x-omitempty":true},"replicas":{"description":"Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.","type":"integer","format":"int32","x-omitempty":true},"revisionHistoryLimit":{"description":"The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.","type":"integer","format":"int32","x-omitempty":true},"selector":{"description":"Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"}},"strategy":{"description":"The deployment strategy to use to replace existing pods with new ones.","x-kubernetes-patch-strategy":"retainKeys","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DeploymentStrategy"},"template":{"description":"Template describes the pods that will be created. The only allowed template.spec.restartPolicy value is \"Always\".","x-go-type":{"import":{"alias":"api_core_v1","package":"github.com/kubewarden/k8s-objects/api/core/v1"},"type":"PodTemplateSpec"}}}},"DeploymentStatus":{"description":"DeploymentStatus is the most recently observed status of the Deployment.","type":"object","properties":{"availableReplicas":{"description":"Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.","type":"integer","format":"int32","x-omitempty":true},"collisionCount":{"description":"Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.","type":"integer","format":"int32","x-omitempty":true},"conditions":{"description":"Represents the latest available observations of a deployment's current state.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DeploymentCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"observedGeneration":{"description":"The generation observed by the deployment controller.","type":"integer","format":"int64","x-omitempty":true},"readyReplicas":{"description":"readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.","type":"integer","format":"int32","x-omitempty":true},"replicas":{"description":"Total number of non-terminated pods targeted by this deployment (their labels match the selector).","type":"integer","format":"int32","x-omitempty":true},"unavailableReplicas":{"description":"Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.","type":"integer","format":"int32","x-omitempty":true},"updatedReplicas":{"description":"Total number of non-terminated pods targeted by this deployment that have the desired template spec.","type":"integer","format":"int32","x-omitempty":true}}},"DeploymentStrategy":{"description":"DeploymentStrategy describes how to replace existing pods with new ones.","type":"object","properties":{"rollingUpdate":{"description":"Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/RollingUpdateDeployment"},"type":{"description":"Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.","type":"string","x-omitempty":true}}},"ReplicaSet":{"description":"ReplicaSet ensures that a specified number of pod replicas are running at any given time.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ReplicaSetSpec"},"status":{"description":"Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ReplicaSetStatus"}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"ReplicaSet","version":"v1"}]},"ReplicaSetCondition":{"description":"ReplicaSetCondition describes the state of a replica set at a certain point.","type":"object","required":["type","status"],"properties":{"lastTransitionTime":{"description":"The last time the condition transitioned from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"A human readable message indicating details about the transition.","type":"string","x-omitempty":true},"reason":{"description":"The reason for the condition's last transition.","type":"string","x-omitempty":true},"status":{"description":"Status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"Type of replica set condition.","type":"string"}}},"ReplicaSetList":{"description":"ReplicaSetList is a collection of ReplicaSets.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller","type":"array","items":{"$ref":"#/definitions/ReplicaSet"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"ReplicaSetList","version":"v1"}]},"ReplicaSetSpec":{"description":"ReplicaSetSpec is the specification of a ReplicaSet.","type":"object","required":["selector"],"properties":{"minReadySeconds":{"description":"Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)","type":"integer","format":"int32","x-omitempty":true},"replicas":{"description":"Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller","type":"integer","format":"int32","x-omitempty":true},"selector":{"description":"Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"}},"template":{"description":"Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template","x-go-type":{"import":{"alias":"api_core_v1","package":"github.com/kubewarden/k8s-objects/api/core/v1"},"type":"PodTemplateSpec"},"x-nullable":true,"x-omitempty":true}}},"ReplicaSetStatus":{"description":"ReplicaSetStatus represents the current status of a ReplicaSet.","type":"object","required":["replicas"],"properties":{"availableReplicas":{"description":"The number of available replicas (ready for at least minReadySeconds) for this replica set.","type":"integer","format":"int32","x-omitempty":true},"conditions":{"description":"Represents the latest available observations of a replica set's current state.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ReplicaSetCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"fullyLabeledReplicas":{"description":"The number of pods that have labels matching the labels of the pod template of the replicaset.","type":"integer","format":"int32","x-omitempty":true},"observedGeneration":{"description":"ObservedGeneration reflects the generation of the most recently observed ReplicaSet.","type":"integer","format":"int64","x-omitempty":true},"readyReplicas":{"description":"readyReplicas is the number of pods targeted by this ReplicaSet with a Ready Condition.","type":"integer","format":"int32","x-omitempty":true},"replicas":{"description":"Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller","type":"integer","format":"int32"}}},"RollingUpdateDaemonSet":{"description":"Spec to control the desired behavior of daemon set rolling update.","type":"object","properties":{"maxSurge":{"description":"The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption.","x-go-type":{"import":{"alias":"apimachinery_pkg_util_intstr","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr"},"type":"IntOrString"},"x-nullable":true,"x-omitempty":true},"maxUnavailable":{"description":"The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0 if MaxSurge is 0 Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.","x-go-type":{"import":{"alias":"apimachinery_pkg_util_intstr","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr"},"type":"IntOrString"},"x-nullable":true,"x-omitempty":true}}},"RollingUpdateDeployment":{"description":"Spec to control the desired behavior of rolling update.","type":"object","properties":{"maxSurge":{"description":"The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.","x-go-type":{"import":{"alias":"apimachinery_pkg_util_intstr","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr"},"type":"IntOrString"},"x-nullable":true,"x-omitempty":true},"maxUnavailable":{"description":"The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.","x-go-type":{"import":{"alias":"apimachinery_pkg_util_intstr","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr"},"type":"IntOrString"},"x-nullable":true,"x-omitempty":true}}},"RollingUpdateStatefulSetStrategy":{"description":"RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.","type":"object","properties":{"maxUnavailable":{"description":"The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding up. This can not be 0. Defaults to 1. This field is alpha-level and is only honored by servers that enable the MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it will be counted towards MaxUnavailable.","x-go-type":{"import":{"alias":"apimachinery_pkg_util_intstr","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr"},"type":"IntOrString"},"x-nullable":true,"x-omitempty":true},"partition":{"description":"Partition indicates the ordinal at which the StatefulSet should be partitioned for updates. During a rolling update, all pods from ordinal Replicas-1 to Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched. This is helpful in being able to do a canary based deployment. The default value is 0.","type":"integer","format":"int32","x-omitempty":true}}},"StatefulSet":{"description":"StatefulSet represents a set of pods with consistent identities. Identities are defined as:\n - Network: A single stable DNS and hostname.\n - Storage: As many VolumeClaims as requested.\n\nThe StatefulSet guarantees that a given network identity will always map to the same storage identity.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Spec defines the desired identities of pods in this set.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StatefulSetSpec"},"status":{"description":"Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StatefulSetStatus"}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"StatefulSet","version":"v1"}]},"StatefulSetCondition":{"description":"StatefulSetCondition describes the state of a statefulset at a certain point.","type":"object","required":["type","status"],"properties":{"lastTransitionTime":{"description":"Last time the condition transitioned from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"A human readable message indicating details about the transition.","type":"string","x-omitempty":true},"reason":{"description":"The reason for the condition's last transition.","type":"string","x-omitempty":true},"status":{"description":"Status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"Type of statefulset condition.","type":"string"}}},"StatefulSetList":{"description":"StatefulSetList is a collection of StatefulSets.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"Items is the list of stateful sets.","type":"array","items":{"$ref":"#/definitions/StatefulSet"}},"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","x-omitempty":true},"metadata":{"description":"Standard list's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"apps","kind":"StatefulSetList","version":"v1"}]},"StatefulSetOrdinals":{"description":"StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.","type":"object","properties":{"start":{"description":"start is the number representing the first replica's index. It may be used to number replicas from an alternate index (eg: 1-indexed) over the default 0-indexed names, or to orchestrate progressive movement of replicas from one StatefulSet to another. If set, replica indices will be in the range:\n [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).\nIf unset, defaults to 0. Replica indices will be in the range:\n [0, .spec.replicas).","type":"integer","format":"int32","x-omitempty":true}}},"StatefulSetPersistentVolumeClaimRetentionPolicy":{"description":"StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.","type":"object","properties":{"whenDeleted":{"description":"WhenDeleted specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is deleted. The default policy of `Retain` causes PVCs to not be affected by StatefulSet deletion. The `Delete` policy causes those PVCs to be deleted.","type":"string","x-omitempty":true},"whenScaled":{"description":"WhenScaled specifies what happens to PVCs created from StatefulSet VolumeClaimTemplates when the StatefulSet is scaled down. The default policy of `Retain` causes PVCs to not be affected by a scaledown. The `Delete` policy causes the associated PVCs for any excess pods above the replica count to be deleted.","type":"string","x-omitempty":true}}},"StatefulSetSpec":{"description":"A StatefulSetSpec is the specification of a StatefulSet.","type":"object","required":["selector","template","serviceName"],"properties":{"minReadySeconds":{"description":"Minimum number of seconds for which a newly created pod should be ready without any of its container crashing for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)","type":"integer","format":"int32","x-omitempty":true},"ordinals":{"description":"ordinals controls the numbering of replica indices in a StatefulSet. The default ordinals behavior assigns a \"0\" index to the first replica and increments the index by one for each additional replica requested. Using the ordinals field requires the StatefulSetStartOrdinal feature gate to be enabled, which is beta.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StatefulSetOrdinals"},"persistentVolumeClaimRetentionPolicy":{"description":"persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent volume claims created from volumeClaimTemplates. By default, all persistent volume claims are created as needed and retained until manually deleted. This policy allows the lifecycle to be altered, for example by deleting persistent volume claims when their stateful set is deleted, or when their pod is scaled down. This requires the StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha. +optional","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StatefulSetPersistentVolumeClaimRetentionPolicy"},"podManagementPolicy":{"description":"podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.","type":"string","x-omitempty":true},"replicas":{"description":"replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.","type":"integer","format":"int32","x-omitempty":true},"revisionHistoryLimit":{"description":"revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.","type":"integer","format":"int32","x-omitempty":true},"selector":{"description":"selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"}},"serviceName":{"description":"serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.","type":"string"},"template":{"description":"template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. Each pod will be named with the format \u003cstatefulsetname\u003e-\u003cpodindex\u003e. For example, a pod in a StatefulSet named \"web\" with index number \"3\" would be named \"web-3\". The only allowed template.spec.restartPolicy value is \"Always\".","x-go-type":{"import":{"alias":"api_core_v1","package":"github.com/kubewarden/k8s-objects/api/core/v1"},"type":"PodTemplateSpec"}},"updateStrategy":{"description":"updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StatefulSetUpdateStrategy"},"volumeClaimTemplates":{"description":"volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.","type":"array","items":{"x-go-type":{"import":{"alias":"api_core_v1","package":"github.com/kubewarden/k8s-objects/api/core/v1"},"type":"PersistentVolumeClaim"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true}}},"StatefulSetStatus":{"description":"StatefulSetStatus represents the current state of a StatefulSet.","type":"object","required":["replicas"],"properties":{"availableReplicas":{"description":"Total number of available pods (ready for at least minReadySeconds) targeted by this statefulset.","type":"integer","format":"int32","x-omitempty":true},"collisionCount":{"description":"collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.","type":"integer","format":"int32","x-omitempty":true},"conditions":{"description":"Represents the latest available observations of a statefulset's current state.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StatefulSetCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"currentReplicas":{"description":"currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.","type":"integer","format":"int32","x-omitempty":true},"currentRevision":{"description":"currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).","type":"string","x-omitempty":true},"observedGeneration":{"description":"observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.","type":"integer","format":"int64","x-omitempty":true},"readyReplicas":{"description":"readyReplicas is the number of pods created for this StatefulSet with a Ready Condition.","type":"integer","format":"int32","x-omitempty":true},"replicas":{"description":"replicas is the number of Pods created by the StatefulSet controller.","type":"integer","format":"int32"},"updateRevision":{"description":"updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)","type":"string","x-omitempty":true},"updatedReplicas":{"description":"updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.","type":"integer","format":"int32","x-omitempty":true}}},"StatefulSetUpdateStrategy":{"description":"StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.","type":"object","properties":{"rollingUpdate":{"description":"RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/RollingUpdateStatefulSetStrategy"},"type":{"description":"Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.","type":"string","x-omitempty":true}}}}} \ No newline at end of file diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_easyjson.go deleted file mode 100644 index ebb10b6..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_easyjson.go +++ /dev/null @@ -1,652 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v11 "github.com/kubewarden/k8s-objects/api/core/v1" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonA56f4d58DecodeGithubComKubewardenK8sObjectsApiBatchV1(in *jlexer.Lexer, out *CronJob) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(CronJobSpec) - } - easyjsonA56f4d58DecodeGithubComKubewardenK8sObjectsApiBatchV11(in, out.Spec) - } - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(CronJobStatus) - } - easyjsonA56f4d58DecodeGithubComKubewardenK8sObjectsApiBatchV12(in, out.Status) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA56f4d58EncodeGithubComKubewardenK8sObjectsApiBatchV1(out *jwriter.Writer, in CronJob) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonA56f4d58EncodeGithubComKubewardenK8sObjectsApiBatchV11(out, *in.Spec) - } - if in.Status != nil { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonA56f4d58EncodeGithubComKubewardenK8sObjectsApiBatchV12(out, *in.Status) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CronJob) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonA56f4d58EncodeGithubComKubewardenK8sObjectsApiBatchV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CronJob) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonA56f4d58EncodeGithubComKubewardenK8sObjectsApiBatchV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CronJob) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonA56f4d58DecodeGithubComKubewardenK8sObjectsApiBatchV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CronJob) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonA56f4d58DecodeGithubComKubewardenK8sObjectsApiBatchV1(l, v) -} -func easyjsonA56f4d58DecodeGithubComKubewardenK8sObjectsApiBatchV12(in *jlexer.Lexer, out *CronJobStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "active": - if in.IsNull() { - in.Skip() - out.Active = nil - } else { - in.Delim('[') - if out.Active == nil { - if !in.IsDelim(']') { - out.Active = make([]*_v11.ObjectReference, 0, 8) - } else { - out.Active = []*_v11.ObjectReference{} - } - } else { - out.Active = (out.Active)[:0] - } - for !in.IsDelim(']') { - var v1 *_v11.ObjectReference - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(_v11.ObjectReference) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Active = append(out.Active, v1) - in.WantComma() - } - in.Delim(']') - } - case "lastScheduleTime": - if in.IsNull() { - in.Skip() - out.LastScheduleTime = nil - } else { - if out.LastScheduleTime == nil { - out.LastScheduleTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastScheduleTime).UnmarshalJSON(data)) - } - } - case "lastSuccessfulTime": - if in.IsNull() { - in.Skip() - out.LastSuccessfulTime = nil - } else { - if out.LastSuccessfulTime == nil { - out.LastSuccessfulTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastSuccessfulTime).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA56f4d58EncodeGithubComKubewardenK8sObjectsApiBatchV12(out *jwriter.Writer, in CronJobStatus) { - out.RawByte('{') - first := true - _ = first - if len(in.Active) != 0 { - const prefix string = ",\"active\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.Active { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.LastScheduleTime != nil { - const prefix string = ",\"lastScheduleTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.LastScheduleTime).MarshalJSON()) - } - if in.LastSuccessfulTime != nil { - const prefix string = ",\"lastSuccessfulTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.LastSuccessfulTime).MarshalJSON()) - } - out.RawByte('}') -} -func easyjsonA56f4d58DecodeGithubComKubewardenK8sObjectsApiBatchV11(in *jlexer.Lexer, out *CronJobSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "concurrencyPolicy": - out.ConcurrencyPolicy = string(in.String()) - case "failedJobsHistoryLimit": - out.FailedJobsHistoryLimit = int32(in.Int32()) - case "jobTemplate": - if in.IsNull() { - in.Skip() - out.JobTemplate = nil - } else { - if out.JobTemplate == nil { - out.JobTemplate = new(JobTemplateSpec) - } - easyjsonA56f4d58DecodeGithubComKubewardenK8sObjectsApiBatchV13(in, out.JobTemplate) - } - case "schedule": - if in.IsNull() { - in.Skip() - out.Schedule = nil - } else { - if out.Schedule == nil { - out.Schedule = new(string) - } - *out.Schedule = string(in.String()) - } - case "startingDeadlineSeconds": - out.StartingDeadlineSeconds = int64(in.Int64()) - case "successfulJobsHistoryLimit": - out.SuccessfulJobsHistoryLimit = int32(in.Int32()) - case "suspend": - out.Suspend = bool(in.Bool()) - case "timeZone": - out.TimeZone = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA56f4d58EncodeGithubComKubewardenK8sObjectsApiBatchV11(out *jwriter.Writer, in CronJobSpec) { - out.RawByte('{') - first := true - _ = first - if in.ConcurrencyPolicy != "" { - const prefix string = ",\"concurrencyPolicy\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.ConcurrencyPolicy)) - } - if in.FailedJobsHistoryLimit != 0 { - const prefix string = ",\"failedJobsHistoryLimit\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.FailedJobsHistoryLimit)) - } - { - const prefix string = ",\"jobTemplate\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.JobTemplate == nil { - out.RawString("null") - } else { - easyjsonA56f4d58EncodeGithubComKubewardenK8sObjectsApiBatchV13(out, *in.JobTemplate) - } - } - { - const prefix string = ",\"schedule\":" - out.RawString(prefix) - if in.Schedule == nil { - out.RawString("null") - } else { - out.String(string(*in.Schedule)) - } - } - if in.StartingDeadlineSeconds != 0 { - const prefix string = ",\"startingDeadlineSeconds\":" - out.RawString(prefix) - out.Int64(int64(in.StartingDeadlineSeconds)) - } - if in.SuccessfulJobsHistoryLimit != 0 { - const prefix string = ",\"successfulJobsHistoryLimit\":" - out.RawString(prefix) - out.Int32(int32(in.SuccessfulJobsHistoryLimit)) - } - if in.Suspend { - const prefix string = ",\"suspend\":" - out.RawString(prefix) - out.Bool(bool(in.Suspend)) - } - if in.TimeZone != "" { - const prefix string = ",\"timeZone\":" - out.RawString(prefix) - out.String(string(in.TimeZone)) - } - out.RawByte('}') -} -func easyjsonA56f4d58DecodeGithubComKubewardenK8sObjectsApiBatchV13(in *jlexer.Lexer, out *JobTemplateSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(JobSpec) - } - easyjsonA56f4d58DecodeGithubComKubewardenK8sObjectsApiBatchV14(in, out.Spec) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA56f4d58EncodeGithubComKubewardenK8sObjectsApiBatchV13(out *jwriter.Writer, in JobTemplateSpec) { - out.RawByte('{') - first := true - _ = first - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - first = false - out.RawString(prefix[1:]) - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonA56f4d58EncodeGithubComKubewardenK8sObjectsApiBatchV14(out, *in.Spec) - } - out.RawByte('}') -} -func easyjsonA56f4d58DecodeGithubComKubewardenK8sObjectsApiBatchV14(in *jlexer.Lexer, out *JobSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "activeDeadlineSeconds": - out.ActiveDeadlineSeconds = int64(in.Int64()) - case "backoffLimit": - out.BackoffLimit = int32(in.Int32()) - case "completionMode": - out.CompletionMode = string(in.String()) - case "completions": - out.Completions = int32(in.Int32()) - case "manualSelector": - out.ManualSelector = bool(in.Bool()) - case "parallelism": - out.Parallelism = int32(in.Int32()) - case "selector": - if in.IsNull() { - in.Skip() - out.Selector = nil - } else { - if out.Selector == nil { - out.Selector = new(_v1.LabelSelector) - } - (*out.Selector).UnmarshalEasyJSON(in) - } - case "suspend": - out.Suspend = bool(in.Bool()) - case "template": - if in.IsNull() { - in.Skip() - out.Template = nil - } else { - if out.Template == nil { - out.Template = new(_v11.PodTemplateSpec) - } - (*out.Template).UnmarshalEasyJSON(in) - } - case "ttlSecondsAfterFinished": - out.TTLSecondsAfterFinished = int32(in.Int32()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA56f4d58EncodeGithubComKubewardenK8sObjectsApiBatchV14(out *jwriter.Writer, in JobSpec) { - out.RawByte('{') - first := true - _ = first - if in.ActiveDeadlineSeconds != 0 { - const prefix string = ",\"activeDeadlineSeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int64(int64(in.ActiveDeadlineSeconds)) - } - if in.BackoffLimit != 0 { - const prefix string = ",\"backoffLimit\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.BackoffLimit)) - } - if in.CompletionMode != "" { - const prefix string = ",\"completionMode\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.CompletionMode)) - } - if in.Completions != 0 { - const prefix string = ",\"completions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Completions)) - } - if in.ManualSelector { - const prefix string = ",\"manualSelector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ManualSelector)) - } - if in.Parallelism != 0 { - const prefix string = ",\"parallelism\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Parallelism)) - } - if in.Selector != nil { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Selector).MarshalEasyJSON(out) - } - if in.Suspend { - const prefix string = ",\"suspend\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Suspend)) - } - { - const prefix string = ",\"template\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Template == nil { - out.RawString("null") - } else { - (*in.Template).MarshalEasyJSON(out) - } - } - if in.TTLSecondsAfterFinished != 0 { - const prefix string = ",\"ttlSecondsAfterFinished\":" - out.RawString(prefix) - out.Int32(int32(in.TTLSecondsAfterFinished)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_list_easyjson.go deleted file mode 100644 index 5d6d0d4..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson3363d8d9DecodeGithubComKubewardenK8sObjectsApiBatchV1(in *jlexer.Lexer, out *CronJobList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*CronJob, 0, 8) - } else { - out.Items = []*CronJob{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *CronJob - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(CronJob) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson3363d8d9EncodeGithubComKubewardenK8sObjectsApiBatchV1(out *jwriter.Writer, in CronJobList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CronJobList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson3363d8d9EncodeGithubComKubewardenK8sObjectsApiBatchV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CronJobList) MarshalEasyJSON(w *jwriter.Writer) { - easyjson3363d8d9EncodeGithubComKubewardenK8sObjectsApiBatchV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CronJobList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson3363d8d9DecodeGithubComKubewardenK8sObjectsApiBatchV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CronJobList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson3363d8d9DecodeGithubComKubewardenK8sObjectsApiBatchV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_spec.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_spec.go index 9a6cc99..45f8e7d 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_spec.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_spec.go @@ -10,9 +10,9 @@ package v1 // swagger:model CronJobSpec type CronJobSpec struct { - // Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one - // + // Specifies how to treat concurrent executions of a Job. Valid values are: // + // - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one ConcurrencyPolicy string `json:"concurrencyPolicy,omitempty"` // The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1. @@ -35,6 +35,6 @@ type CronJobSpec struct { // This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. Suspend bool `json:"suspend,omitempty"` - // The time zone for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` feature gate. + // The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones TimeZone string `json:"timeZone,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_spec_easyjson.go deleted file mode 100644 index 36b3507..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_spec_easyjson.go +++ /dev/null @@ -1,408 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v11 "github.com/kubewarden/k8s-objects/api/core/v1" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson88b473b4DecodeGithubComKubewardenK8sObjectsApiBatchV1(in *jlexer.Lexer, out *CronJobSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "concurrencyPolicy": - out.ConcurrencyPolicy = string(in.String()) - case "failedJobsHistoryLimit": - out.FailedJobsHistoryLimit = int32(in.Int32()) - case "jobTemplate": - if in.IsNull() { - in.Skip() - out.JobTemplate = nil - } else { - if out.JobTemplate == nil { - out.JobTemplate = new(JobTemplateSpec) - } - easyjson88b473b4DecodeGithubComKubewardenK8sObjectsApiBatchV11(in, out.JobTemplate) - } - case "schedule": - if in.IsNull() { - in.Skip() - out.Schedule = nil - } else { - if out.Schedule == nil { - out.Schedule = new(string) - } - *out.Schedule = string(in.String()) - } - case "startingDeadlineSeconds": - out.StartingDeadlineSeconds = int64(in.Int64()) - case "successfulJobsHistoryLimit": - out.SuccessfulJobsHistoryLimit = int32(in.Int32()) - case "suspend": - out.Suspend = bool(in.Bool()) - case "timeZone": - out.TimeZone = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88b473b4EncodeGithubComKubewardenK8sObjectsApiBatchV1(out *jwriter.Writer, in CronJobSpec) { - out.RawByte('{') - first := true - _ = first - if in.ConcurrencyPolicy != "" { - const prefix string = ",\"concurrencyPolicy\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.ConcurrencyPolicy)) - } - if in.FailedJobsHistoryLimit != 0 { - const prefix string = ",\"failedJobsHistoryLimit\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.FailedJobsHistoryLimit)) - } - { - const prefix string = ",\"jobTemplate\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.JobTemplate == nil { - out.RawString("null") - } else { - easyjson88b473b4EncodeGithubComKubewardenK8sObjectsApiBatchV11(out, *in.JobTemplate) - } - } - { - const prefix string = ",\"schedule\":" - out.RawString(prefix) - if in.Schedule == nil { - out.RawString("null") - } else { - out.String(string(*in.Schedule)) - } - } - if in.StartingDeadlineSeconds != 0 { - const prefix string = ",\"startingDeadlineSeconds\":" - out.RawString(prefix) - out.Int64(int64(in.StartingDeadlineSeconds)) - } - if in.SuccessfulJobsHistoryLimit != 0 { - const prefix string = ",\"successfulJobsHistoryLimit\":" - out.RawString(prefix) - out.Int32(int32(in.SuccessfulJobsHistoryLimit)) - } - if in.Suspend { - const prefix string = ",\"suspend\":" - out.RawString(prefix) - out.Bool(bool(in.Suspend)) - } - if in.TimeZone != "" { - const prefix string = ",\"timeZone\":" - out.RawString(prefix) - out.String(string(in.TimeZone)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CronJobSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson88b473b4EncodeGithubComKubewardenK8sObjectsApiBatchV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CronJobSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjson88b473b4EncodeGithubComKubewardenK8sObjectsApiBatchV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CronJobSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson88b473b4DecodeGithubComKubewardenK8sObjectsApiBatchV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CronJobSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson88b473b4DecodeGithubComKubewardenK8sObjectsApiBatchV1(l, v) -} -func easyjson88b473b4DecodeGithubComKubewardenK8sObjectsApiBatchV11(in *jlexer.Lexer, out *JobTemplateSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(JobSpec) - } - easyjson88b473b4DecodeGithubComKubewardenK8sObjectsApiBatchV12(in, out.Spec) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88b473b4EncodeGithubComKubewardenK8sObjectsApiBatchV11(out *jwriter.Writer, in JobTemplateSpec) { - out.RawByte('{') - first := true - _ = first - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - first = false - out.RawString(prefix[1:]) - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson88b473b4EncodeGithubComKubewardenK8sObjectsApiBatchV12(out, *in.Spec) - } - out.RawByte('}') -} -func easyjson88b473b4DecodeGithubComKubewardenK8sObjectsApiBatchV12(in *jlexer.Lexer, out *JobSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "activeDeadlineSeconds": - out.ActiveDeadlineSeconds = int64(in.Int64()) - case "backoffLimit": - out.BackoffLimit = int32(in.Int32()) - case "completionMode": - out.CompletionMode = string(in.String()) - case "completions": - out.Completions = int32(in.Int32()) - case "manualSelector": - out.ManualSelector = bool(in.Bool()) - case "parallelism": - out.Parallelism = int32(in.Int32()) - case "selector": - if in.IsNull() { - in.Skip() - out.Selector = nil - } else { - if out.Selector == nil { - out.Selector = new(_v1.LabelSelector) - } - (*out.Selector).UnmarshalEasyJSON(in) - } - case "suspend": - out.Suspend = bool(in.Bool()) - case "template": - if in.IsNull() { - in.Skip() - out.Template = nil - } else { - if out.Template == nil { - out.Template = new(_v11.PodTemplateSpec) - } - (*out.Template).UnmarshalEasyJSON(in) - } - case "ttlSecondsAfterFinished": - out.TTLSecondsAfterFinished = int32(in.Int32()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88b473b4EncodeGithubComKubewardenK8sObjectsApiBatchV12(out *jwriter.Writer, in JobSpec) { - out.RawByte('{') - first := true - _ = first - if in.ActiveDeadlineSeconds != 0 { - const prefix string = ",\"activeDeadlineSeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int64(int64(in.ActiveDeadlineSeconds)) - } - if in.BackoffLimit != 0 { - const prefix string = ",\"backoffLimit\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.BackoffLimit)) - } - if in.CompletionMode != "" { - const prefix string = ",\"completionMode\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.CompletionMode)) - } - if in.Completions != 0 { - const prefix string = ",\"completions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Completions)) - } - if in.ManualSelector { - const prefix string = ",\"manualSelector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ManualSelector)) - } - if in.Parallelism != 0 { - const prefix string = ",\"parallelism\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Parallelism)) - } - if in.Selector != nil { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Selector).MarshalEasyJSON(out) - } - if in.Suspend { - const prefix string = ",\"suspend\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Suspend)) - } - { - const prefix string = ",\"template\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Template == nil { - out.RawString("null") - } else { - (*in.Template).MarshalEasyJSON(out) - } - } - if in.TTLSecondsAfterFinished != 0 { - const prefix string = ",\"ttlSecondsAfterFinished\":" - out.RawString(prefix) - out.Int32(int32(in.TTLSecondsAfterFinished)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_status_easyjson.go deleted file mode 100644 index 6f89902..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_status_easyjson.go +++ /dev/null @@ -1,174 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/api/core/v1" - _v11 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson61f92a73DecodeGithubComKubewardenK8sObjectsApiBatchV1(in *jlexer.Lexer, out *CronJobStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "active": - if in.IsNull() { - in.Skip() - out.Active = nil - } else { - in.Delim('[') - if out.Active == nil { - if !in.IsDelim(']') { - out.Active = make([]*_v1.ObjectReference, 0, 8) - } else { - out.Active = []*_v1.ObjectReference{} - } - } else { - out.Active = (out.Active)[:0] - } - for !in.IsDelim(']') { - var v1 *_v1.ObjectReference - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(_v1.ObjectReference) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Active = append(out.Active, v1) - in.WantComma() - } - in.Delim(']') - } - case "lastScheduleTime": - if in.IsNull() { - in.Skip() - out.LastScheduleTime = nil - } else { - if out.LastScheduleTime == nil { - out.LastScheduleTime = new(_v11.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastScheduleTime).UnmarshalJSON(data)) - } - } - case "lastSuccessfulTime": - if in.IsNull() { - in.Skip() - out.LastSuccessfulTime = nil - } else { - if out.LastSuccessfulTime == nil { - out.LastSuccessfulTime = new(_v11.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastSuccessfulTime).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson61f92a73EncodeGithubComKubewardenK8sObjectsApiBatchV1(out *jwriter.Writer, in CronJobStatus) { - out.RawByte('{') - first := true - _ = first - if len(in.Active) != 0 { - const prefix string = ",\"active\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.Active { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.LastScheduleTime != nil { - const prefix string = ",\"lastScheduleTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.LastScheduleTime).MarshalJSON()) - } - if in.LastSuccessfulTime != nil { - const prefix string = ",\"lastSuccessfulTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.LastSuccessfulTime).MarshalJSON()) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CronJobStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson61f92a73EncodeGithubComKubewardenK8sObjectsApiBatchV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CronJobStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjson61f92a73EncodeGithubComKubewardenK8sObjectsApiBatchV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CronJobStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson61f92a73DecodeGithubComKubewardenK8sObjectsApiBatchV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CronJobStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson61f92a73DecodeGithubComKubewardenK8sObjectsApiBatchV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_condition_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_condition_easyjson.go deleted file mode 100644 index 3485751..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_condition_easyjson.go +++ /dev/null @@ -1,186 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson16804a1dDecodeGithubComKubewardenK8sObjectsApiBatchV1(in *jlexer.Lexer, out *JobCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastProbeTime": - if in.IsNull() { - in.Skip() - out.LastProbeTime = nil - } else { - if out.LastProbeTime == nil { - out.LastProbeTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastProbeTime).UnmarshalJSON(data)) - } - } - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson16804a1dEncodeGithubComKubewardenK8sObjectsApiBatchV1(out *jwriter.Writer, in JobCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastProbeTime != nil { - const prefix string = ",\"lastProbeTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastProbeTime).MarshalJSON()) - } - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v JobCondition) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson16804a1dEncodeGithubComKubewardenK8sObjectsApiBatchV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v JobCondition) MarshalEasyJSON(w *jwriter.Writer) { - easyjson16804a1dEncodeGithubComKubewardenK8sObjectsApiBatchV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *JobCondition) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson16804a1dDecodeGithubComKubewardenK8sObjectsApiBatchV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *JobCondition) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson16804a1dDecodeGithubComKubewardenK8sObjectsApiBatchV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_easyjson.go deleted file mode 100644 index eb68db5..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_easyjson.go +++ /dev/null @@ -1,792 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v11 "github.com/kubewarden/k8s-objects/api/core/v1" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson8a33d6c7DecodeGithubComKubewardenK8sObjectsApiBatchV1(in *jlexer.Lexer, out *Job) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(JobSpec) - } - easyjson8a33d6c7DecodeGithubComKubewardenK8sObjectsApiBatchV11(in, out.Spec) - } - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(JobStatus) - } - easyjson8a33d6c7DecodeGithubComKubewardenK8sObjectsApiBatchV12(in, out.Status) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson8a33d6c7EncodeGithubComKubewardenK8sObjectsApiBatchV1(out *jwriter.Writer, in Job) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson8a33d6c7EncodeGithubComKubewardenK8sObjectsApiBatchV11(out, *in.Spec) - } - if in.Status != nil { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson8a33d6c7EncodeGithubComKubewardenK8sObjectsApiBatchV12(out, *in.Status) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Job) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson8a33d6c7EncodeGithubComKubewardenK8sObjectsApiBatchV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Job) MarshalEasyJSON(w *jwriter.Writer) { - easyjson8a33d6c7EncodeGithubComKubewardenK8sObjectsApiBatchV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Job) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson8a33d6c7DecodeGithubComKubewardenK8sObjectsApiBatchV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Job) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson8a33d6c7DecodeGithubComKubewardenK8sObjectsApiBatchV1(l, v) -} -func easyjson8a33d6c7DecodeGithubComKubewardenK8sObjectsApiBatchV12(in *jlexer.Lexer, out *JobStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "active": - out.Active = int32(in.Int32()) - case "completedIndexes": - out.CompletedIndexes = string(in.String()) - case "completionTime": - if in.IsNull() { - in.Skip() - out.CompletionTime = nil - } else { - if out.CompletionTime == nil { - out.CompletionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.CompletionTime).UnmarshalJSON(data)) - } - } - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*JobCondition, 0, 8) - } else { - out.Conditions = []*JobCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *JobCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(JobCondition) - } - easyjson8a33d6c7DecodeGithubComKubewardenK8sObjectsApiBatchV13(in, v1) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "failed": - out.Failed = int32(in.Int32()) - case "ready": - out.Ready = int32(in.Int32()) - case "startTime": - if in.IsNull() { - in.Skip() - out.StartTime = nil - } else { - if out.StartTime == nil { - out.StartTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.StartTime).UnmarshalJSON(data)) - } - } - case "succeeded": - out.Succeeded = int32(in.Int32()) - case "uncountedTerminatedPods": - if in.IsNull() { - in.Skip() - out.UncountedTerminatedPods = nil - } else { - if out.UncountedTerminatedPods == nil { - out.UncountedTerminatedPods = new(UncountedTerminatedPods) - } - easyjson8a33d6c7DecodeGithubComKubewardenK8sObjectsApiBatchV14(in, out.UncountedTerminatedPods) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson8a33d6c7EncodeGithubComKubewardenK8sObjectsApiBatchV12(out *jwriter.Writer, in JobStatus) { - out.RawByte('{') - first := true - _ = first - if in.Active != 0 { - const prefix string = ",\"active\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.Active)) - } - if in.CompletedIndexes != "" { - const prefix string = ",\"completedIndexes\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.CompletedIndexes)) - } - if in.CompletionTime != nil { - const prefix string = ",\"completionTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.CompletionTime).MarshalJSON()) - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjson8a33d6c7EncodeGithubComKubewardenK8sObjectsApiBatchV13(out, *v3) - } - } - out.RawByte(']') - } - } - if in.Failed != 0 { - const prefix string = ",\"failed\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Failed)) - } - if in.Ready != 0 { - const prefix string = ",\"ready\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Ready)) - } - if in.StartTime != nil { - const prefix string = ",\"startTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.StartTime).MarshalJSON()) - } - if in.Succeeded != 0 { - const prefix string = ",\"succeeded\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Succeeded)) - } - if in.UncountedTerminatedPods != nil { - const prefix string = ",\"uncountedTerminatedPods\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson8a33d6c7EncodeGithubComKubewardenK8sObjectsApiBatchV14(out, *in.UncountedTerminatedPods) - } - out.RawByte('}') -} -func easyjson8a33d6c7DecodeGithubComKubewardenK8sObjectsApiBatchV14(in *jlexer.Lexer, out *UncountedTerminatedPods) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "failed": - if in.IsNull() { - in.Skip() - out.Failed = nil - } else { - in.Delim('[') - if out.Failed == nil { - if !in.IsDelim(']') { - out.Failed = make([]string, 0, 4) - } else { - out.Failed = []string{} - } - } else { - out.Failed = (out.Failed)[:0] - } - for !in.IsDelim(']') { - var v4 string - v4 = string(in.String()) - out.Failed = append(out.Failed, v4) - in.WantComma() - } - in.Delim(']') - } - case "succeeded": - if in.IsNull() { - in.Skip() - out.Succeeded = nil - } else { - in.Delim('[') - if out.Succeeded == nil { - if !in.IsDelim(']') { - out.Succeeded = make([]string, 0, 4) - } else { - out.Succeeded = []string{} - } - } else { - out.Succeeded = (out.Succeeded)[:0] - } - for !in.IsDelim(']') { - var v5 string - v5 = string(in.String()) - out.Succeeded = append(out.Succeeded, v5) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson8a33d6c7EncodeGithubComKubewardenK8sObjectsApiBatchV14(out *jwriter.Writer, in UncountedTerminatedPods) { - out.RawByte('{') - first := true - _ = first - if len(in.Failed) != 0 { - const prefix string = ",\"failed\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v6, v7 := range in.Failed { - if v6 > 0 { - out.RawByte(',') - } - out.String(string(v7)) - } - out.RawByte(']') - } - } - if len(in.Succeeded) != 0 { - const prefix string = ",\"succeeded\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v8, v9 := range in.Succeeded { - if v8 > 0 { - out.RawByte(',') - } - out.String(string(v9)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjson8a33d6c7DecodeGithubComKubewardenK8sObjectsApiBatchV13(in *jlexer.Lexer, out *JobCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastProbeTime": - if in.IsNull() { - in.Skip() - out.LastProbeTime = nil - } else { - if out.LastProbeTime == nil { - out.LastProbeTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastProbeTime).UnmarshalJSON(data)) - } - } - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson8a33d6c7EncodeGithubComKubewardenK8sObjectsApiBatchV13(out *jwriter.Writer, in JobCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastProbeTime != nil { - const prefix string = ",\"lastProbeTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastProbeTime).MarshalJSON()) - } - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} -func easyjson8a33d6c7DecodeGithubComKubewardenK8sObjectsApiBatchV11(in *jlexer.Lexer, out *JobSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "activeDeadlineSeconds": - out.ActiveDeadlineSeconds = int64(in.Int64()) - case "backoffLimit": - out.BackoffLimit = int32(in.Int32()) - case "completionMode": - out.CompletionMode = string(in.String()) - case "completions": - out.Completions = int32(in.Int32()) - case "manualSelector": - out.ManualSelector = bool(in.Bool()) - case "parallelism": - out.Parallelism = int32(in.Int32()) - case "selector": - if in.IsNull() { - in.Skip() - out.Selector = nil - } else { - if out.Selector == nil { - out.Selector = new(_v1.LabelSelector) - } - (*out.Selector).UnmarshalEasyJSON(in) - } - case "suspend": - out.Suspend = bool(in.Bool()) - case "template": - if in.IsNull() { - in.Skip() - out.Template = nil - } else { - if out.Template == nil { - out.Template = new(_v11.PodTemplateSpec) - } - (*out.Template).UnmarshalEasyJSON(in) - } - case "ttlSecondsAfterFinished": - out.TTLSecondsAfterFinished = int32(in.Int32()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson8a33d6c7EncodeGithubComKubewardenK8sObjectsApiBatchV11(out *jwriter.Writer, in JobSpec) { - out.RawByte('{') - first := true - _ = first - if in.ActiveDeadlineSeconds != 0 { - const prefix string = ",\"activeDeadlineSeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int64(int64(in.ActiveDeadlineSeconds)) - } - if in.BackoffLimit != 0 { - const prefix string = ",\"backoffLimit\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.BackoffLimit)) - } - if in.CompletionMode != "" { - const prefix string = ",\"completionMode\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.CompletionMode)) - } - if in.Completions != 0 { - const prefix string = ",\"completions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Completions)) - } - if in.ManualSelector { - const prefix string = ",\"manualSelector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ManualSelector)) - } - if in.Parallelism != 0 { - const prefix string = ",\"parallelism\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Parallelism)) - } - if in.Selector != nil { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Selector).MarshalEasyJSON(out) - } - if in.Suspend { - const prefix string = ",\"suspend\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Suspend)) - } - { - const prefix string = ",\"template\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Template == nil { - out.RawString("null") - } else { - (*in.Template).MarshalEasyJSON(out) - } - } - if in.TTLSecondsAfterFinished != 0 { - const prefix string = ",\"ttlSecondsAfterFinished\":" - out.RawString(prefix) - out.Int32(int32(in.TTLSecondsAfterFinished)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_list_easyjson.go deleted file mode 100644 index d6e0cad..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonC91eb84cDecodeGithubComKubewardenK8sObjectsApiBatchV1(in *jlexer.Lexer, out *JobList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*Job, 0, 8) - } else { - out.Items = []*Job{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *Job - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(Job) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC91eb84cEncodeGithubComKubewardenK8sObjectsApiBatchV1(out *jwriter.Writer, in JobList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v JobList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC91eb84cEncodeGithubComKubewardenK8sObjectsApiBatchV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v JobList) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC91eb84cEncodeGithubComKubewardenK8sObjectsApiBatchV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *JobList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC91eb84cDecodeGithubComKubewardenK8sObjectsApiBatchV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *JobList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC91eb84cDecodeGithubComKubewardenK8sObjectsApiBatchV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_spec.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_spec.go index 7e2e6e7..3a9fb63 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_spec.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_spec.go @@ -21,7 +21,7 @@ type JobSpec struct { // Specifies the number of retries before marking this job failed. Defaults to 6 BackoffLimit int32 `json:"backoffLimit,omitempty"` - // CompletionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`. + // completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`. // // `NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other. // @@ -30,7 +30,7 @@ type JobSpec struct { // More completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job. CompletionMode string `json:"completionMode,omitempty"` - // Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + // Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ Completions int32 `json:"completions,omitempty"` // manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector @@ -39,13 +39,18 @@ type JobSpec struct { // Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ Parallelism int32 `json:"parallelism,omitempty"` + // Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure. + // + // This field is alpha-level. To use this field, you must enable the `JobPodFailurePolicy` feature gate (disabled by default). + PodFailurePolicy *PodFailurePolicy `json:"podFailurePolicy,omitempty"` + // A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors Selector *apimachinery_pkg_apis_meta_v1.LabelSelector `json:"selector,omitempty"` - // Suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. + // suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false. Suspend bool `json:"suspend,omitempty"` - // Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + // Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are "Never" or "OnFailure". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ // Required: true Template *api_core_v1.PodTemplateSpec `json:"template"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_spec_easyjson.go deleted file mode 100644 index 937c5a0..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_spec_easyjson.go +++ /dev/null @@ -1,211 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v11 "github.com/kubewarden/k8s-objects/api/core/v1" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonAfab81ddDecodeGithubComKubewardenK8sObjectsApiBatchV1(in *jlexer.Lexer, out *JobSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "activeDeadlineSeconds": - out.ActiveDeadlineSeconds = int64(in.Int64()) - case "backoffLimit": - out.BackoffLimit = int32(in.Int32()) - case "completionMode": - out.CompletionMode = string(in.String()) - case "completions": - out.Completions = int32(in.Int32()) - case "manualSelector": - out.ManualSelector = bool(in.Bool()) - case "parallelism": - out.Parallelism = int32(in.Int32()) - case "selector": - if in.IsNull() { - in.Skip() - out.Selector = nil - } else { - if out.Selector == nil { - out.Selector = new(_v1.LabelSelector) - } - (*out.Selector).UnmarshalEasyJSON(in) - } - case "suspend": - out.Suspend = bool(in.Bool()) - case "template": - if in.IsNull() { - in.Skip() - out.Template = nil - } else { - if out.Template == nil { - out.Template = new(_v11.PodTemplateSpec) - } - (*out.Template).UnmarshalEasyJSON(in) - } - case "ttlSecondsAfterFinished": - out.TTLSecondsAfterFinished = int32(in.Int32()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonAfab81ddEncodeGithubComKubewardenK8sObjectsApiBatchV1(out *jwriter.Writer, in JobSpec) { - out.RawByte('{') - first := true - _ = first - if in.ActiveDeadlineSeconds != 0 { - const prefix string = ",\"activeDeadlineSeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int64(int64(in.ActiveDeadlineSeconds)) - } - if in.BackoffLimit != 0 { - const prefix string = ",\"backoffLimit\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.BackoffLimit)) - } - if in.CompletionMode != "" { - const prefix string = ",\"completionMode\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.CompletionMode)) - } - if in.Completions != 0 { - const prefix string = ",\"completions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Completions)) - } - if in.ManualSelector { - const prefix string = ",\"manualSelector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ManualSelector)) - } - if in.Parallelism != 0 { - const prefix string = ",\"parallelism\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Parallelism)) - } - if in.Selector != nil { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Selector).MarshalEasyJSON(out) - } - if in.Suspend { - const prefix string = ",\"suspend\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Suspend)) - } - { - const prefix string = ",\"template\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Template == nil { - out.RawString("null") - } else { - (*in.Template).MarshalEasyJSON(out) - } - } - if in.TTLSecondsAfterFinished != 0 { - const prefix string = ",\"ttlSecondsAfterFinished\":" - out.RawString(prefix) - out.Int32(int32(in.TTLSecondsAfterFinished)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v JobSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonAfab81ddEncodeGithubComKubewardenK8sObjectsApiBatchV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v JobSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonAfab81ddEncodeGithubComKubewardenK8sObjectsApiBatchV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *JobSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonAfab81ddDecodeGithubComKubewardenK8sObjectsApiBatchV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *JobSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonAfab81ddDecodeGithubComKubewardenK8sObjectsApiBatchV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_status.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_status.go index 1241f61..9d28dbb 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_status.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_status.go @@ -17,7 +17,7 @@ type JobStatus struct { // The number of pending and running pods. Active int32 `json:"active,omitempty"` - // CompletedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". + // completedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". CompletedIndexes string `json:"completedIndexes,omitempty"` // Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is only set when the job finishes successfully. @@ -40,11 +40,13 @@ type JobStatus struct { // The number of pods which reached phase Succeeded. Succeeded int32 `json:"succeeded,omitempty"` - // UncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters. + // uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters. // - // The job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status: (1) Add the pod UID to the arrays in this field. (2) Remove the pod finalizer. (3) Remove the pod UID from the arrays while increasing the corresponding + // The job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status: + // + // 1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding // counter. // - // This field is beta-level. The job controller only makes use of this field when the feature gate JobTrackingWithFinalizers is enabled (enabled by default). Old jobs might not be tracked using this field, in which case the field remains null. + // Old jobs might not be tracked using this field, in which case the field remains null. UncountedTerminatedPods *UncountedTerminatedPods `json:"uncountedTerminatedPods,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_status_easyjson.go deleted file mode 100644 index c9a684e..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_status_easyjson.go +++ /dev/null @@ -1,368 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonCe8ae4eDecodeGithubComKubewardenK8sObjectsApiBatchV1(in *jlexer.Lexer, out *JobStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "active": - out.Active = int32(in.Int32()) - case "completedIndexes": - out.CompletedIndexes = string(in.String()) - case "completionTime": - if in.IsNull() { - in.Skip() - out.CompletionTime = nil - } else { - if out.CompletionTime == nil { - out.CompletionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.CompletionTime).UnmarshalJSON(data)) - } - } - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*JobCondition, 0, 8) - } else { - out.Conditions = []*JobCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *JobCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(JobCondition) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "failed": - out.Failed = int32(in.Int32()) - case "ready": - out.Ready = int32(in.Int32()) - case "startTime": - if in.IsNull() { - in.Skip() - out.StartTime = nil - } else { - if out.StartTime == nil { - out.StartTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.StartTime).UnmarshalJSON(data)) - } - } - case "succeeded": - out.Succeeded = int32(in.Int32()) - case "uncountedTerminatedPods": - if in.IsNull() { - in.Skip() - out.UncountedTerminatedPods = nil - } else { - if out.UncountedTerminatedPods == nil { - out.UncountedTerminatedPods = new(UncountedTerminatedPods) - } - easyjsonCe8ae4eDecodeGithubComKubewardenK8sObjectsApiBatchV11(in, out.UncountedTerminatedPods) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCe8ae4eEncodeGithubComKubewardenK8sObjectsApiBatchV1(out *jwriter.Writer, in JobStatus) { - out.RawByte('{') - first := true - _ = first - if in.Active != 0 { - const prefix string = ",\"active\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.Active)) - } - if in.CompletedIndexes != "" { - const prefix string = ",\"completedIndexes\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.CompletedIndexes)) - } - if in.CompletionTime != nil { - const prefix string = ",\"completionTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.CompletionTime).MarshalJSON()) - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Failed != 0 { - const prefix string = ",\"failed\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Failed)) - } - if in.Ready != 0 { - const prefix string = ",\"ready\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Ready)) - } - if in.StartTime != nil { - const prefix string = ",\"startTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.StartTime).MarshalJSON()) - } - if in.Succeeded != 0 { - const prefix string = ",\"succeeded\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Succeeded)) - } - if in.UncountedTerminatedPods != nil { - const prefix string = ",\"uncountedTerminatedPods\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonCe8ae4eEncodeGithubComKubewardenK8sObjectsApiBatchV11(out, *in.UncountedTerminatedPods) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v JobStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonCe8ae4eEncodeGithubComKubewardenK8sObjectsApiBatchV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v JobStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonCe8ae4eEncodeGithubComKubewardenK8sObjectsApiBatchV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *JobStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonCe8ae4eDecodeGithubComKubewardenK8sObjectsApiBatchV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *JobStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonCe8ae4eDecodeGithubComKubewardenK8sObjectsApiBatchV1(l, v) -} -func easyjsonCe8ae4eDecodeGithubComKubewardenK8sObjectsApiBatchV11(in *jlexer.Lexer, out *UncountedTerminatedPods) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "failed": - if in.IsNull() { - in.Skip() - out.Failed = nil - } else { - in.Delim('[') - if out.Failed == nil { - if !in.IsDelim(']') { - out.Failed = make([]string, 0, 4) - } else { - out.Failed = []string{} - } - } else { - out.Failed = (out.Failed)[:0] - } - for !in.IsDelim(']') { - var v4 string - v4 = string(in.String()) - out.Failed = append(out.Failed, v4) - in.WantComma() - } - in.Delim(']') - } - case "succeeded": - if in.IsNull() { - in.Skip() - out.Succeeded = nil - } else { - in.Delim('[') - if out.Succeeded == nil { - if !in.IsDelim(']') { - out.Succeeded = make([]string, 0, 4) - } else { - out.Succeeded = []string{} - } - } else { - out.Succeeded = (out.Succeeded)[:0] - } - for !in.IsDelim(']') { - var v5 string - v5 = string(in.String()) - out.Succeeded = append(out.Succeeded, v5) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCe8ae4eEncodeGithubComKubewardenK8sObjectsApiBatchV11(out *jwriter.Writer, in UncountedTerminatedPods) { - out.RawByte('{') - first := true - _ = first - if len(in.Failed) != 0 { - const prefix string = ",\"failed\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v6, v7 := range in.Failed { - if v6 > 0 { - out.RawByte(',') - } - out.String(string(v7)) - } - out.RawByte(']') - } - } - if len(in.Succeeded) != 0 { - const prefix string = ",\"succeeded\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v8, v9 := range in.Succeeded { - if v8 > 0 { - out.RawByte(',') - } - out.String(string(v9)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_template_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_template_spec_easyjson.go deleted file mode 100644 index dc51732..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_template_spec_easyjson.go +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson761e00a6DecodeGithubComKubewardenK8sObjectsApiBatchV1(in *jlexer.Lexer, out *JobTemplateSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(JobSpec) - } - (*out.Spec).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson761e00a6EncodeGithubComKubewardenK8sObjectsApiBatchV1(out *jwriter.Writer, in JobTemplateSpec) { - out.RawByte('{') - first := true - _ = first - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - first = false - out.RawString(prefix[1:]) - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Spec).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v JobTemplateSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson761e00a6EncodeGithubComKubewardenK8sObjectsApiBatchV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v JobTemplateSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjson761e00a6EncodeGithubComKubewardenK8sObjectsApiBatchV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *JobTemplateSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson761e00a6DecodeGithubComKubewardenK8sObjectsApiBatchV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *JobTemplateSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson761e00a6DecodeGithubComKubewardenK8sObjectsApiBatchV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/pod_failure_policy.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/pod_failure_policy.go new file mode 100644 index 0000000..1924e9e --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/pod_failure_policy.go @@ -0,0 +1,16 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +// PodFailurePolicy PodFailurePolicy describes how failed pods influence the backoffLimit. +// +// swagger:model PodFailurePolicy +type PodFailurePolicy struct { + + // A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed. + // Required: true + Rules []*PodFailurePolicyRule `json:"rules"` +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/pod_failure_policy_on_exit_codes_requirement.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/pod_failure_policy_on_exit_codes_requirement.go new file mode 100644 index 0000000..b2b98a8 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/pod_failure_policy_on_exit_codes_requirement.go @@ -0,0 +1,31 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +// PodFailurePolicyOnExitCodesRequirement PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check. +// +// swagger:model PodFailurePolicyOnExitCodesRequirement +type PodFailurePolicyOnExitCodesRequirement struct { + + // Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template. + ContainerName string `json:"containerName,omitempty"` + + // Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are: + // + // - In: the requirement is satisfied if at least one container exit code + // (might be multiple if there are multiple containers not restricted + // by the 'containerName' field) is in the set of specified values. + // - NotIn: the requirement is satisfied if at least one container exit code + // (might be multiple if there are multiple containers not restricted + // by the 'containerName' field) is not in the set of specified values. + // Additional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied. + // Required: true + Operator *string `json:"operator"` + + // Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed. + // Required: true + Values []int32 `json:"values"` +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/pod_failure_policy_on_pod_conditions_pattern.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/pod_failure_policy_on_pod_conditions_pattern.go new file mode 100644 index 0000000..1c6687c --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/pod_failure_policy_on_pod_conditions_pattern.go @@ -0,0 +1,20 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +// PodFailurePolicyOnPodConditionsPattern PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type. +// +// swagger:model PodFailurePolicyOnPodConditionsPattern +type PodFailurePolicyOnPodConditionsPattern struct { + + // Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True. + // Required: true + Status *string `json:"status"` + + // Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type. + // Required: true + Type *string `json:"type"` +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/pod_failure_policy_rule.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/pod_failure_policy_rule.go new file mode 100644 index 0000000..9e8507e --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/pod_failure_policy_rule.go @@ -0,0 +1,31 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +// PodFailurePolicyRule PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule. +// +// swagger:model PodFailurePolicyRule +type PodFailurePolicyRule struct { + + // Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are: + // + // - FailJob: indicates that the pod's job is marked as Failed and all + // running pods are terminated. + // - Ignore: indicates that the counter towards the .backoffLimit is not + // incremented and a replacement pod is created. + // - Count: indicates that the pod is handled in the default way - the + // counter towards the .backoffLimit is incremented. + // Additional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule. + // Required: true + Action *string `json:"action"` + + // Represents the requirement on the container exit codes. + OnExitCodes *PodFailurePolicyOnExitCodesRequirement `json:"onExitCodes,omitempty"` + + // Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed. + // Required: true + OnPodConditions []*PodFailurePolicyOnPodConditionsPattern `json:"onPodConditions"` +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/swagger.json b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/swagger.json index 195ea25..03c37e9 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/swagger.json +++ b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/swagger.json @@ -1 +1 @@ -{"swagger":"2.0","info":{"title":"kubernetes","version":"unversioned"},"paths":{},"definitions":{"CronJob":{"description":"CronJob represents the configuration of a single cron job.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/CronJobSpec"},"status":{"description":"Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/CronJobStatus"}},"x-kubernetes-group-version-kind":[{"group":"batch","kind":"CronJob","version":"v1"}]},"CronJobList":{"description":"CronJobList is a collection of cron jobs.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"items is the list of CronJobs.","type":"array","items":{"$ref":"#/definitions/CronJob"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"batch","kind":"CronJobList","version":"v1"}]},"CronJobSpec":{"description":"CronJobSpec describes how the job execution will look like and when it will actually run.","type":"object","required":["schedule","jobTemplate"],"properties":{"concurrencyPolicy":{"description":"Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one\n\n","type":"string","x-omitempty":true},"failedJobsHistoryLimit":{"description":"The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.","type":"integer","format":"int32","x-omitempty":true},"jobTemplate":{"description":"Specifies the job that will be created when executing a CronJob.","$ref":"#/definitions/JobTemplateSpec"},"schedule":{"description":"The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.","type":"string"},"startingDeadlineSeconds":{"description":"Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.","type":"integer","format":"int64","x-omitempty":true},"successfulJobsHistoryLimit":{"description":"The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.","type":"integer","format":"int32","x-omitempty":true},"suspend":{"description":"This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.","type":"boolean","x-omitempty":true},"timeZone":{"description":"The time zone for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` feature gate.","type":"string","x-omitempty":true}}},"CronJobStatus":{"description":"CronJobStatus represents the current state of a cron job.","type":"object","properties":{"active":{"description":"A list of pointers to currently running jobs.","type":"array","items":{"x-go-type":{"import":{"alias":"api_core_v1","package":"github.com/kubewarden/k8s-objects/api/core/v1"},"type":"ObjectReference"},"x-nullable":true,"x-omitempty":true},"x-kubernetes-list-type":"atomic","x-omitempty":true},"lastScheduleTime":{"description":"Information when was the last time the job was successfully scheduled.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"lastSuccessfulTime":{"description":"Information when was the last time the job successfully completed.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true}}},"Job":{"description":"Job represents the configuration of a single job.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/JobSpec"},"status":{"description":"Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/JobStatus"}},"x-kubernetes-group-version-kind":[{"group":"batch","kind":"Job","version":"v1"}]},"JobCondition":{"description":"JobCondition describes current state of a job.","type":"object","required":["type","status"],"properties":{"lastProbeTime":{"description":"Last time the condition was checked.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"lastTransitionTime":{"description":"Last time the condition transit from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"Human readable message indicating details about last transition.","type":"string","x-omitempty":true},"reason":{"description":"(brief) reason for the condition's last transition.","type":"string","x-omitempty":true},"status":{"description":"Status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"Type of job condition, Complete or Failed.","type":"string"}}},"JobList":{"description":"JobList is a collection of jobs.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"items is the list of Jobs.","type":"array","items":{"$ref":"#/definitions/Job"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"batch","kind":"JobList","version":"v1"}]},"JobSpec":{"description":"JobSpec describes how the job execution will look like.","type":"object","required":["template"],"properties":{"activeDeadlineSeconds":{"description":"Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.","type":"integer","format":"int64","x-omitempty":true},"backoffLimit":{"description":"Specifies the number of retries before marking this job failed. Defaults to 6","type":"integer","format":"int32","x-omitempty":true},"completionMode":{"description":"CompletionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\n\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\n\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.","type":"string","x-omitempty":true},"completions":{"description":"Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/","type":"integer","format":"int32","x-omitempty":true},"manualSelector":{"description":"manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector","type":"boolean","x-omitempty":true},"parallelism":{"description":"Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) \u003c .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/","type":"integer","format":"int32","x-omitempty":true},"selector":{"description":"A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"},"x-nullable":true,"x-omitempty":true},"suspend":{"description":"Suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.","type":"boolean","x-omitempty":true},"template":{"description":"Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/","x-go-type":{"import":{"alias":"api_core_v1","package":"github.com/kubewarden/k8s-objects/api/core/v1"},"type":"PodTemplateSpec"}},"ttlSecondsAfterFinished":{"description":"ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.","type":"integer","format":"int32","x-omitempty":true}}},"JobStatus":{"description":"JobStatus represents the current state of a Job.","type":"object","properties":{"active":{"description":"The number of pending and running pods.","type":"integer","format":"int32","x-omitempty":true},"completedIndexes":{"description":"CompletedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".","type":"string","x-omitempty":true},"completionTime":{"description":"Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is only set when the job finishes successfully.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"conditions":{"description":"The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/JobCondition"},"x-kubernetes-list-type":"atomic","x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"failed":{"description":"The number of pods which reached phase Failed.","type":"integer","format":"int32","x-omitempty":true},"ready":{"description":"The number of pods which have a Ready condition.\n\nThis field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default).","type":"integer","format":"int32","x-omitempty":true},"startTime":{"description":"Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"succeeded":{"description":"The number of pods which reached phase Succeeded.","type":"integer","format":"int32","x-omitempty":true},"uncountedTerminatedPods":{"description":"UncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status: (1) Add the pod UID to the arrays in this field. (2) Remove the pod finalizer. (3) Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nThis field is beta-level. The job controller only makes use of this field when the feature gate JobTrackingWithFinalizers is enabled (enabled by default). Old jobs might not be tracked using this field, in which case the field remains null.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/UncountedTerminatedPods"}}},"JobTemplateSpec":{"description":"JobTemplateSpec describes the data a Job should have when created from a template","type":"object","properties":{"metadata":{"description":"Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/JobSpec"}}},"UncountedTerminatedPods":{"description":"UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.","type":"object","properties":{"failed":{"description":"Failed holds UIDs of failed Pods.","type":"array","items":{"type":"string","x-omitempty":true},"x-kubernetes-list-type":"set","x-omitempty":true},"succeeded":{"description":"Succeeded holds UIDs of succeeded Pods.","type":"array","items":{"type":"string","x-omitempty":true},"x-kubernetes-list-type":"set","x-omitempty":true}}}}} \ No newline at end of file +{"swagger":"2.0","info":{"title":"kubernetes","version":"unversioned"},"paths":{},"definitions":{"CronJob":{"description":"CronJob represents the configuration of a single cron job.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/CronJobSpec"},"status":{"description":"Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/CronJobStatus"}},"x-kubernetes-group-version-kind":[{"group":"batch","kind":"CronJob","version":"v1"}]},"CronJobList":{"description":"CronJobList is a collection of cron jobs.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"items is the list of CronJobs.","type":"array","items":{"$ref":"#/definitions/CronJob"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"batch","kind":"CronJobList","version":"v1"}]},"CronJobSpec":{"description":"CronJobSpec describes how the job execution will look like and when it will actually run.","type":"object","required":["schedule","jobTemplate"],"properties":{"concurrencyPolicy":{"description":"Specifies how to treat concurrent executions of a Job. Valid values are:\n\n- \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one","type":"string","x-omitempty":true},"failedJobsHistoryLimit":{"description":"The number of failed finished jobs to retain. Value must be non-negative integer. Defaults to 1.","type":"integer","format":"int32","x-omitempty":true},"jobTemplate":{"description":"Specifies the job that will be created when executing a CronJob.","$ref":"#/definitions/JobTemplateSpec"},"schedule":{"description":"The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.","type":"string"},"startingDeadlineSeconds":{"description":"Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.","type":"integer","format":"int64","x-omitempty":true},"successfulJobsHistoryLimit":{"description":"The number of successful finished jobs to retain. Value must be non-negative integer. Defaults to 3.","type":"integer","format":"int32","x-omitempty":true},"suspend":{"description":"This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.","type":"boolean","x-omitempty":true},"timeZone":{"description":"The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will default to the time zone of the kube-controller-manager process. The set of valid time zone names and the time zone offset is loaded from the system-wide time zone database by the API server during CronJob validation and the controller manager during execution. If no system-wide time zone database can be found a bundled version of the database is used instead. If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host configuration, the controller will stop creating new new Jobs and will create a system event with the reason UnknownTimeZone. More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones","type":"string","x-omitempty":true}}},"CronJobStatus":{"description":"CronJobStatus represents the current state of a cron job.","type":"object","properties":{"active":{"description":"A list of pointers to currently running jobs.","type":"array","items":{"x-go-type":{"import":{"alias":"api_core_v1","package":"github.com/kubewarden/k8s-objects/api/core/v1"},"type":"ObjectReference"},"x-nullable":true,"x-omitempty":true},"x-kubernetes-list-type":"atomic","x-omitempty":true},"lastScheduleTime":{"description":"Information when was the last time the job was successfully scheduled.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"lastSuccessfulTime":{"description":"Information when was the last time the job successfully completed.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true}}},"Job":{"description":"Job represents the configuration of a single job.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/JobSpec"},"status":{"description":"Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/JobStatus"}},"x-kubernetes-group-version-kind":[{"group":"batch","kind":"Job","version":"v1"}]},"JobCondition":{"description":"JobCondition describes current state of a job.","type":"object","required":["type","status"],"properties":{"lastProbeTime":{"description":"Last time the condition was checked.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"lastTransitionTime":{"description":"Last time the condition transit from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"Human readable message indicating details about last transition.","type":"string","x-omitempty":true},"reason":{"description":"(brief) reason for the condition's last transition.","type":"string","x-omitempty":true},"status":{"description":"Status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"Type of job condition, Complete or Failed.","type":"string"}}},"JobList":{"description":"JobList is a collection of jobs.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"items is the list of Jobs.","type":"array","items":{"$ref":"#/definitions/Job"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"batch","kind":"JobList","version":"v1"}]},"JobSpec":{"description":"JobSpec describes how the job execution will look like.","type":"object","required":["template"],"properties":{"activeDeadlineSeconds":{"description":"Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer. If a Job is suspended (at creation or through an update), this timer will effectively be stopped and reset when the Job is resumed again.","type":"integer","format":"int64","x-omitempty":true},"backoffLimit":{"description":"Specifies the number of retries before marking this job failed. Defaults to 6","type":"integer","format":"int32","x-omitempty":true},"completionMode":{"description":"completionMode specifies how Pod completions are tracked. It can be `NonIndexed` (default) or `Indexed`.\n\n`NonIndexed` means that the Job is considered complete when there have been .spec.completions successfully completed Pods. Each Pod completion is homologous to each other.\n\n`Indexed` means that the Pods of a Job get an associated completion index from 0 to (.spec.completions - 1), available in the annotation batch.kubernetes.io/job-completion-index. The Job is considered complete when there is one successfully completed Pod for each index. When value is `Indexed`, .spec.completions must be specified and `.spec.parallelism` must be less than or equal to 10^5. In addition, The Pod name takes the form `$(job-name)-$(index)-$(random-string)`, the Pod hostname takes the form `$(job-name)-$(index)`.\n\nMore completion modes can be added in the future. If the Job controller observes a mode that it doesn't recognize, which is possible during upgrades due to version skew, the controller skips updates for the Job.","type":"string","x-omitempty":true},"completions":{"description":"Specifies the desired number of successfully finished pods the job should be run with. Setting to null means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/","type":"integer","format":"int32","x-omitempty":true},"manualSelector":{"description":"manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector","type":"boolean","x-omitempty":true},"parallelism":{"description":"Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) \u003c .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/","type":"integer","format":"int32","x-omitempty":true},"podFailurePolicy":{"description":"Specifies the policy of handling failed pods. In particular, it allows to specify the set of actions and conditions which need to be satisfied to take the associated action. If empty, the default behaviour applies - the counter of failed pods, represented by the jobs's .status.failed field, is incremented and it is checked against the backoffLimit. This field cannot be used in combination with restartPolicy=OnFailure.\n\nThis field is alpha-level. To use this field, you must enable the `JobPodFailurePolicy` feature gate (disabled by default).","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodFailurePolicy"},"selector":{"description":"A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"},"x-nullable":true,"x-omitempty":true},"suspend":{"description":"suspend specifies whether the Job controller should create Pods or not. If a Job is created with suspend set to true, no Pods are created by the Job controller. If a Job is suspended after creation (i.e. the flag goes from false to true), the Job controller will delete all active Pods associated with this Job. Users must design their workload to gracefully handle this. Suspending a Job will reset the StartTime field of the Job, effectively resetting the ActiveDeadlineSeconds timer too. Defaults to false.","type":"boolean","x-omitempty":true},"template":{"description":"Describes the pod that will be created when executing a job. The only allowed template.spec.restartPolicy values are \"Never\" or \"OnFailure\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/","x-go-type":{"import":{"alias":"api_core_v1","package":"github.com/kubewarden/k8s-objects/api/core/v1"},"type":"PodTemplateSpec"}},"ttlSecondsAfterFinished":{"description":"ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes.","type":"integer","format":"int32","x-omitempty":true}}},"JobStatus":{"description":"JobStatus represents the current state of a Job.","type":"object","properties":{"active":{"description":"The number of pending and running pods.","type":"integer","format":"int32","x-omitempty":true},"completedIndexes":{"description":"completedIndexes holds the completed indexes when .spec.completionMode = \"Indexed\" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as \"1,3-5,7\".","type":"string","x-omitempty":true},"completionTime":{"description":"Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is only set when the job finishes successfully.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"conditions":{"description":"The latest available observations of an object's current state. When a Job fails, one of the conditions will have type \"Failed\" and status true. When a Job is suspended, one of the conditions will have type \"Suspended\" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type \"Complete\" and status true. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/JobCondition"},"x-kubernetes-list-type":"atomic","x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"failed":{"description":"The number of pods which reached phase Failed.","type":"integer","format":"int32","x-omitempty":true},"ready":{"description":"The number of pods which have a Ready condition.\n\nThis field is beta-level. The job controller populates the field when the feature gate JobReadyPods is enabled (enabled by default).","type":"integer","format":"int32","x-omitempty":true},"startTime":{"description":"Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"succeeded":{"description":"The number of pods which reached phase Succeeded.","type":"integer","format":"int32","x-omitempty":true},"uncountedTerminatedPods":{"description":"uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.\n\nThe job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:\n\n1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding\n counter.\n\nOld jobs might not be tracked using this field, in which case the field remains null.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/UncountedTerminatedPods"}}},"JobTemplateSpec":{"description":"JobTemplateSpec describes the data a Job should have when created from a template","type":"object","properties":{"metadata":{"description":"Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/JobSpec"}}},"PodFailurePolicy":{"description":"PodFailurePolicy describes how failed pods influence the backoffLimit.","type":"object","required":["rules"],"properties":{"rules":{"description":"A list of pod failure policy rules. The rules are evaluated in order. Once a rule matches a Pod failure, the remaining of the rules are ignored. When no rule matches the Pod failure, the default handling applies - the counter of pod failures is incremented and it is checked against the backoffLimit. At most 20 elements are allowed.","type":"array","items":{"$ref":"#/definitions/PodFailurePolicyRule"},"x-kubernetes-list-type":"atomic"}}},"PodFailurePolicyOnExitCodesRequirement":{"description":"PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.","type":"object","required":["operator","values"],"properties":{"containerName":{"description":"Restricts the check for exit codes to the container with the specified name. When null, the rule applies to all containers. When specified, it should match one the container or initContainer names in the pod template.","type":"string","x-omitempty":true},"operator":{"description":"Represents the relationship between the container exit code(s) and the specified values. Containers completed with success (exit code 0) are excluded from the requirement check. Possible values are:\n\n- In: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is in the set of specified values.\n- NotIn: the requirement is satisfied if at least one container exit code\n (might be multiple if there are multiple containers not restricted\n by the 'containerName' field) is not in the set of specified values.\nAdditional values are considered to be added in the future. Clients should react to an unknown operator by assuming the requirement is not satisfied.","type":"string"},"values":{"description":"Specifies the set of values. Each returned container exit code (might be multiple in case of multiple containers) is checked against this set of values with respect to the operator. The list of values must be ordered and must not contain duplicates. Value '0' cannot be used for the In operator. At least one element is required. At most 255 elements are allowed.","type":"array","items":{"type":"integer","format":"int32"},"x-kubernetes-list-type":"set"}}},"PodFailurePolicyOnPodConditionsPattern":{"description":"PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.","type":"object","required":["type","status"],"properties":{"status":{"description":"Specifies the required Pod condition status. To match a pod condition it is required that the specified status equals the pod condition status. Defaults to True.","type":"string"},"type":{"description":"Specifies the required Pod condition type. To match a pod condition it is required that specified type equals the pod condition type.","type":"string"}}},"PodFailurePolicyRule":{"description":"PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.","type":"object","required":["action","onPodConditions"],"properties":{"action":{"description":"Specifies the action taken on a pod failure when the requirements are satisfied. Possible values are:\n\n- FailJob: indicates that the pod's job is marked as Failed and all\n running pods are terminated.\n- Ignore: indicates that the counter towards the .backoffLimit is not\n incremented and a replacement pod is created.\n- Count: indicates that the pod is handled in the default way - the\n counter towards the .backoffLimit is incremented.\nAdditional values are considered to be added in the future. Clients should react to an unknown action by skipping the rule.","type":"string"},"onExitCodes":{"description":"Represents the requirement on the container exit codes.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodFailurePolicyOnExitCodesRequirement"},"onPodConditions":{"description":"Represents the requirement on the pod conditions. The requirement is represented as a list of pod condition patterns. The requirement is satisfied if at least one pattern matches an actual pod condition. At most 20 elements are allowed.","type":"array","items":{"$ref":"#/definitions/PodFailurePolicyOnPodConditionsPattern"},"x-kubernetes-list-type":"atomic"}}},"UncountedTerminatedPods":{"description":"UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.","type":"object","properties":{"failed":{"description":"failed holds UIDs of failed Pods.","type":"array","items":{"type":"string","x-omitempty":true},"x-kubernetes-list-type":"set","x-omitempty":true},"succeeded":{"description":"succeeded holds UIDs of succeeded Pods.","type":"array","items":{"type":"string","x-omitempty":true},"x-kubernetes-list-type":"set","x-omitempty":true}}}}} \ No newline at end of file diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/uncounted_terminated_pods.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/uncounted_terminated_pods.go index 21d2c75..6d36a6d 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/uncounted_terminated_pods.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/uncounted_terminated_pods.go @@ -10,9 +10,9 @@ package v1 // swagger:model UncountedTerminatedPods type UncountedTerminatedPods struct { - // Failed holds UIDs of failed Pods. + // failed holds UIDs of failed Pods. Failed []string `json:"failed,omitempty"` - // Succeeded holds UIDs of succeeded Pods. + // succeeded holds UIDs of succeeded Pods. Succeeded []string `json:"succeeded,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/uncounted_terminated_pods_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/uncounted_terminated_pods_easyjson.go deleted file mode 100644 index 3f2fab3..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/uncounted_terminated_pods_easyjson.go +++ /dev/null @@ -1,158 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonBc4b1a64DecodeGithubComKubewardenK8sObjectsApiBatchV1(in *jlexer.Lexer, out *UncountedTerminatedPods) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "failed": - if in.IsNull() { - in.Skip() - out.Failed = nil - } else { - in.Delim('[') - if out.Failed == nil { - if !in.IsDelim(']') { - out.Failed = make([]string, 0, 4) - } else { - out.Failed = []string{} - } - } else { - out.Failed = (out.Failed)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Failed = append(out.Failed, v1) - in.WantComma() - } - in.Delim(']') - } - case "succeeded": - if in.IsNull() { - in.Skip() - out.Succeeded = nil - } else { - in.Delim('[') - if out.Succeeded == nil { - if !in.IsDelim(']') { - out.Succeeded = make([]string, 0, 4) - } else { - out.Succeeded = []string{} - } - } else { - out.Succeeded = (out.Succeeded)[:0] - } - for !in.IsDelim(']') { - var v2 string - v2 = string(in.String()) - out.Succeeded = append(out.Succeeded, v2) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBc4b1a64EncodeGithubComKubewardenK8sObjectsApiBatchV1(out *jwriter.Writer, in UncountedTerminatedPods) { - out.RawByte('{') - first := true - _ = first - if len(in.Failed) != 0 { - const prefix string = ",\"failed\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v3, v4 := range in.Failed { - if v3 > 0 { - out.RawByte(',') - } - out.String(string(v4)) - } - out.RawByte(']') - } - } - if len(in.Succeeded) != 0 { - const prefix string = ",\"succeeded\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v5, v6 := range in.Succeeded { - if v5 > 0 { - out.RawByte(',') - } - out.String(string(v6)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v UncountedTerminatedPods) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonBc4b1a64EncodeGithubComKubewardenK8sObjectsApiBatchV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v UncountedTerminatedPods) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonBc4b1a64EncodeGithubComKubewardenK8sObjectsApiBatchV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *UncountedTerminatedPods) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonBc4b1a64DecodeGithubComKubewardenK8sObjectsApiBatchV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *UncountedTerminatedPods) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonBc4b1a64DecodeGithubComKubewardenK8sObjectsApiBatchV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/affinity_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/affinity_easyjson.go deleted file mode 100644 index 1cce93e..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/affinity_easyjson.go +++ /dev/null @@ -1,1136 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Affinity) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "nodeAffinity": - if in.IsNull() { - in.Skip() - out.NodeAffinity = nil - } else { - if out.NodeAffinity == nil { - out.NodeAffinity = new(NodeAffinity) - } - easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.NodeAffinity) - } - case "podAffinity": - if in.IsNull() { - in.Skip() - out.PodAffinity = nil - } else { - if out.PodAffinity == nil { - out.PodAffinity = new(PodAffinity) - } - easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.PodAffinity) - } - case "podAntiAffinity": - if in.IsNull() { - in.Skip() - out.PodAntiAffinity = nil - } else { - if out.PodAntiAffinity == nil { - out.PodAntiAffinity = new(PodAntiAffinity) - } - easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV13(in, out.PodAntiAffinity) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Affinity) { - out.RawByte('{') - first := true - _ = first - if in.NodeAffinity != nil { - const prefix string = ",\"nodeAffinity\":" - first = false - out.RawString(prefix[1:]) - easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.NodeAffinity) - } - if in.PodAffinity != nil { - const prefix string = ",\"podAffinity\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.PodAffinity) - } - if in.PodAntiAffinity != nil { - const prefix string = ",\"podAntiAffinity\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *in.PodAntiAffinity) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Affinity) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Affinity) MarshalEasyJSON(w *jwriter.Writer) { - easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Affinity) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Affinity) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *PodAntiAffinity) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "preferredDuringSchedulingIgnoredDuringExecution": - if in.IsNull() { - in.Skip() - out.PreferredDuringSchedulingIgnoredDuringExecution = nil - } else { - in.Delim('[') - if out.PreferredDuringSchedulingIgnoredDuringExecution == nil { - if !in.IsDelim(']') { - out.PreferredDuringSchedulingIgnoredDuringExecution = make([]*WeightedPodAffinityTerm, 0, 8) - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = []*WeightedPodAffinityTerm{} - } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = (out.PreferredDuringSchedulingIgnoredDuringExecution)[:0] - } - for !in.IsDelim(']') { - var v1 *WeightedPodAffinityTerm - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(WeightedPodAffinityTerm) - } - easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV14(in, v1) - } - out.PreferredDuringSchedulingIgnoredDuringExecution = append(out.PreferredDuringSchedulingIgnoredDuringExecution, v1) - in.WantComma() - } - in.Delim(']') - } - case "requiredDuringSchedulingIgnoredDuringExecution": - if in.IsNull() { - in.Skip() - out.RequiredDuringSchedulingIgnoredDuringExecution = nil - } else { - in.Delim('[') - if out.RequiredDuringSchedulingIgnoredDuringExecution == nil { - if !in.IsDelim(']') { - out.RequiredDuringSchedulingIgnoredDuringExecution = make([]*PodAffinityTerm, 0, 8) - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = []*PodAffinityTerm{} - } - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = (out.RequiredDuringSchedulingIgnoredDuringExecution)[:0] - } - for !in.IsDelim(']') { - var v2 *PodAffinityTerm - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(PodAffinityTerm) - } - easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV15(in, v2) - } - out.RequiredDuringSchedulingIgnoredDuringExecution = append(out.RequiredDuringSchedulingIgnoredDuringExecution, v2) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in PodAntiAffinity) { - out.RawByte('{') - first := true - _ = first - if len(in.PreferredDuringSchedulingIgnoredDuringExecution) != 0 { - const prefix string = ",\"preferredDuringSchedulingIgnoredDuringExecution\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v3, v4 := range in.PreferredDuringSchedulingIgnoredDuringExecution { - if v3 > 0 { - out.RawByte(',') - } - if v4 == nil { - out.RawString("null") - } else { - easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *v4) - } - } - out.RawByte(']') - } - } - if len(in.RequiredDuringSchedulingIgnoredDuringExecution) != 0 { - const prefix string = ",\"requiredDuringSchedulingIgnoredDuringExecution\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v5, v6 := range in.RequiredDuringSchedulingIgnoredDuringExecution { - if v5 > 0 { - out.RawByte(',') - } - if v6 == nil { - out.RawString("null") - } else { - easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV15(out, *v6) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV15(in *jlexer.Lexer, out *PodAffinityTerm) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "labelSelector": - if in.IsNull() { - in.Skip() - out.LabelSelector = nil - } else { - if out.LabelSelector == nil { - out.LabelSelector = new(_v1.LabelSelector) - } - (*out.LabelSelector).UnmarshalEasyJSON(in) - } - case "namespaceSelector": - if in.IsNull() { - in.Skip() - out.NamespaceSelector = nil - } else { - if out.NamespaceSelector == nil { - out.NamespaceSelector = new(_v1.LabelSelector) - } - (*out.NamespaceSelector).UnmarshalEasyJSON(in) - } - case "namespaces": - if in.IsNull() { - in.Skip() - out.Namespaces = nil - } else { - in.Delim('[') - if out.Namespaces == nil { - if !in.IsDelim(']') { - out.Namespaces = make([]string, 0, 4) - } else { - out.Namespaces = []string{} - } - } else { - out.Namespaces = (out.Namespaces)[:0] - } - for !in.IsDelim(']') { - var v7 string - v7 = string(in.String()) - out.Namespaces = append(out.Namespaces, v7) - in.WantComma() - } - in.Delim(']') - } - case "topologyKey": - if in.IsNull() { - in.Skip() - out.TopologyKey = nil - } else { - if out.TopologyKey == nil { - out.TopologyKey = new(string) - } - *out.TopologyKey = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV15(out *jwriter.Writer, in PodAffinityTerm) { - out.RawByte('{') - first := true - _ = first - if in.LabelSelector != nil { - const prefix string = ",\"labelSelector\":" - first = false - out.RawString(prefix[1:]) - (*in.LabelSelector).MarshalEasyJSON(out) - } - if in.NamespaceSelector != nil { - const prefix string = ",\"namespaceSelector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.NamespaceSelector).MarshalEasyJSON(out) - } - if len(in.Namespaces) != 0 { - const prefix string = ",\"namespaces\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v8, v9 := range in.Namespaces { - if v8 > 0 { - out.RawByte(',') - } - out.String(string(v9)) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"topologyKey\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.TopologyKey == nil { - out.RawString("null") - } else { - out.String(string(*in.TopologyKey)) - } - } - out.RawByte('}') -} -func easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Lexer, out *WeightedPodAffinityTerm) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "podAffinityTerm": - if in.IsNull() { - in.Skip() - out.PodAffinityTerm = nil - } else { - if out.PodAffinityTerm == nil { - out.PodAffinityTerm = new(PodAffinityTerm) - } - easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV15(in, out.PodAffinityTerm) - } - case "weight": - if in.IsNull() { - in.Skip() - out.Weight = nil - } else { - if out.Weight == nil { - out.Weight = new(int32) - } - *out.Weight = int32(in.Int32()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter.Writer, in WeightedPodAffinityTerm) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"podAffinityTerm\":" - out.RawString(prefix[1:]) - if in.PodAffinityTerm == nil { - out.RawString("null") - } else { - easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV15(out, *in.PodAffinityTerm) - } - } - { - const prefix string = ",\"weight\":" - out.RawString(prefix) - if in.Weight == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Weight)) - } - } - out.RawByte('}') -} -func easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *PodAffinity) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "preferredDuringSchedulingIgnoredDuringExecution": - if in.IsNull() { - in.Skip() - out.PreferredDuringSchedulingIgnoredDuringExecution = nil - } else { - in.Delim('[') - if out.PreferredDuringSchedulingIgnoredDuringExecution == nil { - if !in.IsDelim(']') { - out.PreferredDuringSchedulingIgnoredDuringExecution = make([]*WeightedPodAffinityTerm, 0, 8) - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = []*WeightedPodAffinityTerm{} - } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = (out.PreferredDuringSchedulingIgnoredDuringExecution)[:0] - } - for !in.IsDelim(']') { - var v10 *WeightedPodAffinityTerm - if in.IsNull() { - in.Skip() - v10 = nil - } else { - if v10 == nil { - v10 = new(WeightedPodAffinityTerm) - } - easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV14(in, v10) - } - out.PreferredDuringSchedulingIgnoredDuringExecution = append(out.PreferredDuringSchedulingIgnoredDuringExecution, v10) - in.WantComma() - } - in.Delim(']') - } - case "requiredDuringSchedulingIgnoredDuringExecution": - if in.IsNull() { - in.Skip() - out.RequiredDuringSchedulingIgnoredDuringExecution = nil - } else { - in.Delim('[') - if out.RequiredDuringSchedulingIgnoredDuringExecution == nil { - if !in.IsDelim(']') { - out.RequiredDuringSchedulingIgnoredDuringExecution = make([]*PodAffinityTerm, 0, 8) - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = []*PodAffinityTerm{} - } - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = (out.RequiredDuringSchedulingIgnoredDuringExecution)[:0] - } - for !in.IsDelim(']') { - var v11 *PodAffinityTerm - if in.IsNull() { - in.Skip() - v11 = nil - } else { - if v11 == nil { - v11 = new(PodAffinityTerm) - } - easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV15(in, v11) - } - out.RequiredDuringSchedulingIgnoredDuringExecution = append(out.RequiredDuringSchedulingIgnoredDuringExecution, v11) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in PodAffinity) { - out.RawByte('{') - first := true - _ = first - if len(in.PreferredDuringSchedulingIgnoredDuringExecution) != 0 { - const prefix string = ",\"preferredDuringSchedulingIgnoredDuringExecution\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v12, v13 := range in.PreferredDuringSchedulingIgnoredDuringExecution { - if v12 > 0 { - out.RawByte(',') - } - if v13 == nil { - out.RawString("null") - } else { - easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *v13) - } - } - out.RawByte(']') - } - } - if len(in.RequiredDuringSchedulingIgnoredDuringExecution) != 0 { - const prefix string = ",\"requiredDuringSchedulingIgnoredDuringExecution\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v14, v15 := range in.RequiredDuringSchedulingIgnoredDuringExecution { - if v14 > 0 { - out.RawByte(',') - } - if v15 == nil { - out.RawString("null") - } else { - easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV15(out, *v15) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *NodeAffinity) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "preferredDuringSchedulingIgnoredDuringExecution": - if in.IsNull() { - in.Skip() - out.PreferredDuringSchedulingIgnoredDuringExecution = nil - } else { - in.Delim('[') - if out.PreferredDuringSchedulingIgnoredDuringExecution == nil { - if !in.IsDelim(']') { - out.PreferredDuringSchedulingIgnoredDuringExecution = make([]*PreferredSchedulingTerm, 0, 8) - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = []*PreferredSchedulingTerm{} - } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = (out.PreferredDuringSchedulingIgnoredDuringExecution)[:0] - } - for !in.IsDelim(']') { - var v16 *PreferredSchedulingTerm - if in.IsNull() { - in.Skip() - v16 = nil - } else { - if v16 == nil { - v16 = new(PreferredSchedulingTerm) - } - easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV16(in, v16) - } - out.PreferredDuringSchedulingIgnoredDuringExecution = append(out.PreferredDuringSchedulingIgnoredDuringExecution, v16) - in.WantComma() - } - in.Delim(']') - } - case "requiredDuringSchedulingIgnoredDuringExecution": - if in.IsNull() { - in.Skip() - out.RequiredDuringSchedulingIgnoredDuringExecution = nil - } else { - if out.RequiredDuringSchedulingIgnoredDuringExecution == nil { - out.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector) - } - easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV17(in, out.RequiredDuringSchedulingIgnoredDuringExecution) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in NodeAffinity) { - out.RawByte('{') - first := true - _ = first - if len(in.PreferredDuringSchedulingIgnoredDuringExecution) != 0 { - const prefix string = ",\"preferredDuringSchedulingIgnoredDuringExecution\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v17, v18 := range in.PreferredDuringSchedulingIgnoredDuringExecution { - if v17 > 0 { - out.RawByte(',') - } - if v18 == nil { - out.RawString("null") - } else { - easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV16(out, *v18) - } - } - out.RawByte(']') - } - } - if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { - const prefix string = ",\"requiredDuringSchedulingIgnoredDuringExecution\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV17(out, *in.RequiredDuringSchedulingIgnoredDuringExecution) - } - out.RawByte('}') -} -func easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV17(in *jlexer.Lexer, out *NodeSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "nodeSelectorTerms": - if in.IsNull() { - in.Skip() - out.NodeSelectorTerms = nil - } else { - in.Delim('[') - if out.NodeSelectorTerms == nil { - if !in.IsDelim(']') { - out.NodeSelectorTerms = make([]*NodeSelectorTerm, 0, 8) - } else { - out.NodeSelectorTerms = []*NodeSelectorTerm{} - } - } else { - out.NodeSelectorTerms = (out.NodeSelectorTerms)[:0] - } - for !in.IsDelim(']') { - var v19 *NodeSelectorTerm - if in.IsNull() { - in.Skip() - v19 = nil - } else { - if v19 == nil { - v19 = new(NodeSelectorTerm) - } - easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV18(in, v19) - } - out.NodeSelectorTerms = append(out.NodeSelectorTerms, v19) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV17(out *jwriter.Writer, in NodeSelector) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"nodeSelectorTerms\":" - out.RawString(prefix[1:]) - if in.NodeSelectorTerms == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v20, v21 := range in.NodeSelectorTerms { - if v20 > 0 { - out.RawByte(',') - } - if v21 == nil { - out.RawString("null") - } else { - easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV18(out, *v21) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV18(in *jlexer.Lexer, out *NodeSelectorTerm) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "matchExpressions": - if in.IsNull() { - in.Skip() - out.MatchExpressions = nil - } else { - in.Delim('[') - if out.MatchExpressions == nil { - if !in.IsDelim(']') { - out.MatchExpressions = make([]*NodeSelectorRequirement, 0, 8) - } else { - out.MatchExpressions = []*NodeSelectorRequirement{} - } - } else { - out.MatchExpressions = (out.MatchExpressions)[:0] - } - for !in.IsDelim(']') { - var v22 *NodeSelectorRequirement - if in.IsNull() { - in.Skip() - v22 = nil - } else { - if v22 == nil { - v22 = new(NodeSelectorRequirement) - } - easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV19(in, v22) - } - out.MatchExpressions = append(out.MatchExpressions, v22) - in.WantComma() - } - in.Delim(']') - } - case "matchFields": - if in.IsNull() { - in.Skip() - out.MatchFields = nil - } else { - in.Delim('[') - if out.MatchFields == nil { - if !in.IsDelim(']') { - out.MatchFields = make([]*NodeSelectorRequirement, 0, 8) - } else { - out.MatchFields = []*NodeSelectorRequirement{} - } - } else { - out.MatchFields = (out.MatchFields)[:0] - } - for !in.IsDelim(']') { - var v23 *NodeSelectorRequirement - if in.IsNull() { - in.Skip() - v23 = nil - } else { - if v23 == nil { - v23 = new(NodeSelectorRequirement) - } - easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV19(in, v23) - } - out.MatchFields = append(out.MatchFields, v23) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV18(out *jwriter.Writer, in NodeSelectorTerm) { - out.RawByte('{') - first := true - _ = first - if len(in.MatchExpressions) != 0 { - const prefix string = ",\"matchExpressions\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v24, v25 := range in.MatchExpressions { - if v24 > 0 { - out.RawByte(',') - } - if v25 == nil { - out.RawString("null") - } else { - easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV19(out, *v25) - } - } - out.RawByte(']') - } - } - if len(in.MatchFields) != 0 { - const prefix string = ",\"matchFields\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v26, v27 := range in.MatchFields { - if v26 > 0 { - out.RawByte(',') - } - if v27 == nil { - out.RawString("null") - } else { - easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV19(out, *v27) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV19(in *jlexer.Lexer, out *NodeSelectorRequirement) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "operator": - if in.IsNull() { - in.Skip() - out.Operator = nil - } else { - if out.Operator == nil { - out.Operator = new(string) - } - *out.Operator = string(in.String()) - } - case "values": - if in.IsNull() { - in.Skip() - out.Values = nil - } else { - in.Delim('[') - if out.Values == nil { - if !in.IsDelim(']') { - out.Values = make([]string, 0, 4) - } else { - out.Values = []string{} - } - } else { - out.Values = (out.Values)[:0] - } - for !in.IsDelim(']') { - var v28 string - v28 = string(in.String()) - out.Values = append(out.Values, v28) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV19(out *jwriter.Writer, in NodeSelectorRequirement) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"key\":" - out.RawString(prefix[1:]) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - { - const prefix string = ",\"operator\":" - out.RawString(prefix) - if in.Operator == nil { - out.RawString("null") - } else { - out.String(string(*in.Operator)) - } - } - if len(in.Values) != 0 { - const prefix string = ",\"values\":" - out.RawString(prefix) - { - out.RawByte('[') - for v29, v30 := range in.Values { - if v29 > 0 { - out.RawByte(',') - } - out.String(string(v30)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV16(in *jlexer.Lexer, out *PreferredSchedulingTerm) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "preference": - if in.IsNull() { - in.Skip() - out.Preference = nil - } else { - if out.Preference == nil { - out.Preference = new(NodeSelectorTerm) - } - easyjson7ce16f98DecodeGithubComKubewardenK8sObjectsApiCoreV18(in, out.Preference) - } - case "weight": - if in.IsNull() { - in.Skip() - out.Weight = nil - } else { - if out.Weight == nil { - out.Weight = new(int32) - } - *out.Weight = int32(in.Int32()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV16(out *jwriter.Writer, in PreferredSchedulingTerm) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"preference\":" - out.RawString(prefix[1:]) - if in.Preference == nil { - out.RawString("null") - } else { - easyjson7ce16f98EncodeGithubComKubewardenK8sObjectsApiCoreV18(out, *in.Preference) - } - } - { - const prefix string = ",\"weight\":" - out.RawString(prefix) - if in.Weight == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Weight)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/attached_volume_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/attached_volume_easyjson.go deleted file mode 100644 index c695599..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/attached_volume_easyjson.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson32dda04fDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *AttachedVolume) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "devicePath": - if in.IsNull() { - in.Skip() - out.DevicePath = nil - } else { - if out.DevicePath == nil { - out.DevicePath = new(string) - } - *out.DevicePath = string(in.String()) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson32dda04fEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in AttachedVolume) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"devicePath\":" - out.RawString(prefix[1:]) - if in.DevicePath == nil { - out.RawString("null") - } else { - out.String(string(*in.DevicePath)) - } - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v AttachedVolume) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson32dda04fEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AttachedVolume) MarshalEasyJSON(w *jwriter.Writer) { - easyjson32dda04fEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AttachedVolume) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson32dda04fDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AttachedVolume) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson32dda04fDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/aws_elastic_block_store_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/aws_elastic_block_store_volume_source_easyjson.go deleted file mode 100644 index de55884..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/aws_elastic_block_store_volume_source_easyjson.go +++ /dev/null @@ -1,134 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson65604c32DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *AWSElasticBlockStoreVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "partition": - out.Partition = int32(in.Int32()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "volumeID": - if in.IsNull() { - in.Skip() - out.VolumeID = nil - } else { - if out.VolumeID == nil { - out.VolumeID = new(string) - } - *out.VolumeID = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson65604c32EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in AWSElasticBlockStoreVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.Partition != 0 { - const prefix string = ",\"partition\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Partition)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"volumeID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.VolumeID == nil { - out.RawString("null") - } else { - out.String(string(*in.VolumeID)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v AWSElasticBlockStoreVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson65604c32EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AWSElasticBlockStoreVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson65604c32EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AWSElasticBlockStoreVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson65604c32DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AWSElasticBlockStoreVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson65604c32DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/azure_disk_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/azure_disk_volume_source_easyjson.go deleted file mode 100644 index 02cff83..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/azure_disk_volume_source_easyjson.go +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonC4f0b390DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *AzureDiskVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "cachingMode": - out.CachingMode = string(in.String()) - case "diskName": - if in.IsNull() { - in.Skip() - out.DiskName = nil - } else { - if out.DiskName == nil { - out.DiskName = new(string) - } - *out.DiskName = string(in.String()) - } - case "diskURI": - if in.IsNull() { - in.Skip() - out.DiskURI = nil - } else { - if out.DiskURI == nil { - out.DiskURI = new(string) - } - *out.DiskURI = string(in.String()) - } - case "fsType": - out.FSType = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC4f0b390EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in AzureDiskVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.CachingMode != "" { - const prefix string = ",\"cachingMode\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.CachingMode)) - } - { - const prefix string = ",\"diskName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.DiskName == nil { - out.RawString("null") - } else { - out.String(string(*in.DiskName)) - } - } - { - const prefix string = ",\"diskURI\":" - out.RawString(prefix) - if in.DiskURI == nil { - out.RawString("null") - } else { - out.String(string(*in.DiskURI)) - } - } - if in.FSType != "" { - const prefix string = ",\"fsType\":" - out.RawString(prefix) - out.String(string(in.FSType)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v AzureDiskVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC4f0b390EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AzureDiskVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC4f0b390EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AzureDiskVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC4f0b390DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AzureDiskVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC4f0b390DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/azure_file_persistent_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/azure_file_persistent_volume_source_easyjson.go deleted file mode 100644 index 9726a8a..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/azure_file_persistent_volume_source_easyjson.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE799ca47DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *AzureFilePersistentVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretName": - if in.IsNull() { - in.Skip() - out.SecretName = nil - } else { - if out.SecretName == nil { - out.SecretName = new(string) - } - *out.SecretName = string(in.String()) - } - case "secretNamespace": - out.SecretNamespace = string(in.String()) - case "shareName": - if in.IsNull() { - in.Skip() - out.ShareName = nil - } else { - if out.ShareName == nil { - out.ShareName = new(string) - } - *out.ShareName = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE799ca47EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in AzureFilePersistentVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - first = false - out.RawString(prefix[1:]) - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"secretName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.SecretName == nil { - out.RawString("null") - } else { - out.String(string(*in.SecretName)) - } - } - if in.SecretNamespace != "" { - const prefix string = ",\"secretNamespace\":" - out.RawString(prefix) - out.String(string(in.SecretNamespace)) - } - { - const prefix string = ",\"shareName\":" - out.RawString(prefix) - if in.ShareName == nil { - out.RawString("null") - } else { - out.String(string(*in.ShareName)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v AzureFilePersistentVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE799ca47EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AzureFilePersistentVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE799ca47EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AzureFilePersistentVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE799ca47DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AzureFilePersistentVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE799ca47DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/azure_file_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/azure_file_volume_source_easyjson.go deleted file mode 100644 index 3e0f813..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/azure_file_volume_source_easyjson.go +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson32242f71DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *AzureFileVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretName": - if in.IsNull() { - in.Skip() - out.SecretName = nil - } else { - if out.SecretName == nil { - out.SecretName = new(string) - } - *out.SecretName = string(in.String()) - } - case "shareName": - if in.IsNull() { - in.Skip() - out.ShareName = nil - } else { - if out.ShareName == nil { - out.ShareName = new(string) - } - *out.ShareName = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson32242f71EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in AzureFileVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - first = false - out.RawString(prefix[1:]) - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"secretName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.SecretName == nil { - out.RawString("null") - } else { - out.String(string(*in.SecretName)) - } - } - { - const prefix string = ",\"shareName\":" - out.RawString(prefix) - if in.ShareName == nil { - out.RawString("null") - } else { - out.String(string(*in.ShareName)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v AzureFileVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson32242f71EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v AzureFileVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson32242f71EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *AzureFileVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson32242f71DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *AzureFileVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson32242f71DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/binding_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/binding_easyjson.go deleted file mode 100644 index c9a9c1f..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/binding_easyjson.go +++ /dev/null @@ -1,258 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson7148a6d1DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Binding) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "target": - if in.IsNull() { - in.Skip() - out.Target = nil - } else { - if out.Target == nil { - out.Target = new(ObjectReference) - } - easyjson7148a6d1DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.Target) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7148a6d1EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Binding) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - { - const prefix string = ",\"target\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Target == nil { - out.RawString("null") - } else { - easyjson7148a6d1EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.Target) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Binding) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson7148a6d1EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Binding) MarshalEasyJSON(w *jwriter.Writer) { - easyjson7148a6d1EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Binding) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson7148a6d1DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Binding) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson7148a6d1DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson7148a6d1DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *ObjectReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "fieldPath": - out.FieldPath = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "name": - out.Name = string(in.String()) - case "namespace": - out.Namespace = string(in.String()) - case "resourceVersion": - out.ResourceVersion = string(in.String()) - case "uid": - out.UID = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7148a6d1EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in ObjectReference) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.FieldPath != "" { - const prefix string = ",\"fieldPath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.FieldPath)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Name != "" { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Name)) - } - if in.Namespace != "" { - const prefix string = ",\"namespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Namespace)) - } - if in.ResourceVersion != "" { - const prefix string = ",\"resourceVersion\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ResourceVersion)) - } - if in.UID != "" { - const prefix string = ",\"uid\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.UID)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/capabilities_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/capabilities_easyjson.go deleted file mode 100644 index 570537f..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/capabilities_easyjson.go +++ /dev/null @@ -1,158 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson3748d166DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Capabilities) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "add": - if in.IsNull() { - in.Skip() - out.Add = nil - } else { - in.Delim('[') - if out.Add == nil { - if !in.IsDelim(']') { - out.Add = make([]string, 0, 4) - } else { - out.Add = []string{} - } - } else { - out.Add = (out.Add)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Add = append(out.Add, v1) - in.WantComma() - } - in.Delim(']') - } - case "drop": - if in.IsNull() { - in.Skip() - out.Drop = nil - } else { - in.Delim('[') - if out.Drop == nil { - if !in.IsDelim(']') { - out.Drop = make([]string, 0, 4) - } else { - out.Drop = []string{} - } - } else { - out.Drop = (out.Drop)[:0] - } - for !in.IsDelim(']') { - var v2 string - v2 = string(in.String()) - out.Drop = append(out.Drop, v2) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson3748d166EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Capabilities) { - out.RawByte('{') - first := true - _ = first - if len(in.Add) != 0 { - const prefix string = ",\"add\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v3, v4 := range in.Add { - if v3 > 0 { - out.RawByte(',') - } - out.String(string(v4)) - } - out.RawByte(']') - } - } - if len(in.Drop) != 0 { - const prefix string = ",\"drop\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v5, v6 := range in.Drop { - if v5 > 0 { - out.RawByte(',') - } - out.String(string(v6)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Capabilities) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson3748d166EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Capabilities) MarshalEasyJSON(w *jwriter.Writer) { - easyjson3748d166EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Capabilities) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson3748d166DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Capabilities) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson3748d166DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_persistent_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_persistent_volume_source_easyjson.go deleted file mode 100644 index 01afaa6..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_persistent_volume_source_easyjson.go +++ /dev/null @@ -1,215 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonB1662561DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *CephFSPersistentVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "monitors": - if in.IsNull() { - in.Skip() - out.Monitors = nil - } else { - in.Delim('[') - if out.Monitors == nil { - if !in.IsDelim(']') { - out.Monitors = make([]string, 0, 4) - } else { - out.Monitors = []string{} - } - } else { - out.Monitors = (out.Monitors)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Monitors = append(out.Monitors, v1) - in.WantComma() - } - in.Delim(']') - } - case "path": - out.Path = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretFile": - out.SecretFile = string(in.String()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(SecretReference) - } - easyjsonB1662561DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) - } - case "user": - out.User = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB1662561EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in CephFSPersistentVolumeSource) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"monitors\":" - out.RawString(prefix[1:]) - if in.Monitors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Monitors { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - if in.Path != "" { - const prefix string = ",\"path\":" - out.RawString(prefix) - out.String(string(in.Path)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if in.SecretFile != "" { - const prefix string = ",\"secretFile\":" - out.RawString(prefix) - out.String(string(in.SecretFile)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - easyjsonB1662561EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) - } - if in.User != "" { - const prefix string = ",\"user\":" - out.RawString(prefix) - out.String(string(in.User)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CephFSPersistentVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonB1662561EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CephFSPersistentVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonB1662561EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CephFSPersistentVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonB1662561DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CephFSPersistentVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonB1662561DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonB1662561DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "namespace": - out.Namespace = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB1662561EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Namespace != "" { - const prefix string = ",\"namespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Namespace)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_volume_source_easyjson.go deleted file mode 100644 index da4b361..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_volume_source_easyjson.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonC3243cf3DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *CephFSVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "monitors": - if in.IsNull() { - in.Skip() - out.Monitors = nil - } else { - in.Delim('[') - if out.Monitors == nil { - if !in.IsDelim(']') { - out.Monitors = make([]string, 0, 4) - } else { - out.Monitors = []string{} - } - } else { - out.Monitors = (out.Monitors)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Monitors = append(out.Monitors, v1) - in.WantComma() - } - in.Delim(']') - } - case "path": - out.Path = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretFile": - out.SecretFile = string(in.String()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(LocalObjectReference) - } - easyjsonC3243cf3DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) - } - case "user": - out.User = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC3243cf3EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in CephFSVolumeSource) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"monitors\":" - out.RawString(prefix[1:]) - if in.Monitors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Monitors { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - if in.Path != "" { - const prefix string = ",\"path\":" - out.RawString(prefix) - out.String(string(in.Path)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if in.SecretFile != "" { - const prefix string = ",\"secretFile\":" - out.RawString(prefix) - out.String(string(in.SecretFile)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - easyjsonC3243cf3EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) - } - if in.User != "" { - const prefix string = ",\"user\":" - out.RawString(prefix) - out.String(string(in.User)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CephFSVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC3243cf3EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CephFSVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC3243cf3EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CephFSVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC3243cf3DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CephFSVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC3243cf3DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonC3243cf3DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *LocalObjectReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC3243cf3EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in LocalObjectReference) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/cinder_persistent_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/cinder_persistent_volume_source_easyjson.go deleted file mode 100644 index afa746e..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/cinder_persistent_volume_source_easyjson.go +++ /dev/null @@ -1,197 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE02afdb4DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *CinderPersistentVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(SecretReference) - } - easyjsonE02afdb4DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) - } - case "volumeID": - if in.IsNull() { - in.Skip() - out.VolumeID = nil - } else { - if out.VolumeID == nil { - out.VolumeID = new(string) - } - *out.VolumeID = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE02afdb4EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in CinderPersistentVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonE02afdb4EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) - } - { - const prefix string = ",\"volumeID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.VolumeID == nil { - out.RawString("null") - } else { - out.String(string(*in.VolumeID)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CinderPersistentVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE02afdb4EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CinderPersistentVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE02afdb4EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CinderPersistentVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE02afdb4DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CinderPersistentVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE02afdb4DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonE02afdb4DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "namespace": - out.Namespace = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE02afdb4EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Namespace != "" { - const prefix string = ",\"namespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Namespace)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/cinder_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/cinder_volume_source_easyjson.go deleted file mode 100644 index 4261e60..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/cinder_volume_source_easyjson.go +++ /dev/null @@ -1,185 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonAdd05e34DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *CinderVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(LocalObjectReference) - } - easyjsonAdd05e34DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) - } - case "volumeID": - if in.IsNull() { - in.Skip() - out.VolumeID = nil - } else { - if out.VolumeID == nil { - out.VolumeID = new(string) - } - *out.VolumeID = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonAdd05e34EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in CinderVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonAdd05e34EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) - } - { - const prefix string = ",\"volumeID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.VolumeID == nil { - out.RawString("null") - } else { - out.String(string(*in.VolumeID)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CinderVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonAdd05e34EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CinderVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonAdd05e34EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CinderVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonAdd05e34DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CinderVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonAdd05e34DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonAdd05e34DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *LocalObjectReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonAdd05e34EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in LocalObjectReference) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/claim_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/claim_source.go new file mode 100644 index 0000000..6037dc5 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/claim_source.go @@ -0,0 +1,26 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +// ClaimSource ClaimSource describes a reference to a ResourceClaim. +// +// Exactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value. +// +// swagger:model ClaimSource +type ClaimSource struct { + + // ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. + ResourceClaimName string `json:"resourceClaimName,omitempty"` + + // ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. + // + // The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be -, where is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long). + // + // An existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed. + // + // This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. + ResourceClaimTemplateName string `json:"resourceClaimTemplateName,omitempty"` +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/client_ip_config_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/client_ip_config_easyjson.go deleted file mode 100644 index dc05501..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/client_ip_config_easyjson.go +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson204cad8cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ClientIPConfig) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "timeoutSeconds": - out.TimeoutSeconds = int32(in.Int32()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson204cad8cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ClientIPConfig) { - out.RawByte('{') - first := true - _ = first - if in.TimeoutSeconds != 0 { - const prefix string = ",\"timeoutSeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.TimeoutSeconds)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ClientIPConfig) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson204cad8cEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ClientIPConfig) MarshalEasyJSON(w *jwriter.Writer) { - easyjson204cad8cEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ClientIPConfig) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson204cad8cDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ClientIPConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson204cad8cDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_condition_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_condition_easyjson.go deleted file mode 100644 index 75e22cf..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_condition_easyjson.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson84fcfdc9DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ComponentCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "error": - out.Error = string(in.String()) - case "message": - out.Message = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson84fcfdc9EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ComponentCondition) { - out.RawByte('{') - first := true - _ = first - if in.Error != "" { - const prefix string = ",\"error\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Error)) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ComponentCondition) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson84fcfdc9EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ComponentCondition) MarshalEasyJSON(w *jwriter.Writer) { - easyjson84fcfdc9EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ComponentCondition) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson84fcfdc9DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ComponentCondition) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson84fcfdc9DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_status_easyjson.go deleted file mode 100644 index 4835217..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_status_easyjson.go +++ /dev/null @@ -1,173 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonF688163aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ComponentStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*ComponentCondition, 0, 8) - } else { - out.Conditions = []*ComponentCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *ComponentCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ComponentCondition) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF688163aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ComponentStatus) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ComponentStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonF688163aEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ComponentStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonF688163aEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ComponentStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonF688163aDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ComponentStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonF688163aDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_status_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_status_list_easyjson.go deleted file mode 100644 index 049bb60..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_status_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson9d9191ffDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ComponentStatusList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*ComponentStatus, 0, 8) - } else { - out.Items = []*ComponentStatus{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *ComponentStatus - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ComponentStatus) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9d9191ffEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ComponentStatusList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ComponentStatusList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson9d9191ffEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ComponentStatusList) MarshalEasyJSON(w *jwriter.Writer) { - easyjson9d9191ffEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ComponentStatusList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson9d9191ffDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ComponentStatusList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson9d9191ffDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_easyjson.go deleted file mode 100644 index de5cd91..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_easyjson.go +++ /dev/null @@ -1,225 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - strfmt "github.com/go-openapi/strfmt" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonB76b17d1DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ConfigMap) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "binaryData": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.BinaryData = make(map[string]strfmt.Base64) - } else { - out.BinaryData = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v1 strfmt.Base64 - if in.IsNull() { - in.Skip() - v1 = nil - } else { - v1 = in.Bytes() - } - (out.BinaryData)[key] = v1 - in.WantComma() - } - in.Delim('}') - } - case "data": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Data = make(map[string]string) - } else { - out.Data = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v3 string - v3 = string(in.String()) - (out.Data)[key] = v3 - in.WantComma() - } - in.Delim('}') - } - case "immutable": - out.Immutable = bool(in.Bool()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB76b17d1EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ConfigMap) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if len(in.BinaryData) != 0 { - const prefix string = ",\"binaryData\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v4First := true - for v4Name, v4Value := range in.BinaryData { - if v4First { - v4First = false - } else { - out.RawByte(',') - } - out.String(string(v4Name)) - out.RawByte(':') - out.Base64Bytes(v4Value) - } - out.RawByte('}') - } - } - if len(in.Data) != 0 { - const prefix string = ",\"data\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v7First := true - for v7Name, v7Value := range in.Data { - if v7First { - v7First = false - } else { - out.RawByte(',') - } - out.String(string(v7Name)) - out.RawByte(':') - out.String(string(v7Value)) - } - out.RawByte('}') - } - } - if in.Immutable { - const prefix string = ",\"immutable\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Immutable)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ConfigMap) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonB76b17d1EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ConfigMap) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonB76b17d1EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ConfigMap) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonB76b17d1DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ConfigMap) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonB76b17d1DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_env_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_env_source_easyjson.go deleted file mode 100644 index 8badcda..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_env_source_easyjson.go +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson5fc3325DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ConfigMapEnvSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "optional": - out.Optional = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson5fc3325EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ConfigMapEnvSource) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Optional { - const prefix string = ",\"optional\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Optional)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ConfigMapEnvSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson5fc3325EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ConfigMapEnvSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson5fc3325EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ConfigMapEnvSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson5fc3325DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ConfigMapEnvSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson5fc3325DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_key_selector_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_key_selector_easyjson.go deleted file mode 100644 index a13bafd..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_key_selector_easyjson.go +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE2ef7ae1DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ConfigMapKeySelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "name": - out.Name = string(in.String()) - case "optional": - out.Optional = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE2ef7ae1EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ConfigMapKeySelector) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"key\":" - out.RawString(prefix[1:]) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - if in.Name != "" { - const prefix string = ",\"name\":" - out.RawString(prefix) - out.String(string(in.Name)) - } - if in.Optional { - const prefix string = ",\"optional\":" - out.RawString(prefix) - out.Bool(bool(in.Optional)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ConfigMapKeySelector) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE2ef7ae1EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ConfigMapKeySelector) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE2ef7ae1EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ConfigMapKeySelector) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE2ef7ae1DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ConfigMapKeySelector) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE2ef7ae1DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_list_easyjson.go deleted file mode 100644 index 84e7039..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonB66ef0eaDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ConfigMapList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*ConfigMap, 0, 8) - } else { - out.Items = []*ConfigMap{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *ConfigMap - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ConfigMap) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB66ef0eaEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ConfigMapList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ConfigMapList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonB66ef0eaEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ConfigMapList) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonB66ef0eaEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ConfigMapList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonB66ef0eaDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ConfigMapList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonB66ef0eaDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_node_config_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_node_config_source_easyjson.go deleted file mode 100644 index 9d7ed2f..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_node_config_source_easyjson.go +++ /dev/null @@ -1,149 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonA44eeaf9DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ConfigMapNodeConfigSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "kubeletConfigKey": - if in.IsNull() { - in.Skip() - out.KubeletConfigKey = nil - } else { - if out.KubeletConfigKey == nil { - out.KubeletConfigKey = new(string) - } - *out.KubeletConfigKey = string(in.String()) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "namespace": - if in.IsNull() { - in.Skip() - out.Namespace = nil - } else { - if out.Namespace == nil { - out.Namespace = new(string) - } - *out.Namespace = string(in.String()) - } - case "resourceVersion": - out.ResourceVersion = string(in.String()) - case "uid": - out.UID = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA44eeaf9EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ConfigMapNodeConfigSource) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"kubeletConfigKey\":" - out.RawString(prefix[1:]) - if in.KubeletConfigKey == nil { - out.RawString("null") - } else { - out.String(string(*in.KubeletConfigKey)) - } - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - { - const prefix string = ",\"namespace\":" - out.RawString(prefix) - if in.Namespace == nil { - out.RawString("null") - } else { - out.String(string(*in.Namespace)) - } - } - if in.ResourceVersion != "" { - const prefix string = ",\"resourceVersion\":" - out.RawString(prefix) - out.String(string(in.ResourceVersion)) - } - if in.UID != "" { - const prefix string = ",\"uid\":" - out.RawString(prefix) - out.String(string(in.UID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ConfigMapNodeConfigSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonA44eeaf9EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ConfigMapNodeConfigSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonA44eeaf9EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ConfigMapNodeConfigSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonA44eeaf9DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ConfigMapNodeConfigSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonA44eeaf9DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_projection_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_projection_easyjson.go deleted file mode 100644 index 4437797..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_projection_easyjson.go +++ /dev/null @@ -1,232 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson902dbd29DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ConfigMapProjection) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*KeyToPath, 0, 8) - } else { - out.Items = []*KeyToPath{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *KeyToPath - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(KeyToPath) - } - easyjson902dbd29DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, v1) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "name": - out.Name = string(in.String()) - case "optional": - out.Optional = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson902dbd29EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ConfigMapProjection) { - out.RawByte('{') - first := true - _ = first - if len(in.Items) != 0 { - const prefix string = ",\"items\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjson902dbd29EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *v3) - } - } - out.RawByte(']') - } - } - if in.Name != "" { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Name)) - } - if in.Optional { - const prefix string = ",\"optional\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Optional)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ConfigMapProjection) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson902dbd29EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ConfigMapProjection) MarshalEasyJSON(w *jwriter.Writer) { - easyjson902dbd29EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ConfigMapProjection) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson902dbd29DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ConfigMapProjection) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson902dbd29DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson902dbd29DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *KeyToPath) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "mode": - out.Mode = int32(in.Int32()) - case "path": - if in.IsNull() { - in.Skip() - out.Path = nil - } else { - if out.Path == nil { - out.Path = new(string) - } - *out.Path = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson902dbd29EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in KeyToPath) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"key\":" - out.RawString(prefix[1:]) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - if in.Mode != 0 { - const prefix string = ",\"mode\":" - out.RawString(prefix) - out.Int32(int32(in.Mode)) - } - { - const prefix string = ",\"path\":" - out.RawString(prefix) - if in.Path == nil { - out.RawString("null") - } else { - out.String(string(*in.Path)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_volume_source_easyjson.go deleted file mode 100644 index a493e17..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_volume_source_easyjson.go +++ /dev/null @@ -1,244 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonD06bf42eDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ConfigMapVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "defaultMode": - out.DefaultMode = int32(in.Int32()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*KeyToPath, 0, 8) - } else { - out.Items = []*KeyToPath{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *KeyToPath - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(KeyToPath) - } - easyjsonD06bf42eDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, v1) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "name": - out.Name = string(in.String()) - case "optional": - out.Optional = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonD06bf42eEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ConfigMapVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.DefaultMode != 0 { - const prefix string = ",\"defaultMode\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.DefaultMode)) - } - if len(in.Items) != 0 { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjsonD06bf42eEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *v3) - } - } - out.RawByte(']') - } - } - if in.Name != "" { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Name)) - } - if in.Optional { - const prefix string = ",\"optional\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Optional)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ConfigMapVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonD06bf42eEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ConfigMapVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonD06bf42eEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ConfigMapVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonD06bf42eDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ConfigMapVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonD06bf42eDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonD06bf42eDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *KeyToPath) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "mode": - out.Mode = int32(in.Int32()) - case "path": - if in.IsNull() { - in.Skip() - out.Path = nil - } else { - if out.Path == nil { - out.Path = new(string) - } - *out.Path = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonD06bf42eEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in KeyToPath) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"key\":" - out.RawString(prefix[1:]) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - if in.Mode != 0 { - const prefix string = ",\"mode\":" - out.RawString(prefix) - out.Int32(int32(in.Mode)) - } - { - const prefix string = ",\"path\":" - out.RawString(prefix) - if in.Path == nil { - out.RawString("null") - } else { - out.String(string(*in.Path)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container.go index 75f1797..afe7c22 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container.go @@ -26,8 +26,6 @@ type Container struct { Image string `json:"image,omitempty"` // Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - // - // ImagePullPolicy string `json:"imagePullPolicy,omitempty"` // Actions that the management system should take in response to container lifecycle events. Cannot be updated. @@ -40,12 +38,15 @@ type Container struct { // Required: true Name *string `json:"name"` - // List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Cannot be updated. + // List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. Ports []*ContainerPort `json:"ports,omitempty"` // Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes ReadinessProbe *Probe `json:"readinessProbe,omitempty"` + // Resources resize policy for the container. + ResizePolicy []*ContainerResizePolicy `json:"resizePolicy,omitempty"` + // Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ Resources *ResourceRequirements `json:"resources,omitempty"` @@ -65,8 +66,6 @@ type Container struct { TerminationMessagePath string `json:"terminationMessagePath,omitempty"` // Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - // - // TerminationMessagePolicy string `json:"terminationMessagePolicy,omitempty"` // Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_easyjson.go deleted file mode 100644 index d813817..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_easyjson.go +++ /dev/null @@ -1,2730 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Container) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "args": - if in.IsNull() { - in.Skip() - out.Args = nil - } else { - in.Delim('[') - if out.Args == nil { - if !in.IsDelim(']') { - out.Args = make([]string, 0, 4) - } else { - out.Args = []string{} - } - } else { - out.Args = (out.Args)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Args = append(out.Args, v1) - in.WantComma() - } - in.Delim(']') - } - case "command": - if in.IsNull() { - in.Skip() - out.Command = nil - } else { - in.Delim('[') - if out.Command == nil { - if !in.IsDelim(']') { - out.Command = make([]string, 0, 4) - } else { - out.Command = []string{} - } - } else { - out.Command = (out.Command)[:0] - } - for !in.IsDelim(']') { - var v2 string - v2 = string(in.String()) - out.Command = append(out.Command, v2) - in.WantComma() - } - in.Delim(']') - } - case "env": - if in.IsNull() { - in.Skip() - out.Env = nil - } else { - in.Delim('[') - if out.Env == nil { - if !in.IsDelim(']') { - out.Env = make([]*EnvVar, 0, 8) - } else { - out.Env = []*EnvVar{} - } - } else { - out.Env = (out.Env)[:0] - } - for !in.IsDelim(']') { - var v3 *EnvVar - if in.IsNull() { - in.Skip() - v3 = nil - } else { - if v3 == nil { - v3 = new(EnvVar) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, v3) - } - out.Env = append(out.Env, v3) - in.WantComma() - } - in.Delim(']') - } - case "envFrom": - if in.IsNull() { - in.Skip() - out.EnvFrom = nil - } else { - in.Delim('[') - if out.EnvFrom == nil { - if !in.IsDelim(']') { - out.EnvFrom = make([]*EnvFromSource, 0, 8) - } else { - out.EnvFrom = []*EnvFromSource{} - } - } else { - out.EnvFrom = (out.EnvFrom)[:0] - } - for !in.IsDelim(']') { - var v4 *EnvFromSource - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(EnvFromSource) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV12(in, v4) - } - out.EnvFrom = append(out.EnvFrom, v4) - in.WantComma() - } - in.Delim(']') - } - case "image": - out.Image = string(in.String()) - case "imagePullPolicy": - out.ImagePullPolicy = string(in.String()) - case "lifecycle": - if in.IsNull() { - in.Skip() - out.Lifecycle = nil - } else { - if out.Lifecycle == nil { - out.Lifecycle = new(Lifecycle) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV13(in, out.Lifecycle) - } - case "livenessProbe": - if in.IsNull() { - in.Skip() - out.LivenessProbe = nil - } else { - if out.LivenessProbe == nil { - out.LivenessProbe = new(Probe) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV14(in, out.LivenessProbe) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "ports": - if in.IsNull() { - in.Skip() - out.Ports = nil - } else { - in.Delim('[') - if out.Ports == nil { - if !in.IsDelim(']') { - out.Ports = make([]*ContainerPort, 0, 8) - } else { - out.Ports = []*ContainerPort{} - } - } else { - out.Ports = (out.Ports)[:0] - } - for !in.IsDelim(']') { - var v5 *ContainerPort - if in.IsNull() { - in.Skip() - v5 = nil - } else { - if v5 == nil { - v5 = new(ContainerPort) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV15(in, v5) - } - out.Ports = append(out.Ports, v5) - in.WantComma() - } - in.Delim(']') - } - case "readinessProbe": - if in.IsNull() { - in.Skip() - out.ReadinessProbe = nil - } else { - if out.ReadinessProbe == nil { - out.ReadinessProbe = new(Probe) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV14(in, out.ReadinessProbe) - } - case "resources": - if in.IsNull() { - in.Skip() - out.Resources = nil - } else { - if out.Resources == nil { - out.Resources = new(ResourceRequirements) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV16(in, out.Resources) - } - case "securityContext": - if in.IsNull() { - in.Skip() - out.SecurityContext = nil - } else { - if out.SecurityContext == nil { - out.SecurityContext = new(SecurityContext) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV17(in, out.SecurityContext) - } - case "startupProbe": - if in.IsNull() { - in.Skip() - out.StartupProbe = nil - } else { - if out.StartupProbe == nil { - out.StartupProbe = new(Probe) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV14(in, out.StartupProbe) - } - case "stdin": - out.Stdin = bool(in.Bool()) - case "stdinOnce": - out.StdinOnce = bool(in.Bool()) - case "terminationMessagePath": - out.TerminationMessagePath = string(in.String()) - case "terminationMessagePolicy": - out.TerminationMessagePolicy = string(in.String()) - case "tty": - out.Tty = bool(in.Bool()) - case "volumeDevices": - if in.IsNull() { - in.Skip() - out.VolumeDevices = nil - } else { - in.Delim('[') - if out.VolumeDevices == nil { - if !in.IsDelim(']') { - out.VolumeDevices = make([]*VolumeDevice, 0, 8) - } else { - out.VolumeDevices = []*VolumeDevice{} - } - } else { - out.VolumeDevices = (out.VolumeDevices)[:0] - } - for !in.IsDelim(']') { - var v6 *VolumeDevice - if in.IsNull() { - in.Skip() - v6 = nil - } else { - if v6 == nil { - v6 = new(VolumeDevice) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV18(in, v6) - } - out.VolumeDevices = append(out.VolumeDevices, v6) - in.WantComma() - } - in.Delim(']') - } - case "volumeMounts": - if in.IsNull() { - in.Skip() - out.VolumeMounts = nil - } else { - in.Delim('[') - if out.VolumeMounts == nil { - if !in.IsDelim(']') { - out.VolumeMounts = make([]*VolumeMount, 0, 8) - } else { - out.VolumeMounts = []*VolumeMount{} - } - } else { - out.VolumeMounts = (out.VolumeMounts)[:0] - } - for !in.IsDelim(']') { - var v7 *VolumeMount - if in.IsNull() { - in.Skip() - v7 = nil - } else { - if v7 == nil { - v7 = new(VolumeMount) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV19(in, v7) - } - out.VolumeMounts = append(out.VolumeMounts, v7) - in.WantComma() - } - in.Delim(']') - } - case "workingDir": - out.WorkingDir = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Container) { - out.RawByte('{') - first := true - _ = first - if len(in.Args) != 0 { - const prefix string = ",\"args\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v8, v9 := range in.Args { - if v8 > 0 { - out.RawByte(',') - } - out.String(string(v9)) - } - out.RawByte(']') - } - } - if len(in.Command) != 0 { - const prefix string = ",\"command\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v10, v11 := range in.Command { - if v10 > 0 { - out.RawByte(',') - } - out.String(string(v11)) - } - out.RawByte(']') - } - } - if len(in.Env) != 0 { - const prefix string = ",\"env\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v12, v13 := range in.Env { - if v12 > 0 { - out.RawByte(',') - } - if v13 == nil { - out.RawString("null") - } else { - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *v13) - } - } - out.RawByte(']') - } - } - if len(in.EnvFrom) != 0 { - const prefix string = ",\"envFrom\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v14, v15 := range in.EnvFrom { - if v14 > 0 { - out.RawByte(',') - } - if v15 == nil { - out.RawString("null") - } else { - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *v15) - } - } - out.RawByte(']') - } - } - if in.Image != "" { - const prefix string = ",\"image\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Image)) - } - if in.ImagePullPolicy != "" { - const prefix string = ",\"imagePullPolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ImagePullPolicy)) - } - if in.Lifecycle != nil { - const prefix string = ",\"lifecycle\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *in.Lifecycle) - } - if in.LivenessProbe != nil { - const prefix string = ",\"livenessProbe\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *in.LivenessProbe) - } - { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - if len(in.Ports) != 0 { - const prefix string = ",\"ports\":" - out.RawString(prefix) - { - out.RawByte('[') - for v16, v17 := range in.Ports { - if v16 > 0 { - out.RawByte(',') - } - if v17 == nil { - out.RawString("null") - } else { - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV15(out, *v17) - } - } - out.RawByte(']') - } - } - if in.ReadinessProbe != nil { - const prefix string = ",\"readinessProbe\":" - out.RawString(prefix) - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *in.ReadinessProbe) - } - if in.Resources != nil { - const prefix string = ",\"resources\":" - out.RawString(prefix) - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV16(out, *in.Resources) - } - if in.SecurityContext != nil { - const prefix string = ",\"securityContext\":" - out.RawString(prefix) - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV17(out, *in.SecurityContext) - } - if in.StartupProbe != nil { - const prefix string = ",\"startupProbe\":" - out.RawString(prefix) - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *in.StartupProbe) - } - if in.Stdin { - const prefix string = ",\"stdin\":" - out.RawString(prefix) - out.Bool(bool(in.Stdin)) - } - if in.StdinOnce { - const prefix string = ",\"stdinOnce\":" - out.RawString(prefix) - out.Bool(bool(in.StdinOnce)) - } - if in.TerminationMessagePath != "" { - const prefix string = ",\"terminationMessagePath\":" - out.RawString(prefix) - out.String(string(in.TerminationMessagePath)) - } - if in.TerminationMessagePolicy != "" { - const prefix string = ",\"terminationMessagePolicy\":" - out.RawString(prefix) - out.String(string(in.TerminationMessagePolicy)) - } - if in.Tty { - const prefix string = ",\"tty\":" - out.RawString(prefix) - out.Bool(bool(in.Tty)) - } - if len(in.VolumeDevices) != 0 { - const prefix string = ",\"volumeDevices\":" - out.RawString(prefix) - { - out.RawByte('[') - for v18, v19 := range in.VolumeDevices { - if v18 > 0 { - out.RawByte(',') - } - if v19 == nil { - out.RawString("null") - } else { - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV18(out, *v19) - } - } - out.RawByte(']') - } - } - if len(in.VolumeMounts) != 0 { - const prefix string = ",\"volumeMounts\":" - out.RawString(prefix) - { - out.RawByte('[') - for v20, v21 := range in.VolumeMounts { - if v20 > 0 { - out.RawByte(',') - } - if v21 == nil { - out.RawString("null") - } else { - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV19(out, *v21) - } - } - out.RawByte(']') - } - } - if in.WorkingDir != "" { - const prefix string = ",\"workingDir\":" - out.RawString(prefix) - out.String(string(in.WorkingDir)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Container) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Container) MarshalEasyJSON(w *jwriter.Writer) { - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Container) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Container) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV19(in *jlexer.Lexer, out *VolumeMount) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "mountPath": - if in.IsNull() { - in.Skip() - out.MountPath = nil - } else { - if out.MountPath == nil { - out.MountPath = new(string) - } - *out.MountPath = string(in.String()) - } - case "mountPropagation": - out.MountPropagation = string(in.String()) - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "subPath": - out.SubPath = string(in.String()) - case "subPathExpr": - out.SubPathExpr = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV19(out *jwriter.Writer, in VolumeMount) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"mountPath\":" - out.RawString(prefix[1:]) - if in.MountPath == nil { - out.RawString("null") - } else { - out.String(string(*in.MountPath)) - } - } - if in.MountPropagation != "" { - const prefix string = ",\"mountPropagation\":" - out.RawString(prefix) - out.String(string(in.MountPropagation)) - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if in.SubPath != "" { - const prefix string = ",\"subPath\":" - out.RawString(prefix) - out.String(string(in.SubPath)) - } - if in.SubPathExpr != "" { - const prefix string = ",\"subPathExpr\":" - out.RawString(prefix) - out.String(string(in.SubPathExpr)) - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV18(in *jlexer.Lexer, out *VolumeDevice) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "devicePath": - if in.IsNull() { - in.Skip() - out.DevicePath = nil - } else { - if out.DevicePath == nil { - out.DevicePath = new(string) - } - *out.DevicePath = string(in.String()) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV18(out *jwriter.Writer, in VolumeDevice) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"devicePath\":" - out.RawString(prefix[1:]) - if in.DevicePath == nil { - out.RawString("null") - } else { - out.String(string(*in.DevicePath)) - } - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV17(in *jlexer.Lexer, out *SecurityContext) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "allowPrivilegeEscalation": - out.AllowPrivilegeEscalation = bool(in.Bool()) - case "capabilities": - if in.IsNull() { - in.Skip() - out.Capabilities = nil - } else { - if out.Capabilities == nil { - out.Capabilities = new(Capabilities) - } - (*out.Capabilities).UnmarshalEasyJSON(in) - } - case "privileged": - out.Privileged = bool(in.Bool()) - case "procMount": - out.ProcMount = string(in.String()) - case "readOnlyRootFilesystem": - out.ReadOnlyRootFilesystem = bool(in.Bool()) - case "runAsGroup": - out.RunAsGroup = int64(in.Int64()) - case "runAsNonRoot": - out.RunAsNonRoot = bool(in.Bool()) - case "runAsUser": - out.RunAsUser = int64(in.Int64()) - case "seLinuxOptions": - if in.IsNull() { - in.Skip() - out.SELinuxOptions = nil - } else { - if out.SELinuxOptions == nil { - out.SELinuxOptions = new(SELinuxOptions) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV110(in, out.SELinuxOptions) - } - case "seccompProfile": - if in.IsNull() { - in.Skip() - out.SeccompProfile = nil - } else { - if out.SeccompProfile == nil { - out.SeccompProfile = new(SeccompProfile) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV111(in, out.SeccompProfile) - } - case "windowsOptions": - if in.IsNull() { - in.Skip() - out.WindowsOptions = nil - } else { - if out.WindowsOptions == nil { - out.WindowsOptions = new(WindowsSecurityContextOptions) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV112(in, out.WindowsOptions) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV17(out *jwriter.Writer, in SecurityContext) { - out.RawByte('{') - first := true - _ = first - if in.AllowPrivilegeEscalation { - const prefix string = ",\"allowPrivilegeEscalation\":" - first = false - out.RawString(prefix[1:]) - out.Bool(bool(in.AllowPrivilegeEscalation)) - } - if in.Capabilities != nil { - const prefix string = ",\"capabilities\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Capabilities).MarshalEasyJSON(out) - } - if in.Privileged { - const prefix string = ",\"privileged\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Privileged)) - } - if in.ProcMount != "" { - const prefix string = ",\"procMount\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ProcMount)) - } - if in.ReadOnlyRootFilesystem { - const prefix string = ",\"readOnlyRootFilesystem\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnlyRootFilesystem)) - } - if in.RunAsGroup != 0 { - const prefix string = ",\"runAsGroup\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.RunAsGroup)) - } - if in.RunAsNonRoot { - const prefix string = ",\"runAsNonRoot\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.RunAsNonRoot)) - } - if in.RunAsUser != 0 { - const prefix string = ",\"runAsUser\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.RunAsUser)) - } - if in.SELinuxOptions != nil { - const prefix string = ",\"seLinuxOptions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV110(out, *in.SELinuxOptions) - } - if in.SeccompProfile != nil { - const prefix string = ",\"seccompProfile\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV111(out, *in.SeccompProfile) - } - if in.WindowsOptions != nil { - const prefix string = ",\"windowsOptions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV112(out, *in.WindowsOptions) - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV112(in *jlexer.Lexer, out *WindowsSecurityContextOptions) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "gmsaCredentialSpec": - out.GmsaCredentialSpec = string(in.String()) - case "gmsaCredentialSpecName": - out.GmsaCredentialSpecName = string(in.String()) - case "hostProcess": - out.HostProcess = bool(in.Bool()) - case "runAsUserName": - out.RunAsUserName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV112(out *jwriter.Writer, in WindowsSecurityContextOptions) { - out.RawByte('{') - first := true - _ = first - if in.GmsaCredentialSpec != "" { - const prefix string = ",\"gmsaCredentialSpec\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.GmsaCredentialSpec)) - } - if in.GmsaCredentialSpecName != "" { - const prefix string = ",\"gmsaCredentialSpecName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.GmsaCredentialSpecName)) - } - if in.HostProcess { - const prefix string = ",\"hostProcess\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.HostProcess)) - } - if in.RunAsUserName != "" { - const prefix string = ",\"runAsUserName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.RunAsUserName)) - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV111(in *jlexer.Lexer, out *SeccompProfile) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "localhostProfile": - out.LocalhostProfile = string(in.String()) - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter.Writer, in SeccompProfile) { - out.RawByte('{') - first := true - _ = first - if in.LocalhostProfile != "" { - const prefix string = ",\"localhostProfile\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.LocalhostProfile)) - } - { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV110(in *jlexer.Lexer, out *SELinuxOptions) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "level": - out.Level = string(in.String()) - case "role": - out.Role = string(in.String()) - case "type": - out.Type = string(in.String()) - case "user": - out.User = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV110(out *jwriter.Writer, in SELinuxOptions) { - out.RawByte('{') - first := true - _ = first - if in.Level != "" { - const prefix string = ",\"level\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Level)) - } - if in.Role != "" { - const prefix string = ",\"role\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Role)) - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - if in.User != "" { - const prefix string = ",\"user\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.User)) - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV16(in *jlexer.Lexer, out *ResourceRequirements) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "limits": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Limits = make(map[string]*resource.Quantity) - } else { - out.Limits = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v22 *resource.Quantity - if in.IsNull() { - in.Skip() - v22 = nil - } else { - if v22 == nil { - v22 = new(resource.Quantity) - } - *v22 = resource.Quantity(in.String()) - } - (out.Limits)[key] = v22 - in.WantComma() - } - in.Delim('}') - } - case "requests": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Requests = make(map[string]*resource.Quantity) - } else { - out.Requests = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v23 *resource.Quantity - if in.IsNull() { - in.Skip() - v23 = nil - } else { - if v23 == nil { - v23 = new(resource.Quantity) - } - *v23 = resource.Quantity(in.String()) - } - (out.Requests)[key] = v23 - in.WantComma() - } - in.Delim('}') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV16(out *jwriter.Writer, in ResourceRequirements) { - out.RawByte('{') - first := true - _ = first - if len(in.Limits) != 0 { - const prefix string = ",\"limits\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('{') - v24First := true - for v24Name, v24Value := range in.Limits { - if v24First { - v24First = false - } else { - out.RawByte(',') - } - out.String(string(v24Name)) - out.RawByte(':') - if v24Value == nil { - out.RawString("null") - } else { - out.String(string(*v24Value)) - } - } - out.RawByte('}') - } - } - if len(in.Requests) != 0 { - const prefix string = ",\"requests\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v25First := true - for v25Name, v25Value := range in.Requests { - if v25First { - v25First = false - } else { - out.RawByte(',') - } - out.String(string(v25Name)) - out.RawByte(':') - if v25Value == nil { - out.RawString("null") - } else { - out.String(string(*v25Value)) - } - } - out.RawByte('}') - } - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV15(in *jlexer.Lexer, out *ContainerPort) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "containerPort": - if in.IsNull() { - in.Skip() - out.ContainerPort = nil - } else { - if out.ContainerPort == nil { - out.ContainerPort = new(int32) - } - *out.ContainerPort = int32(in.Int32()) - } - case "hostIP": - out.HostIP = string(in.String()) - case "hostPort": - out.HostPort = int32(in.Int32()) - case "name": - out.Name = string(in.String()) - case "protocol": - out.Protocol = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV15(out *jwriter.Writer, in ContainerPort) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"containerPort\":" - out.RawString(prefix[1:]) - if in.ContainerPort == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.ContainerPort)) - } - } - if in.HostIP != "" { - const prefix string = ",\"hostIP\":" - out.RawString(prefix) - out.String(string(in.HostIP)) - } - if in.HostPort != 0 { - const prefix string = ",\"hostPort\":" - out.RawString(prefix) - out.Int32(int32(in.HostPort)) - } - if in.Name != "" { - const prefix string = ",\"name\":" - out.RawString(prefix) - out.String(string(in.Name)) - } - if in.Protocol != "" { - const prefix string = ",\"protocol\":" - out.RawString(prefix) - out.String(string(in.Protocol)) - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Lexer, out *Probe) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "exec": - if in.IsNull() { - in.Skip() - out.Exec = nil - } else { - if out.Exec == nil { - out.Exec = new(ExecAction) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV113(in, out.Exec) - } - case "failureThreshold": - out.FailureThreshold = int32(in.Int32()) - case "grpc": - if in.IsNull() { - in.Skip() - out.GRPC = nil - } else { - if out.GRPC == nil { - out.GRPC = new(GRPCAction) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV114(in, out.GRPC) - } - case "httpGet": - if in.IsNull() { - in.Skip() - out.HTTPGet = nil - } else { - if out.HTTPGet == nil { - out.HTTPGet = new(HTTPGetAction) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV115(in, out.HTTPGet) - } - case "initialDelaySeconds": - out.InitialDelaySeconds = int32(in.Int32()) - case "periodSeconds": - out.PeriodSeconds = int32(in.Int32()) - case "successThreshold": - out.SuccessThreshold = int32(in.Int32()) - case "tcpSocket": - if in.IsNull() { - in.Skip() - out.TCPSocket = nil - } else { - if out.TCPSocket == nil { - out.TCPSocket = new(TCPSocketAction) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV116(in, out.TCPSocket) - } - case "terminationGracePeriodSeconds": - out.TerminationGracePeriodSeconds = int64(in.Int64()) - case "timeoutSeconds": - out.TimeoutSeconds = int32(in.Int32()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter.Writer, in Probe) { - out.RawByte('{') - first := true - _ = first - if in.Exec != nil { - const prefix string = ",\"exec\":" - first = false - out.RawString(prefix[1:]) - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV113(out, *in.Exec) - } - if in.FailureThreshold != 0 { - const prefix string = ",\"failureThreshold\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.FailureThreshold)) - } - if in.GRPC != nil { - const prefix string = ",\"grpc\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV114(out, *in.GRPC) - } - if in.HTTPGet != nil { - const prefix string = ",\"httpGet\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV115(out, *in.HTTPGet) - } - if in.InitialDelaySeconds != 0 { - const prefix string = ",\"initialDelaySeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.InitialDelaySeconds)) - } - if in.PeriodSeconds != 0 { - const prefix string = ",\"periodSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.PeriodSeconds)) - } - if in.SuccessThreshold != 0 { - const prefix string = ",\"successThreshold\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.SuccessThreshold)) - } - if in.TCPSocket != nil { - const prefix string = ",\"tcpSocket\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV116(out, *in.TCPSocket) - } - if in.TerminationGracePeriodSeconds != 0 { - const prefix string = ",\"terminationGracePeriodSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.TerminationGracePeriodSeconds)) - } - if in.TimeoutSeconds != 0 { - const prefix string = ",\"timeoutSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.TimeoutSeconds)) - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV116(in *jlexer.Lexer, out *TCPSocketAction) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "host": - out.Host = string(in.String()) - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(intstr.IntOrString) - } - *out.Port = intstr.IntOrString(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV116(out *jwriter.Writer, in TCPSocketAction) { - out.RawByte('{') - first := true - _ = first - if in.Host != "" { - const prefix string = ",\"host\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Host)) - } - { - const prefix string = ",\"port\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Port == nil { - out.RawString("null") - } else { - out.String(string(*in.Port)) - } - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV115(in *jlexer.Lexer, out *HTTPGetAction) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "host": - out.Host = string(in.String()) - case "httpHeaders": - if in.IsNull() { - in.Skip() - out.HTTPHeaders = nil - } else { - in.Delim('[') - if out.HTTPHeaders == nil { - if !in.IsDelim(']') { - out.HTTPHeaders = make([]*HTTPHeader, 0, 8) - } else { - out.HTTPHeaders = []*HTTPHeader{} - } - } else { - out.HTTPHeaders = (out.HTTPHeaders)[:0] - } - for !in.IsDelim(']') { - var v26 *HTTPHeader - if in.IsNull() { - in.Skip() - v26 = nil - } else { - if v26 == nil { - v26 = new(HTTPHeader) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV117(in, v26) - } - out.HTTPHeaders = append(out.HTTPHeaders, v26) - in.WantComma() - } - in.Delim(']') - } - case "path": - out.Path = string(in.String()) - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(intstr.IntOrString) - } - *out.Port = intstr.IntOrString(in.String()) - } - case "scheme": - out.Scheme = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV115(out *jwriter.Writer, in HTTPGetAction) { - out.RawByte('{') - first := true - _ = first - if in.Host != "" { - const prefix string = ",\"host\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Host)) - } - if len(in.HTTPHeaders) != 0 { - const prefix string = ",\"httpHeaders\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v27, v28 := range in.HTTPHeaders { - if v27 > 0 { - out.RawByte(',') - } - if v28 == nil { - out.RawString("null") - } else { - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV117(out, *v28) - } - } - out.RawByte(']') - } - } - if in.Path != "" { - const prefix string = ",\"path\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Path)) - } - { - const prefix string = ",\"port\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Port == nil { - out.RawString("null") - } else { - out.String(string(*in.Port)) - } - } - if in.Scheme != "" { - const prefix string = ",\"scheme\":" - out.RawString(prefix) - out.String(string(in.Scheme)) - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV117(in *jlexer.Lexer, out *HTTPHeader) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "value": - if in.IsNull() { - in.Skip() - out.Value = nil - } else { - if out.Value == nil { - out.Value = new(string) - } - *out.Value = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV117(out *jwriter.Writer, in HTTPHeader) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"name\":" - out.RawString(prefix[1:]) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - { - const prefix string = ",\"value\":" - out.RawString(prefix) - if in.Value == nil { - out.RawString("null") - } else { - out.String(string(*in.Value)) - } - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV114(in *jlexer.Lexer, out *GRPCAction) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(int32) - } - *out.Port = int32(in.Int32()) - } - case "service": - out.Service = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV114(out *jwriter.Writer, in GRPCAction) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"port\":" - out.RawString(prefix[1:]) - if in.Port == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Port)) - } - } - if in.Service != "" { - const prefix string = ",\"service\":" - out.RawString(prefix) - out.String(string(in.Service)) - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV113(in *jlexer.Lexer, out *ExecAction) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "command": - if in.IsNull() { - in.Skip() - out.Command = nil - } else { - in.Delim('[') - if out.Command == nil { - if !in.IsDelim(']') { - out.Command = make([]string, 0, 4) - } else { - out.Command = []string{} - } - } else { - out.Command = (out.Command)[:0] - } - for !in.IsDelim(']') { - var v29 string - v29 = string(in.String()) - out.Command = append(out.Command, v29) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV113(out *jwriter.Writer, in ExecAction) { - out.RawByte('{') - first := true - _ = first - if len(in.Command) != 0 { - const prefix string = ",\"command\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v30, v31 := range in.Command { - if v30 > 0 { - out.RawByte(',') - } - out.String(string(v31)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *Lifecycle) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "postStart": - if in.IsNull() { - in.Skip() - out.PostStart = nil - } else { - if out.PostStart == nil { - out.PostStart = new(LifecycleHandler) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV118(in, out.PostStart) - } - case "preStop": - if in.IsNull() { - in.Skip() - out.PreStop = nil - } else { - if out.PreStop == nil { - out.PreStop = new(LifecycleHandler) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV118(in, out.PreStop) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in Lifecycle) { - out.RawByte('{') - first := true - _ = first - if in.PostStart != nil { - const prefix string = ",\"postStart\":" - first = false - out.RawString(prefix[1:]) - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV118(out, *in.PostStart) - } - if in.PreStop != nil { - const prefix string = ",\"preStop\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV118(out, *in.PreStop) - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV118(in *jlexer.Lexer, out *LifecycleHandler) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "exec": - if in.IsNull() { - in.Skip() - out.Exec = nil - } else { - if out.Exec == nil { - out.Exec = new(ExecAction) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV113(in, out.Exec) - } - case "httpGet": - if in.IsNull() { - in.Skip() - out.HTTPGet = nil - } else { - if out.HTTPGet == nil { - out.HTTPGet = new(HTTPGetAction) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV115(in, out.HTTPGet) - } - case "tcpSocket": - if in.IsNull() { - in.Skip() - out.TCPSocket = nil - } else { - if out.TCPSocket == nil { - out.TCPSocket = new(TCPSocketAction) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV116(in, out.TCPSocket) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV118(out *jwriter.Writer, in LifecycleHandler) { - out.RawByte('{') - first := true - _ = first - if in.Exec != nil { - const prefix string = ",\"exec\":" - first = false - out.RawString(prefix[1:]) - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV113(out, *in.Exec) - } - if in.HTTPGet != nil { - const prefix string = ",\"httpGet\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV115(out, *in.HTTPGet) - } - if in.TCPSocket != nil { - const prefix string = ",\"tcpSocket\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV116(out, *in.TCPSocket) - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *EnvFromSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "configMapRef": - if in.IsNull() { - in.Skip() - out.ConfigMapRef = nil - } else { - if out.ConfigMapRef == nil { - out.ConfigMapRef = new(ConfigMapEnvSource) - } - (*out.ConfigMapRef).UnmarshalEasyJSON(in) - } - case "prefix": - out.Prefix = string(in.String()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(SecretEnvSource) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV119(in, out.SecretRef) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in EnvFromSource) { - out.RawByte('{') - first := true - _ = first - if in.ConfigMapRef != nil { - const prefix string = ",\"configMapRef\":" - first = false - out.RawString(prefix[1:]) - (*in.ConfigMapRef).MarshalEasyJSON(out) - } - if in.Prefix != "" { - const prefix string = ",\"prefix\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Prefix)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV119(out, *in.SecretRef) - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV119(in *jlexer.Lexer, out *SecretEnvSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "optional": - out.Optional = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV119(out *jwriter.Writer, in SecretEnvSource) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Optional { - const prefix string = ",\"optional\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Optional)) - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *EnvVar) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "value": - out.Value = string(in.String()) - case "valueFrom": - if in.IsNull() { - in.Skip() - out.ValueFrom = nil - } else { - if out.ValueFrom == nil { - out.ValueFrom = new(EnvVarSource) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV120(in, out.ValueFrom) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in EnvVar) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"name\":" - out.RawString(prefix[1:]) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - if in.Value != "" { - const prefix string = ",\"value\":" - out.RawString(prefix) - out.String(string(in.Value)) - } - if in.ValueFrom != nil { - const prefix string = ",\"valueFrom\":" - out.RawString(prefix) - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV120(out, *in.ValueFrom) - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV120(in *jlexer.Lexer, out *EnvVarSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "configMapKeyRef": - if in.IsNull() { - in.Skip() - out.ConfigMapKeyRef = nil - } else { - if out.ConfigMapKeyRef == nil { - out.ConfigMapKeyRef = new(ConfigMapKeySelector) - } - (*out.ConfigMapKeyRef).UnmarshalEasyJSON(in) - } - case "fieldRef": - if in.IsNull() { - in.Skip() - out.FieldRef = nil - } else { - if out.FieldRef == nil { - out.FieldRef = new(ObjectFieldSelector) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV121(in, out.FieldRef) - } - case "resourceFieldRef": - if in.IsNull() { - in.Skip() - out.ResourceFieldRef = nil - } else { - if out.ResourceFieldRef == nil { - out.ResourceFieldRef = new(ResourceFieldSelector) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV122(in, out.ResourceFieldRef) - } - case "secretKeyRef": - if in.IsNull() { - in.Skip() - out.SecretKeyRef = nil - } else { - if out.SecretKeyRef == nil { - out.SecretKeyRef = new(SecretKeySelector) - } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV123(in, out.SecretKeyRef) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV120(out *jwriter.Writer, in EnvVarSource) { - out.RawByte('{') - first := true - _ = first - if in.ConfigMapKeyRef != nil { - const prefix string = ",\"configMapKeyRef\":" - first = false - out.RawString(prefix[1:]) - (*in.ConfigMapKeyRef).MarshalEasyJSON(out) - } - if in.FieldRef != nil { - const prefix string = ",\"fieldRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV121(out, *in.FieldRef) - } - if in.ResourceFieldRef != nil { - const prefix string = ",\"resourceFieldRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV122(out, *in.ResourceFieldRef) - } - if in.SecretKeyRef != nil { - const prefix string = ",\"secretKeyRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV123(out, *in.SecretKeyRef) - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV123(in *jlexer.Lexer, out *SecretKeySelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "name": - out.Name = string(in.String()) - case "optional": - out.Optional = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV123(out *jwriter.Writer, in SecretKeySelector) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"key\":" - out.RawString(prefix[1:]) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - if in.Name != "" { - const prefix string = ",\"name\":" - out.RawString(prefix) - out.String(string(in.Name)) - } - if in.Optional { - const prefix string = ",\"optional\":" - out.RawString(prefix) - out.Bool(bool(in.Optional)) - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV122(in *jlexer.Lexer, out *ResourceFieldSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "containerName": - out.ContainerName = string(in.String()) - case "divisor": - if in.IsNull() { - in.Skip() - out.Divisor = nil - } else { - if out.Divisor == nil { - out.Divisor = new(resource.Quantity) - } - *out.Divisor = resource.Quantity(in.String()) - } - case "resource": - if in.IsNull() { - in.Skip() - out.Resource = nil - } else { - if out.Resource == nil { - out.Resource = new(string) - } - *out.Resource = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV122(out *jwriter.Writer, in ResourceFieldSelector) { - out.RawByte('{') - first := true - _ = first - if in.ContainerName != "" { - const prefix string = ",\"containerName\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.ContainerName)) - } - if in.Divisor != nil { - const prefix string = ",\"divisor\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(*in.Divisor)) - } - { - const prefix string = ",\"resource\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Resource == nil { - out.RawString("null") - } else { - out.String(string(*in.Resource)) - } - } - out.RawByte('}') -} -func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV121(in *jlexer.Lexer, out *ObjectFieldSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "fieldPath": - if in.IsNull() { - in.Skip() - out.FieldPath = nil - } else { - if out.FieldPath == nil { - out.FieldPath = new(string) - } - *out.FieldPath = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV121(out *jwriter.Writer, in ObjectFieldSelector) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"fieldPath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.FieldPath == nil { - out.RawString("null") - } else { - out.String(string(*in.FieldPath)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_image.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_image.go index 1fd6ae9..631f99b 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_image.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_image.go @@ -10,7 +10,7 @@ package v1 // swagger:model ContainerImage type ContainerImage struct { - // Names by which this image is known. e.g. ["k8s.gcr.io/hyperkube:v1.0.7", "dockerhub.io/google_containers/hyperkube:v1.0.7"] + // Names by which this image is known. e.g. ["kubernetes.example/hyperkube:v1.0.7", "cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7"] Names []string `json:"names,omitempty"` // The size of the image in bytes. diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_image_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_image_easyjson.go deleted file mode 100644 index f51886f..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_image_easyjson.go +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonCe4acf15DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ContainerImage) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "names": - if in.IsNull() { - in.Skip() - out.Names = nil - } else { - in.Delim('[') - if out.Names == nil { - if !in.IsDelim(']') { - out.Names = make([]string, 0, 4) - } else { - out.Names = []string{} - } - } else { - out.Names = (out.Names)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Names = append(out.Names, v1) - in.WantComma() - } - in.Delim(']') - } - case "sizeBytes": - out.SizeBytes = int64(in.Int64()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCe4acf15EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ContainerImage) { - out.RawByte('{') - first := true - _ = first - if len(in.Names) != 0 { - const prefix string = ",\"names\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.Names { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - if in.SizeBytes != 0 { - const prefix string = ",\"sizeBytes\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.SizeBytes)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ContainerImage) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonCe4acf15EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ContainerImage) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonCe4acf15EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ContainerImage) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonCe4acf15DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ContainerImage) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonCe4acf15DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_port.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_port.go index a8cd02b..f877f07 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_port.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_port.go @@ -24,7 +24,5 @@ type ContainerPort struct { Name string `json:"name,omitempty"` // Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP". - // - // Protocol string `json:"protocol,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_port_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_port_easyjson.go deleted file mode 100644 index c0e943c..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_port_easyjson.go +++ /dev/null @@ -1,125 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson23d4cc49DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ContainerPort) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "containerPort": - if in.IsNull() { - in.Skip() - out.ContainerPort = nil - } else { - if out.ContainerPort == nil { - out.ContainerPort = new(int32) - } - *out.ContainerPort = int32(in.Int32()) - } - case "hostIP": - out.HostIP = string(in.String()) - case "hostPort": - out.HostPort = int32(in.Int32()) - case "name": - out.Name = string(in.String()) - case "protocol": - out.Protocol = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson23d4cc49EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ContainerPort) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"containerPort\":" - out.RawString(prefix[1:]) - if in.ContainerPort == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.ContainerPort)) - } - } - if in.HostIP != "" { - const prefix string = ",\"hostIP\":" - out.RawString(prefix) - out.String(string(in.HostIP)) - } - if in.HostPort != 0 { - const prefix string = ",\"hostPort\":" - out.RawString(prefix) - out.Int32(int32(in.HostPort)) - } - if in.Name != "" { - const prefix string = ",\"name\":" - out.RawString(prefix) - out.String(string(in.Name)) - } - if in.Protocol != "" { - const prefix string = ",\"protocol\":" - out.RawString(prefix) - out.String(string(in.Protocol)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ContainerPort) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson23d4cc49EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ContainerPort) MarshalEasyJSON(w *jwriter.Writer) { - easyjson23d4cc49EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ContainerPort) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson23d4cc49DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ContainerPort) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson23d4cc49DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_resize_policy.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_resize_policy.go new file mode 100644 index 0000000..386ae04 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_resize_policy.go @@ -0,0 +1,20 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +// ContainerResizePolicy ContainerResizePolicy represents resource resize policy for the container. +// +// swagger:model ContainerResizePolicy +type ContainerResizePolicy struct { + + // Name of the resource to which this resource resize policy applies. Supported values: cpu, memory. + // Required: true + ResourceName *string `json:"resourceName"` + + // Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired. + // Required: true + RestartPolicy *string `json:"restartPolicy"` +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_state_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_state_easyjson.go deleted file mode 100644 index 99bae9c..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_state_easyjson.go +++ /dev/null @@ -1,365 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonB5c9d911DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ContainerState) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "running": - if in.IsNull() { - in.Skip() - out.Running = nil - } else { - if out.Running == nil { - out.Running = new(ContainerStateRunning) - } - easyjsonB5c9d911DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.Running) - } - case "terminated": - if in.IsNull() { - in.Skip() - out.Terminated = nil - } else { - if out.Terminated == nil { - out.Terminated = new(ContainerStateTerminated) - } - easyjsonB5c9d911DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.Terminated) - } - case "waiting": - if in.IsNull() { - in.Skip() - out.Waiting = nil - } else { - if out.Waiting == nil { - out.Waiting = new(ContainerStateWaiting) - } - easyjsonB5c9d911DecodeGithubComKubewardenK8sObjectsApiCoreV13(in, out.Waiting) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB5c9d911EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ContainerState) { - out.RawByte('{') - first := true - _ = first - if in.Running != nil { - const prefix string = ",\"running\":" - first = false - out.RawString(prefix[1:]) - easyjsonB5c9d911EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.Running) - } - if in.Terminated != nil { - const prefix string = ",\"terminated\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonB5c9d911EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.Terminated) - } - if in.Waiting != nil { - const prefix string = ",\"waiting\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonB5c9d911EncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *in.Waiting) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ContainerState) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonB5c9d911EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ContainerState) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonB5c9d911EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ContainerState) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonB5c9d911DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ContainerState) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonB5c9d911DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonB5c9d911DecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *ContainerStateWaiting) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB5c9d911EncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in ContainerStateWaiting) { - out.RawByte('{') - first := true - _ = first - if in.Message != "" { - const prefix string = ",\"message\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - out.RawByte('}') -} -func easyjsonB5c9d911DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *ContainerStateTerminated) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "containerID": - out.ContainerID = string(in.String()) - case "exitCode": - if in.IsNull() { - in.Skip() - out.ExitCode = nil - } else { - if out.ExitCode == nil { - out.ExitCode = new(int32) - } - *out.ExitCode = int32(in.Int32()) - } - case "finishedAt": - if in.IsNull() { - in.Skip() - out.FinishedAt = nil - } else { - if out.FinishedAt == nil { - out.FinishedAt = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.FinishedAt).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "signal": - out.Signal = int32(in.Int32()) - case "startedAt": - if in.IsNull() { - in.Skip() - out.StartedAt = nil - } else { - if out.StartedAt == nil { - out.StartedAt = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.StartedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB5c9d911EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in ContainerStateTerminated) { - out.RawByte('{') - first := true - _ = first - if in.ContainerID != "" { - const prefix string = ",\"containerID\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.ContainerID)) - } - { - const prefix string = ",\"exitCode\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.ExitCode == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.ExitCode)) - } - } - if in.FinishedAt != nil { - const prefix string = ",\"finishedAt\":" - out.RawString(prefix) - out.Raw((*in.FinishedAt).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - out.RawString(prefix) - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - out.RawString(prefix) - out.String(string(in.Reason)) - } - if in.Signal != 0 { - const prefix string = ",\"signal\":" - out.RawString(prefix) - out.Int32(int32(in.Signal)) - } - if in.StartedAt != nil { - const prefix string = ",\"startedAt\":" - out.RawString(prefix) - out.Raw((*in.StartedAt).MarshalJSON()) - } - out.RawByte('}') -} -func easyjsonB5c9d911DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *ContainerStateRunning) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "startedAt": - if in.IsNull() { - in.Skip() - out.StartedAt = nil - } else { - if out.StartedAt == nil { - out.StartedAt = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.StartedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB5c9d911EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in ContainerStateRunning) { - out.RawByte('{') - first := true - _ = first - if in.StartedAt != nil { - const prefix string = ",\"startedAt\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.StartedAt).MarshalJSON()) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_state_running_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_state_running_easyjson.go deleted file mode 100644 index c02af24..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_state_running_easyjson.go +++ /dev/null @@ -1,97 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonB17754e5DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ContainerStateRunning) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "startedAt": - if in.IsNull() { - in.Skip() - out.StartedAt = nil - } else { - if out.StartedAt == nil { - out.StartedAt = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.StartedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB17754e5EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ContainerStateRunning) { - out.RawByte('{') - first := true - _ = first - if in.StartedAt != nil { - const prefix string = ",\"startedAt\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.StartedAt).MarshalJSON()) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ContainerStateRunning) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonB17754e5EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ContainerStateRunning) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonB17754e5EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ContainerStateRunning) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonB17754e5DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ContainerStateRunning) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonB17754e5DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_state_terminated_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_state_terminated_easyjson.go deleted file mode 100644 index 155cfed..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_state_terminated_easyjson.go +++ /dev/null @@ -1,166 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonA0dfb969DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ContainerStateTerminated) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "containerID": - out.ContainerID = string(in.String()) - case "exitCode": - if in.IsNull() { - in.Skip() - out.ExitCode = nil - } else { - if out.ExitCode == nil { - out.ExitCode = new(int32) - } - *out.ExitCode = int32(in.Int32()) - } - case "finishedAt": - if in.IsNull() { - in.Skip() - out.FinishedAt = nil - } else { - if out.FinishedAt == nil { - out.FinishedAt = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.FinishedAt).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "signal": - out.Signal = int32(in.Int32()) - case "startedAt": - if in.IsNull() { - in.Skip() - out.StartedAt = nil - } else { - if out.StartedAt == nil { - out.StartedAt = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.StartedAt).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA0dfb969EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ContainerStateTerminated) { - out.RawByte('{') - first := true - _ = first - if in.ContainerID != "" { - const prefix string = ",\"containerID\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.ContainerID)) - } - { - const prefix string = ",\"exitCode\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.ExitCode == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.ExitCode)) - } - } - if in.FinishedAt != nil { - const prefix string = ",\"finishedAt\":" - out.RawString(prefix) - out.Raw((*in.FinishedAt).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - out.RawString(prefix) - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - out.RawString(prefix) - out.String(string(in.Reason)) - } - if in.Signal != 0 { - const prefix string = ",\"signal\":" - out.RawString(prefix) - out.Int32(int32(in.Signal)) - } - if in.StartedAt != nil { - const prefix string = ",\"startedAt\":" - out.RawString(prefix) - out.Raw((*in.StartedAt).MarshalJSON()) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ContainerStateTerminated) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonA0dfb969EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ContainerStateTerminated) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonA0dfb969EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ContainerStateTerminated) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonA0dfb969DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ContainerStateTerminated) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonA0dfb969DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_state_waiting_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_state_waiting_easyjson.go deleted file mode 100644 index fb57426..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_state_waiting_easyjson.go +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonF4ad47c1DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ContainerStateWaiting) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF4ad47c1EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ContainerStateWaiting) { - out.RawByte('{') - first := true - _ = first - if in.Message != "" { - const prefix string = ",\"message\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ContainerStateWaiting) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonF4ad47c1EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ContainerStateWaiting) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonF4ad47c1EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ContainerStateWaiting) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonF4ad47c1DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ContainerStateWaiting) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonF4ad47c1DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_status.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_status.go index 374fe31..6071563 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_status.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_status.go @@ -5,40 +5,52 @@ package v1 // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command +import ( + apimachinery_pkg_api_resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" +) + // ContainerStatus ContainerStatus contains details for the current status of this container. // // swagger:model ContainerStatus type ContainerStatus struct { - // Container's ID in the format '://'. + // AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize. + AllocatedResources map[string]*apimachinery_pkg_api_resource.Quantity `json:"allocatedResources,omitempty"` + + // ContainerID is the ID of the container in the format '://'. Where type is a container runtime identifier, returned from Version call of CRI API (for example "containerd"). ContainerID string `json:"containerID,omitempty"` - // The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images. + // Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images. // Required: true Image *string `json:"image"` - // ImageID of the container's image. + // ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime. // Required: true ImageID *string `json:"imageID"` - // Details about the container's last termination condition. + // LastTerminationState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0. LastState *ContainerState `json:"lastState,omitempty"` - // This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. + // Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated. // Required: true Name *string `json:"name"` - // Specifies whether the container has passed its readiness probe. + // Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field). + // + // The value is typically used to determine whether a container is ready to accept traffic. // Required: true Ready *bool `json:"ready"` - // The number of times the container has been restarted. + // Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized. + Resources *ResourceRequirements `json:"resources,omitempty"` + + // RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative. // Required: true RestartCount *int32 `json:"restartCount"` - // Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined. + // Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false. Started bool `json:"started,omitempty"` - // Details about the container's current condition. + // State holds details about the container's current condition. State *ContainerState `json:"state,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_status_easyjson.go deleted file mode 100644 index 3e70ff7..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/container_status_easyjson.go +++ /dev/null @@ -1,223 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson8557f2baDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ContainerStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "containerID": - out.ContainerID = string(in.String()) - case "image": - if in.IsNull() { - in.Skip() - out.Image = nil - } else { - if out.Image == nil { - out.Image = new(string) - } - *out.Image = string(in.String()) - } - case "imageID": - if in.IsNull() { - in.Skip() - out.ImageID = nil - } else { - if out.ImageID == nil { - out.ImageID = new(string) - } - *out.ImageID = string(in.String()) - } - case "lastState": - if in.IsNull() { - in.Skip() - out.LastState = nil - } else { - if out.LastState == nil { - out.LastState = new(ContainerState) - } - (*out.LastState).UnmarshalEasyJSON(in) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "ready": - if in.IsNull() { - in.Skip() - out.Ready = nil - } else { - if out.Ready == nil { - out.Ready = new(bool) - } - *out.Ready = bool(in.Bool()) - } - case "restartCount": - if in.IsNull() { - in.Skip() - out.RestartCount = nil - } else { - if out.RestartCount == nil { - out.RestartCount = new(int32) - } - *out.RestartCount = int32(in.Int32()) - } - case "started": - out.Started = bool(in.Bool()) - case "state": - if in.IsNull() { - in.Skip() - out.State = nil - } else { - if out.State == nil { - out.State = new(ContainerState) - } - (*out.State).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson8557f2baEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ContainerStatus) { - out.RawByte('{') - first := true - _ = first - if in.ContainerID != "" { - const prefix string = ",\"containerID\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.ContainerID)) - } - { - const prefix string = ",\"image\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Image == nil { - out.RawString("null") - } else { - out.String(string(*in.Image)) - } - } - { - const prefix string = ",\"imageID\":" - out.RawString(prefix) - if in.ImageID == nil { - out.RawString("null") - } else { - out.String(string(*in.ImageID)) - } - } - if in.LastState != nil { - const prefix string = ",\"lastState\":" - out.RawString(prefix) - (*in.LastState).MarshalEasyJSON(out) - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - { - const prefix string = ",\"ready\":" - out.RawString(prefix) - if in.Ready == nil { - out.RawString("null") - } else { - out.Bool(bool(*in.Ready)) - } - } - { - const prefix string = ",\"restartCount\":" - out.RawString(prefix) - if in.RestartCount == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.RestartCount)) - } - } - if in.Started { - const prefix string = ",\"started\":" - out.RawString(prefix) - out.Bool(bool(in.Started)) - } - if in.State != nil { - const prefix string = ",\"state\":" - out.RawString(prefix) - (*in.State).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ContainerStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson8557f2baEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ContainerStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjson8557f2baEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ContainerStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson8557f2baDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ContainerStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson8557f2baDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_persistent_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_persistent_volume_source.go index 23f01cf..257e1bd 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_persistent_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_persistent_volume_source.go @@ -10,7 +10,7 @@ package v1 // swagger:model CSIPersistentVolumeSource type CSIPersistentVolumeSource struct { - // controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + // controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. ControllerExpandSecretRef *SecretReference `json:"controllerExpandSecretRef,omitempty"` // controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. @@ -23,6 +23,9 @@ type CSIPersistentVolumeSource struct { // fsType to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". FSType string `json:"fsType,omitempty"` + // nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This is a beta field which is enabled default by CSINodeExpandSecret feature gate. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed. + NodeExpandSecretRef *SecretReference `json:"nodeExpandSecretRef,omitempty"` + // nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. NodePublishSecretRef *SecretReference `json:"nodePublishSecretRef,omitempty"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_persistent_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_persistent_volume_source_easyjson.go deleted file mode 100644 index c02f4c8..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_persistent_volume_source_easyjson.go +++ /dev/null @@ -1,295 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson9787651aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *CSIPersistentVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "controllerExpandSecretRef": - if in.IsNull() { - in.Skip() - out.ControllerExpandSecretRef = nil - } else { - if out.ControllerExpandSecretRef == nil { - out.ControllerExpandSecretRef = new(SecretReference) - } - easyjson9787651aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.ControllerExpandSecretRef) - } - case "controllerPublishSecretRef": - if in.IsNull() { - in.Skip() - out.ControllerPublishSecretRef = nil - } else { - if out.ControllerPublishSecretRef == nil { - out.ControllerPublishSecretRef = new(SecretReference) - } - easyjson9787651aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.ControllerPublishSecretRef) - } - case "driver": - if in.IsNull() { - in.Skip() - out.Driver = nil - } else { - if out.Driver == nil { - out.Driver = new(string) - } - *out.Driver = string(in.String()) - } - case "fsType": - out.FSType = string(in.String()) - case "nodePublishSecretRef": - if in.IsNull() { - in.Skip() - out.NodePublishSecretRef = nil - } else { - if out.NodePublishSecretRef == nil { - out.NodePublishSecretRef = new(SecretReference) - } - easyjson9787651aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.NodePublishSecretRef) - } - case "nodeStageSecretRef": - if in.IsNull() { - in.Skip() - out.NodeStageSecretRef = nil - } else { - if out.NodeStageSecretRef == nil { - out.NodeStageSecretRef = new(SecretReference) - } - easyjson9787651aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.NodeStageSecretRef) - } - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "volumeAttributes": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.VolumeAttributes = make(map[string]string) - } else { - out.VolumeAttributes = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v1 string - v1 = string(in.String()) - (out.VolumeAttributes)[key] = v1 - in.WantComma() - } - in.Delim('}') - } - case "volumeHandle": - if in.IsNull() { - in.Skip() - out.VolumeHandle = nil - } else { - if out.VolumeHandle == nil { - out.VolumeHandle = new(string) - } - *out.VolumeHandle = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9787651aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in CSIPersistentVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.ControllerExpandSecretRef != nil { - const prefix string = ",\"controllerExpandSecretRef\":" - first = false - out.RawString(prefix[1:]) - easyjson9787651aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.ControllerExpandSecretRef) - } - if in.ControllerPublishSecretRef != nil { - const prefix string = ",\"controllerPublishSecretRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson9787651aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.ControllerPublishSecretRef) - } - { - const prefix string = ",\"driver\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Driver == nil { - out.RawString("null") - } else { - out.String(string(*in.Driver)) - } - } - if in.FSType != "" { - const prefix string = ",\"fsType\":" - out.RawString(prefix) - out.String(string(in.FSType)) - } - if in.NodePublishSecretRef != nil { - const prefix string = ",\"nodePublishSecretRef\":" - out.RawString(prefix) - easyjson9787651aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.NodePublishSecretRef) - } - if in.NodeStageSecretRef != nil { - const prefix string = ",\"nodeStageSecretRef\":" - out.RawString(prefix) - easyjson9787651aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.NodeStageSecretRef) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if len(in.VolumeAttributes) != 0 { - const prefix string = ",\"volumeAttributes\":" - out.RawString(prefix) - { - out.RawByte('{') - v2First := true - for v2Name, v2Value := range in.VolumeAttributes { - if v2First { - v2First = false - } else { - out.RawByte(',') - } - out.String(string(v2Name)) - out.RawByte(':') - out.String(string(v2Value)) - } - out.RawByte('}') - } - } - { - const prefix string = ",\"volumeHandle\":" - out.RawString(prefix) - if in.VolumeHandle == nil { - out.RawString("null") - } else { - out.String(string(*in.VolumeHandle)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CSIPersistentVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson9787651aEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CSIPersistentVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson9787651aEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CSIPersistentVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson9787651aDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CSIPersistentVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson9787651aDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson9787651aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "namespace": - out.Namespace = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9787651aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Namespace != "" { - const prefix string = ",\"namespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Namespace)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_volume_source_easyjson.go deleted file mode 100644 index f7dfa91..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_volume_source_easyjson.go +++ /dev/null @@ -1,208 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonCabfbb9aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *CSIVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "driver": - if in.IsNull() { - in.Skip() - out.Driver = nil - } else { - if out.Driver == nil { - out.Driver = new(string) - } - *out.Driver = string(in.String()) - } - case "fsType": - out.FSType = string(in.String()) - case "nodePublishSecretRef": - if in.IsNull() { - in.Skip() - out.NodePublishSecretRef = nil - } else { - if out.NodePublishSecretRef == nil { - out.NodePublishSecretRef = new(LocalObjectReference) - } - easyjsonCabfbb9aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.NodePublishSecretRef) - } - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "volumeAttributes": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.VolumeAttributes = make(map[string]string) - } else { - out.VolumeAttributes = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v1 string - v1 = string(in.String()) - (out.VolumeAttributes)[key] = v1 - in.WantComma() - } - in.Delim('}') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCabfbb9aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in CSIVolumeSource) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"driver\":" - out.RawString(prefix[1:]) - if in.Driver == nil { - out.RawString("null") - } else { - out.String(string(*in.Driver)) - } - } - if in.FSType != "" { - const prefix string = ",\"fsType\":" - out.RawString(prefix) - out.String(string(in.FSType)) - } - if in.NodePublishSecretRef != nil { - const prefix string = ",\"nodePublishSecretRef\":" - out.RawString(prefix) - easyjsonCabfbb9aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.NodePublishSecretRef) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if len(in.VolumeAttributes) != 0 { - const prefix string = ",\"volumeAttributes\":" - out.RawString(prefix) - { - out.RawByte('{') - v2First := true - for v2Name, v2Value := range in.VolumeAttributes { - if v2First { - v2First = false - } else { - out.RawByte(',') - } - out.String(string(v2Name)) - out.RawByte(':') - out.String(string(v2Value)) - } - out.RawByte('}') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v CSIVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonCabfbb9aEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v CSIVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonCabfbb9aEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *CSIVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonCabfbb9aDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *CSIVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonCabfbb9aDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonCabfbb9aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *LocalObjectReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCabfbb9aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in LocalObjectReference) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/daemon_endpoint_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/daemon_endpoint_easyjson.go deleted file mode 100644 index 342b3a6..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/daemon_endpoint_easyjson.go +++ /dev/null @@ -1,97 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonF477f5f2DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *DaemonEndpoint) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "Port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(int32) - } - *out.Port = int32(in.Int32()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF477f5f2EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in DaemonEndpoint) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"Port\":" - out.RawString(prefix[1:]) - if in.Port == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Port)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DaemonEndpoint) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonF477f5f2EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DaemonEndpoint) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonF477f5f2EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DaemonEndpoint) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonF477f5f2DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DaemonEndpoint) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonF477f5f2DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/downward_api_projection_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/downward_api_projection_easyjson.go deleted file mode 100644 index bf4cb32..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/downward_api_projection_easyjson.go +++ /dev/null @@ -1,385 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonC2f65f1fDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *DownwardAPIProjection) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*DownwardAPIVolumeFile, 0, 8) - } else { - out.Items = []*DownwardAPIVolumeFile{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *DownwardAPIVolumeFile - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(DownwardAPIVolumeFile) - } - easyjsonC2f65f1fDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, v1) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC2f65f1fEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in DownwardAPIProjection) { - out.RawByte('{') - first := true - _ = first - if len(in.Items) != 0 { - const prefix string = ",\"items\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjsonC2f65f1fEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *v3) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DownwardAPIProjection) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC2f65f1fEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DownwardAPIProjection) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC2f65f1fEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DownwardAPIProjection) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC2f65f1fDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DownwardAPIProjection) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC2f65f1fDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonC2f65f1fDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *DownwardAPIVolumeFile) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fieldRef": - if in.IsNull() { - in.Skip() - out.FieldRef = nil - } else { - if out.FieldRef == nil { - out.FieldRef = new(ObjectFieldSelector) - } - easyjsonC2f65f1fDecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.FieldRef) - } - case "mode": - out.Mode = int32(in.Int32()) - case "path": - if in.IsNull() { - in.Skip() - out.Path = nil - } else { - if out.Path == nil { - out.Path = new(string) - } - *out.Path = string(in.String()) - } - case "resourceFieldRef": - if in.IsNull() { - in.Skip() - out.ResourceFieldRef = nil - } else { - if out.ResourceFieldRef == nil { - out.ResourceFieldRef = new(ResourceFieldSelector) - } - easyjsonC2f65f1fDecodeGithubComKubewardenK8sObjectsApiCoreV13(in, out.ResourceFieldRef) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC2f65f1fEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in DownwardAPIVolumeFile) { - out.RawByte('{') - first := true - _ = first - if in.FieldRef != nil { - const prefix string = ",\"fieldRef\":" - first = false - out.RawString(prefix[1:]) - easyjsonC2f65f1fEncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.FieldRef) - } - if in.Mode != 0 { - const prefix string = ",\"mode\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Mode)) - } - { - const prefix string = ",\"path\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Path == nil { - out.RawString("null") - } else { - out.String(string(*in.Path)) - } - } - if in.ResourceFieldRef != nil { - const prefix string = ",\"resourceFieldRef\":" - out.RawString(prefix) - easyjsonC2f65f1fEncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *in.ResourceFieldRef) - } - out.RawByte('}') -} -func easyjsonC2f65f1fDecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *ResourceFieldSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "containerName": - out.ContainerName = string(in.String()) - case "divisor": - if in.IsNull() { - in.Skip() - out.Divisor = nil - } else { - if out.Divisor == nil { - out.Divisor = new(resource.Quantity) - } - *out.Divisor = resource.Quantity(in.String()) - } - case "resource": - if in.IsNull() { - in.Skip() - out.Resource = nil - } else { - if out.Resource == nil { - out.Resource = new(string) - } - *out.Resource = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC2f65f1fEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in ResourceFieldSelector) { - out.RawByte('{') - first := true - _ = first - if in.ContainerName != "" { - const prefix string = ",\"containerName\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.ContainerName)) - } - if in.Divisor != nil { - const prefix string = ",\"divisor\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(*in.Divisor)) - } - { - const prefix string = ",\"resource\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Resource == nil { - out.RawString("null") - } else { - out.String(string(*in.Resource)) - } - } - out.RawByte('}') -} -func easyjsonC2f65f1fDecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *ObjectFieldSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "fieldPath": - if in.IsNull() { - in.Skip() - out.FieldPath = nil - } else { - if out.FieldPath == nil { - out.FieldPath = new(string) - } - *out.FieldPath = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC2f65f1fEncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in ObjectFieldSelector) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"fieldPath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.FieldPath == nil { - out.RawString("null") - } else { - out.String(string(*in.FieldPath)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/downward_api_volume_file_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/downward_api_volume_file_easyjson.go deleted file mode 100644 index 036118f..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/downward_api_volume_file_easyjson.go +++ /dev/null @@ -1,300 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson72afaf59DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *DownwardAPIVolumeFile) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fieldRef": - if in.IsNull() { - in.Skip() - out.FieldRef = nil - } else { - if out.FieldRef == nil { - out.FieldRef = new(ObjectFieldSelector) - } - easyjson72afaf59DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.FieldRef) - } - case "mode": - out.Mode = int32(in.Int32()) - case "path": - if in.IsNull() { - in.Skip() - out.Path = nil - } else { - if out.Path == nil { - out.Path = new(string) - } - *out.Path = string(in.String()) - } - case "resourceFieldRef": - if in.IsNull() { - in.Skip() - out.ResourceFieldRef = nil - } else { - if out.ResourceFieldRef == nil { - out.ResourceFieldRef = new(ResourceFieldSelector) - } - easyjson72afaf59DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.ResourceFieldRef) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson72afaf59EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in DownwardAPIVolumeFile) { - out.RawByte('{') - first := true - _ = first - if in.FieldRef != nil { - const prefix string = ",\"fieldRef\":" - first = false - out.RawString(prefix[1:]) - easyjson72afaf59EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.FieldRef) - } - if in.Mode != 0 { - const prefix string = ",\"mode\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Mode)) - } - { - const prefix string = ",\"path\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Path == nil { - out.RawString("null") - } else { - out.String(string(*in.Path)) - } - } - if in.ResourceFieldRef != nil { - const prefix string = ",\"resourceFieldRef\":" - out.RawString(prefix) - easyjson72afaf59EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.ResourceFieldRef) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DownwardAPIVolumeFile) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson72afaf59EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DownwardAPIVolumeFile) MarshalEasyJSON(w *jwriter.Writer) { - easyjson72afaf59EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DownwardAPIVolumeFile) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson72afaf59DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DownwardAPIVolumeFile) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson72afaf59DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson72afaf59DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *ResourceFieldSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "containerName": - out.ContainerName = string(in.String()) - case "divisor": - if in.IsNull() { - in.Skip() - out.Divisor = nil - } else { - if out.Divisor == nil { - out.Divisor = new(resource.Quantity) - } - *out.Divisor = resource.Quantity(in.String()) - } - case "resource": - if in.IsNull() { - in.Skip() - out.Resource = nil - } else { - if out.Resource == nil { - out.Resource = new(string) - } - *out.Resource = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson72afaf59EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in ResourceFieldSelector) { - out.RawByte('{') - first := true - _ = first - if in.ContainerName != "" { - const prefix string = ",\"containerName\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.ContainerName)) - } - if in.Divisor != nil { - const prefix string = ",\"divisor\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(*in.Divisor)) - } - { - const prefix string = ",\"resource\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Resource == nil { - out.RawString("null") - } else { - out.String(string(*in.Resource)) - } - } - out.RawByte('}') -} -func easyjson72afaf59DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *ObjectFieldSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "fieldPath": - if in.IsNull() { - in.Skip() - out.FieldPath = nil - } else { - if out.FieldPath == nil { - out.FieldPath = new(string) - } - *out.FieldPath = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson72afaf59EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in ObjectFieldSelector) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"fieldPath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.FieldPath == nil { - out.RawString("null") - } else { - out.String(string(*in.FieldPath)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/downward_api_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/downward_api_volume_source_easyjson.go deleted file mode 100644 index b2f0325..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/downward_api_volume_source_easyjson.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson7dca663cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *DownwardAPIVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "defaultMode": - out.DefaultMode = int32(in.Int32()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*DownwardAPIVolumeFile, 0, 8) - } else { - out.Items = []*DownwardAPIVolumeFile{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *DownwardAPIVolumeFile - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(DownwardAPIVolumeFile) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7dca663cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in DownwardAPIVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.DefaultMode != 0 { - const prefix string = ",\"defaultMode\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.DefaultMode)) - } - if len(in.Items) != 0 { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DownwardAPIVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson7dca663cEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DownwardAPIVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson7dca663cEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DownwardAPIVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson7dca663cDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DownwardAPIVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson7dca663cDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/empty_dir_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/empty_dir_volume_source.go index 3d23819..7229600 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/empty_dir_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/empty_dir_volume_source.go @@ -17,6 +17,6 @@ type EmptyDirVolumeSource struct { // medium represents what type of storage medium should back this directory. The default is "" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir Medium string `json:"medium,omitempty"` - // sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + // sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir SizeLimit *apimachinery_pkg_api_resource.Quantity `json:"sizeLimit,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/empty_dir_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/empty_dir_volume_source_easyjson.go deleted file mode 100644 index 764a589..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/empty_dir_volume_source_easyjson.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson4dfb56a6DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *EmptyDirVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "medium": - out.Medium = string(in.String()) - case "sizeLimit": - if in.IsNull() { - in.Skip() - out.SizeLimit = nil - } else { - if out.SizeLimit == nil { - out.SizeLimit = new(resource.Quantity) - } - *out.SizeLimit = resource.Quantity(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson4dfb56a6EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in EmptyDirVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.Medium != "" { - const prefix string = ",\"medium\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Medium)) - } - if in.SizeLimit != nil { - const prefix string = ",\"sizeLimit\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(*in.SizeLimit)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EmptyDirVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson4dfb56a6EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EmptyDirVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson4dfb56a6EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EmptyDirVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson4dfb56a6DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EmptyDirVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson4dfb56a6DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_address.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_address.go index 1649b94..80e709c 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_address.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_address.go @@ -13,7 +13,7 @@ type EndpointAddress struct { // The Hostname of this endpoint Hostname string `json:"hostname,omitempty"` - // The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. + // The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16). // Required: true IP *string `json:"ip"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_address_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_address_easyjson.go deleted file mode 100644 index 964068c..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_address_easyjson.go +++ /dev/null @@ -1,247 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonDb475d76DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *EndpointAddress) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "hostname": - out.Hostname = string(in.String()) - case "ip": - if in.IsNull() { - in.Skip() - out.IP = nil - } else { - if out.IP == nil { - out.IP = new(string) - } - *out.IP = string(in.String()) - } - case "nodeName": - out.NodeName = string(in.String()) - case "targetRef": - if in.IsNull() { - in.Skip() - out.TargetRef = nil - } else { - if out.TargetRef == nil { - out.TargetRef = new(ObjectReference) - } - easyjsonDb475d76DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.TargetRef) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonDb475d76EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in EndpointAddress) { - out.RawByte('{') - first := true - _ = first - if in.Hostname != "" { - const prefix string = ",\"hostname\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Hostname)) - } - { - const prefix string = ",\"ip\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.IP == nil { - out.RawString("null") - } else { - out.String(string(*in.IP)) - } - } - if in.NodeName != "" { - const prefix string = ",\"nodeName\":" - out.RawString(prefix) - out.String(string(in.NodeName)) - } - if in.TargetRef != nil { - const prefix string = ",\"targetRef\":" - out.RawString(prefix) - easyjsonDb475d76EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.TargetRef) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EndpointAddress) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonDb475d76EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EndpointAddress) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonDb475d76EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EndpointAddress) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonDb475d76DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EndpointAddress) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonDb475d76DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonDb475d76DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *ObjectReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "fieldPath": - out.FieldPath = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "name": - out.Name = string(in.String()) - case "namespace": - out.Namespace = string(in.String()) - case "resourceVersion": - out.ResourceVersion = string(in.String()) - case "uid": - out.UID = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonDb475d76EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in ObjectReference) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.FieldPath != "" { - const prefix string = ",\"fieldPath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.FieldPath)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Name != "" { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Name)) - } - if in.Namespace != "" { - const prefix string = ",\"namespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Namespace)) - } - if in.ResourceVersion != "" { - const prefix string = ",\"resourceVersion\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ResourceVersion)) - } - if in.UID != "" { - const prefix string = ",\"uid\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.UID)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_port.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_port.go index 89275dd..5bfe0fb 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_port.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_port.go @@ -10,7 +10,14 @@ package v1 // swagger:model EndpointPort type EndpointPort struct { - // The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. + // The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: + // + // * Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). + // + // * Kubernetes-defined prefixed names: + // * 'kubernetes.io/h2c' - HTTP/2 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 + // + // * Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. AppProtocol string `json:"appProtocol,omitempty"` // The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined. @@ -21,7 +28,5 @@ type EndpointPort struct { Port *int32 `json:"port"` // The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. - // - // Protocol string `json:"protocol,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_port_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_port_easyjson.go deleted file mode 100644 index f2d6392..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_port_easyjson.go +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonC9eb25e1DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *EndpointPort) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "appProtocol": - out.AppProtocol = string(in.String()) - case "name": - out.Name = string(in.String()) - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(int32) - } - *out.Port = int32(in.Int32()) - } - case "protocol": - out.Protocol = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC9eb25e1EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in EndpointPort) { - out.RawByte('{') - first := true - _ = first - if in.AppProtocol != "" { - const prefix string = ",\"appProtocol\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.AppProtocol)) - } - if in.Name != "" { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Name)) - } - { - const prefix string = ",\"port\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Port == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Port)) - } - } - if in.Protocol != "" { - const prefix string = ",\"protocol\":" - out.RawString(prefix) - out.String(string(in.Protocol)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EndpointPort) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC9eb25e1EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EndpointPort) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC9eb25e1EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EndpointPort) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC9eb25e1DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EndpointPort) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC9eb25e1DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_subset.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_subset.go index d4088c6..8ae9eac 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_subset.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_subset.go @@ -6,13 +6,16 @@ package v1 // Editing this file might prove futile when you re-run the swagger generate command // EndpointSubset EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: -// { -// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], -// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] -// } +// +// { +// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], +// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] +// } +// // The resulting set of endpoints can be viewed as: -// a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], -// b: [ 10.10.1.1:309, 10.10.2.2:309 ] +// +// a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], +// b: [ 10.10.1.1:309, 10.10.2.2:309 ] // // swagger:model EndpointSubset type EndpointSubset struct { diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_subset_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_subset_easyjson.go deleted file mode 100644 index bd95371..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoint_subset_easyjson.go +++ /dev/null @@ -1,236 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE5b093eaDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *EndpointSubset) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "addresses": - if in.IsNull() { - in.Skip() - out.Addresses = nil - } else { - in.Delim('[') - if out.Addresses == nil { - if !in.IsDelim(']') { - out.Addresses = make([]*EndpointAddress, 0, 8) - } else { - out.Addresses = []*EndpointAddress{} - } - } else { - out.Addresses = (out.Addresses)[:0] - } - for !in.IsDelim(']') { - var v1 *EndpointAddress - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(EndpointAddress) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Addresses = append(out.Addresses, v1) - in.WantComma() - } - in.Delim(']') - } - case "notReadyAddresses": - if in.IsNull() { - in.Skip() - out.NotReadyAddresses = nil - } else { - in.Delim('[') - if out.NotReadyAddresses == nil { - if !in.IsDelim(']') { - out.NotReadyAddresses = make([]*EndpointAddress, 0, 8) - } else { - out.NotReadyAddresses = []*EndpointAddress{} - } - } else { - out.NotReadyAddresses = (out.NotReadyAddresses)[:0] - } - for !in.IsDelim(']') { - var v2 *EndpointAddress - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(EndpointAddress) - } - (*v2).UnmarshalEasyJSON(in) - } - out.NotReadyAddresses = append(out.NotReadyAddresses, v2) - in.WantComma() - } - in.Delim(']') - } - case "ports": - if in.IsNull() { - in.Skip() - out.Ports = nil - } else { - in.Delim('[') - if out.Ports == nil { - if !in.IsDelim(']') { - out.Ports = make([]*EndpointPort, 0, 8) - } else { - out.Ports = []*EndpointPort{} - } - } else { - out.Ports = (out.Ports)[:0] - } - for !in.IsDelim(']') { - var v3 *EndpointPort - if in.IsNull() { - in.Skip() - v3 = nil - } else { - if v3 == nil { - v3 = new(EndpointPort) - } - (*v3).UnmarshalEasyJSON(in) - } - out.Ports = append(out.Ports, v3) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE5b093eaEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in EndpointSubset) { - out.RawByte('{') - first := true - _ = first - if len(in.Addresses) != 0 { - const prefix string = ",\"addresses\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v4, v5 := range in.Addresses { - if v4 > 0 { - out.RawByte(',') - } - if v5 == nil { - out.RawString("null") - } else { - (*v5).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.NotReadyAddresses) != 0 { - const prefix string = ",\"notReadyAddresses\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v6, v7 := range in.NotReadyAddresses { - if v6 > 0 { - out.RawByte(',') - } - if v7 == nil { - out.RawString("null") - } else { - (*v7).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.Ports) != 0 { - const prefix string = ",\"ports\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v8, v9 := range in.Ports { - if v8 > 0 { - out.RawByte(',') - } - if v9 == nil { - out.RawString("null") - } else { - (*v9).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EndpointSubset) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE5b093eaEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EndpointSubset) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE5b093eaEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EndpointSubset) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE5b093eaDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EndpointSubset) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE5b093eaDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints.go index 17ac32b..592b4ef 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints.go @@ -10,17 +10,18 @@ import ( ) // Endpoints Endpoints is a collection of endpoints that implement the actual service. Example: -// Name: "mysvc", -// Subsets: [ -// { -// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], -// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] -// }, -// { -// Addresses: [{"ip": "10.10.3.3"}], -// Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] -// }, -// ] +// +// Name: "mysvc", +// Subsets: [ +// { +// Addresses: [{"ip": "10.10.1.1"}, {"ip": "10.10.2.2"}], +// Ports: [{"name": "a", "port": 8675}, {"name": "b", "port": 309}] +// }, +// { +// Addresses: [{"ip": "10.10.3.3"}], +// Ports: [{"name": "a", "port": 93}, {"name": "b", "port": 76}] +// }, +// ] // // swagger:model Endpoints type Endpoints struct { diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints_easyjson.go deleted file mode 100644 index ce2a854..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints_easyjson.go +++ /dev/null @@ -1,173 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson61f22cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Endpoints) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "subsets": - if in.IsNull() { - in.Skip() - out.Subsets = nil - } else { - in.Delim('[') - if out.Subsets == nil { - if !in.IsDelim(']') { - out.Subsets = make([]*EndpointSubset, 0, 8) - } else { - out.Subsets = []*EndpointSubset{} - } - } else { - out.Subsets = (out.Subsets)[:0] - } - for !in.IsDelim(']') { - var v1 *EndpointSubset - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(EndpointSubset) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Subsets = append(out.Subsets, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson61f22cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Endpoints) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if len(in.Subsets) != 0 { - const prefix string = ",\"subsets\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Subsets { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Endpoints) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson61f22cEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Endpoints) MarshalEasyJSON(w *jwriter.Writer) { - easyjson61f22cEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Endpoints) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson61f22cDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Endpoints) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson61f22cDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints_list_easyjson.go deleted file mode 100644 index 5af9817..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonF60b030dDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *EndpointsList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*Endpoints, 0, 8) - } else { - out.Items = []*Endpoints{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *Endpoints - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(Endpoints) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF60b030dEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in EndpointsList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EndpointsList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonF60b030dEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EndpointsList) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonF60b030dEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EndpointsList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonF60b030dDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EndpointsList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonF60b030dDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/env_from_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/env_from_source_easyjson.go deleted file mode 100644 index 47fd03e..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/env_from_source_easyjson.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson5b06c84aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *EnvFromSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "configMapRef": - if in.IsNull() { - in.Skip() - out.ConfigMapRef = nil - } else { - if out.ConfigMapRef == nil { - out.ConfigMapRef = new(ConfigMapEnvSource) - } - (*out.ConfigMapRef).UnmarshalEasyJSON(in) - } - case "prefix": - out.Prefix = string(in.String()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(SecretEnvSource) - } - easyjson5b06c84aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson5b06c84aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in EnvFromSource) { - out.RawByte('{') - first := true - _ = first - if in.ConfigMapRef != nil { - const prefix string = ",\"configMapRef\":" - first = false - out.RawString(prefix[1:]) - (*in.ConfigMapRef).MarshalEasyJSON(out) - } - if in.Prefix != "" { - const prefix string = ",\"prefix\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Prefix)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson5b06c84aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EnvFromSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson5b06c84aEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnvFromSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson5b06c84aEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EnvFromSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson5b06c84aDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnvFromSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson5b06c84aDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson5b06c84aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretEnvSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "optional": - out.Optional = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson5b06c84aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretEnvSource) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Optional { - const prefix string = ",\"optional\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Optional)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/env_var_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/env_var_easyjson.go deleted file mode 100644 index c6d2818..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/env_var_easyjson.go +++ /dev/null @@ -1,453 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson9452270dDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *EnvVar) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "value": - out.Value = string(in.String()) - case "valueFrom": - if in.IsNull() { - in.Skip() - out.ValueFrom = nil - } else { - if out.ValueFrom == nil { - out.ValueFrom = new(EnvVarSource) - } - easyjson9452270dDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.ValueFrom) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9452270dEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in EnvVar) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"name\":" - out.RawString(prefix[1:]) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - if in.Value != "" { - const prefix string = ",\"value\":" - out.RawString(prefix) - out.String(string(in.Value)) - } - if in.ValueFrom != nil { - const prefix string = ",\"valueFrom\":" - out.RawString(prefix) - easyjson9452270dEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.ValueFrom) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EnvVar) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson9452270dEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnvVar) MarshalEasyJSON(w *jwriter.Writer) { - easyjson9452270dEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EnvVar) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson9452270dDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnvVar) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson9452270dDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson9452270dDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *EnvVarSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "configMapKeyRef": - if in.IsNull() { - in.Skip() - out.ConfigMapKeyRef = nil - } else { - if out.ConfigMapKeyRef == nil { - out.ConfigMapKeyRef = new(ConfigMapKeySelector) - } - (*out.ConfigMapKeyRef).UnmarshalEasyJSON(in) - } - case "fieldRef": - if in.IsNull() { - in.Skip() - out.FieldRef = nil - } else { - if out.FieldRef == nil { - out.FieldRef = new(ObjectFieldSelector) - } - easyjson9452270dDecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.FieldRef) - } - case "resourceFieldRef": - if in.IsNull() { - in.Skip() - out.ResourceFieldRef = nil - } else { - if out.ResourceFieldRef == nil { - out.ResourceFieldRef = new(ResourceFieldSelector) - } - easyjson9452270dDecodeGithubComKubewardenK8sObjectsApiCoreV13(in, out.ResourceFieldRef) - } - case "secretKeyRef": - if in.IsNull() { - in.Skip() - out.SecretKeyRef = nil - } else { - if out.SecretKeyRef == nil { - out.SecretKeyRef = new(SecretKeySelector) - } - easyjson9452270dDecodeGithubComKubewardenK8sObjectsApiCoreV14(in, out.SecretKeyRef) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9452270dEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in EnvVarSource) { - out.RawByte('{') - first := true - _ = first - if in.ConfigMapKeyRef != nil { - const prefix string = ",\"configMapKeyRef\":" - first = false - out.RawString(prefix[1:]) - (*in.ConfigMapKeyRef).MarshalEasyJSON(out) - } - if in.FieldRef != nil { - const prefix string = ",\"fieldRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson9452270dEncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.FieldRef) - } - if in.ResourceFieldRef != nil { - const prefix string = ",\"resourceFieldRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson9452270dEncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *in.ResourceFieldRef) - } - if in.SecretKeyRef != nil { - const prefix string = ",\"secretKeyRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson9452270dEncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *in.SecretKeyRef) - } - out.RawByte('}') -} -func easyjson9452270dDecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Lexer, out *SecretKeySelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "name": - out.Name = string(in.String()) - case "optional": - out.Optional = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9452270dEncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter.Writer, in SecretKeySelector) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"key\":" - out.RawString(prefix[1:]) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - if in.Name != "" { - const prefix string = ",\"name\":" - out.RawString(prefix) - out.String(string(in.Name)) - } - if in.Optional { - const prefix string = ",\"optional\":" - out.RawString(prefix) - out.Bool(bool(in.Optional)) - } - out.RawByte('}') -} -func easyjson9452270dDecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *ResourceFieldSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "containerName": - out.ContainerName = string(in.String()) - case "divisor": - if in.IsNull() { - in.Skip() - out.Divisor = nil - } else { - if out.Divisor == nil { - out.Divisor = new(resource.Quantity) - } - *out.Divisor = resource.Quantity(in.String()) - } - case "resource": - if in.IsNull() { - in.Skip() - out.Resource = nil - } else { - if out.Resource == nil { - out.Resource = new(string) - } - *out.Resource = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9452270dEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in ResourceFieldSelector) { - out.RawByte('{') - first := true - _ = first - if in.ContainerName != "" { - const prefix string = ",\"containerName\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.ContainerName)) - } - if in.Divisor != nil { - const prefix string = ",\"divisor\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(*in.Divisor)) - } - { - const prefix string = ",\"resource\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Resource == nil { - out.RawString("null") - } else { - out.String(string(*in.Resource)) - } - } - out.RawByte('}') -} -func easyjson9452270dDecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *ObjectFieldSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "fieldPath": - if in.IsNull() { - in.Skip() - out.FieldPath = nil - } else { - if out.FieldPath == nil { - out.FieldPath = new(string) - } - *out.FieldPath = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9452270dEncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in ObjectFieldSelector) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"fieldPath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.FieldPath == nil { - out.RawString("null") - } else { - out.String(string(*in.FieldPath)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/env_var_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/env_var_source_easyjson.go deleted file mode 100644 index 2521525..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/env_var_source_easyjson.go +++ /dev/null @@ -1,377 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson187983d5DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *EnvVarSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "configMapKeyRef": - if in.IsNull() { - in.Skip() - out.ConfigMapKeyRef = nil - } else { - if out.ConfigMapKeyRef == nil { - out.ConfigMapKeyRef = new(ConfigMapKeySelector) - } - (*out.ConfigMapKeyRef).UnmarshalEasyJSON(in) - } - case "fieldRef": - if in.IsNull() { - in.Skip() - out.FieldRef = nil - } else { - if out.FieldRef == nil { - out.FieldRef = new(ObjectFieldSelector) - } - easyjson187983d5DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.FieldRef) - } - case "resourceFieldRef": - if in.IsNull() { - in.Skip() - out.ResourceFieldRef = nil - } else { - if out.ResourceFieldRef == nil { - out.ResourceFieldRef = new(ResourceFieldSelector) - } - easyjson187983d5DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.ResourceFieldRef) - } - case "secretKeyRef": - if in.IsNull() { - in.Skip() - out.SecretKeyRef = nil - } else { - if out.SecretKeyRef == nil { - out.SecretKeyRef = new(SecretKeySelector) - } - easyjson187983d5DecodeGithubComKubewardenK8sObjectsApiCoreV13(in, out.SecretKeyRef) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson187983d5EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in EnvVarSource) { - out.RawByte('{') - first := true - _ = first - if in.ConfigMapKeyRef != nil { - const prefix string = ",\"configMapKeyRef\":" - first = false - out.RawString(prefix[1:]) - (*in.ConfigMapKeyRef).MarshalEasyJSON(out) - } - if in.FieldRef != nil { - const prefix string = ",\"fieldRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson187983d5EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.FieldRef) - } - if in.ResourceFieldRef != nil { - const prefix string = ",\"resourceFieldRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson187983d5EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.ResourceFieldRef) - } - if in.SecretKeyRef != nil { - const prefix string = ",\"secretKeyRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson187983d5EncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *in.SecretKeyRef) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EnvVarSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson187983d5EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EnvVarSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson187983d5EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EnvVarSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson187983d5DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EnvVarSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson187983d5DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson187983d5DecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *SecretKeySelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "name": - out.Name = string(in.String()) - case "optional": - out.Optional = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson187983d5EncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in SecretKeySelector) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"key\":" - out.RawString(prefix[1:]) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - if in.Name != "" { - const prefix string = ",\"name\":" - out.RawString(prefix) - out.String(string(in.Name)) - } - if in.Optional { - const prefix string = ",\"optional\":" - out.RawString(prefix) - out.Bool(bool(in.Optional)) - } - out.RawByte('}') -} -func easyjson187983d5DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *ResourceFieldSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "containerName": - out.ContainerName = string(in.String()) - case "divisor": - if in.IsNull() { - in.Skip() - out.Divisor = nil - } else { - if out.Divisor == nil { - out.Divisor = new(resource.Quantity) - } - *out.Divisor = resource.Quantity(in.String()) - } - case "resource": - if in.IsNull() { - in.Skip() - out.Resource = nil - } else { - if out.Resource == nil { - out.Resource = new(string) - } - *out.Resource = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson187983d5EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in ResourceFieldSelector) { - out.RawByte('{') - first := true - _ = first - if in.ContainerName != "" { - const prefix string = ",\"containerName\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.ContainerName)) - } - if in.Divisor != nil { - const prefix string = ",\"divisor\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(*in.Divisor)) - } - { - const prefix string = ",\"resource\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Resource == nil { - out.RawString("null") - } else { - out.String(string(*in.Resource)) - } - } - out.RawByte('}') -} -func easyjson187983d5DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *ObjectFieldSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "fieldPath": - if in.IsNull() { - in.Skip() - out.FieldPath = nil - } else { - if out.FieldPath == nil { - out.FieldPath = new(string) - } - *out.FieldPath = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson187983d5EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in ObjectFieldSelector) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"fieldPath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.FieldPath == nil { - out.RawString("null") - } else { - out.String(string(*in.FieldPath)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ephemeral_container.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ephemeral_container.go index 70f0c7d..b8ea06e 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ephemeral_container.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ephemeral_container.go @@ -9,8 +9,6 @@ package v1 // // To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted. // -// This is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate. -// // swagger:model EphemeralContainer type EphemeralContainer struct { @@ -30,8 +28,6 @@ type EphemeralContainer struct { Image string `json:"image,omitempty"` // Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images - // - // ImagePullPolicy string `json:"imagePullPolicy,omitempty"` // Lifecycle is not allowed for ephemeral containers. @@ -50,6 +46,9 @@ type EphemeralContainer struct { // Probes are not allowed for ephemeral containers. ReadinessProbe *Probe `json:"readinessProbe,omitempty"` + // Resources resize policy for the container. + ResizePolicy []*ContainerResizePolicy `json:"resizePolicy,omitempty"` + // Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod. Resources *ResourceRequirements `json:"resources,omitempty"` @@ -74,8 +73,6 @@ type EphemeralContainer struct { TerminationMessagePath string `json:"terminationMessagePath,omitempty"` // Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. - // - // TerminationMessagePolicy string `json:"terminationMessagePolicy,omitempty"` // Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ephemeral_container_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ephemeral_container_easyjson.go deleted file mode 100644 index 61b02bc..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ephemeral_container_easyjson.go +++ /dev/null @@ -1,2108 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *EphemeralContainer) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "args": - if in.IsNull() { - in.Skip() - out.Args = nil - } else { - in.Delim('[') - if out.Args == nil { - if !in.IsDelim(']') { - out.Args = make([]string, 0, 4) - } else { - out.Args = []string{} - } - } else { - out.Args = (out.Args)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Args = append(out.Args, v1) - in.WantComma() - } - in.Delim(']') - } - case "command": - if in.IsNull() { - in.Skip() - out.Command = nil - } else { - in.Delim('[') - if out.Command == nil { - if !in.IsDelim(']') { - out.Command = make([]string, 0, 4) - } else { - out.Command = []string{} - } - } else { - out.Command = (out.Command)[:0] - } - for !in.IsDelim(']') { - var v2 string - v2 = string(in.String()) - out.Command = append(out.Command, v2) - in.WantComma() - } - in.Delim(']') - } - case "env": - if in.IsNull() { - in.Skip() - out.Env = nil - } else { - in.Delim('[') - if out.Env == nil { - if !in.IsDelim(']') { - out.Env = make([]*EnvVar, 0, 8) - } else { - out.Env = []*EnvVar{} - } - } else { - out.Env = (out.Env)[:0] - } - for !in.IsDelim(']') { - var v3 *EnvVar - if in.IsNull() { - in.Skip() - v3 = nil - } else { - if v3 == nil { - v3 = new(EnvVar) - } - (*v3).UnmarshalEasyJSON(in) - } - out.Env = append(out.Env, v3) - in.WantComma() - } - in.Delim(']') - } - case "envFrom": - if in.IsNull() { - in.Skip() - out.EnvFrom = nil - } else { - in.Delim('[') - if out.EnvFrom == nil { - if !in.IsDelim(']') { - out.EnvFrom = make([]*EnvFromSource, 0, 8) - } else { - out.EnvFrom = []*EnvFromSource{} - } - } else { - out.EnvFrom = (out.EnvFrom)[:0] - } - for !in.IsDelim(']') { - var v4 *EnvFromSource - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(EnvFromSource) - } - (*v4).UnmarshalEasyJSON(in) - } - out.EnvFrom = append(out.EnvFrom, v4) - in.WantComma() - } - in.Delim(']') - } - case "image": - out.Image = string(in.String()) - case "imagePullPolicy": - out.ImagePullPolicy = string(in.String()) - case "lifecycle": - if in.IsNull() { - in.Skip() - out.Lifecycle = nil - } else { - if out.Lifecycle == nil { - out.Lifecycle = new(Lifecycle) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.Lifecycle) - } - case "livenessProbe": - if in.IsNull() { - in.Skip() - out.LivenessProbe = nil - } else { - if out.LivenessProbe == nil { - out.LivenessProbe = new(Probe) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.LivenessProbe) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "ports": - if in.IsNull() { - in.Skip() - out.Ports = nil - } else { - in.Delim('[') - if out.Ports == nil { - if !in.IsDelim(']') { - out.Ports = make([]*ContainerPort, 0, 8) - } else { - out.Ports = []*ContainerPort{} - } - } else { - out.Ports = (out.Ports)[:0] - } - for !in.IsDelim(']') { - var v5 *ContainerPort - if in.IsNull() { - in.Skip() - v5 = nil - } else { - if v5 == nil { - v5 = new(ContainerPort) - } - (*v5).UnmarshalEasyJSON(in) - } - out.Ports = append(out.Ports, v5) - in.WantComma() - } - in.Delim(']') - } - case "readinessProbe": - if in.IsNull() { - in.Skip() - out.ReadinessProbe = nil - } else { - if out.ReadinessProbe == nil { - out.ReadinessProbe = new(Probe) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.ReadinessProbe) - } - case "resources": - if in.IsNull() { - in.Skip() - out.Resources = nil - } else { - if out.Resources == nil { - out.Resources = new(ResourceRequirements) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV13(in, out.Resources) - } - case "securityContext": - if in.IsNull() { - in.Skip() - out.SecurityContext = nil - } else { - if out.SecurityContext == nil { - out.SecurityContext = new(SecurityContext) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV14(in, out.SecurityContext) - } - case "startupProbe": - if in.IsNull() { - in.Skip() - out.StartupProbe = nil - } else { - if out.StartupProbe == nil { - out.StartupProbe = new(Probe) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.StartupProbe) - } - case "stdin": - out.Stdin = bool(in.Bool()) - case "stdinOnce": - out.StdinOnce = bool(in.Bool()) - case "targetContainerName": - out.TargetContainerName = string(in.String()) - case "terminationMessagePath": - out.TerminationMessagePath = string(in.String()) - case "terminationMessagePolicy": - out.TerminationMessagePolicy = string(in.String()) - case "tty": - out.Tty = bool(in.Bool()) - case "volumeDevices": - if in.IsNull() { - in.Skip() - out.VolumeDevices = nil - } else { - in.Delim('[') - if out.VolumeDevices == nil { - if !in.IsDelim(']') { - out.VolumeDevices = make([]*VolumeDevice, 0, 8) - } else { - out.VolumeDevices = []*VolumeDevice{} - } - } else { - out.VolumeDevices = (out.VolumeDevices)[:0] - } - for !in.IsDelim(']') { - var v6 *VolumeDevice - if in.IsNull() { - in.Skip() - v6 = nil - } else { - if v6 == nil { - v6 = new(VolumeDevice) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV15(in, v6) - } - out.VolumeDevices = append(out.VolumeDevices, v6) - in.WantComma() - } - in.Delim(']') - } - case "volumeMounts": - if in.IsNull() { - in.Skip() - out.VolumeMounts = nil - } else { - in.Delim('[') - if out.VolumeMounts == nil { - if !in.IsDelim(']') { - out.VolumeMounts = make([]*VolumeMount, 0, 8) - } else { - out.VolumeMounts = []*VolumeMount{} - } - } else { - out.VolumeMounts = (out.VolumeMounts)[:0] - } - for !in.IsDelim(']') { - var v7 *VolumeMount - if in.IsNull() { - in.Skip() - v7 = nil - } else { - if v7 == nil { - v7 = new(VolumeMount) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV16(in, v7) - } - out.VolumeMounts = append(out.VolumeMounts, v7) - in.WantComma() - } - in.Delim(']') - } - case "workingDir": - out.WorkingDir = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in EphemeralContainer) { - out.RawByte('{') - first := true - _ = first - if len(in.Args) != 0 { - const prefix string = ",\"args\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v8, v9 := range in.Args { - if v8 > 0 { - out.RawByte(',') - } - out.String(string(v9)) - } - out.RawByte(']') - } - } - if len(in.Command) != 0 { - const prefix string = ",\"command\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v10, v11 := range in.Command { - if v10 > 0 { - out.RawByte(',') - } - out.String(string(v11)) - } - out.RawByte(']') - } - } - if len(in.Env) != 0 { - const prefix string = ",\"env\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v12, v13 := range in.Env { - if v12 > 0 { - out.RawByte(',') - } - if v13 == nil { - out.RawString("null") - } else { - (*v13).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.EnvFrom) != 0 { - const prefix string = ",\"envFrom\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v14, v15 := range in.EnvFrom { - if v14 > 0 { - out.RawByte(',') - } - if v15 == nil { - out.RawString("null") - } else { - (*v15).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Image != "" { - const prefix string = ",\"image\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Image)) - } - if in.ImagePullPolicy != "" { - const prefix string = ",\"imagePullPolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ImagePullPolicy)) - } - if in.Lifecycle != nil { - const prefix string = ",\"lifecycle\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.Lifecycle) - } - if in.LivenessProbe != nil { - const prefix string = ",\"livenessProbe\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.LivenessProbe) - } - { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - if len(in.Ports) != 0 { - const prefix string = ",\"ports\":" - out.RawString(prefix) - { - out.RawByte('[') - for v16, v17 := range in.Ports { - if v16 > 0 { - out.RawByte(',') - } - if v17 == nil { - out.RawString("null") - } else { - (*v17).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.ReadinessProbe != nil { - const prefix string = ",\"readinessProbe\":" - out.RawString(prefix) - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.ReadinessProbe) - } - if in.Resources != nil { - const prefix string = ",\"resources\":" - out.RawString(prefix) - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *in.Resources) - } - if in.SecurityContext != nil { - const prefix string = ",\"securityContext\":" - out.RawString(prefix) - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *in.SecurityContext) - } - if in.StartupProbe != nil { - const prefix string = ",\"startupProbe\":" - out.RawString(prefix) - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.StartupProbe) - } - if in.Stdin { - const prefix string = ",\"stdin\":" - out.RawString(prefix) - out.Bool(bool(in.Stdin)) - } - if in.StdinOnce { - const prefix string = ",\"stdinOnce\":" - out.RawString(prefix) - out.Bool(bool(in.StdinOnce)) - } - if in.TargetContainerName != "" { - const prefix string = ",\"targetContainerName\":" - out.RawString(prefix) - out.String(string(in.TargetContainerName)) - } - if in.TerminationMessagePath != "" { - const prefix string = ",\"terminationMessagePath\":" - out.RawString(prefix) - out.String(string(in.TerminationMessagePath)) - } - if in.TerminationMessagePolicy != "" { - const prefix string = ",\"terminationMessagePolicy\":" - out.RawString(prefix) - out.String(string(in.TerminationMessagePolicy)) - } - if in.Tty { - const prefix string = ",\"tty\":" - out.RawString(prefix) - out.Bool(bool(in.Tty)) - } - if len(in.VolumeDevices) != 0 { - const prefix string = ",\"volumeDevices\":" - out.RawString(prefix) - { - out.RawByte('[') - for v18, v19 := range in.VolumeDevices { - if v18 > 0 { - out.RawByte(',') - } - if v19 == nil { - out.RawString("null") - } else { - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV15(out, *v19) - } - } - out.RawByte(']') - } - } - if len(in.VolumeMounts) != 0 { - const prefix string = ",\"volumeMounts\":" - out.RawString(prefix) - { - out.RawByte('[') - for v20, v21 := range in.VolumeMounts { - if v20 > 0 { - out.RawByte(',') - } - if v21 == nil { - out.RawString("null") - } else { - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV16(out, *v21) - } - } - out.RawByte(']') - } - } - if in.WorkingDir != "" { - const prefix string = ",\"workingDir\":" - out.RawString(prefix) - out.String(string(in.WorkingDir)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EphemeralContainer) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EphemeralContainer) MarshalEasyJSON(w *jwriter.Writer) { - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EphemeralContainer) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EphemeralContainer) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV16(in *jlexer.Lexer, out *VolumeMount) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "mountPath": - if in.IsNull() { - in.Skip() - out.MountPath = nil - } else { - if out.MountPath == nil { - out.MountPath = new(string) - } - *out.MountPath = string(in.String()) - } - case "mountPropagation": - out.MountPropagation = string(in.String()) - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "subPath": - out.SubPath = string(in.String()) - case "subPathExpr": - out.SubPathExpr = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV16(out *jwriter.Writer, in VolumeMount) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"mountPath\":" - out.RawString(prefix[1:]) - if in.MountPath == nil { - out.RawString("null") - } else { - out.String(string(*in.MountPath)) - } - } - if in.MountPropagation != "" { - const prefix string = ",\"mountPropagation\":" - out.RawString(prefix) - out.String(string(in.MountPropagation)) - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if in.SubPath != "" { - const prefix string = ",\"subPath\":" - out.RawString(prefix) - out.String(string(in.SubPath)) - } - if in.SubPathExpr != "" { - const prefix string = ",\"subPathExpr\":" - out.RawString(prefix) - out.String(string(in.SubPathExpr)) - } - out.RawByte('}') -} -func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV15(in *jlexer.Lexer, out *VolumeDevice) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "devicePath": - if in.IsNull() { - in.Skip() - out.DevicePath = nil - } else { - if out.DevicePath == nil { - out.DevicePath = new(string) - } - *out.DevicePath = string(in.String()) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV15(out *jwriter.Writer, in VolumeDevice) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"devicePath\":" - out.RawString(prefix[1:]) - if in.DevicePath == nil { - out.RawString("null") - } else { - out.String(string(*in.DevicePath)) - } - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - out.RawByte('}') -} -func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Lexer, out *SecurityContext) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "allowPrivilegeEscalation": - out.AllowPrivilegeEscalation = bool(in.Bool()) - case "capabilities": - if in.IsNull() { - in.Skip() - out.Capabilities = nil - } else { - if out.Capabilities == nil { - out.Capabilities = new(Capabilities) - } - (*out.Capabilities).UnmarshalEasyJSON(in) - } - case "privileged": - out.Privileged = bool(in.Bool()) - case "procMount": - out.ProcMount = string(in.String()) - case "readOnlyRootFilesystem": - out.ReadOnlyRootFilesystem = bool(in.Bool()) - case "runAsGroup": - out.RunAsGroup = int64(in.Int64()) - case "runAsNonRoot": - out.RunAsNonRoot = bool(in.Bool()) - case "runAsUser": - out.RunAsUser = int64(in.Int64()) - case "seLinuxOptions": - if in.IsNull() { - in.Skip() - out.SELinuxOptions = nil - } else { - if out.SELinuxOptions == nil { - out.SELinuxOptions = new(SELinuxOptions) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV17(in, out.SELinuxOptions) - } - case "seccompProfile": - if in.IsNull() { - in.Skip() - out.SeccompProfile = nil - } else { - if out.SeccompProfile == nil { - out.SeccompProfile = new(SeccompProfile) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV18(in, out.SeccompProfile) - } - case "windowsOptions": - if in.IsNull() { - in.Skip() - out.WindowsOptions = nil - } else { - if out.WindowsOptions == nil { - out.WindowsOptions = new(WindowsSecurityContextOptions) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV19(in, out.WindowsOptions) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter.Writer, in SecurityContext) { - out.RawByte('{') - first := true - _ = first - if in.AllowPrivilegeEscalation { - const prefix string = ",\"allowPrivilegeEscalation\":" - first = false - out.RawString(prefix[1:]) - out.Bool(bool(in.AllowPrivilegeEscalation)) - } - if in.Capabilities != nil { - const prefix string = ",\"capabilities\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Capabilities).MarshalEasyJSON(out) - } - if in.Privileged { - const prefix string = ",\"privileged\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Privileged)) - } - if in.ProcMount != "" { - const prefix string = ",\"procMount\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ProcMount)) - } - if in.ReadOnlyRootFilesystem { - const prefix string = ",\"readOnlyRootFilesystem\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnlyRootFilesystem)) - } - if in.RunAsGroup != 0 { - const prefix string = ",\"runAsGroup\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.RunAsGroup)) - } - if in.RunAsNonRoot { - const prefix string = ",\"runAsNonRoot\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.RunAsNonRoot)) - } - if in.RunAsUser != 0 { - const prefix string = ",\"runAsUser\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.RunAsUser)) - } - if in.SELinuxOptions != nil { - const prefix string = ",\"seLinuxOptions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV17(out, *in.SELinuxOptions) - } - if in.SeccompProfile != nil { - const prefix string = ",\"seccompProfile\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV18(out, *in.SeccompProfile) - } - if in.WindowsOptions != nil { - const prefix string = ",\"windowsOptions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV19(out, *in.WindowsOptions) - } - out.RawByte('}') -} -func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV19(in *jlexer.Lexer, out *WindowsSecurityContextOptions) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "gmsaCredentialSpec": - out.GmsaCredentialSpec = string(in.String()) - case "gmsaCredentialSpecName": - out.GmsaCredentialSpecName = string(in.String()) - case "hostProcess": - out.HostProcess = bool(in.Bool()) - case "runAsUserName": - out.RunAsUserName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV19(out *jwriter.Writer, in WindowsSecurityContextOptions) { - out.RawByte('{') - first := true - _ = first - if in.GmsaCredentialSpec != "" { - const prefix string = ",\"gmsaCredentialSpec\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.GmsaCredentialSpec)) - } - if in.GmsaCredentialSpecName != "" { - const prefix string = ",\"gmsaCredentialSpecName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.GmsaCredentialSpecName)) - } - if in.HostProcess { - const prefix string = ",\"hostProcess\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.HostProcess)) - } - if in.RunAsUserName != "" { - const prefix string = ",\"runAsUserName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.RunAsUserName)) - } - out.RawByte('}') -} -func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV18(in *jlexer.Lexer, out *SeccompProfile) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "localhostProfile": - out.LocalhostProfile = string(in.String()) - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV18(out *jwriter.Writer, in SeccompProfile) { - out.RawByte('{') - first := true - _ = first - if in.LocalhostProfile != "" { - const prefix string = ",\"localhostProfile\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.LocalhostProfile)) - } - { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} -func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV17(in *jlexer.Lexer, out *SELinuxOptions) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "level": - out.Level = string(in.String()) - case "role": - out.Role = string(in.String()) - case "type": - out.Type = string(in.String()) - case "user": - out.User = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV17(out *jwriter.Writer, in SELinuxOptions) { - out.RawByte('{') - first := true - _ = first - if in.Level != "" { - const prefix string = ",\"level\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Level)) - } - if in.Role != "" { - const prefix string = ",\"role\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Role)) - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - if in.User != "" { - const prefix string = ",\"user\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.User)) - } - out.RawByte('}') -} -func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *ResourceRequirements) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "limits": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Limits = make(map[string]*resource.Quantity) - } else { - out.Limits = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v22 *resource.Quantity - if in.IsNull() { - in.Skip() - v22 = nil - } else { - if v22 == nil { - v22 = new(resource.Quantity) - } - *v22 = resource.Quantity(in.String()) - } - (out.Limits)[key] = v22 - in.WantComma() - } - in.Delim('}') - } - case "requests": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Requests = make(map[string]*resource.Quantity) - } else { - out.Requests = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v23 *resource.Quantity - if in.IsNull() { - in.Skip() - v23 = nil - } else { - if v23 == nil { - v23 = new(resource.Quantity) - } - *v23 = resource.Quantity(in.String()) - } - (out.Requests)[key] = v23 - in.WantComma() - } - in.Delim('}') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in ResourceRequirements) { - out.RawByte('{') - first := true - _ = first - if len(in.Limits) != 0 { - const prefix string = ",\"limits\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('{') - v24First := true - for v24Name, v24Value := range in.Limits { - if v24First { - v24First = false - } else { - out.RawByte(',') - } - out.String(string(v24Name)) - out.RawByte(':') - if v24Value == nil { - out.RawString("null") - } else { - out.String(string(*v24Value)) - } - } - out.RawByte('}') - } - } - if len(in.Requests) != 0 { - const prefix string = ",\"requests\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v25First := true - for v25Name, v25Value := range in.Requests { - if v25First { - v25First = false - } else { - out.RawByte(',') - } - out.String(string(v25Name)) - out.RawByte(':') - if v25Value == nil { - out.RawString("null") - } else { - out.String(string(*v25Value)) - } - } - out.RawByte('}') - } - } - out.RawByte('}') -} -func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *Probe) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "exec": - if in.IsNull() { - in.Skip() - out.Exec = nil - } else { - if out.Exec == nil { - out.Exec = new(ExecAction) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV110(in, out.Exec) - } - case "failureThreshold": - out.FailureThreshold = int32(in.Int32()) - case "grpc": - if in.IsNull() { - in.Skip() - out.GRPC = nil - } else { - if out.GRPC == nil { - out.GRPC = new(GRPCAction) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV111(in, out.GRPC) - } - case "httpGet": - if in.IsNull() { - in.Skip() - out.HTTPGet = nil - } else { - if out.HTTPGet == nil { - out.HTTPGet = new(HTTPGetAction) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV112(in, out.HTTPGet) - } - case "initialDelaySeconds": - out.InitialDelaySeconds = int32(in.Int32()) - case "periodSeconds": - out.PeriodSeconds = int32(in.Int32()) - case "successThreshold": - out.SuccessThreshold = int32(in.Int32()) - case "tcpSocket": - if in.IsNull() { - in.Skip() - out.TCPSocket = nil - } else { - if out.TCPSocket == nil { - out.TCPSocket = new(TCPSocketAction) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV113(in, out.TCPSocket) - } - case "terminationGracePeriodSeconds": - out.TerminationGracePeriodSeconds = int64(in.Int64()) - case "timeoutSeconds": - out.TimeoutSeconds = int32(in.Int32()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in Probe) { - out.RawByte('{') - first := true - _ = first - if in.Exec != nil { - const prefix string = ",\"exec\":" - first = false - out.RawString(prefix[1:]) - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV110(out, *in.Exec) - } - if in.FailureThreshold != 0 { - const prefix string = ",\"failureThreshold\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.FailureThreshold)) - } - if in.GRPC != nil { - const prefix string = ",\"grpc\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV111(out, *in.GRPC) - } - if in.HTTPGet != nil { - const prefix string = ",\"httpGet\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV112(out, *in.HTTPGet) - } - if in.InitialDelaySeconds != 0 { - const prefix string = ",\"initialDelaySeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.InitialDelaySeconds)) - } - if in.PeriodSeconds != 0 { - const prefix string = ",\"periodSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.PeriodSeconds)) - } - if in.SuccessThreshold != 0 { - const prefix string = ",\"successThreshold\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.SuccessThreshold)) - } - if in.TCPSocket != nil { - const prefix string = ",\"tcpSocket\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV113(out, *in.TCPSocket) - } - if in.TerminationGracePeriodSeconds != 0 { - const prefix string = ",\"terminationGracePeriodSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.TerminationGracePeriodSeconds)) - } - if in.TimeoutSeconds != 0 { - const prefix string = ",\"timeoutSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.TimeoutSeconds)) - } - out.RawByte('}') -} -func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV113(in *jlexer.Lexer, out *TCPSocketAction) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "host": - out.Host = string(in.String()) - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(intstr.IntOrString) - } - *out.Port = intstr.IntOrString(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV113(out *jwriter.Writer, in TCPSocketAction) { - out.RawByte('{') - first := true - _ = first - if in.Host != "" { - const prefix string = ",\"host\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Host)) - } - { - const prefix string = ",\"port\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Port == nil { - out.RawString("null") - } else { - out.String(string(*in.Port)) - } - } - out.RawByte('}') -} -func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV112(in *jlexer.Lexer, out *HTTPGetAction) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "host": - out.Host = string(in.String()) - case "httpHeaders": - if in.IsNull() { - in.Skip() - out.HTTPHeaders = nil - } else { - in.Delim('[') - if out.HTTPHeaders == nil { - if !in.IsDelim(']') { - out.HTTPHeaders = make([]*HTTPHeader, 0, 8) - } else { - out.HTTPHeaders = []*HTTPHeader{} - } - } else { - out.HTTPHeaders = (out.HTTPHeaders)[:0] - } - for !in.IsDelim(']') { - var v26 *HTTPHeader - if in.IsNull() { - in.Skip() - v26 = nil - } else { - if v26 == nil { - v26 = new(HTTPHeader) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV114(in, v26) - } - out.HTTPHeaders = append(out.HTTPHeaders, v26) - in.WantComma() - } - in.Delim(']') - } - case "path": - out.Path = string(in.String()) - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(intstr.IntOrString) - } - *out.Port = intstr.IntOrString(in.String()) - } - case "scheme": - out.Scheme = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV112(out *jwriter.Writer, in HTTPGetAction) { - out.RawByte('{') - first := true - _ = first - if in.Host != "" { - const prefix string = ",\"host\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Host)) - } - if len(in.HTTPHeaders) != 0 { - const prefix string = ",\"httpHeaders\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v27, v28 := range in.HTTPHeaders { - if v27 > 0 { - out.RawByte(',') - } - if v28 == nil { - out.RawString("null") - } else { - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV114(out, *v28) - } - } - out.RawByte(']') - } - } - if in.Path != "" { - const prefix string = ",\"path\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Path)) - } - { - const prefix string = ",\"port\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Port == nil { - out.RawString("null") - } else { - out.String(string(*in.Port)) - } - } - if in.Scheme != "" { - const prefix string = ",\"scheme\":" - out.RawString(prefix) - out.String(string(in.Scheme)) - } - out.RawByte('}') -} -func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV114(in *jlexer.Lexer, out *HTTPHeader) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "value": - if in.IsNull() { - in.Skip() - out.Value = nil - } else { - if out.Value == nil { - out.Value = new(string) - } - *out.Value = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV114(out *jwriter.Writer, in HTTPHeader) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"name\":" - out.RawString(prefix[1:]) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - { - const prefix string = ",\"value\":" - out.RawString(prefix) - if in.Value == nil { - out.RawString("null") - } else { - out.String(string(*in.Value)) - } - } - out.RawByte('}') -} -func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV111(in *jlexer.Lexer, out *GRPCAction) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(int32) - } - *out.Port = int32(in.Int32()) - } - case "service": - out.Service = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter.Writer, in GRPCAction) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"port\":" - out.RawString(prefix[1:]) - if in.Port == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Port)) - } - } - if in.Service != "" { - const prefix string = ",\"service\":" - out.RawString(prefix) - out.String(string(in.Service)) - } - out.RawByte('}') -} -func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV110(in *jlexer.Lexer, out *ExecAction) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "command": - if in.IsNull() { - in.Skip() - out.Command = nil - } else { - in.Delim('[') - if out.Command == nil { - if !in.IsDelim(']') { - out.Command = make([]string, 0, 4) - } else { - out.Command = []string{} - } - } else { - out.Command = (out.Command)[:0] - } - for !in.IsDelim(']') { - var v29 string - v29 = string(in.String()) - out.Command = append(out.Command, v29) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV110(out *jwriter.Writer, in ExecAction) { - out.RawByte('{') - first := true - _ = first - if len(in.Command) != 0 { - const prefix string = ",\"command\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v30, v31 := range in.Command { - if v30 > 0 { - out.RawByte(',') - } - out.String(string(v31)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *Lifecycle) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "postStart": - if in.IsNull() { - in.Skip() - out.PostStart = nil - } else { - if out.PostStart == nil { - out.PostStart = new(LifecycleHandler) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV115(in, out.PostStart) - } - case "preStop": - if in.IsNull() { - in.Skip() - out.PreStop = nil - } else { - if out.PreStop == nil { - out.PreStop = new(LifecycleHandler) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV115(in, out.PreStop) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in Lifecycle) { - out.RawByte('{') - first := true - _ = first - if in.PostStart != nil { - const prefix string = ",\"postStart\":" - first = false - out.RawString(prefix[1:]) - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV115(out, *in.PostStart) - } - if in.PreStop != nil { - const prefix string = ",\"preStop\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV115(out, *in.PreStop) - } - out.RawByte('}') -} -func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV115(in *jlexer.Lexer, out *LifecycleHandler) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "exec": - if in.IsNull() { - in.Skip() - out.Exec = nil - } else { - if out.Exec == nil { - out.Exec = new(ExecAction) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV110(in, out.Exec) - } - case "httpGet": - if in.IsNull() { - in.Skip() - out.HTTPGet = nil - } else { - if out.HTTPGet == nil { - out.HTTPGet = new(HTTPGetAction) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV112(in, out.HTTPGet) - } - case "tcpSocket": - if in.IsNull() { - in.Skip() - out.TCPSocket = nil - } else { - if out.TCPSocket == nil { - out.TCPSocket = new(TCPSocketAction) - } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV113(in, out.TCPSocket) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV115(out *jwriter.Writer, in LifecycleHandler) { - out.RawByte('{') - first := true - _ = first - if in.Exec != nil { - const prefix string = ",\"exec\":" - first = false - out.RawString(prefix[1:]) - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV110(out, *in.Exec) - } - if in.HTTPGet != nil { - const prefix string = ",\"httpGet\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV112(out, *in.HTTPGet) - } - if in.TCPSocket != nil { - const prefix string = ",\"tcpSocket\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV113(out, *in.TCPSocket) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ephemeral_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ephemeral_volume_source_easyjson.go deleted file mode 100644 index 8250e99..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ephemeral_volume_source_easyjson.go +++ /dev/null @@ -1,589 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson7b20a2cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *EphemeralVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "volumeClaimTemplate": - if in.IsNull() { - in.Skip() - out.VolumeClaimTemplate = nil - } else { - if out.VolumeClaimTemplate == nil { - out.VolumeClaimTemplate = new(PersistentVolumeClaimTemplate) - } - easyjson7b20a2cDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.VolumeClaimTemplate) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7b20a2cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in EphemeralVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.VolumeClaimTemplate != nil { - const prefix string = ",\"volumeClaimTemplate\":" - first = false - out.RawString(prefix[1:]) - easyjson7b20a2cEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.VolumeClaimTemplate) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EphemeralVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson7b20a2cEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EphemeralVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson7b20a2cEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EphemeralVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson7b20a2cDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EphemeralVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson7b20a2cDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson7b20a2cDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *PersistentVolumeClaimTemplate) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(PersistentVolumeClaimSpec) - } - easyjson7b20a2cDecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.Spec) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7b20a2cEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in PersistentVolumeClaimTemplate) { - out.RawByte('{') - first := true - _ = first - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - first = false - out.RawString(prefix[1:]) - (*in.Metadata).MarshalEasyJSON(out) - } - { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Spec == nil { - out.RawString("null") - } else { - easyjson7b20a2cEncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.Spec) - } - } - out.RawByte('}') -} -func easyjson7b20a2cDecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *PersistentVolumeClaimSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "accessModes": - if in.IsNull() { - in.Skip() - out.AccessModes = nil - } else { - in.Delim('[') - if out.AccessModes == nil { - if !in.IsDelim(']') { - out.AccessModes = make([]string, 0, 4) - } else { - out.AccessModes = []string{} - } - } else { - out.AccessModes = (out.AccessModes)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.AccessModes = append(out.AccessModes, v1) - in.WantComma() - } - in.Delim(']') - } - case "dataSource": - if in.IsNull() { - in.Skip() - out.DataSource = nil - } else { - if out.DataSource == nil { - out.DataSource = new(TypedLocalObjectReference) - } - easyjson7b20a2cDecodeGithubComKubewardenK8sObjectsApiCoreV13(in, out.DataSource) - } - case "dataSourceRef": - if in.IsNull() { - in.Skip() - out.DataSourceRef = nil - } else { - if out.DataSourceRef == nil { - out.DataSourceRef = new(TypedLocalObjectReference) - } - easyjson7b20a2cDecodeGithubComKubewardenK8sObjectsApiCoreV13(in, out.DataSourceRef) - } - case "resources": - if in.IsNull() { - in.Skip() - out.Resources = nil - } else { - if out.Resources == nil { - out.Resources = new(ResourceRequirements) - } - easyjson7b20a2cDecodeGithubComKubewardenK8sObjectsApiCoreV14(in, out.Resources) - } - case "selector": - if in.IsNull() { - in.Skip() - out.Selector = nil - } else { - if out.Selector == nil { - out.Selector = new(_v1.LabelSelector) - } - (*out.Selector).UnmarshalEasyJSON(in) - } - case "storageClassName": - out.StorageClassName = string(in.String()) - case "volumeMode": - out.VolumeMode = string(in.String()) - case "volumeName": - out.VolumeName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7b20a2cEncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in PersistentVolumeClaimSpec) { - out.RawByte('{') - first := true - _ = first - if len(in.AccessModes) != 0 { - const prefix string = ",\"accessModes\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.AccessModes { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - if in.DataSource != nil { - const prefix string = ",\"dataSource\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson7b20a2cEncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *in.DataSource) - } - if in.DataSourceRef != nil { - const prefix string = ",\"dataSourceRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson7b20a2cEncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *in.DataSourceRef) - } - if in.Resources != nil { - const prefix string = ",\"resources\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson7b20a2cEncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *in.Resources) - } - if in.Selector != nil { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Selector).MarshalEasyJSON(out) - } - if in.StorageClassName != "" { - const prefix string = ",\"storageClassName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StorageClassName)) - } - if in.VolumeMode != "" { - const prefix string = ",\"volumeMode\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeMode)) - } - if in.VolumeName != "" { - const prefix string = ",\"volumeName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeName)) - } - out.RawByte('}') -} -func easyjson7b20a2cDecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Lexer, out *ResourceRequirements) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "limits": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Limits = make(map[string]*resource.Quantity) - } else { - out.Limits = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v4 *resource.Quantity - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(resource.Quantity) - } - *v4 = resource.Quantity(in.String()) - } - (out.Limits)[key] = v4 - in.WantComma() - } - in.Delim('}') - } - case "requests": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Requests = make(map[string]*resource.Quantity) - } else { - out.Requests = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v5 *resource.Quantity - if in.IsNull() { - in.Skip() - v5 = nil - } else { - if v5 == nil { - v5 = new(resource.Quantity) - } - *v5 = resource.Quantity(in.String()) - } - (out.Requests)[key] = v5 - in.WantComma() - } - in.Delim('}') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7b20a2cEncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter.Writer, in ResourceRequirements) { - out.RawByte('{') - first := true - _ = first - if len(in.Limits) != 0 { - const prefix string = ",\"limits\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('{') - v6First := true - for v6Name, v6Value := range in.Limits { - if v6First { - v6First = false - } else { - out.RawByte(',') - } - out.String(string(v6Name)) - out.RawByte(':') - if v6Value == nil { - out.RawString("null") - } else { - out.String(string(*v6Value)) - } - } - out.RawByte('}') - } - } - if len(in.Requests) != 0 { - const prefix string = ",\"requests\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v7First := true - for v7Name, v7Value := range in.Requests { - if v7First { - v7First = false - } else { - out.RawByte(',') - } - out.String(string(v7Name)) - out.RawByte(':') - if v7Value == nil { - out.RawString("null") - } else { - out.String(string(*v7Value)) - } - } - out.RawByte('}') - } - } - out.RawByte('}') -} -func easyjson7b20a2cDecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *TypedLocalObjectReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiGroup": - out.APIGroup = string(in.String()) - case "kind": - if in.IsNull() { - in.Skip() - out.Kind = nil - } else { - if out.Kind == nil { - out.Kind = new(string) - } - *out.Kind = string(in.String()) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7b20a2cEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in TypedLocalObjectReference) { - out.RawByte('{') - first := true - _ = first - if in.APIGroup != "" { - const prefix string = ",\"apiGroup\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIGroup)) - } - { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Kind == nil { - out.RawString("null") - } else { - out.String(string(*in.Kind)) - } - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_easyjson.go deleted file mode 100644 index fc46d91..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_easyjson.go +++ /dev/null @@ -1,537 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonF642ad3eDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Event) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "action": - out.Action = string(in.String()) - case "apiVersion": - out.APIVersion = string(in.String()) - case "count": - out.Count = int32(in.Int32()) - case "eventTime": - if in.IsNull() { - in.Skip() - out.EventTime = nil - } else { - if out.EventTime == nil { - out.EventTime = new(_v1.MicroTime) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.EventTime).UnmarshalJSON(data)) - } - } - case "firstTimestamp": - if in.IsNull() { - in.Skip() - out.FirstTimestamp = nil - } else { - if out.FirstTimestamp == nil { - out.FirstTimestamp = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.FirstTimestamp).UnmarshalJSON(data)) - } - } - case "involvedObject": - if in.IsNull() { - in.Skip() - out.InvolvedObject = nil - } else { - if out.InvolvedObject == nil { - out.InvolvedObject = new(ObjectReference) - } - easyjsonF642ad3eDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.InvolvedObject) - } - case "kind": - out.Kind = string(in.String()) - case "lastTimestamp": - if in.IsNull() { - in.Skip() - out.LastTimestamp = nil - } else { - if out.LastTimestamp == nil { - out.LastTimestamp = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTimestamp).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "reason": - out.Reason = string(in.String()) - case "related": - if in.IsNull() { - in.Skip() - out.Related = nil - } else { - if out.Related == nil { - out.Related = new(ObjectReference) - } - easyjsonF642ad3eDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.Related) - } - case "reportingComponent": - out.ReportingComponent = string(in.String()) - case "reportingInstance": - out.ReportingInstance = string(in.String()) - case "series": - if in.IsNull() { - in.Skip() - out.Series = nil - } else { - if out.Series == nil { - out.Series = new(EventSeries) - } - easyjsonF642ad3eDecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.Series) - } - case "source": - if in.IsNull() { - in.Skip() - out.Source = nil - } else { - if out.Source == nil { - out.Source = new(EventSource) - } - easyjsonF642ad3eDecodeGithubComKubewardenK8sObjectsApiCoreV13(in, out.Source) - } - case "type": - out.Type = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF642ad3eEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Event) { - out.RawByte('{') - first := true - _ = first - if in.Action != "" { - const prefix string = ",\"action\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Action)) - } - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.APIVersion)) - } - if in.Count != 0 { - const prefix string = ",\"count\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Count)) - } - if in.EventTime != nil { - const prefix string = ",\"eventTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.EventTime).MarshalJSON()) - } - if in.FirstTimestamp != nil { - const prefix string = ",\"firstTimestamp\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.FirstTimestamp).MarshalJSON()) - } - { - const prefix string = ",\"involvedObject\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.InvolvedObject == nil { - out.RawString("null") - } else { - easyjsonF642ad3eEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.InvolvedObject) - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.LastTimestamp != nil { - const prefix string = ",\"lastTimestamp\":" - out.RawString(prefix) - out.Raw((*in.LastTimestamp).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - out.RawString(prefix) - out.String(string(in.Message)) - } - { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - if in.Metadata == nil { - out.RawString("null") - } else { - (*in.Metadata).MarshalEasyJSON(out) - } - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - out.RawString(prefix) - out.String(string(in.Reason)) - } - if in.Related != nil { - const prefix string = ",\"related\":" - out.RawString(prefix) - easyjsonF642ad3eEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.Related) - } - if in.ReportingComponent != "" { - const prefix string = ",\"reportingComponent\":" - out.RawString(prefix) - out.String(string(in.ReportingComponent)) - } - if in.ReportingInstance != "" { - const prefix string = ",\"reportingInstance\":" - out.RawString(prefix) - out.String(string(in.ReportingInstance)) - } - if in.Series != nil { - const prefix string = ",\"series\":" - out.RawString(prefix) - easyjsonF642ad3eEncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.Series) - } - if in.Source != nil { - const prefix string = ",\"source\":" - out.RawString(prefix) - easyjsonF642ad3eEncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *in.Source) - } - if in.Type != "" { - const prefix string = ",\"type\":" - out.RawString(prefix) - out.String(string(in.Type)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Event) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonF642ad3eEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Event) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonF642ad3eEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Event) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonF642ad3eDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Event) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonF642ad3eDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonF642ad3eDecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *EventSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "component": - out.Component = string(in.String()) - case "host": - out.Host = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF642ad3eEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in EventSource) { - out.RawByte('{') - first := true - _ = first - if in.Component != "" { - const prefix string = ",\"component\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Component)) - } - if in.Host != "" { - const prefix string = ",\"host\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Host)) - } - out.RawByte('}') -} -func easyjsonF642ad3eDecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *EventSeries) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "count": - out.Count = int32(in.Int32()) - case "lastObservedTime": - if in.IsNull() { - in.Skip() - out.LastObservedTime = nil - } else { - if out.LastObservedTime == nil { - out.LastObservedTime = new(_v1.MicroTime) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastObservedTime).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF642ad3eEncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in EventSeries) { - out.RawByte('{') - first := true - _ = first - if in.Count != 0 { - const prefix string = ",\"count\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.Count)) - } - if in.LastObservedTime != nil { - const prefix string = ",\"lastObservedTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.LastObservedTime).MarshalJSON()) - } - out.RawByte('}') -} -func easyjsonF642ad3eDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *ObjectReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "fieldPath": - out.FieldPath = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "name": - out.Name = string(in.String()) - case "namespace": - out.Namespace = string(in.String()) - case "resourceVersion": - out.ResourceVersion = string(in.String()) - case "uid": - out.UID = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF642ad3eEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in ObjectReference) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.FieldPath != "" { - const prefix string = ",\"fieldPath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.FieldPath)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Name != "" { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Name)) - } - if in.Namespace != "" { - const prefix string = ",\"namespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Namespace)) - } - if in.ResourceVersion != "" { - const prefix string = ",\"resourceVersion\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ResourceVersion)) - } - if in.UID != "" { - const prefix string = ",\"uid\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.UID)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_list_easyjson.go deleted file mode 100644 index cae07b5..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonD5e37b73DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *EventList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*Event, 0, 8) - } else { - out.Items = []*Event{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *Event - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(Event) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonD5e37b73EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in EventList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonD5e37b73EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventList) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonD5e37b73EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonD5e37b73DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonD5e37b73DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_series_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_series_easyjson.go deleted file mode 100644 index 7409bf4..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_series_easyjson.go +++ /dev/null @@ -1,109 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson15425908DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *EventSeries) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "count": - out.Count = int32(in.Int32()) - case "lastObservedTime": - if in.IsNull() { - in.Skip() - out.LastObservedTime = nil - } else { - if out.LastObservedTime == nil { - out.LastObservedTime = new(_v1.MicroTime) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastObservedTime).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson15425908EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in EventSeries) { - out.RawByte('{') - first := true - _ = first - if in.Count != 0 { - const prefix string = ",\"count\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.Count)) - } - if in.LastObservedTime != nil { - const prefix string = ",\"lastObservedTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.LastObservedTime).MarshalJSON()) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventSeries) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson15425908EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventSeries) MarshalEasyJSON(w *jwriter.Writer) { - easyjson15425908EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventSeries) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson15425908DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventSeries) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson15425908DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_source_easyjson.go deleted file mode 100644 index cc099a0..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_source_easyjson.go +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson4496a294DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *EventSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "component": - out.Component = string(in.String()) - case "host": - out.Host = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson4496a294EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in EventSource) { - out.RawByte('{') - first := true - _ = first - if in.Component != "" { - const prefix string = ",\"component\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Component)) - } - if in.Host != "" { - const prefix string = ",\"host\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Host)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v EventSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson4496a294EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v EventSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson4496a294EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *EventSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson4496a294DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *EventSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson4496a294DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/exec_action_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/exec_action_easyjson.go deleted file mode 100644 index 404f521..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/exec_action_easyjson.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonEe8a932eDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ExecAction) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "command": - if in.IsNull() { - in.Skip() - out.Command = nil - } else { - in.Delim('[') - if out.Command == nil { - if !in.IsDelim(']') { - out.Command = make([]string, 0, 4) - } else { - out.Command = []string{} - } - } else { - out.Command = (out.Command)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Command = append(out.Command, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonEe8a932eEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ExecAction) { - out.RawByte('{') - first := true - _ = first - if len(in.Command) != 0 { - const prefix string = ",\"command\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.Command { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ExecAction) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonEe8a932eEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ExecAction) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonEe8a932eEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ExecAction) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonEe8a932eDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ExecAction) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonEe8a932eDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/fc_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/fc_volume_source_easyjson.go deleted file mode 100644 index 26bda70..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/fc_volume_source_easyjson.go +++ /dev/null @@ -1,194 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson31c58ca6DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *FCVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "lun": - out.Lun = int32(in.Int32()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "targetWWNs": - if in.IsNull() { - in.Skip() - out.TargetWWNs = nil - } else { - in.Delim('[') - if out.TargetWWNs == nil { - if !in.IsDelim(']') { - out.TargetWWNs = make([]string, 0, 4) - } else { - out.TargetWWNs = []string{} - } - } else { - out.TargetWWNs = (out.TargetWWNs)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.TargetWWNs = append(out.TargetWWNs, v1) - in.WantComma() - } - in.Delim(']') - } - case "wwids": - if in.IsNull() { - in.Skip() - out.Wwids = nil - } else { - in.Delim('[') - if out.Wwids == nil { - if !in.IsDelim(']') { - out.Wwids = make([]string, 0, 4) - } else { - out.Wwids = []string{} - } - } else { - out.Wwids = (out.Wwids)[:0] - } - for !in.IsDelim(']') { - var v2 string - v2 = string(in.String()) - out.Wwids = append(out.Wwids, v2) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson31c58ca6EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in FCVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.Lun != 0 { - const prefix string = ",\"lun\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Lun)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - if len(in.TargetWWNs) != 0 { - const prefix string = ",\"targetWWNs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v3, v4 := range in.TargetWWNs { - if v3 > 0 { - out.RawByte(',') - } - out.String(string(v4)) - } - out.RawByte(']') - } - } - if len(in.Wwids) != 0 { - const prefix string = ",\"wwids\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v5, v6 := range in.Wwids { - if v5 > 0 { - out.RawByte(',') - } - out.String(string(v6)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v FCVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson31c58ca6EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v FCVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson31c58ca6EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *FCVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson31c58ca6DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *FCVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson31c58ca6DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flex_persistent_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flex_persistent_volume_source_easyjson.go deleted file mode 100644 index ef1729a..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flex_persistent_volume_source_easyjson.go +++ /dev/null @@ -1,220 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson2ffb899eDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *FlexPersistentVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "driver": - if in.IsNull() { - in.Skip() - out.Driver = nil - } else { - if out.Driver == nil { - out.Driver = new(string) - } - *out.Driver = string(in.String()) - } - case "fsType": - out.FSType = string(in.String()) - case "options": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Options = make(map[string]string) - } else { - out.Options = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v1 string - v1 = string(in.String()) - (out.Options)[key] = v1 - in.WantComma() - } - in.Delim('}') - } - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(SecretReference) - } - easyjson2ffb899eDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2ffb899eEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in FlexPersistentVolumeSource) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"driver\":" - out.RawString(prefix[1:]) - if in.Driver == nil { - out.RawString("null") - } else { - out.String(string(*in.Driver)) - } - } - if in.FSType != "" { - const prefix string = ",\"fsType\":" - out.RawString(prefix) - out.String(string(in.FSType)) - } - if len(in.Options) != 0 { - const prefix string = ",\"options\":" - out.RawString(prefix) - { - out.RawByte('{') - v2First := true - for v2Name, v2Value := range in.Options { - if v2First { - v2First = false - } else { - out.RawByte(',') - } - out.String(string(v2Name)) - out.RawByte(':') - out.String(string(v2Value)) - } - out.RawByte('}') - } - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - easyjson2ffb899eEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v FlexPersistentVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson2ffb899eEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v FlexPersistentVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson2ffb899eEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *FlexPersistentVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson2ffb899eDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *FlexPersistentVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson2ffb899eDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson2ffb899eDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "namespace": - out.Namespace = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2ffb899eEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Namespace != "" { - const prefix string = ",\"namespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Namespace)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flex_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flex_volume_source_easyjson.go deleted file mode 100644 index 78ffe68..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flex_volume_source_easyjson.go +++ /dev/null @@ -1,208 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson82d633f6DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *FlexVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "driver": - if in.IsNull() { - in.Skip() - out.Driver = nil - } else { - if out.Driver == nil { - out.Driver = new(string) - } - *out.Driver = string(in.String()) - } - case "fsType": - out.FSType = string(in.String()) - case "options": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Options = make(map[string]string) - } else { - out.Options = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v1 string - v1 = string(in.String()) - (out.Options)[key] = v1 - in.WantComma() - } - in.Delim('}') - } - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(LocalObjectReference) - } - easyjson82d633f6DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson82d633f6EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in FlexVolumeSource) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"driver\":" - out.RawString(prefix[1:]) - if in.Driver == nil { - out.RawString("null") - } else { - out.String(string(*in.Driver)) - } - } - if in.FSType != "" { - const prefix string = ",\"fsType\":" - out.RawString(prefix) - out.String(string(in.FSType)) - } - if len(in.Options) != 0 { - const prefix string = ",\"options\":" - out.RawString(prefix) - { - out.RawByte('{') - v2First := true - for v2Name, v2Value := range in.Options { - if v2First { - v2First = false - } else { - out.RawByte(',') - } - out.String(string(v2Name)) - out.RawByte(':') - out.String(string(v2Value)) - } - out.RawByte('}') - } - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - easyjson82d633f6EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v FlexVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson82d633f6EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v FlexVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson82d633f6EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *FlexVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson82d633f6DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *FlexVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson82d633f6DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson82d633f6DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *LocalObjectReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson82d633f6EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in LocalObjectReference) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flocker_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flocker_volume_source_easyjson.go deleted file mode 100644 index d719b4f..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flocker_volume_source_easyjson.go +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson4342d77fDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *FlockerVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "datasetName": - out.DatasetName = string(in.String()) - case "datasetUUID": - out.DatasetUUID = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson4342d77fEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in FlockerVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.DatasetName != "" { - const prefix string = ",\"datasetName\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.DatasetName)) - } - if in.DatasetUUID != "" { - const prefix string = ",\"datasetUUID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.DatasetUUID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v FlockerVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson4342d77fEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v FlockerVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson4342d77fEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *FlockerVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson4342d77fDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *FlockerVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson4342d77fDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/gce_persistent_disk_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/gce_persistent_disk_volume_source_easyjson.go deleted file mode 100644 index 146920b..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/gce_persistent_disk_volume_source_easyjson.go +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson2cae620eDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *GCEPersistentDiskVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "partition": - out.Partition = int32(in.Int32()) - case "pdName": - if in.IsNull() { - in.Skip() - out.PdName = nil - } else { - if out.PdName == nil { - out.PdName = new(string) - } - *out.PdName = string(in.String()) - } - case "readOnly": - out.ReadOnly = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2cae620eEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in GCEPersistentDiskVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.Partition != 0 { - const prefix string = ",\"partition\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Partition)) - } - { - const prefix string = ",\"pdName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.PdName == nil { - out.RawString("null") - } else { - out.String(string(*in.PdName)) - } - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GCEPersistentDiskVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson2cae620eEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GCEPersistentDiskVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson2cae620eEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GCEPersistentDiskVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson2cae620eDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GCEPersistentDiskVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson2cae620eDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/git_repo_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/git_repo_volume_source_easyjson.go deleted file mode 100644 index a152a07..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/git_repo_volume_source_easyjson.go +++ /dev/null @@ -1,117 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson62dce9f0DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *GitRepoVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "directory": - out.Directory = string(in.String()) - case "repository": - if in.IsNull() { - in.Skip() - out.Repository = nil - } else { - if out.Repository == nil { - out.Repository = new(string) - } - *out.Repository = string(in.String()) - } - case "revision": - out.Revision = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson62dce9f0EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in GitRepoVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.Directory != "" { - const prefix string = ",\"directory\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Directory)) - } - { - const prefix string = ",\"repository\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Repository == nil { - out.RawString("null") - } else { - out.String(string(*in.Repository)) - } - } - if in.Revision != "" { - const prefix string = ",\"revision\":" - out.RawString(prefix) - out.String(string(in.Revision)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GitRepoVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson62dce9f0EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GitRepoVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson62dce9f0EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GitRepoVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson62dce9f0DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GitRepoVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson62dce9f0DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/glusterfs_persistent_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/glusterfs_persistent_volume_source_easyjson.go deleted file mode 100644 index 016a35a..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/glusterfs_persistent_volume_source_easyjson.go +++ /dev/null @@ -1,130 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson57130c2aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *GlusterfsPersistentVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "endpoints": - if in.IsNull() { - in.Skip() - out.Endpoints = nil - } else { - if out.Endpoints == nil { - out.Endpoints = new(string) - } - *out.Endpoints = string(in.String()) - } - case "endpointsNamespace": - out.EndpointsNamespace = string(in.String()) - case "path": - if in.IsNull() { - in.Skip() - out.Path = nil - } else { - if out.Path == nil { - out.Path = new(string) - } - *out.Path = string(in.String()) - } - case "readOnly": - out.ReadOnly = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson57130c2aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in GlusterfsPersistentVolumeSource) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"endpoints\":" - out.RawString(prefix[1:]) - if in.Endpoints == nil { - out.RawString("null") - } else { - out.String(string(*in.Endpoints)) - } - } - if in.EndpointsNamespace != "" { - const prefix string = ",\"endpointsNamespace\":" - out.RawString(prefix) - out.String(string(in.EndpointsNamespace)) - } - { - const prefix string = ",\"path\":" - out.RawString(prefix) - if in.Path == nil { - out.RawString("null") - } else { - out.String(string(*in.Path)) - } - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GlusterfsPersistentVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson57130c2aEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GlusterfsPersistentVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson57130c2aEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GlusterfsPersistentVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson57130c2aDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GlusterfsPersistentVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson57130c2aDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/glusterfs_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/glusterfs_volume_source_easyjson.go deleted file mode 100644 index 398f0ba..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/glusterfs_volume_source_easyjson.go +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonF76d4deaDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *GlusterfsVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "endpoints": - if in.IsNull() { - in.Skip() - out.Endpoints = nil - } else { - if out.Endpoints == nil { - out.Endpoints = new(string) - } - *out.Endpoints = string(in.String()) - } - case "path": - if in.IsNull() { - in.Skip() - out.Path = nil - } else { - if out.Path == nil { - out.Path = new(string) - } - *out.Path = string(in.String()) - } - case "readOnly": - out.ReadOnly = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF76d4deaEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in GlusterfsVolumeSource) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"endpoints\":" - out.RawString(prefix[1:]) - if in.Endpoints == nil { - out.RawString("null") - } else { - out.String(string(*in.Endpoints)) - } - } - { - const prefix string = ",\"path\":" - out.RawString(prefix) - if in.Path == nil { - out.RawString("null") - } else { - out.String(string(*in.Path)) - } - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GlusterfsVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonF76d4deaEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GlusterfsVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonF76d4deaEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GlusterfsVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonF76d4deaDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GlusterfsVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonF76d4deaDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/grpc_action_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/grpc_action_easyjson.go deleted file mode 100644 index b795176..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/grpc_action_easyjson.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE7b301fDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *GRPCAction) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(int32) - } - *out.Port = int32(in.Int32()) - } - case "service": - out.Service = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE7b301fEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in GRPCAction) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"port\":" - out.RawString(prefix[1:]) - if in.Port == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Port)) - } - } - if in.Service != "" { - const prefix string = ",\"service\":" - out.RawString(prefix) - out.String(string(in.Service)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GRPCAction) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE7b301fEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GRPCAction) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE7b301fEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GRPCAction) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE7b301fDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GRPCAction) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE7b301fDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/host_alias_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/host_alias_easyjson.go deleted file mode 100644 index 31b92a9..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/host_alias_easyjson.go +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson9b47dbefDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *HostAlias) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "hostnames": - if in.IsNull() { - in.Skip() - out.Hostnames = nil - } else { - in.Delim('[') - if out.Hostnames == nil { - if !in.IsDelim(']') { - out.Hostnames = make([]string, 0, 4) - } else { - out.Hostnames = []string{} - } - } else { - out.Hostnames = (out.Hostnames)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Hostnames = append(out.Hostnames, v1) - in.WantComma() - } - in.Delim(']') - } - case "ip": - out.IP = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9b47dbefEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in HostAlias) { - out.RawByte('{') - first := true - _ = first - if len(in.Hostnames) != 0 { - const prefix string = ",\"hostnames\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.Hostnames { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - if in.IP != "" { - const prefix string = ",\"ip\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.IP)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v HostAlias) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson9b47dbefEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v HostAlias) MarshalEasyJSON(w *jwriter.Writer) { - easyjson9b47dbefEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *HostAlias) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson9b47dbefDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *HostAlias) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson9b47dbefDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/host_path_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/host_path_volume_source_easyjson.go deleted file mode 100644 index 4d75b5e..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/host_path_volume_source_easyjson.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE4435985DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *HostPathVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "path": - if in.IsNull() { - in.Skip() - out.Path = nil - } else { - if out.Path == nil { - out.Path = new(string) - } - *out.Path = string(in.String()) - } - case "type": - out.Type = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE4435985EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in HostPathVolumeSource) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"path\":" - out.RawString(prefix[1:]) - if in.Path == nil { - out.RawString("null") - } else { - out.String(string(*in.Path)) - } - } - if in.Type != "" { - const prefix string = ",\"type\":" - out.RawString(prefix) - out.String(string(in.Type)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v HostPathVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE4435985EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v HostPathVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE4435985EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *HostPathVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE4435985DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *HostPathVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE4435985DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/http_get_action.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/http_get_action.go index 1d0504c..0aeabab 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/http_get_action.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/http_get_action.go @@ -28,7 +28,5 @@ type HTTPGetAction struct { Port *apimachinery_pkg_util_intstr.IntOrString `json:"port"` // Scheme to use for connecting to the host. Defaults to HTTP. - // - // Scheme string `json:"scheme,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/http_get_action_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/http_get_action_easyjson.go deleted file mode 100644 index 1b5a5e8..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/http_get_action_easyjson.go +++ /dev/null @@ -1,257 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE1169c34DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *HTTPGetAction) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "host": - out.Host = string(in.String()) - case "httpHeaders": - if in.IsNull() { - in.Skip() - out.HTTPHeaders = nil - } else { - in.Delim('[') - if out.HTTPHeaders == nil { - if !in.IsDelim(']') { - out.HTTPHeaders = make([]*HTTPHeader, 0, 8) - } else { - out.HTTPHeaders = []*HTTPHeader{} - } - } else { - out.HTTPHeaders = (out.HTTPHeaders)[:0] - } - for !in.IsDelim(']') { - var v1 *HTTPHeader - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(HTTPHeader) - } - easyjsonE1169c34DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, v1) - } - out.HTTPHeaders = append(out.HTTPHeaders, v1) - in.WantComma() - } - in.Delim(']') - } - case "path": - out.Path = string(in.String()) - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(intstr.IntOrString) - } - *out.Port = intstr.IntOrString(in.String()) - } - case "scheme": - out.Scheme = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE1169c34EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in HTTPGetAction) { - out.RawByte('{') - first := true - _ = first - if in.Host != "" { - const prefix string = ",\"host\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Host)) - } - if len(in.HTTPHeaders) != 0 { - const prefix string = ",\"httpHeaders\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.HTTPHeaders { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjsonE1169c34EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *v3) - } - } - out.RawByte(']') - } - } - if in.Path != "" { - const prefix string = ",\"path\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Path)) - } - { - const prefix string = ",\"port\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Port == nil { - out.RawString("null") - } else { - out.String(string(*in.Port)) - } - } - if in.Scheme != "" { - const prefix string = ",\"scheme\":" - out.RawString(prefix) - out.String(string(in.Scheme)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v HTTPGetAction) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE1169c34EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v HTTPGetAction) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE1169c34EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *HTTPGetAction) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE1169c34DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *HTTPGetAction) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE1169c34DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonE1169c34DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *HTTPHeader) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "value": - if in.IsNull() { - in.Skip() - out.Value = nil - } else { - if out.Value == nil { - out.Value = new(string) - } - *out.Value = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE1169c34EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in HTTPHeader) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"name\":" - out.RawString(prefix[1:]) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - { - const prefix string = ",\"value\":" - out.RawString(prefix) - if in.Value == nil { - out.RawString("null") - } else { - out.String(string(*in.Value)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/http_header_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/http_header_easyjson.go deleted file mode 100644 index 277000a..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/http_header_easyjson.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson680a5086DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *HTTPHeader) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "value": - if in.IsNull() { - in.Skip() - out.Value = nil - } else { - if out.Value == nil { - out.Value = new(string) - } - *out.Value = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson680a5086EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in HTTPHeader) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"name\":" - out.RawString(prefix[1:]) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - { - const prefix string = ",\"value\":" - out.RawString(prefix) - if in.Value == nil { - out.RawString("null") - } else { - out.String(string(*in.Value)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v HTTPHeader) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson680a5086EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v HTTPHeader) MarshalEasyJSON(w *jwriter.Writer) { - easyjson680a5086EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *HTTPHeader) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson680a5086DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *HTTPHeader) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson680a5086DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_persistent_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_persistent_volume_source_easyjson.go deleted file mode 100644 index e8abae1..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_persistent_volume_source_easyjson.go +++ /dev/null @@ -1,305 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonB9635d66DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ISCSIPersistentVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "chapAuthDiscovery": - out.ChapAuthDiscovery = bool(in.Bool()) - case "chapAuthSession": - out.ChapAuthSession = bool(in.Bool()) - case "fsType": - out.FSType = string(in.String()) - case "initiatorName": - out.InitiatorName = string(in.String()) - case "iqn": - if in.IsNull() { - in.Skip() - out.Iqn = nil - } else { - if out.Iqn == nil { - out.Iqn = new(string) - } - *out.Iqn = string(in.String()) - } - case "iscsiInterface": - out.ISCSIInterface = string(in.String()) - case "lun": - if in.IsNull() { - in.Skip() - out.Lun = nil - } else { - if out.Lun == nil { - out.Lun = new(int32) - } - *out.Lun = int32(in.Int32()) - } - case "portals": - if in.IsNull() { - in.Skip() - out.Portals = nil - } else { - in.Delim('[') - if out.Portals == nil { - if !in.IsDelim(']') { - out.Portals = make([]string, 0, 4) - } else { - out.Portals = []string{} - } - } else { - out.Portals = (out.Portals)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Portals = append(out.Portals, v1) - in.WantComma() - } - in.Delim(']') - } - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(SecretReference) - } - easyjsonB9635d66DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) - } - case "targetPortal": - if in.IsNull() { - in.Skip() - out.TargetPortal = nil - } else { - if out.TargetPortal == nil { - out.TargetPortal = new(string) - } - *out.TargetPortal = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB9635d66EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ISCSIPersistentVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.ChapAuthDiscovery { - const prefix string = ",\"chapAuthDiscovery\":" - first = false - out.RawString(prefix[1:]) - out.Bool(bool(in.ChapAuthDiscovery)) - } - if in.ChapAuthSession { - const prefix string = ",\"chapAuthSession\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ChapAuthSession)) - } - if in.FSType != "" { - const prefix string = ",\"fsType\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.FSType)) - } - if in.InitiatorName != "" { - const prefix string = ",\"initiatorName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.InitiatorName)) - } - { - const prefix string = ",\"iqn\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Iqn == nil { - out.RawString("null") - } else { - out.String(string(*in.Iqn)) - } - } - if in.ISCSIInterface != "" { - const prefix string = ",\"iscsiInterface\":" - out.RawString(prefix) - out.String(string(in.ISCSIInterface)) - } - { - const prefix string = ",\"lun\":" - out.RawString(prefix) - if in.Lun == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Lun)) - } - } - if len(in.Portals) != 0 { - const prefix string = ",\"portals\":" - out.RawString(prefix) - { - out.RawByte('[') - for v2, v3 := range in.Portals { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - easyjsonB9635d66EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) - } - { - const prefix string = ",\"targetPortal\":" - out.RawString(prefix) - if in.TargetPortal == nil { - out.RawString("null") - } else { - out.String(string(*in.TargetPortal)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ISCSIPersistentVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonB9635d66EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ISCSIPersistentVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonB9635d66EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ISCSIPersistentVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonB9635d66DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ISCSIPersistentVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonB9635d66DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonB9635d66DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "namespace": - out.Namespace = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB9635d66EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Namespace != "" { - const prefix string = ",\"namespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Namespace)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_volume_source_easyjson.go deleted file mode 100644 index bfbee96..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_volume_source_easyjson.go +++ /dev/null @@ -1,293 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson223df03eDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ISCSIVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "chapAuthDiscovery": - out.ChapAuthDiscovery = bool(in.Bool()) - case "chapAuthSession": - out.ChapAuthSession = bool(in.Bool()) - case "fsType": - out.FSType = string(in.String()) - case "initiatorName": - out.InitiatorName = string(in.String()) - case "iqn": - if in.IsNull() { - in.Skip() - out.Iqn = nil - } else { - if out.Iqn == nil { - out.Iqn = new(string) - } - *out.Iqn = string(in.String()) - } - case "iscsiInterface": - out.ISCSIInterface = string(in.String()) - case "lun": - if in.IsNull() { - in.Skip() - out.Lun = nil - } else { - if out.Lun == nil { - out.Lun = new(int32) - } - *out.Lun = int32(in.Int32()) - } - case "portals": - if in.IsNull() { - in.Skip() - out.Portals = nil - } else { - in.Delim('[') - if out.Portals == nil { - if !in.IsDelim(']') { - out.Portals = make([]string, 0, 4) - } else { - out.Portals = []string{} - } - } else { - out.Portals = (out.Portals)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Portals = append(out.Portals, v1) - in.WantComma() - } - in.Delim(']') - } - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(LocalObjectReference) - } - easyjson223df03eDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) - } - case "targetPortal": - if in.IsNull() { - in.Skip() - out.TargetPortal = nil - } else { - if out.TargetPortal == nil { - out.TargetPortal = new(string) - } - *out.TargetPortal = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson223df03eEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ISCSIVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.ChapAuthDiscovery { - const prefix string = ",\"chapAuthDiscovery\":" - first = false - out.RawString(prefix[1:]) - out.Bool(bool(in.ChapAuthDiscovery)) - } - if in.ChapAuthSession { - const prefix string = ",\"chapAuthSession\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ChapAuthSession)) - } - if in.FSType != "" { - const prefix string = ",\"fsType\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.FSType)) - } - if in.InitiatorName != "" { - const prefix string = ",\"initiatorName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.InitiatorName)) - } - { - const prefix string = ",\"iqn\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Iqn == nil { - out.RawString("null") - } else { - out.String(string(*in.Iqn)) - } - } - if in.ISCSIInterface != "" { - const prefix string = ",\"iscsiInterface\":" - out.RawString(prefix) - out.String(string(in.ISCSIInterface)) - } - { - const prefix string = ",\"lun\":" - out.RawString(prefix) - if in.Lun == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Lun)) - } - } - if len(in.Portals) != 0 { - const prefix string = ",\"portals\":" - out.RawString(prefix) - { - out.RawByte('[') - for v2, v3 := range in.Portals { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - easyjson223df03eEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) - } - { - const prefix string = ",\"targetPortal\":" - out.RawString(prefix) - if in.TargetPortal == nil { - out.RawString("null") - } else { - out.String(string(*in.TargetPortal)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ISCSIVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson223df03eEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ISCSIVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson223df03eEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ISCSIVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson223df03eDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ISCSIVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson223df03eDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson223df03eDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *LocalObjectReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson223df03eEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in LocalObjectReference) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/key_to_path_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/key_to_path_easyjson.go deleted file mode 100644 index 6cf8b5e..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/key_to_path_easyjson.go +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonFe2fb1adDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *KeyToPath) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "mode": - out.Mode = int32(in.Int32()) - case "path": - if in.IsNull() { - in.Skip() - out.Path = nil - } else { - if out.Path == nil { - out.Path = new(string) - } - *out.Path = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonFe2fb1adEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in KeyToPath) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"key\":" - out.RawString(prefix[1:]) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - if in.Mode != 0 { - const prefix string = ",\"mode\":" - out.RawString(prefix) - out.Int32(int32(in.Mode)) - } - { - const prefix string = ",\"path\":" - out.RawString(prefix) - if in.Path == nil { - out.RawString("null") - } else { - out.String(string(*in.Path)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v KeyToPath) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonFe2fb1adEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v KeyToPath) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonFe2fb1adEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *KeyToPath) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonFe2fb1adDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *KeyToPath) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonFe2fb1adDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/lifecycle_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/lifecycle_easyjson.go deleted file mode 100644 index 675974f..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/lifecycle_easyjson.go +++ /dev/null @@ -1,273 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson595d38b2DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Lifecycle) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "postStart": - if in.IsNull() { - in.Skip() - out.PostStart = nil - } else { - if out.PostStart == nil { - out.PostStart = new(LifecycleHandler) - } - easyjson595d38b2DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.PostStart) - } - case "preStop": - if in.IsNull() { - in.Skip() - out.PreStop = nil - } else { - if out.PreStop == nil { - out.PreStop = new(LifecycleHandler) - } - easyjson595d38b2DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.PreStop) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson595d38b2EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Lifecycle) { - out.RawByte('{') - first := true - _ = first - if in.PostStart != nil { - const prefix string = ",\"postStart\":" - first = false - out.RawString(prefix[1:]) - easyjson595d38b2EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.PostStart) - } - if in.PreStop != nil { - const prefix string = ",\"preStop\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson595d38b2EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.PreStop) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Lifecycle) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson595d38b2EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Lifecycle) MarshalEasyJSON(w *jwriter.Writer) { - easyjson595d38b2EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Lifecycle) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson595d38b2DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Lifecycle) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson595d38b2DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson595d38b2DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *LifecycleHandler) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "exec": - if in.IsNull() { - in.Skip() - out.Exec = nil - } else { - if out.Exec == nil { - out.Exec = new(ExecAction) - } - (*out.Exec).UnmarshalEasyJSON(in) - } - case "httpGet": - if in.IsNull() { - in.Skip() - out.HTTPGet = nil - } else { - if out.HTTPGet == nil { - out.HTTPGet = new(HTTPGetAction) - } - (*out.HTTPGet).UnmarshalEasyJSON(in) - } - case "tcpSocket": - if in.IsNull() { - in.Skip() - out.TCPSocket = nil - } else { - if out.TCPSocket == nil { - out.TCPSocket = new(TCPSocketAction) - } - easyjson595d38b2DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.TCPSocket) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson595d38b2EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in LifecycleHandler) { - out.RawByte('{') - first := true - _ = first - if in.Exec != nil { - const prefix string = ",\"exec\":" - first = false - out.RawString(prefix[1:]) - (*in.Exec).MarshalEasyJSON(out) - } - if in.HTTPGet != nil { - const prefix string = ",\"httpGet\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.HTTPGet).MarshalEasyJSON(out) - } - if in.TCPSocket != nil { - const prefix string = ",\"tcpSocket\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson595d38b2EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.TCPSocket) - } - out.RawByte('}') -} -func easyjson595d38b2DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *TCPSocketAction) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "host": - out.Host = string(in.String()) - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(intstr.IntOrString) - } - *out.Port = intstr.IntOrString(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson595d38b2EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in TCPSocketAction) { - out.RawByte('{') - first := true - _ = first - if in.Host != "" { - const prefix string = ",\"host\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Host)) - } - { - const prefix string = ",\"port\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Port == nil { - out.RawString("null") - } else { - out.String(string(*in.Port)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/lifecycle_handler_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/lifecycle_handler_easyjson.go deleted file mode 100644 index f55564e..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/lifecycle_handler_easyjson.go +++ /dev/null @@ -1,202 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE706c263DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *LifecycleHandler) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "exec": - if in.IsNull() { - in.Skip() - out.Exec = nil - } else { - if out.Exec == nil { - out.Exec = new(ExecAction) - } - (*out.Exec).UnmarshalEasyJSON(in) - } - case "httpGet": - if in.IsNull() { - in.Skip() - out.HTTPGet = nil - } else { - if out.HTTPGet == nil { - out.HTTPGet = new(HTTPGetAction) - } - (*out.HTTPGet).UnmarshalEasyJSON(in) - } - case "tcpSocket": - if in.IsNull() { - in.Skip() - out.TCPSocket = nil - } else { - if out.TCPSocket == nil { - out.TCPSocket = new(TCPSocketAction) - } - easyjsonE706c263DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.TCPSocket) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE706c263EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in LifecycleHandler) { - out.RawByte('{') - first := true - _ = first - if in.Exec != nil { - const prefix string = ",\"exec\":" - first = false - out.RawString(prefix[1:]) - (*in.Exec).MarshalEasyJSON(out) - } - if in.HTTPGet != nil { - const prefix string = ",\"httpGet\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.HTTPGet).MarshalEasyJSON(out) - } - if in.TCPSocket != nil { - const prefix string = ",\"tcpSocket\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonE706c263EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.TCPSocket) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v LifecycleHandler) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE706c263EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v LifecycleHandler) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE706c263EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *LifecycleHandler) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE706c263DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *LifecycleHandler) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE706c263DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonE706c263DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *TCPSocketAction) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "host": - out.Host = string(in.String()) - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(intstr.IntOrString) - } - *out.Port = intstr.IntOrString(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE706c263EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in TCPSocketAction) { - out.RawByte('{') - first := true - _ = first - if in.Host != "" { - const prefix string = ",\"host\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Host)) - } - { - const prefix string = ",\"port\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Port == nil { - out.RawString("null") - } else { - out.String(string(*in.Port)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_easyjson.go deleted file mode 100644 index 6c32ce7..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_easyjson.go +++ /dev/null @@ -1,561 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson75f96e95DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *LimitRange) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(LimitRangeSpec) - } - easyjson75f96e95DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.Spec) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson75f96e95EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in LimitRange) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson75f96e95EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.Spec) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v LimitRange) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson75f96e95EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v LimitRange) MarshalEasyJSON(w *jwriter.Writer) { - easyjson75f96e95EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *LimitRange) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson75f96e95DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *LimitRange) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson75f96e95DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson75f96e95DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *LimitRangeSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "limits": - if in.IsNull() { - in.Skip() - out.Limits = nil - } else { - in.Delim('[') - if out.Limits == nil { - if !in.IsDelim(']') { - out.Limits = make([]*LimitRangeItem, 0, 8) - } else { - out.Limits = []*LimitRangeItem{} - } - } else { - out.Limits = (out.Limits)[:0] - } - for !in.IsDelim(']') { - var v1 *LimitRangeItem - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(LimitRangeItem) - } - easyjson75f96e95DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, v1) - } - out.Limits = append(out.Limits, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson75f96e95EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in LimitRangeSpec) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"limits\":" - out.RawString(prefix[1:]) - if in.Limits == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Limits { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjson75f96e95EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *v3) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjson75f96e95DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *LimitRangeItem) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "default": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Default = make(map[string]*resource.Quantity) - } else { - out.Default = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v4 *resource.Quantity - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(resource.Quantity) - } - *v4 = resource.Quantity(in.String()) - } - (out.Default)[key] = v4 - in.WantComma() - } - in.Delim('}') - } - case "defaultRequest": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.DefaultRequest = make(map[string]*resource.Quantity) - } else { - out.DefaultRequest = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v5 *resource.Quantity - if in.IsNull() { - in.Skip() - v5 = nil - } else { - if v5 == nil { - v5 = new(resource.Quantity) - } - *v5 = resource.Quantity(in.String()) - } - (out.DefaultRequest)[key] = v5 - in.WantComma() - } - in.Delim('}') - } - case "max": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Max = make(map[string]*resource.Quantity) - } else { - out.Max = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v6 *resource.Quantity - if in.IsNull() { - in.Skip() - v6 = nil - } else { - if v6 == nil { - v6 = new(resource.Quantity) - } - *v6 = resource.Quantity(in.String()) - } - (out.Max)[key] = v6 - in.WantComma() - } - in.Delim('}') - } - case "maxLimitRequestRatio": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.MaxLimitRequestRatio = make(map[string]*resource.Quantity) - } else { - out.MaxLimitRequestRatio = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v7 *resource.Quantity - if in.IsNull() { - in.Skip() - v7 = nil - } else { - if v7 == nil { - v7 = new(resource.Quantity) - } - *v7 = resource.Quantity(in.String()) - } - (out.MaxLimitRequestRatio)[key] = v7 - in.WantComma() - } - in.Delim('}') - } - case "min": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Min = make(map[string]*resource.Quantity) - } else { - out.Min = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v8 *resource.Quantity - if in.IsNull() { - in.Skip() - v8 = nil - } else { - if v8 == nil { - v8 = new(resource.Quantity) - } - *v8 = resource.Quantity(in.String()) - } - (out.Min)[key] = v8 - in.WantComma() - } - in.Delim('}') - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson75f96e95EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in LimitRangeItem) { - out.RawByte('{') - first := true - _ = first - if len(in.Default) != 0 { - const prefix string = ",\"default\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('{') - v9First := true - for v9Name, v9Value := range in.Default { - if v9First { - v9First = false - } else { - out.RawByte(',') - } - out.String(string(v9Name)) - out.RawByte(':') - if v9Value == nil { - out.RawString("null") - } else { - out.String(string(*v9Value)) - } - } - out.RawByte('}') - } - } - if len(in.DefaultRequest) != 0 { - const prefix string = ",\"defaultRequest\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v10First := true - for v10Name, v10Value := range in.DefaultRequest { - if v10First { - v10First = false - } else { - out.RawByte(',') - } - out.String(string(v10Name)) - out.RawByte(':') - if v10Value == nil { - out.RawString("null") - } else { - out.String(string(*v10Value)) - } - } - out.RawByte('}') - } - } - if len(in.Max) != 0 { - const prefix string = ",\"max\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v11First := true - for v11Name, v11Value := range in.Max { - if v11First { - v11First = false - } else { - out.RawByte(',') - } - out.String(string(v11Name)) - out.RawByte(':') - if v11Value == nil { - out.RawString("null") - } else { - out.String(string(*v11Value)) - } - } - out.RawByte('}') - } - } - if len(in.MaxLimitRequestRatio) != 0 { - const prefix string = ",\"maxLimitRequestRatio\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v12First := true - for v12Name, v12Value := range in.MaxLimitRequestRatio { - if v12First { - v12First = false - } else { - out.RawByte(',') - } - out.String(string(v12Name)) - out.RawByte(':') - if v12Value == nil { - out.RawString("null") - } else { - out.String(string(*v12Value)) - } - } - out.RawByte('}') - } - } - if len(in.Min) != 0 { - const prefix string = ",\"min\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v13First := true - for v13Name, v13Value := range in.Min { - if v13First { - v13First = false - } else { - out.RawByte(',') - } - out.String(string(v13Name)) - out.RawByte(':') - if v13Value == nil { - out.RawString("null") - } else { - out.String(string(*v13Value)) - } - } - out.RawByte('}') - } - } - { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_item_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_item_easyjson.go deleted file mode 100644 index 6dca7d0..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_item_easyjson.go +++ /dev/null @@ -1,379 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson93188a3bDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *LimitRangeItem) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "default": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Default = make(map[string]*resource.Quantity) - } else { - out.Default = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v1 *resource.Quantity - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(resource.Quantity) - } - *v1 = resource.Quantity(in.String()) - } - (out.Default)[key] = v1 - in.WantComma() - } - in.Delim('}') - } - case "defaultRequest": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.DefaultRequest = make(map[string]*resource.Quantity) - } else { - out.DefaultRequest = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v2 *resource.Quantity - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(resource.Quantity) - } - *v2 = resource.Quantity(in.String()) - } - (out.DefaultRequest)[key] = v2 - in.WantComma() - } - in.Delim('}') - } - case "max": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Max = make(map[string]*resource.Quantity) - } else { - out.Max = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v3 *resource.Quantity - if in.IsNull() { - in.Skip() - v3 = nil - } else { - if v3 == nil { - v3 = new(resource.Quantity) - } - *v3 = resource.Quantity(in.String()) - } - (out.Max)[key] = v3 - in.WantComma() - } - in.Delim('}') - } - case "maxLimitRequestRatio": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.MaxLimitRequestRatio = make(map[string]*resource.Quantity) - } else { - out.MaxLimitRequestRatio = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v4 *resource.Quantity - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(resource.Quantity) - } - *v4 = resource.Quantity(in.String()) - } - (out.MaxLimitRequestRatio)[key] = v4 - in.WantComma() - } - in.Delim('}') - } - case "min": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Min = make(map[string]*resource.Quantity) - } else { - out.Min = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v5 *resource.Quantity - if in.IsNull() { - in.Skip() - v5 = nil - } else { - if v5 == nil { - v5 = new(resource.Quantity) - } - *v5 = resource.Quantity(in.String()) - } - (out.Min)[key] = v5 - in.WantComma() - } - in.Delim('}') - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson93188a3bEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in LimitRangeItem) { - out.RawByte('{') - first := true - _ = first - if len(in.Default) != 0 { - const prefix string = ",\"default\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('{') - v6First := true - for v6Name, v6Value := range in.Default { - if v6First { - v6First = false - } else { - out.RawByte(',') - } - out.String(string(v6Name)) - out.RawByte(':') - if v6Value == nil { - out.RawString("null") - } else { - out.String(string(*v6Value)) - } - } - out.RawByte('}') - } - } - if len(in.DefaultRequest) != 0 { - const prefix string = ",\"defaultRequest\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v7First := true - for v7Name, v7Value := range in.DefaultRequest { - if v7First { - v7First = false - } else { - out.RawByte(',') - } - out.String(string(v7Name)) - out.RawByte(':') - if v7Value == nil { - out.RawString("null") - } else { - out.String(string(*v7Value)) - } - } - out.RawByte('}') - } - } - if len(in.Max) != 0 { - const prefix string = ",\"max\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v8First := true - for v8Name, v8Value := range in.Max { - if v8First { - v8First = false - } else { - out.RawByte(',') - } - out.String(string(v8Name)) - out.RawByte(':') - if v8Value == nil { - out.RawString("null") - } else { - out.String(string(*v8Value)) - } - } - out.RawByte('}') - } - } - if len(in.MaxLimitRequestRatio) != 0 { - const prefix string = ",\"maxLimitRequestRatio\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v9First := true - for v9Name, v9Value := range in.MaxLimitRequestRatio { - if v9First { - v9First = false - } else { - out.RawByte(',') - } - out.String(string(v9Name)) - out.RawByte(':') - if v9Value == nil { - out.RawString("null") - } else { - out.String(string(*v9Value)) - } - } - out.RawByte('}') - } - } - if len(in.Min) != 0 { - const prefix string = ",\"min\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v10First := true - for v10Name, v10Value := range in.Min { - if v10First { - v10First = false - } else { - out.RawByte(',') - } - out.String(string(v10Name)) - out.RawByte(':') - if v10Value == nil { - out.RawString("null") - } else { - out.String(string(*v10Value)) - } - } - out.RawByte('}') - } - } - { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v LimitRangeItem) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson93188a3bEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v LimitRangeItem) MarshalEasyJSON(w *jwriter.Writer) { - easyjson93188a3bEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *LimitRangeItem) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson93188a3bDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *LimitRangeItem) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson93188a3bDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_list_easyjson.go deleted file mode 100644 index d230150..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonAaf4712eDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *LimitRangeList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*LimitRange, 0, 8) - } else { - out.Items = []*LimitRange{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *LimitRange - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(LimitRange) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonAaf4712eEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in LimitRangeList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v LimitRangeList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonAaf4712eEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v LimitRangeList) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonAaf4712eEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *LimitRangeList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonAaf4712eDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *LimitRangeList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonAaf4712eDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_spec_easyjson.go deleted file mode 100644 index 5eb928e..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_spec_easyjson.go +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson16c02a03DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *LimitRangeSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "limits": - if in.IsNull() { - in.Skip() - out.Limits = nil - } else { - in.Delim('[') - if out.Limits == nil { - if !in.IsDelim(']') { - out.Limits = make([]*LimitRangeItem, 0, 8) - } else { - out.Limits = []*LimitRangeItem{} - } - } else { - out.Limits = (out.Limits)[:0] - } - for !in.IsDelim(']') { - var v1 *LimitRangeItem - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(LimitRangeItem) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Limits = append(out.Limits, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson16c02a03EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in LimitRangeSpec) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"limits\":" - out.RawString(prefix[1:]) - if in.Limits == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Limits { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v LimitRangeSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson16c02a03EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v LimitRangeSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjson16c02a03EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *LimitRangeSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson16c02a03DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *LimitRangeSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson16c02a03DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/load_balancer_ingress_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/load_balancer_ingress_easyjson.go deleted file mode 100644 index 00b3687..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/load_balancer_ingress_easyjson.go +++ /dev/null @@ -1,238 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson284bb7ebDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *LoadBalancerIngress) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "hostname": - out.Hostname = string(in.String()) - case "ip": - out.IP = string(in.String()) - case "ports": - if in.IsNull() { - in.Skip() - out.Ports = nil - } else { - in.Delim('[') - if out.Ports == nil { - if !in.IsDelim(']') { - out.Ports = make([]*PortStatus, 0, 8) - } else { - out.Ports = []*PortStatus{} - } - } else { - out.Ports = (out.Ports)[:0] - } - for !in.IsDelim(']') { - var v1 *PortStatus - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(PortStatus) - } - easyjson284bb7ebDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, v1) - } - out.Ports = append(out.Ports, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson284bb7ebEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in LoadBalancerIngress) { - out.RawByte('{') - first := true - _ = first - if in.Hostname != "" { - const prefix string = ",\"hostname\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Hostname)) - } - if in.IP != "" { - const prefix string = ",\"ip\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.IP)) - } - if len(in.Ports) != 0 { - const prefix string = ",\"ports\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Ports { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjson284bb7ebEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *v3) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v LoadBalancerIngress) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson284bb7ebEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v LoadBalancerIngress) MarshalEasyJSON(w *jwriter.Writer) { - easyjson284bb7ebEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *LoadBalancerIngress) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson284bb7ebDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *LoadBalancerIngress) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson284bb7ebDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson284bb7ebDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *PortStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "error": - out.Error = string(in.String()) - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(int32) - } - *out.Port = int32(in.Int32()) - } - case "protocol": - if in.IsNull() { - in.Skip() - out.Protocol = nil - } else { - if out.Protocol == nil { - out.Protocol = new(string) - } - *out.Protocol = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson284bb7ebEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in PortStatus) { - out.RawByte('{') - first := true - _ = first - if in.Error != "" { - const prefix string = ",\"error\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Error)) - } - { - const prefix string = ",\"port\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Port == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Port)) - } - } - { - const prefix string = ",\"protocol\":" - out.RawString(prefix) - if in.Protocol == nil { - out.RawString("null") - } else { - out.String(string(*in.Protocol)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/load_balancer_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/load_balancer_status_easyjson.go deleted file mode 100644 index b56f3eb..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/load_balancer_status_easyjson.go +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson55ad6c3aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *LoadBalancerStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "ingress": - if in.IsNull() { - in.Skip() - out.Ingress = nil - } else { - in.Delim('[') - if out.Ingress == nil { - if !in.IsDelim(']') { - out.Ingress = make([]*LoadBalancerIngress, 0, 8) - } else { - out.Ingress = []*LoadBalancerIngress{} - } - } else { - out.Ingress = (out.Ingress)[:0] - } - for !in.IsDelim(']') { - var v1 *LoadBalancerIngress - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(LoadBalancerIngress) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Ingress = append(out.Ingress, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson55ad6c3aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in LoadBalancerStatus) { - out.RawByte('{') - first := true - _ = first - if len(in.Ingress) != 0 { - const prefix string = ",\"ingress\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.Ingress { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v LoadBalancerStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson55ad6c3aEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v LoadBalancerStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjson55ad6c3aEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *LoadBalancerStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson55ad6c3aDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *LoadBalancerStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson55ad6c3aDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/local_object_reference_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/local_object_reference_easyjson.go deleted file mode 100644 index e4382b5..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/local_object_reference_easyjson.go +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonA981fdebDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *LocalObjectReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA981fdebEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in LocalObjectReference) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v LocalObjectReference) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonA981fdebEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v LocalObjectReference) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonA981fdebEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *LocalObjectReference) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonA981fdebDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *LocalObjectReference) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonA981fdebDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/local_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/local_volume_source_easyjson.go deleted file mode 100644 index df6f5ed..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/local_volume_source_easyjson.go +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson17697e04DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *LocalVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "path": - if in.IsNull() { - in.Skip() - out.Path = nil - } else { - if out.Path == nil { - out.Path = new(string) - } - *out.Path = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson17697e04EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in LocalVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - { - const prefix string = ",\"path\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Path == nil { - out.RawString("null") - } else { - out.String(string(*in.Path)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v LocalVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson17697e04EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v LocalVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson17697e04EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *LocalVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson17697e04DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *LocalVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson17697e04DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_condition_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_condition_easyjson.go deleted file mode 100644 index b17204a..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_condition_easyjson.go +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson2ba68421DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NamespaceCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2ba68421EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NamespaceCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NamespaceCondition) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson2ba68421EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NamespaceCondition) MarshalEasyJSON(w *jwriter.Writer) { - easyjson2ba68421EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NamespaceCondition) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson2ba68421DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NamespaceCondition) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson2ba68421DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_easyjson.go deleted file mode 100644 index 1e1cac9..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_easyjson.go +++ /dev/null @@ -1,449 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE798e43DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Namespace) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(NamespaceSpec) - } - easyjsonE798e43DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.Spec) - } - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(NamespaceStatus) - } - easyjsonE798e43DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.Status) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE798e43EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Namespace) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonE798e43EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.Spec) - } - if in.Status != nil { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonE798e43EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.Status) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Namespace) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE798e43EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Namespace) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE798e43EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Namespace) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE798e43DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Namespace) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE798e43DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonE798e43DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *NamespaceStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*NamespaceCondition, 0, 8) - } else { - out.Conditions = []*NamespaceCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *NamespaceCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(NamespaceCondition) - } - easyjsonE798e43DecodeGithubComKubewardenK8sObjectsApiCoreV13(in, v1) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "phase": - out.Phase = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE798e43EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in NamespaceStatus) { - out.RawByte('{') - first := true - _ = first - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjsonE798e43EncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *v3) - } - } - out.RawByte(']') - } - } - if in.Phase != "" { - const prefix string = ",\"phase\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Phase)) - } - out.RawByte('}') -} -func easyjsonE798e43DecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *NamespaceCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE798e43EncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in NamespaceCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} -func easyjsonE798e43DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *NamespaceSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "finalizers": - if in.IsNull() { - in.Skip() - out.Finalizers = nil - } else { - in.Delim('[') - if out.Finalizers == nil { - if !in.IsDelim(']') { - out.Finalizers = make([]string, 0, 4) - } else { - out.Finalizers = []string{} - } - } else { - out.Finalizers = (out.Finalizers)[:0] - } - for !in.IsDelim(']') { - var v4 string - v4 = string(in.String()) - out.Finalizers = append(out.Finalizers, v4) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE798e43EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in NamespaceSpec) { - out.RawByte('{') - first := true - _ = first - if len(in.Finalizers) != 0 { - const prefix string = ",\"finalizers\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v5, v6 := range in.Finalizers { - if v5 > 0 { - out.RawByte(',') - } - out.String(string(v6)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_list_easyjson.go deleted file mode 100644 index 9755822..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonC8aca898DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NamespaceList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*Namespace, 0, 8) - } else { - out.Items = []*Namespace{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *Namespace - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(Namespace) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC8aca898EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NamespaceList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NamespaceList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC8aca898EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NamespaceList) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC8aca898EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NamespaceList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC8aca898DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NamespaceList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC8aca898DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_spec_easyjson.go deleted file mode 100644 index e78de21..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_spec_easyjson.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonC7539851DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NamespaceSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "finalizers": - if in.IsNull() { - in.Skip() - out.Finalizers = nil - } else { - in.Delim('[') - if out.Finalizers == nil { - if !in.IsDelim(']') { - out.Finalizers = make([]string, 0, 4) - } else { - out.Finalizers = []string{} - } - } else { - out.Finalizers = (out.Finalizers)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Finalizers = append(out.Finalizers, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7539851EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NamespaceSpec) { - out.RawByte('{') - first := true - _ = first - if len(in.Finalizers) != 0 { - const prefix string = ",\"finalizers\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.Finalizers { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NamespaceSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC7539851EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NamespaceSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC7539851EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NamespaceSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC7539851DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NamespaceSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC7539851DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_status.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_status.go index d25ca51..93cb419 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_status.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_status.go @@ -14,7 +14,5 @@ type NamespaceStatus struct { Conditions []*NamespaceCondition `json:"conditions,omitempty"` // Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ - // - // Phase string `json:"phase,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_status_easyjson.go deleted file mode 100644 index 8a8ca57..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_status_easyjson.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson3de0be82DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NamespaceStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*NamespaceCondition, 0, 8) - } else { - out.Conditions = []*NamespaceCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *NamespaceCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(NamespaceCondition) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "phase": - out.Phase = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson3de0be82EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NamespaceStatus) { - out.RawByte('{') - first := true - _ = first - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Phase != "" { - const prefix string = ",\"phase\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Phase)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NamespaceStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson3de0be82EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NamespaceStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjson3de0be82EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NamespaceStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson3de0be82DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NamespaceStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson3de0be82DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/nfs_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/nfs_volume_source_easyjson.go deleted file mode 100644 index 998f6d4..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/nfs_volume_source_easyjson.go +++ /dev/null @@ -1,123 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson6b2bc31aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NFSVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "path": - if in.IsNull() { - in.Skip() - out.Path = nil - } else { - if out.Path == nil { - out.Path = new(string) - } - *out.Path = string(in.String()) - } - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "server": - if in.IsNull() { - in.Skip() - out.Server = nil - } else { - if out.Server == nil { - out.Server = new(string) - } - *out.Server = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6b2bc31aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NFSVolumeSource) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"path\":" - out.RawString(prefix[1:]) - if in.Path == nil { - out.RawString("null") - } else { - out.String(string(*in.Path)) - } - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"server\":" - out.RawString(prefix) - if in.Server == nil { - out.RawString("null") - } else { - out.String(string(*in.Server)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NFSVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson6b2bc31aEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NFSVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6b2bc31aEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NFSVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson6b2bc31aDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NFSVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6b2bc31aDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_address_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_address_easyjson.go deleted file mode 100644 index 16d3313..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_address_easyjson.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson9024ae21DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NodeAddress) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "address": - if in.IsNull() { - in.Skip() - out.Address = nil - } else { - if out.Address == nil { - out.Address = new(string) - } - *out.Address = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9024ae21EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NodeAddress) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"address\":" - out.RawString(prefix[1:]) - if in.Address == nil { - out.RawString("null") - } else { - out.String(string(*in.Address)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NodeAddress) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson9024ae21EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NodeAddress) MarshalEasyJSON(w *jwriter.Writer) { - easyjson9024ae21EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NodeAddress) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson9024ae21DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NodeAddress) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson9024ae21DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_affinity_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_affinity_easyjson.go deleted file mode 100644 index d774c43..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_affinity_easyjson.go +++ /dev/null @@ -1,556 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson2275aad5DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NodeAffinity) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "preferredDuringSchedulingIgnoredDuringExecution": - if in.IsNull() { - in.Skip() - out.PreferredDuringSchedulingIgnoredDuringExecution = nil - } else { - in.Delim('[') - if out.PreferredDuringSchedulingIgnoredDuringExecution == nil { - if !in.IsDelim(']') { - out.PreferredDuringSchedulingIgnoredDuringExecution = make([]*PreferredSchedulingTerm, 0, 8) - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = []*PreferredSchedulingTerm{} - } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = (out.PreferredDuringSchedulingIgnoredDuringExecution)[:0] - } - for !in.IsDelim(']') { - var v1 *PreferredSchedulingTerm - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(PreferredSchedulingTerm) - } - easyjson2275aad5DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, v1) - } - out.PreferredDuringSchedulingIgnoredDuringExecution = append(out.PreferredDuringSchedulingIgnoredDuringExecution, v1) - in.WantComma() - } - in.Delim(']') - } - case "requiredDuringSchedulingIgnoredDuringExecution": - if in.IsNull() { - in.Skip() - out.RequiredDuringSchedulingIgnoredDuringExecution = nil - } else { - if out.RequiredDuringSchedulingIgnoredDuringExecution == nil { - out.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector) - } - easyjson2275aad5DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.RequiredDuringSchedulingIgnoredDuringExecution) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2275aad5EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NodeAffinity) { - out.RawByte('{') - first := true - _ = first - if len(in.PreferredDuringSchedulingIgnoredDuringExecution) != 0 { - const prefix string = ",\"preferredDuringSchedulingIgnoredDuringExecution\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.PreferredDuringSchedulingIgnoredDuringExecution { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjson2275aad5EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *v3) - } - } - out.RawByte(']') - } - } - if in.RequiredDuringSchedulingIgnoredDuringExecution != nil { - const prefix string = ",\"requiredDuringSchedulingIgnoredDuringExecution\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson2275aad5EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.RequiredDuringSchedulingIgnoredDuringExecution) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NodeAffinity) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson2275aad5EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NodeAffinity) MarshalEasyJSON(w *jwriter.Writer) { - easyjson2275aad5EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NodeAffinity) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson2275aad5DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NodeAffinity) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson2275aad5DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson2275aad5DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *NodeSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "nodeSelectorTerms": - if in.IsNull() { - in.Skip() - out.NodeSelectorTerms = nil - } else { - in.Delim('[') - if out.NodeSelectorTerms == nil { - if !in.IsDelim(']') { - out.NodeSelectorTerms = make([]*NodeSelectorTerm, 0, 8) - } else { - out.NodeSelectorTerms = []*NodeSelectorTerm{} - } - } else { - out.NodeSelectorTerms = (out.NodeSelectorTerms)[:0] - } - for !in.IsDelim(']') { - var v4 *NodeSelectorTerm - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(NodeSelectorTerm) - } - easyjson2275aad5DecodeGithubComKubewardenK8sObjectsApiCoreV13(in, v4) - } - out.NodeSelectorTerms = append(out.NodeSelectorTerms, v4) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2275aad5EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in NodeSelector) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"nodeSelectorTerms\":" - out.RawString(prefix[1:]) - if in.NodeSelectorTerms == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v5, v6 := range in.NodeSelectorTerms { - if v5 > 0 { - out.RawByte(',') - } - if v6 == nil { - out.RawString("null") - } else { - easyjson2275aad5EncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *v6) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjson2275aad5DecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *NodeSelectorTerm) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "matchExpressions": - if in.IsNull() { - in.Skip() - out.MatchExpressions = nil - } else { - in.Delim('[') - if out.MatchExpressions == nil { - if !in.IsDelim(']') { - out.MatchExpressions = make([]*NodeSelectorRequirement, 0, 8) - } else { - out.MatchExpressions = []*NodeSelectorRequirement{} - } - } else { - out.MatchExpressions = (out.MatchExpressions)[:0] - } - for !in.IsDelim(']') { - var v7 *NodeSelectorRequirement - if in.IsNull() { - in.Skip() - v7 = nil - } else { - if v7 == nil { - v7 = new(NodeSelectorRequirement) - } - easyjson2275aad5DecodeGithubComKubewardenK8sObjectsApiCoreV14(in, v7) - } - out.MatchExpressions = append(out.MatchExpressions, v7) - in.WantComma() - } - in.Delim(']') - } - case "matchFields": - if in.IsNull() { - in.Skip() - out.MatchFields = nil - } else { - in.Delim('[') - if out.MatchFields == nil { - if !in.IsDelim(']') { - out.MatchFields = make([]*NodeSelectorRequirement, 0, 8) - } else { - out.MatchFields = []*NodeSelectorRequirement{} - } - } else { - out.MatchFields = (out.MatchFields)[:0] - } - for !in.IsDelim(']') { - var v8 *NodeSelectorRequirement - if in.IsNull() { - in.Skip() - v8 = nil - } else { - if v8 == nil { - v8 = new(NodeSelectorRequirement) - } - easyjson2275aad5DecodeGithubComKubewardenK8sObjectsApiCoreV14(in, v8) - } - out.MatchFields = append(out.MatchFields, v8) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2275aad5EncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in NodeSelectorTerm) { - out.RawByte('{') - first := true - _ = first - if len(in.MatchExpressions) != 0 { - const prefix string = ",\"matchExpressions\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v9, v10 := range in.MatchExpressions { - if v9 > 0 { - out.RawByte(',') - } - if v10 == nil { - out.RawString("null") - } else { - easyjson2275aad5EncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *v10) - } - } - out.RawByte(']') - } - } - if len(in.MatchFields) != 0 { - const prefix string = ",\"matchFields\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v11, v12 := range in.MatchFields { - if v11 > 0 { - out.RawByte(',') - } - if v12 == nil { - out.RawString("null") - } else { - easyjson2275aad5EncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *v12) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjson2275aad5DecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Lexer, out *NodeSelectorRequirement) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "operator": - if in.IsNull() { - in.Skip() - out.Operator = nil - } else { - if out.Operator == nil { - out.Operator = new(string) - } - *out.Operator = string(in.String()) - } - case "values": - if in.IsNull() { - in.Skip() - out.Values = nil - } else { - in.Delim('[') - if out.Values == nil { - if !in.IsDelim(']') { - out.Values = make([]string, 0, 4) - } else { - out.Values = []string{} - } - } else { - out.Values = (out.Values)[:0] - } - for !in.IsDelim(']') { - var v13 string - v13 = string(in.String()) - out.Values = append(out.Values, v13) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2275aad5EncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter.Writer, in NodeSelectorRequirement) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"key\":" - out.RawString(prefix[1:]) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - { - const prefix string = ",\"operator\":" - out.RawString(prefix) - if in.Operator == nil { - out.RawString("null") - } else { - out.String(string(*in.Operator)) - } - } - if len(in.Values) != 0 { - const prefix string = ",\"values\":" - out.RawString(prefix) - { - out.RawByte('[') - for v14, v15 := range in.Values { - if v14 > 0 { - out.RawByte(',') - } - out.String(string(v15)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjson2275aad5DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *PreferredSchedulingTerm) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "preference": - if in.IsNull() { - in.Skip() - out.Preference = nil - } else { - if out.Preference == nil { - out.Preference = new(NodeSelectorTerm) - } - easyjson2275aad5DecodeGithubComKubewardenK8sObjectsApiCoreV13(in, out.Preference) - } - case "weight": - if in.IsNull() { - in.Skip() - out.Weight = nil - } else { - if out.Weight == nil { - out.Weight = new(int32) - } - *out.Weight = int32(in.Int32()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2275aad5EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in PreferredSchedulingTerm) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"preference\":" - out.RawString(prefix[1:]) - if in.Preference == nil { - out.RawString("null") - } else { - easyjson2275aad5EncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *in.Preference) - } - } - { - const prefix string = ",\"weight\":" - out.RawString(prefix) - if in.Weight == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Weight)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_condition_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_condition_easyjson.go deleted file mode 100644 index 874c44e..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_condition_easyjson.go +++ /dev/null @@ -1,186 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson288e1c76DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NodeCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastHeartbeatTime": - if in.IsNull() { - in.Skip() - out.LastHeartbeatTime = nil - } else { - if out.LastHeartbeatTime == nil { - out.LastHeartbeatTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastHeartbeatTime).UnmarshalJSON(data)) - } - } - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson288e1c76EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NodeCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastHeartbeatTime != nil { - const prefix string = ",\"lastHeartbeatTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastHeartbeatTime).MarshalJSON()) - } - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NodeCondition) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson288e1c76EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NodeCondition) MarshalEasyJSON(w *jwriter.Writer) { - easyjson288e1c76EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NodeCondition) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson288e1c76DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NodeCondition) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson288e1c76DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_config_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_config_source_easyjson.go deleted file mode 100644 index de5162b..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_config_source_easyjson.go +++ /dev/null @@ -1,94 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonDa5fadd7DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NodeConfigSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "configMap": - if in.IsNull() { - in.Skip() - out.ConfigMap = nil - } else { - if out.ConfigMap == nil { - out.ConfigMap = new(ConfigMapNodeConfigSource) - } - (*out.ConfigMap).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonDa5fadd7EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NodeConfigSource) { - out.RawByte('{') - first := true - _ = first - if in.ConfigMap != nil { - const prefix string = ",\"configMap\":" - first = false - out.RawString(prefix[1:]) - (*in.ConfigMap).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NodeConfigSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonDa5fadd7EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NodeConfigSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonDa5fadd7EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NodeConfigSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonDa5fadd7DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NodeConfigSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonDa5fadd7DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_config_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_config_status_easyjson.go deleted file mode 100644 index 7cdd637..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_config_status_easyjson.go +++ /dev/null @@ -1,146 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson7a6c6556DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NodeConfigStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "active": - if in.IsNull() { - in.Skip() - out.Active = nil - } else { - if out.Active == nil { - out.Active = new(NodeConfigSource) - } - (*out.Active).UnmarshalEasyJSON(in) - } - case "assigned": - if in.IsNull() { - in.Skip() - out.Assigned = nil - } else { - if out.Assigned == nil { - out.Assigned = new(NodeConfigSource) - } - (*out.Assigned).UnmarshalEasyJSON(in) - } - case "error": - out.Error = string(in.String()) - case "lastKnownGood": - if in.IsNull() { - in.Skip() - out.LastKnownGood = nil - } else { - if out.LastKnownGood == nil { - out.LastKnownGood = new(NodeConfigSource) - } - (*out.LastKnownGood).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7a6c6556EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NodeConfigStatus) { - out.RawByte('{') - first := true - _ = first - if in.Active != nil { - const prefix string = ",\"active\":" - first = false - out.RawString(prefix[1:]) - (*in.Active).MarshalEasyJSON(out) - } - if in.Assigned != nil { - const prefix string = ",\"assigned\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Assigned).MarshalEasyJSON(out) - } - if in.Error != "" { - const prefix string = ",\"error\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Error)) - } - if in.LastKnownGood != nil { - const prefix string = ",\"lastKnownGood\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.LastKnownGood).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NodeConfigStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson7a6c6556EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NodeConfigStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjson7a6c6556EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NodeConfigStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson7a6c6556DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NodeConfigStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson7a6c6556DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_daemon_endpoints_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_daemon_endpoints_easyjson.go deleted file mode 100644 index 6a89f2a..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_daemon_endpoints_easyjson.go +++ /dev/null @@ -1,94 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson2f6f7e5aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NodeDaemonEndpoints) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "kubeletEndpoint": - if in.IsNull() { - in.Skip() - out.KubeletEndpoint = nil - } else { - if out.KubeletEndpoint == nil { - out.KubeletEndpoint = new(DaemonEndpoint) - } - (*out.KubeletEndpoint).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2f6f7e5aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NodeDaemonEndpoints) { - out.RawByte('{') - first := true - _ = first - if in.KubeletEndpoint != nil { - const prefix string = ",\"kubeletEndpoint\":" - first = false - out.RawString(prefix[1:]) - (*in.KubeletEndpoint).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NodeDaemonEndpoints) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson2f6f7e5aEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NodeDaemonEndpoints) MarshalEasyJSON(w *jwriter.Writer) { - easyjson2f6f7e5aEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NodeDaemonEndpoints) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson2f6f7e5aDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NodeDaemonEndpoints) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson2f6f7e5aDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_easyjson.go deleted file mode 100644 index 8646472..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_easyjson.go +++ /dev/null @@ -1,1570 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Node) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(NodeSpec) - } - easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.Spec) - } - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(NodeStatus) - } - easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.Status) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Node) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.Spec) - } - if in.Status != nil { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.Status) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Node) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Node) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Node) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Node) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *NodeStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "addresses": - if in.IsNull() { - in.Skip() - out.Addresses = nil - } else { - in.Delim('[') - if out.Addresses == nil { - if !in.IsDelim(']') { - out.Addresses = make([]*NodeAddress, 0, 8) - } else { - out.Addresses = []*NodeAddress{} - } - } else { - out.Addresses = (out.Addresses)[:0] - } - for !in.IsDelim(']') { - var v1 *NodeAddress - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(NodeAddress) - } - easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV13(in, v1) - } - out.Addresses = append(out.Addresses, v1) - in.WantComma() - } - in.Delim(']') - } - case "allocatable": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Allocatable = make(map[string]*resource.Quantity) - } else { - out.Allocatable = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v2 *resource.Quantity - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(resource.Quantity) - } - *v2 = resource.Quantity(in.String()) - } - (out.Allocatable)[key] = v2 - in.WantComma() - } - in.Delim('}') - } - case "capacity": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Capacity = make(map[string]*resource.Quantity) - } else { - out.Capacity = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v3 *resource.Quantity - if in.IsNull() { - in.Skip() - v3 = nil - } else { - if v3 == nil { - v3 = new(resource.Quantity) - } - *v3 = resource.Quantity(in.String()) - } - (out.Capacity)[key] = v3 - in.WantComma() - } - in.Delim('}') - } - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*NodeCondition, 0, 8) - } else { - out.Conditions = []*NodeCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v4 *NodeCondition - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(NodeCondition) - } - easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV14(in, v4) - } - out.Conditions = append(out.Conditions, v4) - in.WantComma() - } - in.Delim(']') - } - case "config": - if in.IsNull() { - in.Skip() - out.Config = nil - } else { - if out.Config == nil { - out.Config = new(NodeConfigStatus) - } - easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV15(in, out.Config) - } - case "daemonEndpoints": - if in.IsNull() { - in.Skip() - out.DaemonEndpoints = nil - } else { - if out.DaemonEndpoints == nil { - out.DaemonEndpoints = new(NodeDaemonEndpoints) - } - easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV16(in, out.DaemonEndpoints) - } - case "images": - if in.IsNull() { - in.Skip() - out.Images = nil - } else { - in.Delim('[') - if out.Images == nil { - if !in.IsDelim(']') { - out.Images = make([]*ContainerImage, 0, 8) - } else { - out.Images = []*ContainerImage{} - } - } else { - out.Images = (out.Images)[:0] - } - for !in.IsDelim(']') { - var v5 *ContainerImage - if in.IsNull() { - in.Skip() - v5 = nil - } else { - if v5 == nil { - v5 = new(ContainerImage) - } - (*v5).UnmarshalEasyJSON(in) - } - out.Images = append(out.Images, v5) - in.WantComma() - } - in.Delim(']') - } - case "nodeInfo": - if in.IsNull() { - in.Skip() - out.NodeInfo = nil - } else { - if out.NodeInfo == nil { - out.NodeInfo = new(NodeSystemInfo) - } - easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV17(in, out.NodeInfo) - } - case "phase": - out.Phase = string(in.String()) - case "volumesAttached": - if in.IsNull() { - in.Skip() - out.VolumesAttached = nil - } else { - in.Delim('[') - if out.VolumesAttached == nil { - if !in.IsDelim(']') { - out.VolumesAttached = make([]*AttachedVolume, 0, 8) - } else { - out.VolumesAttached = []*AttachedVolume{} - } - } else { - out.VolumesAttached = (out.VolumesAttached)[:0] - } - for !in.IsDelim(']') { - var v6 *AttachedVolume - if in.IsNull() { - in.Skip() - v6 = nil - } else { - if v6 == nil { - v6 = new(AttachedVolume) - } - (*v6).UnmarshalEasyJSON(in) - } - out.VolumesAttached = append(out.VolumesAttached, v6) - in.WantComma() - } - in.Delim(']') - } - case "volumesInUse": - if in.IsNull() { - in.Skip() - out.VolumesInUse = nil - } else { - in.Delim('[') - if out.VolumesInUse == nil { - if !in.IsDelim(']') { - out.VolumesInUse = make([]string, 0, 4) - } else { - out.VolumesInUse = []string{} - } - } else { - out.VolumesInUse = (out.VolumesInUse)[:0] - } - for !in.IsDelim(']') { - var v7 string - v7 = string(in.String()) - out.VolumesInUse = append(out.VolumesInUse, v7) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in NodeStatus) { - out.RawByte('{') - first := true - _ = first - if len(in.Addresses) != 0 { - const prefix string = ",\"addresses\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v8, v9 := range in.Addresses { - if v8 > 0 { - out.RawByte(',') - } - if v9 == nil { - out.RawString("null") - } else { - easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *v9) - } - } - out.RawByte(']') - } - } - if len(in.Allocatable) != 0 { - const prefix string = ",\"allocatable\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v10First := true - for v10Name, v10Value := range in.Allocatable { - if v10First { - v10First = false - } else { - out.RawByte(',') - } - out.String(string(v10Name)) - out.RawByte(':') - if v10Value == nil { - out.RawString("null") - } else { - out.String(string(*v10Value)) - } - } - out.RawByte('}') - } - } - if len(in.Capacity) != 0 { - const prefix string = ",\"capacity\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v11First := true - for v11Name, v11Value := range in.Capacity { - if v11First { - v11First = false - } else { - out.RawByte(',') - } - out.String(string(v11Name)) - out.RawByte(':') - if v11Value == nil { - out.RawString("null") - } else { - out.String(string(*v11Value)) - } - } - out.RawByte('}') - } - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v12, v13 := range in.Conditions { - if v12 > 0 { - out.RawByte(',') - } - if v13 == nil { - out.RawString("null") - } else { - easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *v13) - } - } - out.RawByte(']') - } - } - if in.Config != nil { - const prefix string = ",\"config\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV15(out, *in.Config) - } - if in.DaemonEndpoints != nil { - const prefix string = ",\"daemonEndpoints\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV16(out, *in.DaemonEndpoints) - } - if len(in.Images) != 0 { - const prefix string = ",\"images\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v14, v15 := range in.Images { - if v14 > 0 { - out.RawByte(',') - } - if v15 == nil { - out.RawString("null") - } else { - (*v15).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.NodeInfo != nil { - const prefix string = ",\"nodeInfo\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV17(out, *in.NodeInfo) - } - if in.Phase != "" { - const prefix string = ",\"phase\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Phase)) - } - if len(in.VolumesAttached) != 0 { - const prefix string = ",\"volumesAttached\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v16, v17 := range in.VolumesAttached { - if v16 > 0 { - out.RawByte(',') - } - if v17 == nil { - out.RawString("null") - } else { - (*v17).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.VolumesInUse) != 0 { - const prefix string = ",\"volumesInUse\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v18, v19 := range in.VolumesInUse { - if v18 > 0 { - out.RawByte(',') - } - out.String(string(v19)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV17(in *jlexer.Lexer, out *NodeSystemInfo) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "architecture": - if in.IsNull() { - in.Skip() - out.Architecture = nil - } else { - if out.Architecture == nil { - out.Architecture = new(string) - } - *out.Architecture = string(in.String()) - } - case "bootID": - if in.IsNull() { - in.Skip() - out.BootID = nil - } else { - if out.BootID == nil { - out.BootID = new(string) - } - *out.BootID = string(in.String()) - } - case "containerRuntimeVersion": - if in.IsNull() { - in.Skip() - out.ContainerRuntimeVersion = nil - } else { - if out.ContainerRuntimeVersion == nil { - out.ContainerRuntimeVersion = new(string) - } - *out.ContainerRuntimeVersion = string(in.String()) - } - case "kernelVersion": - if in.IsNull() { - in.Skip() - out.KernelVersion = nil - } else { - if out.KernelVersion == nil { - out.KernelVersion = new(string) - } - *out.KernelVersion = string(in.String()) - } - case "kubeProxyVersion": - if in.IsNull() { - in.Skip() - out.KubeProxyVersion = nil - } else { - if out.KubeProxyVersion == nil { - out.KubeProxyVersion = new(string) - } - *out.KubeProxyVersion = string(in.String()) - } - case "kubeletVersion": - if in.IsNull() { - in.Skip() - out.KubeletVersion = nil - } else { - if out.KubeletVersion == nil { - out.KubeletVersion = new(string) - } - *out.KubeletVersion = string(in.String()) - } - case "machineID": - if in.IsNull() { - in.Skip() - out.MachineID = nil - } else { - if out.MachineID == nil { - out.MachineID = new(string) - } - *out.MachineID = string(in.String()) - } - case "operatingSystem": - if in.IsNull() { - in.Skip() - out.OperatingSystem = nil - } else { - if out.OperatingSystem == nil { - out.OperatingSystem = new(string) - } - *out.OperatingSystem = string(in.String()) - } - case "osImage": - if in.IsNull() { - in.Skip() - out.OSImage = nil - } else { - if out.OSImage == nil { - out.OSImage = new(string) - } - *out.OSImage = string(in.String()) - } - case "systemUUID": - if in.IsNull() { - in.Skip() - out.SystemUUID = nil - } else { - if out.SystemUUID == nil { - out.SystemUUID = new(string) - } - *out.SystemUUID = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV17(out *jwriter.Writer, in NodeSystemInfo) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"architecture\":" - out.RawString(prefix[1:]) - if in.Architecture == nil { - out.RawString("null") - } else { - out.String(string(*in.Architecture)) - } - } - { - const prefix string = ",\"bootID\":" - out.RawString(prefix) - if in.BootID == nil { - out.RawString("null") - } else { - out.String(string(*in.BootID)) - } - } - { - const prefix string = ",\"containerRuntimeVersion\":" - out.RawString(prefix) - if in.ContainerRuntimeVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.ContainerRuntimeVersion)) - } - } - { - const prefix string = ",\"kernelVersion\":" - out.RawString(prefix) - if in.KernelVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.KernelVersion)) - } - } - { - const prefix string = ",\"kubeProxyVersion\":" - out.RawString(prefix) - if in.KubeProxyVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.KubeProxyVersion)) - } - } - { - const prefix string = ",\"kubeletVersion\":" - out.RawString(prefix) - if in.KubeletVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.KubeletVersion)) - } - } - { - const prefix string = ",\"machineID\":" - out.RawString(prefix) - if in.MachineID == nil { - out.RawString("null") - } else { - out.String(string(*in.MachineID)) - } - } - { - const prefix string = ",\"operatingSystem\":" - out.RawString(prefix) - if in.OperatingSystem == nil { - out.RawString("null") - } else { - out.String(string(*in.OperatingSystem)) - } - } - { - const prefix string = ",\"osImage\":" - out.RawString(prefix) - if in.OSImage == nil { - out.RawString("null") - } else { - out.String(string(*in.OSImage)) - } - } - { - const prefix string = ",\"systemUUID\":" - out.RawString(prefix) - if in.SystemUUID == nil { - out.RawString("null") - } else { - out.String(string(*in.SystemUUID)) - } - } - out.RawByte('}') -} -func easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV16(in *jlexer.Lexer, out *NodeDaemonEndpoints) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "kubeletEndpoint": - if in.IsNull() { - in.Skip() - out.KubeletEndpoint = nil - } else { - if out.KubeletEndpoint == nil { - out.KubeletEndpoint = new(DaemonEndpoint) - } - (*out.KubeletEndpoint).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV16(out *jwriter.Writer, in NodeDaemonEndpoints) { - out.RawByte('{') - first := true - _ = first - if in.KubeletEndpoint != nil { - const prefix string = ",\"kubeletEndpoint\":" - first = false - out.RawString(prefix[1:]) - (*in.KubeletEndpoint).MarshalEasyJSON(out) - } - out.RawByte('}') -} -func easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV15(in *jlexer.Lexer, out *NodeConfigStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "active": - if in.IsNull() { - in.Skip() - out.Active = nil - } else { - if out.Active == nil { - out.Active = new(NodeConfigSource) - } - easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV18(in, out.Active) - } - case "assigned": - if in.IsNull() { - in.Skip() - out.Assigned = nil - } else { - if out.Assigned == nil { - out.Assigned = new(NodeConfigSource) - } - easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV18(in, out.Assigned) - } - case "error": - out.Error = string(in.String()) - case "lastKnownGood": - if in.IsNull() { - in.Skip() - out.LastKnownGood = nil - } else { - if out.LastKnownGood == nil { - out.LastKnownGood = new(NodeConfigSource) - } - easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV18(in, out.LastKnownGood) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV15(out *jwriter.Writer, in NodeConfigStatus) { - out.RawByte('{') - first := true - _ = first - if in.Active != nil { - const prefix string = ",\"active\":" - first = false - out.RawString(prefix[1:]) - easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV18(out, *in.Active) - } - if in.Assigned != nil { - const prefix string = ",\"assigned\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV18(out, *in.Assigned) - } - if in.Error != "" { - const prefix string = ",\"error\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Error)) - } - if in.LastKnownGood != nil { - const prefix string = ",\"lastKnownGood\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV18(out, *in.LastKnownGood) - } - out.RawByte('}') -} -func easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV18(in *jlexer.Lexer, out *NodeConfigSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "configMap": - if in.IsNull() { - in.Skip() - out.ConfigMap = nil - } else { - if out.ConfigMap == nil { - out.ConfigMap = new(ConfigMapNodeConfigSource) - } - (*out.ConfigMap).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV18(out *jwriter.Writer, in NodeConfigSource) { - out.RawByte('{') - first := true - _ = first - if in.ConfigMap != nil { - const prefix string = ",\"configMap\":" - first = false - out.RawString(prefix[1:]) - (*in.ConfigMap).MarshalEasyJSON(out) - } - out.RawByte('}') -} -func easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Lexer, out *NodeCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastHeartbeatTime": - if in.IsNull() { - in.Skip() - out.LastHeartbeatTime = nil - } else { - if out.LastHeartbeatTime == nil { - out.LastHeartbeatTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastHeartbeatTime).UnmarshalJSON(data)) - } - } - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter.Writer, in NodeCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastHeartbeatTime != nil { - const prefix string = ",\"lastHeartbeatTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastHeartbeatTime).MarshalJSON()) - } - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} -func easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *NodeAddress) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "address": - if in.IsNull() { - in.Skip() - out.Address = nil - } else { - if out.Address == nil { - out.Address = new(string) - } - *out.Address = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in NodeAddress) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"address\":" - out.RawString(prefix[1:]) - if in.Address == nil { - out.RawString("null") - } else { - out.String(string(*in.Address)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} -func easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *NodeSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "configSource": - if in.IsNull() { - in.Skip() - out.ConfigSource = nil - } else { - if out.ConfigSource == nil { - out.ConfigSource = new(NodeConfigSource) - } - easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV18(in, out.ConfigSource) - } - case "externalID": - out.ExternalID = string(in.String()) - case "podCIDR": - out.PodCIDR = string(in.String()) - case "podCIDRs": - if in.IsNull() { - in.Skip() - out.PodCIDRs = nil - } else { - in.Delim('[') - if out.PodCIDRs == nil { - if !in.IsDelim(']') { - out.PodCIDRs = make([]string, 0, 4) - } else { - out.PodCIDRs = []string{} - } - } else { - out.PodCIDRs = (out.PodCIDRs)[:0] - } - for !in.IsDelim(']') { - var v20 string - v20 = string(in.String()) - out.PodCIDRs = append(out.PodCIDRs, v20) - in.WantComma() - } - in.Delim(']') - } - case "providerID": - out.ProviderID = string(in.String()) - case "taints": - if in.IsNull() { - in.Skip() - out.Taints = nil - } else { - in.Delim('[') - if out.Taints == nil { - if !in.IsDelim(']') { - out.Taints = make([]*Taint, 0, 8) - } else { - out.Taints = []*Taint{} - } - } else { - out.Taints = (out.Taints)[:0] - } - for !in.IsDelim(']') { - var v21 *Taint - if in.IsNull() { - in.Skip() - v21 = nil - } else { - if v21 == nil { - v21 = new(Taint) - } - easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV19(in, v21) - } - out.Taints = append(out.Taints, v21) - in.WantComma() - } - in.Delim(']') - } - case "unschedulable": - out.Unschedulable = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in NodeSpec) { - out.RawByte('{') - first := true - _ = first - if in.ConfigSource != nil { - const prefix string = ",\"configSource\":" - first = false - out.RawString(prefix[1:]) - easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV18(out, *in.ConfigSource) - } - if in.ExternalID != "" { - const prefix string = ",\"externalID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ExternalID)) - } - if in.PodCIDR != "" { - const prefix string = ",\"podCIDR\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.PodCIDR)) - } - if len(in.PodCIDRs) != 0 { - const prefix string = ",\"podCIDRs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v22, v23 := range in.PodCIDRs { - if v22 > 0 { - out.RawByte(',') - } - out.String(string(v23)) - } - out.RawByte(']') - } - } - if in.ProviderID != "" { - const prefix string = ",\"providerID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ProviderID)) - } - if len(in.Taints) != 0 { - const prefix string = ",\"taints\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v24, v25 := range in.Taints { - if v24 > 0 { - out.RawByte(',') - } - if v25 == nil { - out.RawString("null") - } else { - easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV19(out, *v25) - } - } - out.RawByte(']') - } - } - if in.Unschedulable { - const prefix string = ",\"unschedulable\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Unschedulable)) - } - out.RawByte('}') -} -func easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV19(in *jlexer.Lexer, out *Taint) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "effect": - if in.IsNull() { - in.Skip() - out.Effect = nil - } else { - if out.Effect == nil { - out.Effect = new(string) - } - *out.Effect = string(in.String()) - } - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "timeAdded": - if in.IsNull() { - in.Skip() - out.TimeAdded = nil - } else { - if out.TimeAdded == nil { - out.TimeAdded = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.TimeAdded).UnmarshalJSON(data)) - } - } - case "value": - out.Value = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV19(out *jwriter.Writer, in Taint) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"effect\":" - out.RawString(prefix[1:]) - if in.Effect == nil { - out.RawString("null") - } else { - out.String(string(*in.Effect)) - } - } - { - const prefix string = ",\"key\":" - out.RawString(prefix) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - if in.TimeAdded != nil { - const prefix string = ",\"timeAdded\":" - out.RawString(prefix) - out.Raw((*in.TimeAdded).MarshalJSON()) - } - if in.Value != "" { - const prefix string = ",\"value\":" - out.RawString(prefix) - out.String(string(in.Value)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_list_easyjson.go deleted file mode 100644 index 835d99c..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson75277e89DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NodeList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*Node, 0, 8) - } else { - out.Items = []*Node{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *Node - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(Node) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson75277e89EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NodeList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NodeList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson75277e89EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NodeList) MarshalEasyJSON(w *jwriter.Writer) { - easyjson75277e89EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NodeList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson75277e89DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NodeList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson75277e89DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_selector_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_selector_easyjson.go deleted file mode 100644 index 83d6de3..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_selector_easyjson.go +++ /dev/null @@ -1,378 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson6deaac56DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NodeSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "nodeSelectorTerms": - if in.IsNull() { - in.Skip() - out.NodeSelectorTerms = nil - } else { - in.Delim('[') - if out.NodeSelectorTerms == nil { - if !in.IsDelim(']') { - out.NodeSelectorTerms = make([]*NodeSelectorTerm, 0, 8) - } else { - out.NodeSelectorTerms = []*NodeSelectorTerm{} - } - } else { - out.NodeSelectorTerms = (out.NodeSelectorTerms)[:0] - } - for !in.IsDelim(']') { - var v1 *NodeSelectorTerm - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(NodeSelectorTerm) - } - easyjson6deaac56DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, v1) - } - out.NodeSelectorTerms = append(out.NodeSelectorTerms, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6deaac56EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NodeSelector) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"nodeSelectorTerms\":" - out.RawString(prefix[1:]) - if in.NodeSelectorTerms == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.NodeSelectorTerms { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjson6deaac56EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *v3) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NodeSelector) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson6deaac56EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NodeSelector) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6deaac56EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NodeSelector) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson6deaac56DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NodeSelector) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6deaac56DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson6deaac56DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *NodeSelectorTerm) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "matchExpressions": - if in.IsNull() { - in.Skip() - out.MatchExpressions = nil - } else { - in.Delim('[') - if out.MatchExpressions == nil { - if !in.IsDelim(']') { - out.MatchExpressions = make([]*NodeSelectorRequirement, 0, 8) - } else { - out.MatchExpressions = []*NodeSelectorRequirement{} - } - } else { - out.MatchExpressions = (out.MatchExpressions)[:0] - } - for !in.IsDelim(']') { - var v4 *NodeSelectorRequirement - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(NodeSelectorRequirement) - } - easyjson6deaac56DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, v4) - } - out.MatchExpressions = append(out.MatchExpressions, v4) - in.WantComma() - } - in.Delim(']') - } - case "matchFields": - if in.IsNull() { - in.Skip() - out.MatchFields = nil - } else { - in.Delim('[') - if out.MatchFields == nil { - if !in.IsDelim(']') { - out.MatchFields = make([]*NodeSelectorRequirement, 0, 8) - } else { - out.MatchFields = []*NodeSelectorRequirement{} - } - } else { - out.MatchFields = (out.MatchFields)[:0] - } - for !in.IsDelim(']') { - var v5 *NodeSelectorRequirement - if in.IsNull() { - in.Skip() - v5 = nil - } else { - if v5 == nil { - v5 = new(NodeSelectorRequirement) - } - easyjson6deaac56DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, v5) - } - out.MatchFields = append(out.MatchFields, v5) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6deaac56EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in NodeSelectorTerm) { - out.RawByte('{') - first := true - _ = first - if len(in.MatchExpressions) != 0 { - const prefix string = ",\"matchExpressions\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v6, v7 := range in.MatchExpressions { - if v6 > 0 { - out.RawByte(',') - } - if v7 == nil { - out.RawString("null") - } else { - easyjson6deaac56EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *v7) - } - } - out.RawByte(']') - } - } - if len(in.MatchFields) != 0 { - const prefix string = ",\"matchFields\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v8, v9 := range in.MatchFields { - if v8 > 0 { - out.RawByte(',') - } - if v9 == nil { - out.RawString("null") - } else { - easyjson6deaac56EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *v9) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjson6deaac56DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *NodeSelectorRequirement) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "operator": - if in.IsNull() { - in.Skip() - out.Operator = nil - } else { - if out.Operator == nil { - out.Operator = new(string) - } - *out.Operator = string(in.String()) - } - case "values": - if in.IsNull() { - in.Skip() - out.Values = nil - } else { - in.Delim('[') - if out.Values == nil { - if !in.IsDelim(']') { - out.Values = make([]string, 0, 4) - } else { - out.Values = []string{} - } - } else { - out.Values = (out.Values)[:0] - } - for !in.IsDelim(']') { - var v10 string - v10 = string(in.String()) - out.Values = append(out.Values, v10) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6deaac56EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in NodeSelectorRequirement) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"key\":" - out.RawString(prefix[1:]) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - { - const prefix string = ",\"operator\":" - out.RawString(prefix) - if in.Operator == nil { - out.RawString("null") - } else { - out.String(string(*in.Operator)) - } - } - if len(in.Values) != 0 { - const prefix string = ",\"values\":" - out.RawString(prefix) - { - out.RawByte('[') - for v11, v12 := range in.Values { - if v11 > 0 { - out.RawByte(',') - } - out.String(string(v12)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_selector_requirement.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_selector_requirement.go index e31449d..d9257a7 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_selector_requirement.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_selector_requirement.go @@ -15,8 +15,6 @@ type NodeSelectorRequirement struct { Key *string `json:"key"` // Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - // - // // Required: true Operator *string `json:"operator"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_selector_requirement_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_selector_requirement_easyjson.go deleted file mode 100644 index 46c74e0..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_selector_requirement_easyjson.go +++ /dev/null @@ -1,153 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson44f85682DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NodeSelectorRequirement) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "operator": - if in.IsNull() { - in.Skip() - out.Operator = nil - } else { - if out.Operator == nil { - out.Operator = new(string) - } - *out.Operator = string(in.String()) - } - case "values": - if in.IsNull() { - in.Skip() - out.Values = nil - } else { - in.Delim('[') - if out.Values == nil { - if !in.IsDelim(']') { - out.Values = make([]string, 0, 4) - } else { - out.Values = []string{} - } - } else { - out.Values = (out.Values)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Values = append(out.Values, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson44f85682EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NodeSelectorRequirement) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"key\":" - out.RawString(prefix[1:]) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - { - const prefix string = ",\"operator\":" - out.RawString(prefix) - if in.Operator == nil { - out.RawString("null") - } else { - out.String(string(*in.Operator)) - } - } - if len(in.Values) != 0 { - const prefix string = ",\"values\":" - out.RawString(prefix) - { - out.RawByte('[') - for v2, v3 := range in.Values { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NodeSelectorRequirement) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson44f85682EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NodeSelectorRequirement) MarshalEasyJSON(w *jwriter.Writer) { - easyjson44f85682EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NodeSelectorRequirement) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson44f85682DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NodeSelectorRequirement) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson44f85682DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_selector_term_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_selector_term_easyjson.go deleted file mode 100644 index cd61164..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_selector_term_easyjson.go +++ /dev/null @@ -1,182 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson483b2c3dDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NodeSelectorTerm) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "matchExpressions": - if in.IsNull() { - in.Skip() - out.MatchExpressions = nil - } else { - in.Delim('[') - if out.MatchExpressions == nil { - if !in.IsDelim(']') { - out.MatchExpressions = make([]*NodeSelectorRequirement, 0, 8) - } else { - out.MatchExpressions = []*NodeSelectorRequirement{} - } - } else { - out.MatchExpressions = (out.MatchExpressions)[:0] - } - for !in.IsDelim(']') { - var v1 *NodeSelectorRequirement - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(NodeSelectorRequirement) - } - (*v1).UnmarshalEasyJSON(in) - } - out.MatchExpressions = append(out.MatchExpressions, v1) - in.WantComma() - } - in.Delim(']') - } - case "matchFields": - if in.IsNull() { - in.Skip() - out.MatchFields = nil - } else { - in.Delim('[') - if out.MatchFields == nil { - if !in.IsDelim(']') { - out.MatchFields = make([]*NodeSelectorRequirement, 0, 8) - } else { - out.MatchFields = []*NodeSelectorRequirement{} - } - } else { - out.MatchFields = (out.MatchFields)[:0] - } - for !in.IsDelim(']') { - var v2 *NodeSelectorRequirement - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(NodeSelectorRequirement) - } - (*v2).UnmarshalEasyJSON(in) - } - out.MatchFields = append(out.MatchFields, v2) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson483b2c3dEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NodeSelectorTerm) { - out.RawByte('{') - first := true - _ = first - if len(in.MatchExpressions) != 0 { - const prefix string = ",\"matchExpressions\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v3, v4 := range in.MatchExpressions { - if v3 > 0 { - out.RawByte(',') - } - if v4 == nil { - out.RawString("null") - } else { - (*v4).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.MatchFields) != 0 { - const prefix string = ",\"matchFields\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v5, v6 := range in.MatchFields { - if v5 > 0 { - out.RawByte(',') - } - if v6 == nil { - out.RawString("null") - } else { - (*v6).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NodeSelectorTerm) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson483b2c3dEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NodeSelectorTerm) MarshalEasyJSON(w *jwriter.Writer) { - easyjson483b2c3dEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NodeSelectorTerm) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson483b2c3dDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NodeSelectorTerm) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson483b2c3dDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_spec.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_spec.go index 69fc304..30c5584 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_spec.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_spec.go @@ -10,7 +10,7 @@ package v1 // swagger:model NodeSpec type NodeSpec struct { - // Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed from Kubelets as of 1.24 and will be fully removed in 1.26. + // Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed. ConfigSource *NodeConfigSource `json:"configSource,omitempty"` // Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_spec_easyjson.go deleted file mode 100644 index 9e234ed..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_spec_easyjson.go +++ /dev/null @@ -1,336 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson1b6783e4DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NodeSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "configSource": - if in.IsNull() { - in.Skip() - out.ConfigSource = nil - } else { - if out.ConfigSource == nil { - out.ConfigSource = new(NodeConfigSource) - } - (*out.ConfigSource).UnmarshalEasyJSON(in) - } - case "externalID": - out.ExternalID = string(in.String()) - case "podCIDR": - out.PodCIDR = string(in.String()) - case "podCIDRs": - if in.IsNull() { - in.Skip() - out.PodCIDRs = nil - } else { - in.Delim('[') - if out.PodCIDRs == nil { - if !in.IsDelim(']') { - out.PodCIDRs = make([]string, 0, 4) - } else { - out.PodCIDRs = []string{} - } - } else { - out.PodCIDRs = (out.PodCIDRs)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.PodCIDRs = append(out.PodCIDRs, v1) - in.WantComma() - } - in.Delim(']') - } - case "providerID": - out.ProviderID = string(in.String()) - case "taints": - if in.IsNull() { - in.Skip() - out.Taints = nil - } else { - in.Delim('[') - if out.Taints == nil { - if !in.IsDelim(']') { - out.Taints = make([]*Taint, 0, 8) - } else { - out.Taints = []*Taint{} - } - } else { - out.Taints = (out.Taints)[:0] - } - for !in.IsDelim(']') { - var v2 *Taint - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(Taint) - } - easyjson1b6783e4DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, v2) - } - out.Taints = append(out.Taints, v2) - in.WantComma() - } - in.Delim(']') - } - case "unschedulable": - out.Unschedulable = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1b6783e4EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NodeSpec) { - out.RawByte('{') - first := true - _ = first - if in.ConfigSource != nil { - const prefix string = ",\"configSource\":" - first = false - out.RawString(prefix[1:]) - (*in.ConfigSource).MarshalEasyJSON(out) - } - if in.ExternalID != "" { - const prefix string = ",\"externalID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ExternalID)) - } - if in.PodCIDR != "" { - const prefix string = ",\"podCIDR\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.PodCIDR)) - } - if len(in.PodCIDRs) != 0 { - const prefix string = ",\"podCIDRs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v3, v4 := range in.PodCIDRs { - if v3 > 0 { - out.RawByte(',') - } - out.String(string(v4)) - } - out.RawByte(']') - } - } - if in.ProviderID != "" { - const prefix string = ",\"providerID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ProviderID)) - } - if len(in.Taints) != 0 { - const prefix string = ",\"taints\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v5, v6 := range in.Taints { - if v5 > 0 { - out.RawByte(',') - } - if v6 == nil { - out.RawString("null") - } else { - easyjson1b6783e4EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *v6) - } - } - out.RawByte(']') - } - } - if in.Unschedulable { - const prefix string = ",\"unschedulable\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Unschedulable)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NodeSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson1b6783e4EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NodeSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjson1b6783e4EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NodeSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson1b6783e4DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NodeSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson1b6783e4DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson1b6783e4DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *Taint) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "effect": - if in.IsNull() { - in.Skip() - out.Effect = nil - } else { - if out.Effect == nil { - out.Effect = new(string) - } - *out.Effect = string(in.String()) - } - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "timeAdded": - if in.IsNull() { - in.Skip() - out.TimeAdded = nil - } else { - if out.TimeAdded == nil { - out.TimeAdded = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.TimeAdded).UnmarshalJSON(data)) - } - } - case "value": - out.Value = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1b6783e4EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in Taint) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"effect\":" - out.RawString(prefix[1:]) - if in.Effect == nil { - out.RawString("null") - } else { - out.String(string(*in.Effect)) - } - } - { - const prefix string = ",\"key\":" - out.RawString(prefix) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - if in.TimeAdded != nil { - const prefix string = ",\"timeAdded\":" - out.RawString(prefix) - out.Raw((*in.TimeAdded).MarshalJSON()) - } - if in.Value != "" { - const prefix string = ",\"value\":" - out.RawString(prefix) - out.String(string(in.Value)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_status.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_status.go index 2e7d244..f5f3060 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_status.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_status.go @@ -14,7 +14,7 @@ import ( // swagger:model NodeStatus type NodeStatus struct { - // List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example. + // List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP). Addresses []*NodeAddress `json:"addresses,omitempty"` // Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. @@ -39,8 +39,6 @@ type NodeStatus struct { NodeInfo *NodeSystemInfo `json:"nodeInfo,omitempty"` // NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. - // - // Phase string `json:"phase,omitempty"` // List of volumes that are attached to the node. diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_status_easyjson.go deleted file mode 100644 index c697af7..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_status_easyjson.go +++ /dev/null @@ -1,742 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson94b78b83DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NodeStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "addresses": - if in.IsNull() { - in.Skip() - out.Addresses = nil - } else { - in.Delim('[') - if out.Addresses == nil { - if !in.IsDelim(']') { - out.Addresses = make([]*NodeAddress, 0, 8) - } else { - out.Addresses = []*NodeAddress{} - } - } else { - out.Addresses = (out.Addresses)[:0] - } - for !in.IsDelim(']') { - var v1 *NodeAddress - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(NodeAddress) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Addresses = append(out.Addresses, v1) - in.WantComma() - } - in.Delim(']') - } - case "allocatable": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Allocatable = make(map[string]*resource.Quantity) - } else { - out.Allocatable = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v2 *resource.Quantity - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(resource.Quantity) - } - *v2 = resource.Quantity(in.String()) - } - (out.Allocatable)[key] = v2 - in.WantComma() - } - in.Delim('}') - } - case "capacity": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Capacity = make(map[string]*resource.Quantity) - } else { - out.Capacity = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v3 *resource.Quantity - if in.IsNull() { - in.Skip() - v3 = nil - } else { - if v3 == nil { - v3 = new(resource.Quantity) - } - *v3 = resource.Quantity(in.String()) - } - (out.Capacity)[key] = v3 - in.WantComma() - } - in.Delim('}') - } - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*NodeCondition, 0, 8) - } else { - out.Conditions = []*NodeCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v4 *NodeCondition - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(NodeCondition) - } - (*v4).UnmarshalEasyJSON(in) - } - out.Conditions = append(out.Conditions, v4) - in.WantComma() - } - in.Delim(']') - } - case "config": - if in.IsNull() { - in.Skip() - out.Config = nil - } else { - if out.Config == nil { - out.Config = new(NodeConfigStatus) - } - (*out.Config).UnmarshalEasyJSON(in) - } - case "daemonEndpoints": - if in.IsNull() { - in.Skip() - out.DaemonEndpoints = nil - } else { - if out.DaemonEndpoints == nil { - out.DaemonEndpoints = new(NodeDaemonEndpoints) - } - (*out.DaemonEndpoints).UnmarshalEasyJSON(in) - } - case "images": - if in.IsNull() { - in.Skip() - out.Images = nil - } else { - in.Delim('[') - if out.Images == nil { - if !in.IsDelim(']') { - out.Images = make([]*ContainerImage, 0, 8) - } else { - out.Images = []*ContainerImage{} - } - } else { - out.Images = (out.Images)[:0] - } - for !in.IsDelim(']') { - var v5 *ContainerImage - if in.IsNull() { - in.Skip() - v5 = nil - } else { - if v5 == nil { - v5 = new(ContainerImage) - } - (*v5).UnmarshalEasyJSON(in) - } - out.Images = append(out.Images, v5) - in.WantComma() - } - in.Delim(']') - } - case "nodeInfo": - if in.IsNull() { - in.Skip() - out.NodeInfo = nil - } else { - if out.NodeInfo == nil { - out.NodeInfo = new(NodeSystemInfo) - } - easyjson94b78b83DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.NodeInfo) - } - case "phase": - out.Phase = string(in.String()) - case "volumesAttached": - if in.IsNull() { - in.Skip() - out.VolumesAttached = nil - } else { - in.Delim('[') - if out.VolumesAttached == nil { - if !in.IsDelim(']') { - out.VolumesAttached = make([]*AttachedVolume, 0, 8) - } else { - out.VolumesAttached = []*AttachedVolume{} - } - } else { - out.VolumesAttached = (out.VolumesAttached)[:0] - } - for !in.IsDelim(']') { - var v6 *AttachedVolume - if in.IsNull() { - in.Skip() - v6 = nil - } else { - if v6 == nil { - v6 = new(AttachedVolume) - } - (*v6).UnmarshalEasyJSON(in) - } - out.VolumesAttached = append(out.VolumesAttached, v6) - in.WantComma() - } - in.Delim(']') - } - case "volumesInUse": - if in.IsNull() { - in.Skip() - out.VolumesInUse = nil - } else { - in.Delim('[') - if out.VolumesInUse == nil { - if !in.IsDelim(']') { - out.VolumesInUse = make([]string, 0, 4) - } else { - out.VolumesInUse = []string{} - } - } else { - out.VolumesInUse = (out.VolumesInUse)[:0] - } - for !in.IsDelim(']') { - var v7 string - v7 = string(in.String()) - out.VolumesInUse = append(out.VolumesInUse, v7) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson94b78b83EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NodeStatus) { - out.RawByte('{') - first := true - _ = first - if len(in.Addresses) != 0 { - const prefix string = ",\"addresses\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v8, v9 := range in.Addresses { - if v8 > 0 { - out.RawByte(',') - } - if v9 == nil { - out.RawString("null") - } else { - (*v9).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.Allocatable) != 0 { - const prefix string = ",\"allocatable\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v10First := true - for v10Name, v10Value := range in.Allocatable { - if v10First { - v10First = false - } else { - out.RawByte(',') - } - out.String(string(v10Name)) - out.RawByte(':') - if v10Value == nil { - out.RawString("null") - } else { - out.String(string(*v10Value)) - } - } - out.RawByte('}') - } - } - if len(in.Capacity) != 0 { - const prefix string = ",\"capacity\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v11First := true - for v11Name, v11Value := range in.Capacity { - if v11First { - v11First = false - } else { - out.RawByte(',') - } - out.String(string(v11Name)) - out.RawByte(':') - if v11Value == nil { - out.RawString("null") - } else { - out.String(string(*v11Value)) - } - } - out.RawByte('}') - } - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v12, v13 := range in.Conditions { - if v12 > 0 { - out.RawByte(',') - } - if v13 == nil { - out.RawString("null") - } else { - (*v13).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Config != nil { - const prefix string = ",\"config\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Config).MarshalEasyJSON(out) - } - if in.DaemonEndpoints != nil { - const prefix string = ",\"daemonEndpoints\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.DaemonEndpoints).MarshalEasyJSON(out) - } - if len(in.Images) != 0 { - const prefix string = ",\"images\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v14, v15 := range in.Images { - if v14 > 0 { - out.RawByte(',') - } - if v15 == nil { - out.RawString("null") - } else { - (*v15).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.NodeInfo != nil { - const prefix string = ",\"nodeInfo\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson94b78b83EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.NodeInfo) - } - if in.Phase != "" { - const prefix string = ",\"phase\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Phase)) - } - if len(in.VolumesAttached) != 0 { - const prefix string = ",\"volumesAttached\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v16, v17 := range in.VolumesAttached { - if v16 > 0 { - out.RawByte(',') - } - if v17 == nil { - out.RawString("null") - } else { - (*v17).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.VolumesInUse) != 0 { - const prefix string = ",\"volumesInUse\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v18, v19 := range in.VolumesInUse { - if v18 > 0 { - out.RawByte(',') - } - out.String(string(v19)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NodeStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson94b78b83EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NodeStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjson94b78b83EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NodeStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson94b78b83DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NodeStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson94b78b83DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson94b78b83DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *NodeSystemInfo) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "architecture": - if in.IsNull() { - in.Skip() - out.Architecture = nil - } else { - if out.Architecture == nil { - out.Architecture = new(string) - } - *out.Architecture = string(in.String()) - } - case "bootID": - if in.IsNull() { - in.Skip() - out.BootID = nil - } else { - if out.BootID == nil { - out.BootID = new(string) - } - *out.BootID = string(in.String()) - } - case "containerRuntimeVersion": - if in.IsNull() { - in.Skip() - out.ContainerRuntimeVersion = nil - } else { - if out.ContainerRuntimeVersion == nil { - out.ContainerRuntimeVersion = new(string) - } - *out.ContainerRuntimeVersion = string(in.String()) - } - case "kernelVersion": - if in.IsNull() { - in.Skip() - out.KernelVersion = nil - } else { - if out.KernelVersion == nil { - out.KernelVersion = new(string) - } - *out.KernelVersion = string(in.String()) - } - case "kubeProxyVersion": - if in.IsNull() { - in.Skip() - out.KubeProxyVersion = nil - } else { - if out.KubeProxyVersion == nil { - out.KubeProxyVersion = new(string) - } - *out.KubeProxyVersion = string(in.String()) - } - case "kubeletVersion": - if in.IsNull() { - in.Skip() - out.KubeletVersion = nil - } else { - if out.KubeletVersion == nil { - out.KubeletVersion = new(string) - } - *out.KubeletVersion = string(in.String()) - } - case "machineID": - if in.IsNull() { - in.Skip() - out.MachineID = nil - } else { - if out.MachineID == nil { - out.MachineID = new(string) - } - *out.MachineID = string(in.String()) - } - case "operatingSystem": - if in.IsNull() { - in.Skip() - out.OperatingSystem = nil - } else { - if out.OperatingSystem == nil { - out.OperatingSystem = new(string) - } - *out.OperatingSystem = string(in.String()) - } - case "osImage": - if in.IsNull() { - in.Skip() - out.OSImage = nil - } else { - if out.OSImage == nil { - out.OSImage = new(string) - } - *out.OSImage = string(in.String()) - } - case "systemUUID": - if in.IsNull() { - in.Skip() - out.SystemUUID = nil - } else { - if out.SystemUUID == nil { - out.SystemUUID = new(string) - } - *out.SystemUUID = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson94b78b83EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in NodeSystemInfo) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"architecture\":" - out.RawString(prefix[1:]) - if in.Architecture == nil { - out.RawString("null") - } else { - out.String(string(*in.Architecture)) - } - } - { - const prefix string = ",\"bootID\":" - out.RawString(prefix) - if in.BootID == nil { - out.RawString("null") - } else { - out.String(string(*in.BootID)) - } - } - { - const prefix string = ",\"containerRuntimeVersion\":" - out.RawString(prefix) - if in.ContainerRuntimeVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.ContainerRuntimeVersion)) - } - } - { - const prefix string = ",\"kernelVersion\":" - out.RawString(prefix) - if in.KernelVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.KernelVersion)) - } - } - { - const prefix string = ",\"kubeProxyVersion\":" - out.RawString(prefix) - if in.KubeProxyVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.KubeProxyVersion)) - } - } - { - const prefix string = ",\"kubeletVersion\":" - out.RawString(prefix) - if in.KubeletVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.KubeletVersion)) - } - } - { - const prefix string = ",\"machineID\":" - out.RawString(prefix) - if in.MachineID == nil { - out.RawString("null") - } else { - out.String(string(*in.MachineID)) - } - } - { - const prefix string = ",\"operatingSystem\":" - out.RawString(prefix) - if in.OperatingSystem == nil { - out.RawString("null") - } else { - out.String(string(*in.OperatingSystem)) - } - } - { - const prefix string = ",\"osImage\":" - out.RawString(prefix) - if in.OSImage == nil { - out.RawString("null") - } else { - out.String(string(*in.OSImage)) - } - } - { - const prefix string = ",\"systemUUID\":" - out.RawString(prefix) - if in.SystemUUID == nil { - out.RawString("null") - } else { - out.String(string(*in.SystemUUID)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_system_info_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_system_info_easyjson.go deleted file mode 100644 index f7cfab5..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_system_info_easyjson.go +++ /dev/null @@ -1,268 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson56ebc1a3DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NodeSystemInfo) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "architecture": - if in.IsNull() { - in.Skip() - out.Architecture = nil - } else { - if out.Architecture == nil { - out.Architecture = new(string) - } - *out.Architecture = string(in.String()) - } - case "bootID": - if in.IsNull() { - in.Skip() - out.BootID = nil - } else { - if out.BootID == nil { - out.BootID = new(string) - } - *out.BootID = string(in.String()) - } - case "containerRuntimeVersion": - if in.IsNull() { - in.Skip() - out.ContainerRuntimeVersion = nil - } else { - if out.ContainerRuntimeVersion == nil { - out.ContainerRuntimeVersion = new(string) - } - *out.ContainerRuntimeVersion = string(in.String()) - } - case "kernelVersion": - if in.IsNull() { - in.Skip() - out.KernelVersion = nil - } else { - if out.KernelVersion == nil { - out.KernelVersion = new(string) - } - *out.KernelVersion = string(in.String()) - } - case "kubeProxyVersion": - if in.IsNull() { - in.Skip() - out.KubeProxyVersion = nil - } else { - if out.KubeProxyVersion == nil { - out.KubeProxyVersion = new(string) - } - *out.KubeProxyVersion = string(in.String()) - } - case "kubeletVersion": - if in.IsNull() { - in.Skip() - out.KubeletVersion = nil - } else { - if out.KubeletVersion == nil { - out.KubeletVersion = new(string) - } - *out.KubeletVersion = string(in.String()) - } - case "machineID": - if in.IsNull() { - in.Skip() - out.MachineID = nil - } else { - if out.MachineID == nil { - out.MachineID = new(string) - } - *out.MachineID = string(in.String()) - } - case "operatingSystem": - if in.IsNull() { - in.Skip() - out.OperatingSystem = nil - } else { - if out.OperatingSystem == nil { - out.OperatingSystem = new(string) - } - *out.OperatingSystem = string(in.String()) - } - case "osImage": - if in.IsNull() { - in.Skip() - out.OSImage = nil - } else { - if out.OSImage == nil { - out.OSImage = new(string) - } - *out.OSImage = string(in.String()) - } - case "systemUUID": - if in.IsNull() { - in.Skip() - out.SystemUUID = nil - } else { - if out.SystemUUID == nil { - out.SystemUUID = new(string) - } - *out.SystemUUID = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson56ebc1a3EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NodeSystemInfo) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"architecture\":" - out.RawString(prefix[1:]) - if in.Architecture == nil { - out.RawString("null") - } else { - out.String(string(*in.Architecture)) - } - } - { - const prefix string = ",\"bootID\":" - out.RawString(prefix) - if in.BootID == nil { - out.RawString("null") - } else { - out.String(string(*in.BootID)) - } - } - { - const prefix string = ",\"containerRuntimeVersion\":" - out.RawString(prefix) - if in.ContainerRuntimeVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.ContainerRuntimeVersion)) - } - } - { - const prefix string = ",\"kernelVersion\":" - out.RawString(prefix) - if in.KernelVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.KernelVersion)) - } - } - { - const prefix string = ",\"kubeProxyVersion\":" - out.RawString(prefix) - if in.KubeProxyVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.KubeProxyVersion)) - } - } - { - const prefix string = ",\"kubeletVersion\":" - out.RawString(prefix) - if in.KubeletVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.KubeletVersion)) - } - } - { - const prefix string = ",\"machineID\":" - out.RawString(prefix) - if in.MachineID == nil { - out.RawString("null") - } else { - out.String(string(*in.MachineID)) - } - } - { - const prefix string = ",\"operatingSystem\":" - out.RawString(prefix) - if in.OperatingSystem == nil { - out.RawString("null") - } else { - out.String(string(*in.OperatingSystem)) - } - } - { - const prefix string = ",\"osImage\":" - out.RawString(prefix) - if in.OSImage == nil { - out.RawString("null") - } else { - out.String(string(*in.OSImage)) - } - } - { - const prefix string = ",\"systemUUID\":" - out.RawString(prefix) - if in.SystemUUID == nil { - out.RawString("null") - } else { - out.String(string(*in.SystemUUID)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v NodeSystemInfo) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson56ebc1a3EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v NodeSystemInfo) MarshalEasyJSON(w *jwriter.Writer) { - easyjson56ebc1a3EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *NodeSystemInfo) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson56ebc1a3DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *NodeSystemInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson56ebc1a3DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/object_field_selector_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/object_field_selector_easyjson.go deleted file mode 100644 index 2d4eb00..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/object_field_selector_easyjson.go +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson1cac8d52DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ObjectFieldSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "fieldPath": - if in.IsNull() { - in.Skip() - out.FieldPath = nil - } else { - if out.FieldPath == nil { - out.FieldPath = new(string) - } - *out.FieldPath = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1cac8d52EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ObjectFieldSelector) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"fieldPath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.FieldPath == nil { - out.RawString("null") - } else { - out.String(string(*in.FieldPath)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ObjectFieldSelector) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson1cac8d52EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ObjectFieldSelector) MarshalEasyJSON(w *jwriter.Writer) { - easyjson1cac8d52EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ObjectFieldSelector) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson1cac8d52DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ObjectFieldSelector) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson1cac8d52DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/object_reference_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/object_reference_easyjson.go deleted file mode 100644 index 44b0bb1..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/object_reference_easyjson.go +++ /dev/null @@ -1,158 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson37b8f957DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ObjectReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "fieldPath": - out.FieldPath = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "name": - out.Name = string(in.String()) - case "namespace": - out.Namespace = string(in.String()) - case "resourceVersion": - out.ResourceVersion = string(in.String()) - case "uid": - out.UID = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson37b8f957EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ObjectReference) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.FieldPath != "" { - const prefix string = ",\"fieldPath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.FieldPath)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Name != "" { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Name)) - } - if in.Namespace != "" { - const prefix string = ",\"namespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Namespace)) - } - if in.ResourceVersion != "" { - const prefix string = ",\"resourceVersion\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ResourceVersion)) - } - if in.UID != "" { - const prefix string = ",\"uid\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.UID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ObjectReference) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson37b8f957EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ObjectReference) MarshalEasyJSON(w *jwriter.Writer) { - easyjson37b8f957EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ObjectReference) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson37b8f957DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ObjectReference) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson37b8f957DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_condition.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_condition.go index 54eaa5f..70231dd 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_condition.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_condition.go @@ -9,7 +9,7 @@ import ( apimachinery_pkg_apis_meta_v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" ) -// PersistentVolumeClaimCondition PersistentVolumeClaimCondition contails details about state of pvc +// PersistentVolumeClaimCondition PersistentVolumeClaimCondition contains details about state of pvc // // swagger:model PersistentVolumeClaimCondition type PersistentVolumeClaimCondition struct { diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_condition_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_condition_easyjson.go deleted file mode 100644 index 4f67c68..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_condition_easyjson.go +++ /dev/null @@ -1,186 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson65968fddDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PersistentVolumeClaimCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastProbeTime": - if in.IsNull() { - in.Skip() - out.LastProbeTime = nil - } else { - if out.LastProbeTime == nil { - out.LastProbeTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastProbeTime).UnmarshalJSON(data)) - } - } - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson65968fddEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PersistentVolumeClaimCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastProbeTime != nil { - const prefix string = ",\"lastProbeTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastProbeTime).MarshalJSON()) - } - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PersistentVolumeClaimCondition) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson65968fddEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PersistentVolumeClaimCondition) MarshalEasyJSON(w *jwriter.Writer) { - easyjson65968fddEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PersistentVolumeClaimCondition) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson65968fddDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PersistentVolumeClaimCondition) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson65968fddDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_easyjson.go deleted file mode 100644 index a6cb213..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_easyjson.go +++ /dev/null @@ -1,983 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonF52ef087DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PersistentVolumeClaim) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(PersistentVolumeClaimSpec) - } - easyjsonF52ef087DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.Spec) - } - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(PersistentVolumeClaimStatus) - } - easyjsonF52ef087DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.Status) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF52ef087EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PersistentVolumeClaim) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonF52ef087EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.Spec) - } - if in.Status != nil { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonF52ef087EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.Status) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PersistentVolumeClaim) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonF52ef087EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PersistentVolumeClaim) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonF52ef087EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PersistentVolumeClaim) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonF52ef087DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PersistentVolumeClaim) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonF52ef087DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonF52ef087DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *PersistentVolumeClaimStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "accessModes": - if in.IsNull() { - in.Skip() - out.AccessModes = nil - } else { - in.Delim('[') - if out.AccessModes == nil { - if !in.IsDelim(']') { - out.AccessModes = make([]string, 0, 4) - } else { - out.AccessModes = []string{} - } - } else { - out.AccessModes = (out.AccessModes)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.AccessModes = append(out.AccessModes, v1) - in.WantComma() - } - in.Delim(']') - } - case "allocatedResources": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.AllocatedResources = make(map[string]*resource.Quantity) - } else { - out.AllocatedResources = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v2 *resource.Quantity - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(resource.Quantity) - } - *v2 = resource.Quantity(in.String()) - } - (out.AllocatedResources)[key] = v2 - in.WantComma() - } - in.Delim('}') - } - case "capacity": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Capacity = make(map[string]*resource.Quantity) - } else { - out.Capacity = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v3 *resource.Quantity - if in.IsNull() { - in.Skip() - v3 = nil - } else { - if v3 == nil { - v3 = new(resource.Quantity) - } - *v3 = resource.Quantity(in.String()) - } - (out.Capacity)[key] = v3 - in.WantComma() - } - in.Delim('}') - } - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*PersistentVolumeClaimCondition, 0, 8) - } else { - out.Conditions = []*PersistentVolumeClaimCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v4 *PersistentVolumeClaimCondition - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(PersistentVolumeClaimCondition) - } - easyjsonF52ef087DecodeGithubComKubewardenK8sObjectsApiCoreV13(in, v4) - } - out.Conditions = append(out.Conditions, v4) - in.WantComma() - } - in.Delim(']') - } - case "phase": - out.Phase = string(in.String()) - case "resizeStatus": - out.ResizeStatus = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF52ef087EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in PersistentVolumeClaimStatus) { - out.RawByte('{') - first := true - _ = first - if len(in.AccessModes) != 0 { - const prefix string = ",\"accessModes\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v5, v6 := range in.AccessModes { - if v5 > 0 { - out.RawByte(',') - } - out.String(string(v6)) - } - out.RawByte(']') - } - } - if len(in.AllocatedResources) != 0 { - const prefix string = ",\"allocatedResources\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v7First := true - for v7Name, v7Value := range in.AllocatedResources { - if v7First { - v7First = false - } else { - out.RawByte(',') - } - out.String(string(v7Name)) - out.RawByte(':') - if v7Value == nil { - out.RawString("null") - } else { - out.String(string(*v7Value)) - } - } - out.RawByte('}') - } - } - if len(in.Capacity) != 0 { - const prefix string = ",\"capacity\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v8First := true - for v8Name, v8Value := range in.Capacity { - if v8First { - v8First = false - } else { - out.RawByte(',') - } - out.String(string(v8Name)) - out.RawByte(':') - if v8Value == nil { - out.RawString("null") - } else { - out.String(string(*v8Value)) - } - } - out.RawByte('}') - } - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v9, v10 := range in.Conditions { - if v9 > 0 { - out.RawByte(',') - } - if v10 == nil { - out.RawString("null") - } else { - easyjsonF52ef087EncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *v10) - } - } - out.RawByte(']') - } - } - if in.Phase != "" { - const prefix string = ",\"phase\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Phase)) - } - if in.ResizeStatus != "" { - const prefix string = ",\"resizeStatus\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ResizeStatus)) - } - out.RawByte('}') -} -func easyjsonF52ef087DecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *PersistentVolumeClaimCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastProbeTime": - if in.IsNull() { - in.Skip() - out.LastProbeTime = nil - } else { - if out.LastProbeTime == nil { - out.LastProbeTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastProbeTime).UnmarshalJSON(data)) - } - } - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF52ef087EncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in PersistentVolumeClaimCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastProbeTime != nil { - const prefix string = ",\"lastProbeTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastProbeTime).MarshalJSON()) - } - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} -func easyjsonF52ef087DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *PersistentVolumeClaimSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "accessModes": - if in.IsNull() { - in.Skip() - out.AccessModes = nil - } else { - in.Delim('[') - if out.AccessModes == nil { - if !in.IsDelim(']') { - out.AccessModes = make([]string, 0, 4) - } else { - out.AccessModes = []string{} - } - } else { - out.AccessModes = (out.AccessModes)[:0] - } - for !in.IsDelim(']') { - var v11 string - v11 = string(in.String()) - out.AccessModes = append(out.AccessModes, v11) - in.WantComma() - } - in.Delim(']') - } - case "dataSource": - if in.IsNull() { - in.Skip() - out.DataSource = nil - } else { - if out.DataSource == nil { - out.DataSource = new(TypedLocalObjectReference) - } - easyjsonF52ef087DecodeGithubComKubewardenK8sObjectsApiCoreV14(in, out.DataSource) - } - case "dataSourceRef": - if in.IsNull() { - in.Skip() - out.DataSourceRef = nil - } else { - if out.DataSourceRef == nil { - out.DataSourceRef = new(TypedLocalObjectReference) - } - easyjsonF52ef087DecodeGithubComKubewardenK8sObjectsApiCoreV14(in, out.DataSourceRef) - } - case "resources": - if in.IsNull() { - in.Skip() - out.Resources = nil - } else { - if out.Resources == nil { - out.Resources = new(ResourceRequirements) - } - easyjsonF52ef087DecodeGithubComKubewardenK8sObjectsApiCoreV15(in, out.Resources) - } - case "selector": - if in.IsNull() { - in.Skip() - out.Selector = nil - } else { - if out.Selector == nil { - out.Selector = new(_v1.LabelSelector) - } - (*out.Selector).UnmarshalEasyJSON(in) - } - case "storageClassName": - out.StorageClassName = string(in.String()) - case "volumeMode": - out.VolumeMode = string(in.String()) - case "volumeName": - out.VolumeName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF52ef087EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in PersistentVolumeClaimSpec) { - out.RawByte('{') - first := true - _ = first - if len(in.AccessModes) != 0 { - const prefix string = ",\"accessModes\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v12, v13 := range in.AccessModes { - if v12 > 0 { - out.RawByte(',') - } - out.String(string(v13)) - } - out.RawByte(']') - } - } - if in.DataSource != nil { - const prefix string = ",\"dataSource\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonF52ef087EncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *in.DataSource) - } - if in.DataSourceRef != nil { - const prefix string = ",\"dataSourceRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonF52ef087EncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *in.DataSourceRef) - } - if in.Resources != nil { - const prefix string = ",\"resources\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonF52ef087EncodeGithubComKubewardenK8sObjectsApiCoreV15(out, *in.Resources) - } - if in.Selector != nil { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Selector).MarshalEasyJSON(out) - } - if in.StorageClassName != "" { - const prefix string = ",\"storageClassName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StorageClassName)) - } - if in.VolumeMode != "" { - const prefix string = ",\"volumeMode\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeMode)) - } - if in.VolumeName != "" { - const prefix string = ",\"volumeName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeName)) - } - out.RawByte('}') -} -func easyjsonF52ef087DecodeGithubComKubewardenK8sObjectsApiCoreV15(in *jlexer.Lexer, out *ResourceRequirements) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "limits": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Limits = make(map[string]*resource.Quantity) - } else { - out.Limits = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v14 *resource.Quantity - if in.IsNull() { - in.Skip() - v14 = nil - } else { - if v14 == nil { - v14 = new(resource.Quantity) - } - *v14 = resource.Quantity(in.String()) - } - (out.Limits)[key] = v14 - in.WantComma() - } - in.Delim('}') - } - case "requests": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Requests = make(map[string]*resource.Quantity) - } else { - out.Requests = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v15 *resource.Quantity - if in.IsNull() { - in.Skip() - v15 = nil - } else { - if v15 == nil { - v15 = new(resource.Quantity) - } - *v15 = resource.Quantity(in.String()) - } - (out.Requests)[key] = v15 - in.WantComma() - } - in.Delim('}') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF52ef087EncodeGithubComKubewardenK8sObjectsApiCoreV15(out *jwriter.Writer, in ResourceRequirements) { - out.RawByte('{') - first := true - _ = first - if len(in.Limits) != 0 { - const prefix string = ",\"limits\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('{') - v16First := true - for v16Name, v16Value := range in.Limits { - if v16First { - v16First = false - } else { - out.RawByte(',') - } - out.String(string(v16Name)) - out.RawByte(':') - if v16Value == nil { - out.RawString("null") - } else { - out.String(string(*v16Value)) - } - } - out.RawByte('}') - } - } - if len(in.Requests) != 0 { - const prefix string = ",\"requests\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v17First := true - for v17Name, v17Value := range in.Requests { - if v17First { - v17First = false - } else { - out.RawByte(',') - } - out.String(string(v17Name)) - out.RawByte(':') - if v17Value == nil { - out.RawString("null") - } else { - out.String(string(*v17Value)) - } - } - out.RawByte('}') - } - } - out.RawByte('}') -} -func easyjsonF52ef087DecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Lexer, out *TypedLocalObjectReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiGroup": - out.APIGroup = string(in.String()) - case "kind": - if in.IsNull() { - in.Skip() - out.Kind = nil - } else { - if out.Kind == nil { - out.Kind = new(string) - } - *out.Kind = string(in.String()) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF52ef087EncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter.Writer, in TypedLocalObjectReference) { - out.RawByte('{') - first := true - _ = first - if in.APIGroup != "" { - const prefix string = ",\"apiGroup\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIGroup)) - } - { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Kind == nil { - out.RawString("null") - } else { - out.String(string(*in.Kind)) - } - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_list_easyjson.go deleted file mode 100644 index d24aad3..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson118fee0cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PersistentVolumeClaimList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*PersistentVolumeClaim, 0, 8) - } else { - out.Items = []*PersistentVolumeClaim{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *PersistentVolumeClaim - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(PersistentVolumeClaim) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson118fee0cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PersistentVolumeClaimList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PersistentVolumeClaimList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson118fee0cEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PersistentVolumeClaimList) MarshalEasyJSON(w *jwriter.Writer) { - easyjson118fee0cEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PersistentVolumeClaimList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson118fee0cDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PersistentVolumeClaimList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson118fee0cDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_spec.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_spec.go index 8a1fd9d..d666b60 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_spec.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_spec.go @@ -17,16 +17,18 @@ type PersistentVolumeClaimSpec struct { // accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 AccessModes []string `json:"accessModes,omitempty"` - // dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field. + // dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource. DataSource *TypedLocalObjectReference `json:"dataSource,omitempty"` - // dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef + // dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef // allows any non-core object, as well as PersistentVolumeClaim objects. - // * While DataSource ignores disallowed values (dropping them), DataSourceRef + // * While dataSource ignores disallowed values (dropping them), dataSourceRef // preserves all values, and generates an error if a disallowed value is // specified. - // (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. - DataSourceRef *TypedLocalObjectReference `json:"dataSourceRef,omitempty"` + // * While dataSource only allows local objects, dataSourceRef allows objects + // in any namespaces. + // (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. + DataSourceRef *TypedObjectReference `json:"dataSourceRef,omitempty"` // resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources Resources *ResourceRequirements `json:"resources,omitempty"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_spec_easyjson.go deleted file mode 100644 index 4e5da20..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_spec_easyjson.go +++ /dev/null @@ -1,463 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson2c04ce9dDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PersistentVolumeClaimSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "accessModes": - if in.IsNull() { - in.Skip() - out.AccessModes = nil - } else { - in.Delim('[') - if out.AccessModes == nil { - if !in.IsDelim(']') { - out.AccessModes = make([]string, 0, 4) - } else { - out.AccessModes = []string{} - } - } else { - out.AccessModes = (out.AccessModes)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.AccessModes = append(out.AccessModes, v1) - in.WantComma() - } - in.Delim(']') - } - case "dataSource": - if in.IsNull() { - in.Skip() - out.DataSource = nil - } else { - if out.DataSource == nil { - out.DataSource = new(TypedLocalObjectReference) - } - easyjson2c04ce9dDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.DataSource) - } - case "dataSourceRef": - if in.IsNull() { - in.Skip() - out.DataSourceRef = nil - } else { - if out.DataSourceRef == nil { - out.DataSourceRef = new(TypedLocalObjectReference) - } - easyjson2c04ce9dDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.DataSourceRef) - } - case "resources": - if in.IsNull() { - in.Skip() - out.Resources = nil - } else { - if out.Resources == nil { - out.Resources = new(ResourceRequirements) - } - easyjson2c04ce9dDecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.Resources) - } - case "selector": - if in.IsNull() { - in.Skip() - out.Selector = nil - } else { - if out.Selector == nil { - out.Selector = new(_v1.LabelSelector) - } - (*out.Selector).UnmarshalEasyJSON(in) - } - case "storageClassName": - out.StorageClassName = string(in.String()) - case "volumeMode": - out.VolumeMode = string(in.String()) - case "volumeName": - out.VolumeName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2c04ce9dEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PersistentVolumeClaimSpec) { - out.RawByte('{') - first := true - _ = first - if len(in.AccessModes) != 0 { - const prefix string = ",\"accessModes\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.AccessModes { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - if in.DataSource != nil { - const prefix string = ",\"dataSource\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson2c04ce9dEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.DataSource) - } - if in.DataSourceRef != nil { - const prefix string = ",\"dataSourceRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson2c04ce9dEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.DataSourceRef) - } - if in.Resources != nil { - const prefix string = ",\"resources\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson2c04ce9dEncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.Resources) - } - if in.Selector != nil { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Selector).MarshalEasyJSON(out) - } - if in.StorageClassName != "" { - const prefix string = ",\"storageClassName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StorageClassName)) - } - if in.VolumeMode != "" { - const prefix string = ",\"volumeMode\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeMode)) - } - if in.VolumeName != "" { - const prefix string = ",\"volumeName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeName)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PersistentVolumeClaimSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson2c04ce9dEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PersistentVolumeClaimSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjson2c04ce9dEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PersistentVolumeClaimSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson2c04ce9dDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PersistentVolumeClaimSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson2c04ce9dDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson2c04ce9dDecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *ResourceRequirements) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "limits": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Limits = make(map[string]*resource.Quantity) - } else { - out.Limits = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v4 *resource.Quantity - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(resource.Quantity) - } - *v4 = resource.Quantity(in.String()) - } - (out.Limits)[key] = v4 - in.WantComma() - } - in.Delim('}') - } - case "requests": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Requests = make(map[string]*resource.Quantity) - } else { - out.Requests = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v5 *resource.Quantity - if in.IsNull() { - in.Skip() - v5 = nil - } else { - if v5 == nil { - v5 = new(resource.Quantity) - } - *v5 = resource.Quantity(in.String()) - } - (out.Requests)[key] = v5 - in.WantComma() - } - in.Delim('}') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2c04ce9dEncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in ResourceRequirements) { - out.RawByte('{') - first := true - _ = first - if len(in.Limits) != 0 { - const prefix string = ",\"limits\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('{') - v6First := true - for v6Name, v6Value := range in.Limits { - if v6First { - v6First = false - } else { - out.RawByte(',') - } - out.String(string(v6Name)) - out.RawByte(':') - if v6Value == nil { - out.RawString("null") - } else { - out.String(string(*v6Value)) - } - } - out.RawByte('}') - } - } - if len(in.Requests) != 0 { - const prefix string = ",\"requests\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v7First := true - for v7Name, v7Value := range in.Requests { - if v7First { - v7First = false - } else { - out.RawByte(',') - } - out.String(string(v7Name)) - out.RawByte(':') - if v7Value == nil { - out.RawString("null") - } else { - out.String(string(*v7Value)) - } - } - out.RawByte('}') - } - } - out.RawByte('}') -} -func easyjson2c04ce9dDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *TypedLocalObjectReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiGroup": - out.APIGroup = string(in.String()) - case "kind": - if in.IsNull() { - in.Skip() - out.Kind = nil - } else { - if out.Kind == nil { - out.Kind = new(string) - } - *out.Kind = string(in.String()) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2c04ce9dEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in TypedLocalObjectReference) { - out.RawByte('{') - first := true - _ = first - if in.APIGroup != "" { - const prefix string = ",\"apiGroup\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIGroup)) - } - { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Kind == nil { - out.RawString("null") - } else { - out.String(string(*in.Kind)) - } - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_status.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_status.go index f85e53c..f260790 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_status.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_status.go @@ -27,8 +27,6 @@ type PersistentVolumeClaimStatus struct { Conditions []*PersistentVolumeClaimCondition `json:"conditions,omitempty"` // phase represents the current phase of PersistentVolumeClaim. - // - // Phase string `json:"phase,omitempty"` // resizeStatus stores status of resize operation. ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty string by resize controller or kubelet. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature. diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_status_easyjson.go deleted file mode 100644 index dd1c29b..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_status_easyjson.go +++ /dev/null @@ -1,307 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonBf55bb0eDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PersistentVolumeClaimStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "accessModes": - if in.IsNull() { - in.Skip() - out.AccessModes = nil - } else { - in.Delim('[') - if out.AccessModes == nil { - if !in.IsDelim(']') { - out.AccessModes = make([]string, 0, 4) - } else { - out.AccessModes = []string{} - } - } else { - out.AccessModes = (out.AccessModes)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.AccessModes = append(out.AccessModes, v1) - in.WantComma() - } - in.Delim(']') - } - case "allocatedResources": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.AllocatedResources = make(map[string]*resource.Quantity) - } else { - out.AllocatedResources = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v2 *resource.Quantity - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(resource.Quantity) - } - *v2 = resource.Quantity(in.String()) - } - (out.AllocatedResources)[key] = v2 - in.WantComma() - } - in.Delim('}') - } - case "capacity": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Capacity = make(map[string]*resource.Quantity) - } else { - out.Capacity = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v3 *resource.Quantity - if in.IsNull() { - in.Skip() - v3 = nil - } else { - if v3 == nil { - v3 = new(resource.Quantity) - } - *v3 = resource.Quantity(in.String()) - } - (out.Capacity)[key] = v3 - in.WantComma() - } - in.Delim('}') - } - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*PersistentVolumeClaimCondition, 0, 8) - } else { - out.Conditions = []*PersistentVolumeClaimCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v4 *PersistentVolumeClaimCondition - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(PersistentVolumeClaimCondition) - } - (*v4).UnmarshalEasyJSON(in) - } - out.Conditions = append(out.Conditions, v4) - in.WantComma() - } - in.Delim(']') - } - case "phase": - out.Phase = string(in.String()) - case "resizeStatus": - out.ResizeStatus = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBf55bb0eEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PersistentVolumeClaimStatus) { - out.RawByte('{') - first := true - _ = first - if len(in.AccessModes) != 0 { - const prefix string = ",\"accessModes\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v5, v6 := range in.AccessModes { - if v5 > 0 { - out.RawByte(',') - } - out.String(string(v6)) - } - out.RawByte(']') - } - } - if len(in.AllocatedResources) != 0 { - const prefix string = ",\"allocatedResources\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v7First := true - for v7Name, v7Value := range in.AllocatedResources { - if v7First { - v7First = false - } else { - out.RawByte(',') - } - out.String(string(v7Name)) - out.RawByte(':') - if v7Value == nil { - out.RawString("null") - } else { - out.String(string(*v7Value)) - } - } - out.RawByte('}') - } - } - if len(in.Capacity) != 0 { - const prefix string = ",\"capacity\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v8First := true - for v8Name, v8Value := range in.Capacity { - if v8First { - v8First = false - } else { - out.RawByte(',') - } - out.String(string(v8Name)) - out.RawByte(':') - if v8Value == nil { - out.RawString("null") - } else { - out.String(string(*v8Value)) - } - } - out.RawByte('}') - } - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v9, v10 := range in.Conditions { - if v9 > 0 { - out.RawByte(',') - } - if v10 == nil { - out.RawString("null") - } else { - (*v10).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Phase != "" { - const prefix string = ",\"phase\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Phase)) - } - if in.ResizeStatus != "" { - const prefix string = ",\"resizeStatus\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ResizeStatus)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PersistentVolumeClaimStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonBf55bb0eEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PersistentVolumeClaimStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonBf55bb0eEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PersistentVolumeClaimStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonBf55bb0eDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PersistentVolumeClaimStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonBf55bb0eDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_template_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_template_easyjson.go deleted file mode 100644 index 519e192..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_template_easyjson.go +++ /dev/null @@ -1,119 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson32d97d5aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PersistentVolumeClaimTemplate) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(PersistentVolumeClaimSpec) - } - (*out.Spec).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson32d97d5aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PersistentVolumeClaimTemplate) { - out.RawByte('{') - first := true - _ = first - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - first = false - out.RawString(prefix[1:]) - (*in.Metadata).MarshalEasyJSON(out) - } - { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Spec == nil { - out.RawString("null") - } else { - (*in.Spec).MarshalEasyJSON(out) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PersistentVolumeClaimTemplate) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson32d97d5aEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PersistentVolumeClaimTemplate) MarshalEasyJSON(w *jwriter.Writer) { - easyjson32d97d5aEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PersistentVolumeClaimTemplate) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson32d97d5aDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PersistentVolumeClaimTemplate) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson32d97d5aDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_volume_source_easyjson.go deleted file mode 100644 index 9c11237..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_volume_source_easyjson.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson525f148cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PersistentVolumeClaimVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "claimName": - if in.IsNull() { - in.Skip() - out.ClaimName = nil - } else { - if out.ClaimName == nil { - out.ClaimName = new(string) - } - *out.ClaimName = string(in.String()) - } - case "readOnly": - out.ReadOnly = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson525f148cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PersistentVolumeClaimVolumeSource) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"claimName\":" - out.RawString(prefix[1:]) - if in.ClaimName == nil { - out.RawString("null") - } else { - out.String(string(*in.ClaimName)) - } - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PersistentVolumeClaimVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson525f148cEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PersistentVolumeClaimVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson525f148cEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PersistentVolumeClaimVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson525f148cDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PersistentVolumeClaimVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson525f148cDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_easyjson.go deleted file mode 100644 index 3c70a04..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_easyjson.go +++ /dev/null @@ -1,1764 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PersistentVolume) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(PersistentVolumeSpec) - } - easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.Spec) - } - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(PersistentVolumeStatus) - } - easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.Status) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PersistentVolume) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.Spec) - } - if in.Status != nil { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.Status) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PersistentVolume) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PersistentVolume) MarshalEasyJSON(w *jwriter.Writer) { - easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PersistentVolume) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PersistentVolume) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *PersistentVolumeStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "message": - out.Message = string(in.String()) - case "phase": - out.Phase = string(in.String()) - case "reason": - out.Reason = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in PersistentVolumeStatus) { - out.RawByte('{') - first := true - _ = first - if in.Message != "" { - const prefix string = ",\"message\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Message)) - } - if in.Phase != "" { - const prefix string = ",\"phase\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Phase)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - out.RawByte('}') -} -func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *PersistentVolumeSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "accessModes": - if in.IsNull() { - in.Skip() - out.AccessModes = nil - } else { - in.Delim('[') - if out.AccessModes == nil { - if !in.IsDelim(']') { - out.AccessModes = make([]string, 0, 4) - } else { - out.AccessModes = []string{} - } - } else { - out.AccessModes = (out.AccessModes)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.AccessModes = append(out.AccessModes, v1) - in.WantComma() - } - in.Delim(']') - } - case "awsElasticBlockStore": - if in.IsNull() { - in.Skip() - out.AWSElasticBlockStore = nil - } else { - if out.AWSElasticBlockStore == nil { - out.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - (*out.AWSElasticBlockStore).UnmarshalEasyJSON(in) - } - case "azureDisk": - if in.IsNull() { - in.Skip() - out.AzureDisk = nil - } else { - if out.AzureDisk == nil { - out.AzureDisk = new(AzureDiskVolumeSource) - } - (*out.AzureDisk).UnmarshalEasyJSON(in) - } - case "azureFile": - if in.IsNull() { - in.Skip() - out.AzureFile = nil - } else { - if out.AzureFile == nil { - out.AzureFile = new(AzureFilePersistentVolumeSource) - } - (*out.AzureFile).UnmarshalEasyJSON(in) - } - case "capacity": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Capacity = make(map[string]*resource.Quantity) - } else { - out.Capacity = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v2 *resource.Quantity - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(resource.Quantity) - } - *v2 = resource.Quantity(in.String()) - } - (out.Capacity)[key] = v2 - in.WantComma() - } - in.Delim('}') - } - case "cephfs": - if in.IsNull() { - in.Skip() - out.Cephfs = nil - } else { - if out.Cephfs == nil { - out.Cephfs = new(CephFSPersistentVolumeSource) - } - (*out.Cephfs).UnmarshalEasyJSON(in) - } - case "cinder": - if in.IsNull() { - in.Skip() - out.Cinder = nil - } else { - if out.Cinder == nil { - out.Cinder = new(CinderPersistentVolumeSource) - } - (*out.Cinder).UnmarshalEasyJSON(in) - } - case "claimRef": - if in.IsNull() { - in.Skip() - out.ClaimRef = nil - } else { - if out.ClaimRef == nil { - out.ClaimRef = new(ObjectReference) - } - (*out.ClaimRef).UnmarshalEasyJSON(in) - } - case "csi": - if in.IsNull() { - in.Skip() - out.CSI = nil - } else { - if out.CSI == nil { - out.CSI = new(CSIPersistentVolumeSource) - } - (*out.CSI).UnmarshalEasyJSON(in) - } - case "fc": - if in.IsNull() { - in.Skip() - out.FC = nil - } else { - if out.FC == nil { - out.FC = new(FCVolumeSource) - } - (*out.FC).UnmarshalEasyJSON(in) - } - case "flexVolume": - if in.IsNull() { - in.Skip() - out.FlexVolume = nil - } else { - if out.FlexVolume == nil { - out.FlexVolume = new(FlexPersistentVolumeSource) - } - (*out.FlexVolume).UnmarshalEasyJSON(in) - } - case "flocker": - if in.IsNull() { - in.Skip() - out.Flocker = nil - } else { - if out.Flocker == nil { - out.Flocker = new(FlockerVolumeSource) - } - (*out.Flocker).UnmarshalEasyJSON(in) - } - case "gcePersistentDisk": - if in.IsNull() { - in.Skip() - out.GCEPersistentDisk = nil - } else { - if out.GCEPersistentDisk == nil { - out.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - (*out.GCEPersistentDisk).UnmarshalEasyJSON(in) - } - case "glusterfs": - if in.IsNull() { - in.Skip() - out.Glusterfs = nil - } else { - if out.Glusterfs == nil { - out.Glusterfs = new(GlusterfsPersistentVolumeSource) - } - (*out.Glusterfs).UnmarshalEasyJSON(in) - } - case "hostPath": - if in.IsNull() { - in.Skip() - out.HostPath = nil - } else { - if out.HostPath == nil { - out.HostPath = new(HostPathVolumeSource) - } - (*out.HostPath).UnmarshalEasyJSON(in) - } - case "iscsi": - if in.IsNull() { - in.Skip() - out.ISCSI = nil - } else { - if out.ISCSI == nil { - out.ISCSI = new(ISCSIPersistentVolumeSource) - } - (*out.ISCSI).UnmarshalEasyJSON(in) - } - case "local": - if in.IsNull() { - in.Skip() - out.Local = nil - } else { - if out.Local == nil { - out.Local = new(LocalVolumeSource) - } - (*out.Local).UnmarshalEasyJSON(in) - } - case "mountOptions": - if in.IsNull() { - in.Skip() - out.MountOptions = nil - } else { - in.Delim('[') - if out.MountOptions == nil { - if !in.IsDelim(']') { - out.MountOptions = make([]string, 0, 4) - } else { - out.MountOptions = []string{} - } - } else { - out.MountOptions = (out.MountOptions)[:0] - } - for !in.IsDelim(']') { - var v3 string - v3 = string(in.String()) - out.MountOptions = append(out.MountOptions, v3) - in.WantComma() - } - in.Delim(']') - } - case "nfs": - if in.IsNull() { - in.Skip() - out.NFS = nil - } else { - if out.NFS == nil { - out.NFS = new(NFSVolumeSource) - } - (*out.NFS).UnmarshalEasyJSON(in) - } - case "nodeAffinity": - if in.IsNull() { - in.Skip() - out.NodeAffinity = nil - } else { - if out.NodeAffinity == nil { - out.NodeAffinity = new(VolumeNodeAffinity) - } - easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV13(in, out.NodeAffinity) - } - case "persistentVolumeReclaimPolicy": - out.PersistentVolumeReclaimPolicy = string(in.String()) - case "photonPersistentDisk": - if in.IsNull() { - in.Skip() - out.PhotonPersistentDisk = nil - } else { - if out.PhotonPersistentDisk == nil { - out.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) - } - easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV14(in, out.PhotonPersistentDisk) - } - case "portworxVolume": - if in.IsNull() { - in.Skip() - out.PortworxVolume = nil - } else { - if out.PortworxVolume == nil { - out.PortworxVolume = new(PortworxVolumeSource) - } - easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV15(in, out.PortworxVolume) - } - case "quobyte": - if in.IsNull() { - in.Skip() - out.Quobyte = nil - } else { - if out.Quobyte == nil { - out.Quobyte = new(QuobyteVolumeSource) - } - easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV16(in, out.Quobyte) - } - case "rbd": - if in.IsNull() { - in.Skip() - out.RBD = nil - } else { - if out.RBD == nil { - out.RBD = new(RBDPersistentVolumeSource) - } - easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV17(in, out.RBD) - } - case "scaleIO": - if in.IsNull() { - in.Skip() - out.ScaleIO = nil - } else { - if out.ScaleIO == nil { - out.ScaleIO = new(ScaleIOPersistentVolumeSource) - } - easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV18(in, out.ScaleIO) - } - case "storageClassName": - out.StorageClassName = string(in.String()) - case "storageos": - if in.IsNull() { - in.Skip() - out.Storageos = nil - } else { - if out.Storageos == nil { - out.Storageos = new(StorageOSPersistentVolumeSource) - } - easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV19(in, out.Storageos) - } - case "volumeMode": - out.VolumeMode = string(in.String()) - case "vsphereVolume": - if in.IsNull() { - in.Skip() - out.VsphereVolume = nil - } else { - if out.VsphereVolume == nil { - out.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV110(in, out.VsphereVolume) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in PersistentVolumeSpec) { - out.RawByte('{') - first := true - _ = first - if len(in.AccessModes) != 0 { - const prefix string = ",\"accessModes\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v4, v5 := range in.AccessModes { - if v4 > 0 { - out.RawByte(',') - } - out.String(string(v5)) - } - out.RawByte(']') - } - } - if in.AWSElasticBlockStore != nil { - const prefix string = ",\"awsElasticBlockStore\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.AWSElasticBlockStore).MarshalEasyJSON(out) - } - if in.AzureDisk != nil { - const prefix string = ",\"azureDisk\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.AzureDisk).MarshalEasyJSON(out) - } - if in.AzureFile != nil { - const prefix string = ",\"azureFile\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.AzureFile).MarshalEasyJSON(out) - } - if len(in.Capacity) != 0 { - const prefix string = ",\"capacity\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v6First := true - for v6Name, v6Value := range in.Capacity { - if v6First { - v6First = false - } else { - out.RawByte(',') - } - out.String(string(v6Name)) - out.RawByte(':') - if v6Value == nil { - out.RawString("null") - } else { - out.String(string(*v6Value)) - } - } - out.RawByte('}') - } - } - if in.Cephfs != nil { - const prefix string = ",\"cephfs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Cephfs).MarshalEasyJSON(out) - } - if in.Cinder != nil { - const prefix string = ",\"cinder\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Cinder).MarshalEasyJSON(out) - } - if in.ClaimRef != nil { - const prefix string = ",\"claimRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.ClaimRef).MarshalEasyJSON(out) - } - if in.CSI != nil { - const prefix string = ",\"csi\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.CSI).MarshalEasyJSON(out) - } - if in.FC != nil { - const prefix string = ",\"fc\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.FC).MarshalEasyJSON(out) - } - if in.FlexVolume != nil { - const prefix string = ",\"flexVolume\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.FlexVolume).MarshalEasyJSON(out) - } - if in.Flocker != nil { - const prefix string = ",\"flocker\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Flocker).MarshalEasyJSON(out) - } - if in.GCEPersistentDisk != nil { - const prefix string = ",\"gcePersistentDisk\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.GCEPersistentDisk).MarshalEasyJSON(out) - } - if in.Glusterfs != nil { - const prefix string = ",\"glusterfs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Glusterfs).MarshalEasyJSON(out) - } - if in.HostPath != nil { - const prefix string = ",\"hostPath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.HostPath).MarshalEasyJSON(out) - } - if in.ISCSI != nil { - const prefix string = ",\"iscsi\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.ISCSI).MarshalEasyJSON(out) - } - if in.Local != nil { - const prefix string = ",\"local\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Local).MarshalEasyJSON(out) - } - if len(in.MountOptions) != 0 { - const prefix string = ",\"mountOptions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v7, v8 := range in.MountOptions { - if v7 > 0 { - out.RawByte(',') - } - out.String(string(v8)) - } - out.RawByte(']') - } - } - if in.NFS != nil { - const prefix string = ",\"nfs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.NFS).MarshalEasyJSON(out) - } - if in.NodeAffinity != nil { - const prefix string = ",\"nodeAffinity\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *in.NodeAffinity) - } - if in.PersistentVolumeReclaimPolicy != "" { - const prefix string = ",\"persistentVolumeReclaimPolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.PersistentVolumeReclaimPolicy)) - } - if in.PhotonPersistentDisk != nil { - const prefix string = ",\"photonPersistentDisk\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *in.PhotonPersistentDisk) - } - if in.PortworxVolume != nil { - const prefix string = ",\"portworxVolume\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV15(out, *in.PortworxVolume) - } - if in.Quobyte != nil { - const prefix string = ",\"quobyte\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV16(out, *in.Quobyte) - } - if in.RBD != nil { - const prefix string = ",\"rbd\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV17(out, *in.RBD) - } - if in.ScaleIO != nil { - const prefix string = ",\"scaleIO\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV18(out, *in.ScaleIO) - } - if in.StorageClassName != "" { - const prefix string = ",\"storageClassName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StorageClassName)) - } - if in.Storageos != nil { - const prefix string = ",\"storageos\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV19(out, *in.Storageos) - } - if in.VolumeMode != "" { - const prefix string = ",\"volumeMode\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeMode)) - } - if in.VsphereVolume != nil { - const prefix string = ",\"vsphereVolume\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV110(out, *in.VsphereVolume) - } - out.RawByte('}') -} -func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV110(in *jlexer.Lexer, out *VsphereVirtualDiskVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "storagePolicyID": - out.StoragePolicyID = string(in.String()) - case "storagePolicyName": - out.StoragePolicyName = string(in.String()) - case "volumePath": - if in.IsNull() { - in.Skip() - out.VolumePath = nil - } else { - if out.VolumePath == nil { - out.VolumePath = new(string) - } - *out.VolumePath = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV110(out *jwriter.Writer, in VsphereVirtualDiskVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.StoragePolicyID != "" { - const prefix string = ",\"storagePolicyID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StoragePolicyID)) - } - if in.StoragePolicyName != "" { - const prefix string = ",\"storagePolicyName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StoragePolicyName)) - } - { - const prefix string = ",\"volumePath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.VolumePath == nil { - out.RawString("null") - } else { - out.String(string(*in.VolumePath)) - } - } - out.RawByte('}') -} -func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV19(in *jlexer.Lexer, out *StorageOSPersistentVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(ObjectReference) - } - (*out.SecretRef).UnmarshalEasyJSON(in) - } - case "volumeName": - out.VolumeName = string(in.String()) - case "volumeNamespace": - out.VolumeNamespace = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV19(out *jwriter.Writer, in StorageOSPersistentVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.SecretRef).MarshalEasyJSON(out) - } - if in.VolumeName != "" { - const prefix string = ",\"volumeName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeName)) - } - if in.VolumeNamespace != "" { - const prefix string = ",\"volumeNamespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeNamespace)) - } - out.RawByte('}') -} -func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV18(in *jlexer.Lexer, out *ScaleIOPersistentVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "gateway": - if in.IsNull() { - in.Skip() - out.Gateway = nil - } else { - if out.Gateway == nil { - out.Gateway = new(string) - } - *out.Gateway = string(in.String()) - } - case "protectionDomain": - out.ProtectionDomain = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(SecretReference) - } - easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV111(in, out.SecretRef) - } - case "sslEnabled": - out.SslEnabled = bool(in.Bool()) - case "storageMode": - out.StorageMode = string(in.String()) - case "storagePool": - out.StoragePool = string(in.String()) - case "system": - if in.IsNull() { - in.Skip() - out.System = nil - } else { - if out.System == nil { - out.System = new(string) - } - *out.System = string(in.String()) - } - case "volumeName": - out.VolumeName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV18(out *jwriter.Writer, in ScaleIOPersistentVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - { - const prefix string = ",\"gateway\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Gateway == nil { - out.RawString("null") - } else { - out.String(string(*in.Gateway)) - } - } - if in.ProtectionDomain != "" { - const prefix string = ",\"protectionDomain\":" - out.RawString(prefix) - out.String(string(in.ProtectionDomain)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - if in.SecretRef == nil { - out.RawString("null") - } else { - easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV111(out, *in.SecretRef) - } - } - if in.SslEnabled { - const prefix string = ",\"sslEnabled\":" - out.RawString(prefix) - out.Bool(bool(in.SslEnabled)) - } - if in.StorageMode != "" { - const prefix string = ",\"storageMode\":" - out.RawString(prefix) - out.String(string(in.StorageMode)) - } - if in.StoragePool != "" { - const prefix string = ",\"storagePool\":" - out.RawString(prefix) - out.String(string(in.StoragePool)) - } - { - const prefix string = ",\"system\":" - out.RawString(prefix) - if in.System == nil { - out.RawString("null") - } else { - out.String(string(*in.System)) - } - } - if in.VolumeName != "" { - const prefix string = ",\"volumeName\":" - out.RawString(prefix) - out.String(string(in.VolumeName)) - } - out.RawByte('}') -} -func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV111(in *jlexer.Lexer, out *SecretReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "namespace": - out.Namespace = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter.Writer, in SecretReference) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Namespace != "" { - const prefix string = ",\"namespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Namespace)) - } - out.RawByte('}') -} -func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV17(in *jlexer.Lexer, out *RBDPersistentVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "image": - if in.IsNull() { - in.Skip() - out.Image = nil - } else { - if out.Image == nil { - out.Image = new(string) - } - *out.Image = string(in.String()) - } - case "keyring": - out.Keyring = string(in.String()) - case "monitors": - if in.IsNull() { - in.Skip() - out.Monitors = nil - } else { - in.Delim('[') - if out.Monitors == nil { - if !in.IsDelim(']') { - out.Monitors = make([]string, 0, 4) - } else { - out.Monitors = []string{} - } - } else { - out.Monitors = (out.Monitors)[:0] - } - for !in.IsDelim(']') { - var v9 string - v9 = string(in.String()) - out.Monitors = append(out.Monitors, v9) - in.WantComma() - } - in.Delim(']') - } - case "pool": - out.Pool = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(SecretReference) - } - easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV111(in, out.SecretRef) - } - case "user": - out.User = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV17(out *jwriter.Writer, in RBDPersistentVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - { - const prefix string = ",\"image\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Image == nil { - out.RawString("null") - } else { - out.String(string(*in.Image)) - } - } - if in.Keyring != "" { - const prefix string = ",\"keyring\":" - out.RawString(prefix) - out.String(string(in.Keyring)) - } - { - const prefix string = ",\"monitors\":" - out.RawString(prefix) - if in.Monitors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v10, v11 := range in.Monitors { - if v10 > 0 { - out.RawByte(',') - } - out.String(string(v11)) - } - out.RawByte(']') - } - } - if in.Pool != "" { - const prefix string = ",\"pool\":" - out.RawString(prefix) - out.String(string(in.Pool)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV111(out, *in.SecretRef) - } - if in.User != "" { - const prefix string = ",\"user\":" - out.RawString(prefix) - out.String(string(in.User)) - } - out.RawByte('}') -} -func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV16(in *jlexer.Lexer, out *QuobyteVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "group": - out.Group = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "registry": - if in.IsNull() { - in.Skip() - out.Registry = nil - } else { - if out.Registry == nil { - out.Registry = new(string) - } - *out.Registry = string(in.String()) - } - case "tenant": - out.Tenant = string(in.String()) - case "user": - out.User = string(in.String()) - case "volume": - if in.IsNull() { - in.Skip() - out.Volume = nil - } else { - if out.Volume == nil { - out.Volume = new(string) - } - *out.Volume = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV16(out *jwriter.Writer, in QuobyteVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.Group != "" { - const prefix string = ",\"group\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Group)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"registry\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Registry == nil { - out.RawString("null") - } else { - out.String(string(*in.Registry)) - } - } - if in.Tenant != "" { - const prefix string = ",\"tenant\":" - out.RawString(prefix) - out.String(string(in.Tenant)) - } - if in.User != "" { - const prefix string = ",\"user\":" - out.RawString(prefix) - out.String(string(in.User)) - } - { - const prefix string = ",\"volume\":" - out.RawString(prefix) - if in.Volume == nil { - out.RawString("null") - } else { - out.String(string(*in.Volume)) - } - } - out.RawByte('}') -} -func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV15(in *jlexer.Lexer, out *PortworxVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "volumeID": - if in.IsNull() { - in.Skip() - out.VolumeID = nil - } else { - if out.VolumeID == nil { - out.VolumeID = new(string) - } - *out.VolumeID = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV15(out *jwriter.Writer, in PortworxVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"volumeID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.VolumeID == nil { - out.RawString("null") - } else { - out.String(string(*in.VolumeID)) - } - } - out.RawByte('}') -} -func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Lexer, out *PhotonPersistentDiskVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "pdID": - if in.IsNull() { - in.Skip() - out.PdID = nil - } else { - if out.PdID == nil { - out.PdID = new(string) - } - *out.PdID = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter.Writer, in PhotonPersistentDiskVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - { - const prefix string = ",\"pdID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.PdID == nil { - out.RawString("null") - } else { - out.String(string(*in.PdID)) - } - } - out.RawByte('}') -} -func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *VolumeNodeAffinity) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "required": - if in.IsNull() { - in.Skip() - out.Required = nil - } else { - if out.Required == nil { - out.Required = new(NodeSelector) - } - (*out.Required).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in VolumeNodeAffinity) { - out.RawByte('{') - first := true - _ = first - if in.Required != nil { - const prefix string = ",\"required\":" - first = false - out.RawString(prefix[1:]) - (*in.Required).MarshalEasyJSON(out) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_list_easyjson.go deleted file mode 100644 index f2f130a..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonD69ff3b7DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PersistentVolumeList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*PersistentVolume, 0, 8) - } else { - out.Items = []*PersistentVolume{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *PersistentVolume - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(PersistentVolume) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonD69ff3b7EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PersistentVolumeList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PersistentVolumeList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonD69ff3b7EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PersistentVolumeList) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonD69ff3b7EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PersistentVolumeList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonD69ff3b7DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PersistentVolumeList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonD69ff3b7DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_spec.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_spec.go index ed771ab..fa2b140 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_spec.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_spec.go @@ -75,8 +75,6 @@ type PersistentVolumeSpec struct { NodeAffinity *VolumeNodeAffinity `json:"nodeAffinity,omitempty"` // persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming - // - // PersistentVolumeReclaimPolicy string `json:"persistentVolumeReclaimPolicy,omitempty"` // photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_spec_easyjson.go deleted file mode 100644 index fa1f90d..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_spec_easyjson.go +++ /dev/null @@ -1,1581 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PersistentVolumeSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "accessModes": - if in.IsNull() { - in.Skip() - out.AccessModes = nil - } else { - in.Delim('[') - if out.AccessModes == nil { - if !in.IsDelim(']') { - out.AccessModes = make([]string, 0, 4) - } else { - out.AccessModes = []string{} - } - } else { - out.AccessModes = (out.AccessModes)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.AccessModes = append(out.AccessModes, v1) - in.WantComma() - } - in.Delim(']') - } - case "awsElasticBlockStore": - if in.IsNull() { - in.Skip() - out.AWSElasticBlockStore = nil - } else { - if out.AWSElasticBlockStore == nil { - out.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - (*out.AWSElasticBlockStore).UnmarshalEasyJSON(in) - } - case "azureDisk": - if in.IsNull() { - in.Skip() - out.AzureDisk = nil - } else { - if out.AzureDisk == nil { - out.AzureDisk = new(AzureDiskVolumeSource) - } - (*out.AzureDisk).UnmarshalEasyJSON(in) - } - case "azureFile": - if in.IsNull() { - in.Skip() - out.AzureFile = nil - } else { - if out.AzureFile == nil { - out.AzureFile = new(AzureFilePersistentVolumeSource) - } - (*out.AzureFile).UnmarshalEasyJSON(in) - } - case "capacity": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Capacity = make(map[string]*resource.Quantity) - } else { - out.Capacity = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v2 *resource.Quantity - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(resource.Quantity) - } - *v2 = resource.Quantity(in.String()) - } - (out.Capacity)[key] = v2 - in.WantComma() - } - in.Delim('}') - } - case "cephfs": - if in.IsNull() { - in.Skip() - out.Cephfs = nil - } else { - if out.Cephfs == nil { - out.Cephfs = new(CephFSPersistentVolumeSource) - } - (*out.Cephfs).UnmarshalEasyJSON(in) - } - case "cinder": - if in.IsNull() { - in.Skip() - out.Cinder = nil - } else { - if out.Cinder == nil { - out.Cinder = new(CinderPersistentVolumeSource) - } - (*out.Cinder).UnmarshalEasyJSON(in) - } - case "claimRef": - if in.IsNull() { - in.Skip() - out.ClaimRef = nil - } else { - if out.ClaimRef == nil { - out.ClaimRef = new(ObjectReference) - } - (*out.ClaimRef).UnmarshalEasyJSON(in) - } - case "csi": - if in.IsNull() { - in.Skip() - out.CSI = nil - } else { - if out.CSI == nil { - out.CSI = new(CSIPersistentVolumeSource) - } - (*out.CSI).UnmarshalEasyJSON(in) - } - case "fc": - if in.IsNull() { - in.Skip() - out.FC = nil - } else { - if out.FC == nil { - out.FC = new(FCVolumeSource) - } - (*out.FC).UnmarshalEasyJSON(in) - } - case "flexVolume": - if in.IsNull() { - in.Skip() - out.FlexVolume = nil - } else { - if out.FlexVolume == nil { - out.FlexVolume = new(FlexPersistentVolumeSource) - } - (*out.FlexVolume).UnmarshalEasyJSON(in) - } - case "flocker": - if in.IsNull() { - in.Skip() - out.Flocker = nil - } else { - if out.Flocker == nil { - out.Flocker = new(FlockerVolumeSource) - } - (*out.Flocker).UnmarshalEasyJSON(in) - } - case "gcePersistentDisk": - if in.IsNull() { - in.Skip() - out.GCEPersistentDisk = nil - } else { - if out.GCEPersistentDisk == nil { - out.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - (*out.GCEPersistentDisk).UnmarshalEasyJSON(in) - } - case "glusterfs": - if in.IsNull() { - in.Skip() - out.Glusterfs = nil - } else { - if out.Glusterfs == nil { - out.Glusterfs = new(GlusterfsPersistentVolumeSource) - } - (*out.Glusterfs).UnmarshalEasyJSON(in) - } - case "hostPath": - if in.IsNull() { - in.Skip() - out.HostPath = nil - } else { - if out.HostPath == nil { - out.HostPath = new(HostPathVolumeSource) - } - (*out.HostPath).UnmarshalEasyJSON(in) - } - case "iscsi": - if in.IsNull() { - in.Skip() - out.ISCSI = nil - } else { - if out.ISCSI == nil { - out.ISCSI = new(ISCSIPersistentVolumeSource) - } - (*out.ISCSI).UnmarshalEasyJSON(in) - } - case "local": - if in.IsNull() { - in.Skip() - out.Local = nil - } else { - if out.Local == nil { - out.Local = new(LocalVolumeSource) - } - (*out.Local).UnmarshalEasyJSON(in) - } - case "mountOptions": - if in.IsNull() { - in.Skip() - out.MountOptions = nil - } else { - in.Delim('[') - if out.MountOptions == nil { - if !in.IsDelim(']') { - out.MountOptions = make([]string, 0, 4) - } else { - out.MountOptions = []string{} - } - } else { - out.MountOptions = (out.MountOptions)[:0] - } - for !in.IsDelim(']') { - var v3 string - v3 = string(in.String()) - out.MountOptions = append(out.MountOptions, v3) - in.WantComma() - } - in.Delim(']') - } - case "nfs": - if in.IsNull() { - in.Skip() - out.NFS = nil - } else { - if out.NFS == nil { - out.NFS = new(NFSVolumeSource) - } - (*out.NFS).UnmarshalEasyJSON(in) - } - case "nodeAffinity": - if in.IsNull() { - in.Skip() - out.NodeAffinity = nil - } else { - if out.NodeAffinity == nil { - out.NodeAffinity = new(VolumeNodeAffinity) - } - easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.NodeAffinity) - } - case "persistentVolumeReclaimPolicy": - out.PersistentVolumeReclaimPolicy = string(in.String()) - case "photonPersistentDisk": - if in.IsNull() { - in.Skip() - out.PhotonPersistentDisk = nil - } else { - if out.PhotonPersistentDisk == nil { - out.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) - } - easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.PhotonPersistentDisk) - } - case "portworxVolume": - if in.IsNull() { - in.Skip() - out.PortworxVolume = nil - } else { - if out.PortworxVolume == nil { - out.PortworxVolume = new(PortworxVolumeSource) - } - easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV13(in, out.PortworxVolume) - } - case "quobyte": - if in.IsNull() { - in.Skip() - out.Quobyte = nil - } else { - if out.Quobyte == nil { - out.Quobyte = new(QuobyteVolumeSource) - } - easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV14(in, out.Quobyte) - } - case "rbd": - if in.IsNull() { - in.Skip() - out.RBD = nil - } else { - if out.RBD == nil { - out.RBD = new(RBDPersistentVolumeSource) - } - easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV15(in, out.RBD) - } - case "scaleIO": - if in.IsNull() { - in.Skip() - out.ScaleIO = nil - } else { - if out.ScaleIO == nil { - out.ScaleIO = new(ScaleIOPersistentVolumeSource) - } - easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV16(in, out.ScaleIO) - } - case "storageClassName": - out.StorageClassName = string(in.String()) - case "storageos": - if in.IsNull() { - in.Skip() - out.Storageos = nil - } else { - if out.Storageos == nil { - out.Storageos = new(StorageOSPersistentVolumeSource) - } - easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV17(in, out.Storageos) - } - case "volumeMode": - out.VolumeMode = string(in.String()) - case "vsphereVolume": - if in.IsNull() { - in.Skip() - out.VsphereVolume = nil - } else { - if out.VsphereVolume == nil { - out.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV18(in, out.VsphereVolume) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PersistentVolumeSpec) { - out.RawByte('{') - first := true - _ = first - if len(in.AccessModes) != 0 { - const prefix string = ",\"accessModes\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v4, v5 := range in.AccessModes { - if v4 > 0 { - out.RawByte(',') - } - out.String(string(v5)) - } - out.RawByte(']') - } - } - if in.AWSElasticBlockStore != nil { - const prefix string = ",\"awsElasticBlockStore\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.AWSElasticBlockStore).MarshalEasyJSON(out) - } - if in.AzureDisk != nil { - const prefix string = ",\"azureDisk\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.AzureDisk).MarshalEasyJSON(out) - } - if in.AzureFile != nil { - const prefix string = ",\"azureFile\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.AzureFile).MarshalEasyJSON(out) - } - if len(in.Capacity) != 0 { - const prefix string = ",\"capacity\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v6First := true - for v6Name, v6Value := range in.Capacity { - if v6First { - v6First = false - } else { - out.RawByte(',') - } - out.String(string(v6Name)) - out.RawByte(':') - if v6Value == nil { - out.RawString("null") - } else { - out.String(string(*v6Value)) - } - } - out.RawByte('}') - } - } - if in.Cephfs != nil { - const prefix string = ",\"cephfs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Cephfs).MarshalEasyJSON(out) - } - if in.Cinder != nil { - const prefix string = ",\"cinder\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Cinder).MarshalEasyJSON(out) - } - if in.ClaimRef != nil { - const prefix string = ",\"claimRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.ClaimRef).MarshalEasyJSON(out) - } - if in.CSI != nil { - const prefix string = ",\"csi\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.CSI).MarshalEasyJSON(out) - } - if in.FC != nil { - const prefix string = ",\"fc\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.FC).MarshalEasyJSON(out) - } - if in.FlexVolume != nil { - const prefix string = ",\"flexVolume\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.FlexVolume).MarshalEasyJSON(out) - } - if in.Flocker != nil { - const prefix string = ",\"flocker\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Flocker).MarshalEasyJSON(out) - } - if in.GCEPersistentDisk != nil { - const prefix string = ",\"gcePersistentDisk\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.GCEPersistentDisk).MarshalEasyJSON(out) - } - if in.Glusterfs != nil { - const prefix string = ",\"glusterfs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Glusterfs).MarshalEasyJSON(out) - } - if in.HostPath != nil { - const prefix string = ",\"hostPath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.HostPath).MarshalEasyJSON(out) - } - if in.ISCSI != nil { - const prefix string = ",\"iscsi\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.ISCSI).MarshalEasyJSON(out) - } - if in.Local != nil { - const prefix string = ",\"local\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Local).MarshalEasyJSON(out) - } - if len(in.MountOptions) != 0 { - const prefix string = ",\"mountOptions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v7, v8 := range in.MountOptions { - if v7 > 0 { - out.RawByte(',') - } - out.String(string(v8)) - } - out.RawByte(']') - } - } - if in.NFS != nil { - const prefix string = ",\"nfs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.NFS).MarshalEasyJSON(out) - } - if in.NodeAffinity != nil { - const prefix string = ",\"nodeAffinity\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.NodeAffinity) - } - if in.PersistentVolumeReclaimPolicy != "" { - const prefix string = ",\"persistentVolumeReclaimPolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.PersistentVolumeReclaimPolicy)) - } - if in.PhotonPersistentDisk != nil { - const prefix string = ",\"photonPersistentDisk\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.PhotonPersistentDisk) - } - if in.PortworxVolume != nil { - const prefix string = ",\"portworxVolume\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *in.PortworxVolume) - } - if in.Quobyte != nil { - const prefix string = ",\"quobyte\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *in.Quobyte) - } - if in.RBD != nil { - const prefix string = ",\"rbd\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV15(out, *in.RBD) - } - if in.ScaleIO != nil { - const prefix string = ",\"scaleIO\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV16(out, *in.ScaleIO) - } - if in.StorageClassName != "" { - const prefix string = ",\"storageClassName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StorageClassName)) - } - if in.Storageos != nil { - const prefix string = ",\"storageos\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV17(out, *in.Storageos) - } - if in.VolumeMode != "" { - const prefix string = ",\"volumeMode\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeMode)) - } - if in.VsphereVolume != nil { - const prefix string = ",\"vsphereVolume\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV18(out, *in.VsphereVolume) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PersistentVolumeSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PersistentVolumeSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PersistentVolumeSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PersistentVolumeSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV18(in *jlexer.Lexer, out *VsphereVirtualDiskVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "storagePolicyID": - out.StoragePolicyID = string(in.String()) - case "storagePolicyName": - out.StoragePolicyName = string(in.String()) - case "volumePath": - if in.IsNull() { - in.Skip() - out.VolumePath = nil - } else { - if out.VolumePath == nil { - out.VolumePath = new(string) - } - *out.VolumePath = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV18(out *jwriter.Writer, in VsphereVirtualDiskVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.StoragePolicyID != "" { - const prefix string = ",\"storagePolicyID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StoragePolicyID)) - } - if in.StoragePolicyName != "" { - const prefix string = ",\"storagePolicyName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StoragePolicyName)) - } - { - const prefix string = ",\"volumePath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.VolumePath == nil { - out.RawString("null") - } else { - out.String(string(*in.VolumePath)) - } - } - out.RawByte('}') -} -func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV17(in *jlexer.Lexer, out *StorageOSPersistentVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(ObjectReference) - } - (*out.SecretRef).UnmarshalEasyJSON(in) - } - case "volumeName": - out.VolumeName = string(in.String()) - case "volumeNamespace": - out.VolumeNamespace = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV17(out *jwriter.Writer, in StorageOSPersistentVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.SecretRef).MarshalEasyJSON(out) - } - if in.VolumeName != "" { - const prefix string = ",\"volumeName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeName)) - } - if in.VolumeNamespace != "" { - const prefix string = ",\"volumeNamespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeNamespace)) - } - out.RawByte('}') -} -func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV16(in *jlexer.Lexer, out *ScaleIOPersistentVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "gateway": - if in.IsNull() { - in.Skip() - out.Gateway = nil - } else { - if out.Gateway == nil { - out.Gateway = new(string) - } - *out.Gateway = string(in.String()) - } - case "protectionDomain": - out.ProtectionDomain = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(SecretReference) - } - easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV19(in, out.SecretRef) - } - case "sslEnabled": - out.SslEnabled = bool(in.Bool()) - case "storageMode": - out.StorageMode = string(in.String()) - case "storagePool": - out.StoragePool = string(in.String()) - case "system": - if in.IsNull() { - in.Skip() - out.System = nil - } else { - if out.System == nil { - out.System = new(string) - } - *out.System = string(in.String()) - } - case "volumeName": - out.VolumeName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV16(out *jwriter.Writer, in ScaleIOPersistentVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - { - const prefix string = ",\"gateway\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Gateway == nil { - out.RawString("null") - } else { - out.String(string(*in.Gateway)) - } - } - if in.ProtectionDomain != "" { - const prefix string = ",\"protectionDomain\":" - out.RawString(prefix) - out.String(string(in.ProtectionDomain)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - if in.SecretRef == nil { - out.RawString("null") - } else { - easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV19(out, *in.SecretRef) - } - } - if in.SslEnabled { - const prefix string = ",\"sslEnabled\":" - out.RawString(prefix) - out.Bool(bool(in.SslEnabled)) - } - if in.StorageMode != "" { - const prefix string = ",\"storageMode\":" - out.RawString(prefix) - out.String(string(in.StorageMode)) - } - if in.StoragePool != "" { - const prefix string = ",\"storagePool\":" - out.RawString(prefix) - out.String(string(in.StoragePool)) - } - { - const prefix string = ",\"system\":" - out.RawString(prefix) - if in.System == nil { - out.RawString("null") - } else { - out.String(string(*in.System)) - } - } - if in.VolumeName != "" { - const prefix string = ",\"volumeName\":" - out.RawString(prefix) - out.String(string(in.VolumeName)) - } - out.RawByte('}') -} -func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV19(in *jlexer.Lexer, out *SecretReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "namespace": - out.Namespace = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV19(out *jwriter.Writer, in SecretReference) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Namespace != "" { - const prefix string = ",\"namespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Namespace)) - } - out.RawByte('}') -} -func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV15(in *jlexer.Lexer, out *RBDPersistentVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "image": - if in.IsNull() { - in.Skip() - out.Image = nil - } else { - if out.Image == nil { - out.Image = new(string) - } - *out.Image = string(in.String()) - } - case "keyring": - out.Keyring = string(in.String()) - case "monitors": - if in.IsNull() { - in.Skip() - out.Monitors = nil - } else { - in.Delim('[') - if out.Monitors == nil { - if !in.IsDelim(']') { - out.Monitors = make([]string, 0, 4) - } else { - out.Monitors = []string{} - } - } else { - out.Monitors = (out.Monitors)[:0] - } - for !in.IsDelim(']') { - var v9 string - v9 = string(in.String()) - out.Monitors = append(out.Monitors, v9) - in.WantComma() - } - in.Delim(']') - } - case "pool": - out.Pool = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(SecretReference) - } - easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV19(in, out.SecretRef) - } - case "user": - out.User = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV15(out *jwriter.Writer, in RBDPersistentVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - { - const prefix string = ",\"image\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Image == nil { - out.RawString("null") - } else { - out.String(string(*in.Image)) - } - } - if in.Keyring != "" { - const prefix string = ",\"keyring\":" - out.RawString(prefix) - out.String(string(in.Keyring)) - } - { - const prefix string = ",\"monitors\":" - out.RawString(prefix) - if in.Monitors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v10, v11 := range in.Monitors { - if v10 > 0 { - out.RawByte(',') - } - out.String(string(v11)) - } - out.RawByte(']') - } - } - if in.Pool != "" { - const prefix string = ",\"pool\":" - out.RawString(prefix) - out.String(string(in.Pool)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV19(out, *in.SecretRef) - } - if in.User != "" { - const prefix string = ",\"user\":" - out.RawString(prefix) - out.String(string(in.User)) - } - out.RawByte('}') -} -func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Lexer, out *QuobyteVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "group": - out.Group = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "registry": - if in.IsNull() { - in.Skip() - out.Registry = nil - } else { - if out.Registry == nil { - out.Registry = new(string) - } - *out.Registry = string(in.String()) - } - case "tenant": - out.Tenant = string(in.String()) - case "user": - out.User = string(in.String()) - case "volume": - if in.IsNull() { - in.Skip() - out.Volume = nil - } else { - if out.Volume == nil { - out.Volume = new(string) - } - *out.Volume = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter.Writer, in QuobyteVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.Group != "" { - const prefix string = ",\"group\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Group)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"registry\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Registry == nil { - out.RawString("null") - } else { - out.String(string(*in.Registry)) - } - } - if in.Tenant != "" { - const prefix string = ",\"tenant\":" - out.RawString(prefix) - out.String(string(in.Tenant)) - } - if in.User != "" { - const prefix string = ",\"user\":" - out.RawString(prefix) - out.String(string(in.User)) - } - { - const prefix string = ",\"volume\":" - out.RawString(prefix) - if in.Volume == nil { - out.RawString("null") - } else { - out.String(string(*in.Volume)) - } - } - out.RawByte('}') -} -func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *PortworxVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "volumeID": - if in.IsNull() { - in.Skip() - out.VolumeID = nil - } else { - if out.VolumeID == nil { - out.VolumeID = new(string) - } - *out.VolumeID = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in PortworxVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"volumeID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.VolumeID == nil { - out.RawString("null") - } else { - out.String(string(*in.VolumeID)) - } - } - out.RawByte('}') -} -func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *PhotonPersistentDiskVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "pdID": - if in.IsNull() { - in.Skip() - out.PdID = nil - } else { - if out.PdID == nil { - out.PdID = new(string) - } - *out.PdID = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in PhotonPersistentDiskVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - { - const prefix string = ",\"pdID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.PdID == nil { - out.RawString("null") - } else { - out.String(string(*in.PdID)) - } - } - out.RawByte('}') -} -func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *VolumeNodeAffinity) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "required": - if in.IsNull() { - in.Skip() - out.Required = nil - } else { - if out.Required == nil { - out.Required = new(NodeSelector) - } - (*out.Required).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in VolumeNodeAffinity) { - out.RawByte('{') - first := true - _ = first - if in.Required != nil { - const prefix string = ",\"required\":" - first = false - out.RawString(prefix[1:]) - (*in.Required).MarshalEasyJSON(out) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_status.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_status.go index 05add7c..64c65a0 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_status.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_status.go @@ -14,8 +14,6 @@ type PersistentVolumeStatus struct { Message string `json:"message,omitempty"` // phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase - // - // Phase string `json:"phase,omitempty"` // reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_status_easyjson.go deleted file mode 100644 index 8137a21..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_status_easyjson.go +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson755efa75DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PersistentVolumeStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "message": - out.Message = string(in.String()) - case "phase": - out.Phase = string(in.String()) - case "reason": - out.Reason = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson755efa75EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PersistentVolumeStatus) { - out.RawByte('{') - first := true - _ = first - if in.Message != "" { - const prefix string = ",\"message\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Message)) - } - if in.Phase != "" { - const prefix string = ",\"phase\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Phase)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PersistentVolumeStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson755efa75EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PersistentVolumeStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjson755efa75EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PersistentVolumeStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson755efa75DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PersistentVolumeStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson755efa75DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/photon_persistent_disk_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/photon_persistent_disk_volume_source_easyjson.go deleted file mode 100644 index 72ba4dc..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/photon_persistent_disk_volume_source_easyjson.go +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonF03812a5DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PhotonPersistentDiskVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "pdID": - if in.IsNull() { - in.Skip() - out.PdID = nil - } else { - if out.PdID == nil { - out.PdID = new(string) - } - *out.PdID = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF03812a5EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PhotonPersistentDiskVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - { - const prefix string = ",\"pdID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.PdID == nil { - out.RawString("null") - } else { - out.String(string(*in.PdID)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PhotonPersistentDiskVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonF03812a5EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PhotonPersistentDiskVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonF03812a5EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PhotonPersistentDiskVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonF03812a5DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PhotonPersistentDiskVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonF03812a5DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_affinity_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_affinity_easyjson.go deleted file mode 100644 index 00e1f89..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_affinity_easyjson.go +++ /dev/null @@ -1,393 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson5fdbc764DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodAffinity) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "preferredDuringSchedulingIgnoredDuringExecution": - if in.IsNull() { - in.Skip() - out.PreferredDuringSchedulingIgnoredDuringExecution = nil - } else { - in.Delim('[') - if out.PreferredDuringSchedulingIgnoredDuringExecution == nil { - if !in.IsDelim(']') { - out.PreferredDuringSchedulingIgnoredDuringExecution = make([]*WeightedPodAffinityTerm, 0, 8) - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = []*WeightedPodAffinityTerm{} - } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = (out.PreferredDuringSchedulingIgnoredDuringExecution)[:0] - } - for !in.IsDelim(']') { - var v1 *WeightedPodAffinityTerm - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(WeightedPodAffinityTerm) - } - easyjson5fdbc764DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, v1) - } - out.PreferredDuringSchedulingIgnoredDuringExecution = append(out.PreferredDuringSchedulingIgnoredDuringExecution, v1) - in.WantComma() - } - in.Delim(']') - } - case "requiredDuringSchedulingIgnoredDuringExecution": - if in.IsNull() { - in.Skip() - out.RequiredDuringSchedulingIgnoredDuringExecution = nil - } else { - in.Delim('[') - if out.RequiredDuringSchedulingIgnoredDuringExecution == nil { - if !in.IsDelim(']') { - out.RequiredDuringSchedulingIgnoredDuringExecution = make([]*PodAffinityTerm, 0, 8) - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = []*PodAffinityTerm{} - } - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = (out.RequiredDuringSchedulingIgnoredDuringExecution)[:0] - } - for !in.IsDelim(']') { - var v2 *PodAffinityTerm - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(PodAffinityTerm) - } - easyjson5fdbc764DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, v2) - } - out.RequiredDuringSchedulingIgnoredDuringExecution = append(out.RequiredDuringSchedulingIgnoredDuringExecution, v2) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson5fdbc764EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodAffinity) { - out.RawByte('{') - first := true - _ = first - if len(in.PreferredDuringSchedulingIgnoredDuringExecution) != 0 { - const prefix string = ",\"preferredDuringSchedulingIgnoredDuringExecution\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v3, v4 := range in.PreferredDuringSchedulingIgnoredDuringExecution { - if v3 > 0 { - out.RawByte(',') - } - if v4 == nil { - out.RawString("null") - } else { - easyjson5fdbc764EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *v4) - } - } - out.RawByte(']') - } - } - if len(in.RequiredDuringSchedulingIgnoredDuringExecution) != 0 { - const prefix string = ",\"requiredDuringSchedulingIgnoredDuringExecution\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v5, v6 := range in.RequiredDuringSchedulingIgnoredDuringExecution { - if v5 > 0 { - out.RawByte(',') - } - if v6 == nil { - out.RawString("null") - } else { - easyjson5fdbc764EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *v6) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PodAffinity) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson5fdbc764EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PodAffinity) MarshalEasyJSON(w *jwriter.Writer) { - easyjson5fdbc764EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PodAffinity) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson5fdbc764DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PodAffinity) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson5fdbc764DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson5fdbc764DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *PodAffinityTerm) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "labelSelector": - if in.IsNull() { - in.Skip() - out.LabelSelector = nil - } else { - if out.LabelSelector == nil { - out.LabelSelector = new(_v1.LabelSelector) - } - (*out.LabelSelector).UnmarshalEasyJSON(in) - } - case "namespaceSelector": - if in.IsNull() { - in.Skip() - out.NamespaceSelector = nil - } else { - if out.NamespaceSelector == nil { - out.NamespaceSelector = new(_v1.LabelSelector) - } - (*out.NamespaceSelector).UnmarshalEasyJSON(in) - } - case "namespaces": - if in.IsNull() { - in.Skip() - out.Namespaces = nil - } else { - in.Delim('[') - if out.Namespaces == nil { - if !in.IsDelim(']') { - out.Namespaces = make([]string, 0, 4) - } else { - out.Namespaces = []string{} - } - } else { - out.Namespaces = (out.Namespaces)[:0] - } - for !in.IsDelim(']') { - var v7 string - v7 = string(in.String()) - out.Namespaces = append(out.Namespaces, v7) - in.WantComma() - } - in.Delim(']') - } - case "topologyKey": - if in.IsNull() { - in.Skip() - out.TopologyKey = nil - } else { - if out.TopologyKey == nil { - out.TopologyKey = new(string) - } - *out.TopologyKey = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson5fdbc764EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in PodAffinityTerm) { - out.RawByte('{') - first := true - _ = first - if in.LabelSelector != nil { - const prefix string = ",\"labelSelector\":" - first = false - out.RawString(prefix[1:]) - (*in.LabelSelector).MarshalEasyJSON(out) - } - if in.NamespaceSelector != nil { - const prefix string = ",\"namespaceSelector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.NamespaceSelector).MarshalEasyJSON(out) - } - if len(in.Namespaces) != 0 { - const prefix string = ",\"namespaces\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v8, v9 := range in.Namespaces { - if v8 > 0 { - out.RawByte(',') - } - out.String(string(v9)) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"topologyKey\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.TopologyKey == nil { - out.RawString("null") - } else { - out.String(string(*in.TopologyKey)) - } - } - out.RawByte('}') -} -func easyjson5fdbc764DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *WeightedPodAffinityTerm) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "podAffinityTerm": - if in.IsNull() { - in.Skip() - out.PodAffinityTerm = nil - } else { - if out.PodAffinityTerm == nil { - out.PodAffinityTerm = new(PodAffinityTerm) - } - easyjson5fdbc764DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.PodAffinityTerm) - } - case "weight": - if in.IsNull() { - in.Skip() - out.Weight = nil - } else { - if out.Weight == nil { - out.Weight = new(int32) - } - *out.Weight = int32(in.Int32()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson5fdbc764EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in WeightedPodAffinityTerm) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"podAffinityTerm\":" - out.RawString(prefix[1:]) - if in.PodAffinityTerm == nil { - out.RawString("null") - } else { - easyjson5fdbc764EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.PodAffinityTerm) - } - } - { - const prefix string = ",\"weight\":" - out.RawString(prefix) - if in.Weight == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Weight)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_affinity_term_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_affinity_term_easyjson.go deleted file mode 100644 index e4bfa29..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_affinity_term_easyjson.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson18999177DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodAffinityTerm) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "labelSelector": - if in.IsNull() { - in.Skip() - out.LabelSelector = nil - } else { - if out.LabelSelector == nil { - out.LabelSelector = new(_v1.LabelSelector) - } - (*out.LabelSelector).UnmarshalEasyJSON(in) - } - case "namespaceSelector": - if in.IsNull() { - in.Skip() - out.NamespaceSelector = nil - } else { - if out.NamespaceSelector == nil { - out.NamespaceSelector = new(_v1.LabelSelector) - } - (*out.NamespaceSelector).UnmarshalEasyJSON(in) - } - case "namespaces": - if in.IsNull() { - in.Skip() - out.Namespaces = nil - } else { - in.Delim('[') - if out.Namespaces == nil { - if !in.IsDelim(']') { - out.Namespaces = make([]string, 0, 4) - } else { - out.Namespaces = []string{} - } - } else { - out.Namespaces = (out.Namespaces)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Namespaces = append(out.Namespaces, v1) - in.WantComma() - } - in.Delim(']') - } - case "topologyKey": - if in.IsNull() { - in.Skip() - out.TopologyKey = nil - } else { - if out.TopologyKey == nil { - out.TopologyKey = new(string) - } - *out.TopologyKey = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson18999177EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodAffinityTerm) { - out.RawByte('{') - first := true - _ = first - if in.LabelSelector != nil { - const prefix string = ",\"labelSelector\":" - first = false - out.RawString(prefix[1:]) - (*in.LabelSelector).MarshalEasyJSON(out) - } - if in.NamespaceSelector != nil { - const prefix string = ",\"namespaceSelector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.NamespaceSelector).MarshalEasyJSON(out) - } - if len(in.Namespaces) != 0 { - const prefix string = ",\"namespaces\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Namespaces { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"topologyKey\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.TopologyKey == nil { - out.RawString("null") - } else { - out.String(string(*in.TopologyKey)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PodAffinityTerm) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson18999177EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PodAffinityTerm) MarshalEasyJSON(w *jwriter.Writer) { - easyjson18999177EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PodAffinityTerm) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson18999177DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PodAffinityTerm) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson18999177DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_anti_affinity_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_anti_affinity_easyjson.go deleted file mode 100644 index 2ad78d7..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_anti_affinity_easyjson.go +++ /dev/null @@ -1,255 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson38c4975DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodAntiAffinity) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "preferredDuringSchedulingIgnoredDuringExecution": - if in.IsNull() { - in.Skip() - out.PreferredDuringSchedulingIgnoredDuringExecution = nil - } else { - in.Delim('[') - if out.PreferredDuringSchedulingIgnoredDuringExecution == nil { - if !in.IsDelim(']') { - out.PreferredDuringSchedulingIgnoredDuringExecution = make([]*WeightedPodAffinityTerm, 0, 8) - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = []*WeightedPodAffinityTerm{} - } - } else { - out.PreferredDuringSchedulingIgnoredDuringExecution = (out.PreferredDuringSchedulingIgnoredDuringExecution)[:0] - } - for !in.IsDelim(']') { - var v1 *WeightedPodAffinityTerm - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(WeightedPodAffinityTerm) - } - easyjson38c4975DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, v1) - } - out.PreferredDuringSchedulingIgnoredDuringExecution = append(out.PreferredDuringSchedulingIgnoredDuringExecution, v1) - in.WantComma() - } - in.Delim(']') - } - case "requiredDuringSchedulingIgnoredDuringExecution": - if in.IsNull() { - in.Skip() - out.RequiredDuringSchedulingIgnoredDuringExecution = nil - } else { - in.Delim('[') - if out.RequiredDuringSchedulingIgnoredDuringExecution == nil { - if !in.IsDelim(']') { - out.RequiredDuringSchedulingIgnoredDuringExecution = make([]*PodAffinityTerm, 0, 8) - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = []*PodAffinityTerm{} - } - } else { - out.RequiredDuringSchedulingIgnoredDuringExecution = (out.RequiredDuringSchedulingIgnoredDuringExecution)[:0] - } - for !in.IsDelim(']') { - var v2 *PodAffinityTerm - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(PodAffinityTerm) - } - (*v2).UnmarshalEasyJSON(in) - } - out.RequiredDuringSchedulingIgnoredDuringExecution = append(out.RequiredDuringSchedulingIgnoredDuringExecution, v2) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson38c4975EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodAntiAffinity) { - out.RawByte('{') - first := true - _ = first - if len(in.PreferredDuringSchedulingIgnoredDuringExecution) != 0 { - const prefix string = ",\"preferredDuringSchedulingIgnoredDuringExecution\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v3, v4 := range in.PreferredDuringSchedulingIgnoredDuringExecution { - if v3 > 0 { - out.RawByte(',') - } - if v4 == nil { - out.RawString("null") - } else { - easyjson38c4975EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *v4) - } - } - out.RawByte(']') - } - } - if len(in.RequiredDuringSchedulingIgnoredDuringExecution) != 0 { - const prefix string = ",\"requiredDuringSchedulingIgnoredDuringExecution\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v5, v6 := range in.RequiredDuringSchedulingIgnoredDuringExecution { - if v5 > 0 { - out.RawByte(',') - } - if v6 == nil { - out.RawString("null") - } else { - (*v6).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PodAntiAffinity) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson38c4975EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PodAntiAffinity) MarshalEasyJSON(w *jwriter.Writer) { - easyjson38c4975EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PodAntiAffinity) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson38c4975DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PodAntiAffinity) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson38c4975DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson38c4975DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *WeightedPodAffinityTerm) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "podAffinityTerm": - if in.IsNull() { - in.Skip() - out.PodAffinityTerm = nil - } else { - if out.PodAffinityTerm == nil { - out.PodAffinityTerm = new(PodAffinityTerm) - } - (*out.PodAffinityTerm).UnmarshalEasyJSON(in) - } - case "weight": - if in.IsNull() { - in.Skip() - out.Weight = nil - } else { - if out.Weight == nil { - out.Weight = new(int32) - } - *out.Weight = int32(in.Int32()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson38c4975EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in WeightedPodAffinityTerm) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"podAffinityTerm\":" - out.RawString(prefix[1:]) - if in.PodAffinityTerm == nil { - out.RawString("null") - } else { - (*in.PodAffinityTerm).MarshalEasyJSON(out) - } - } - { - const prefix string = ",\"weight\":" - out.RawString(prefix) - if in.Weight == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Weight)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_condition_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_condition_easyjson.go deleted file mode 100644 index 48a381b..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_condition_easyjson.go +++ /dev/null @@ -1,186 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson161cab6dDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastProbeTime": - if in.IsNull() { - in.Skip() - out.LastProbeTime = nil - } else { - if out.LastProbeTime == nil { - out.LastProbeTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastProbeTime).UnmarshalJSON(data)) - } - } - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson161cab6dEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastProbeTime != nil { - const prefix string = ",\"lastProbeTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastProbeTime).MarshalJSON()) - } - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PodCondition) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson161cab6dEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PodCondition) MarshalEasyJSON(w *jwriter.Writer) { - easyjson161cab6dEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PodCondition) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson161cab6dDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PodCondition) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson161cab6dDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_dns_config_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_dns_config_easyjson.go deleted file mode 100644 index b109d4b..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_dns_config_easyjson.go +++ /dev/null @@ -1,267 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson76d27232DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodDNSConfig) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "nameservers": - if in.IsNull() { - in.Skip() - out.Nameservers = nil - } else { - in.Delim('[') - if out.Nameservers == nil { - if !in.IsDelim(']') { - out.Nameservers = make([]string, 0, 4) - } else { - out.Nameservers = []string{} - } - } else { - out.Nameservers = (out.Nameservers)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Nameservers = append(out.Nameservers, v1) - in.WantComma() - } - in.Delim(']') - } - case "options": - if in.IsNull() { - in.Skip() - out.Options = nil - } else { - in.Delim('[') - if out.Options == nil { - if !in.IsDelim(']') { - out.Options = make([]*PodDNSConfigOption, 0, 8) - } else { - out.Options = []*PodDNSConfigOption{} - } - } else { - out.Options = (out.Options)[:0] - } - for !in.IsDelim(']') { - var v2 *PodDNSConfigOption - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(PodDNSConfigOption) - } - easyjson76d27232DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, v2) - } - out.Options = append(out.Options, v2) - in.WantComma() - } - in.Delim(']') - } - case "searches": - if in.IsNull() { - in.Skip() - out.Searches = nil - } else { - in.Delim('[') - if out.Searches == nil { - if !in.IsDelim(']') { - out.Searches = make([]string, 0, 4) - } else { - out.Searches = []string{} - } - } else { - out.Searches = (out.Searches)[:0] - } - for !in.IsDelim(']') { - var v3 string - v3 = string(in.String()) - out.Searches = append(out.Searches, v3) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson76d27232EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodDNSConfig) { - out.RawByte('{') - first := true - _ = first - if len(in.Nameservers) != 0 { - const prefix string = ",\"nameservers\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v4, v5 := range in.Nameservers { - if v4 > 0 { - out.RawByte(',') - } - out.String(string(v5)) - } - out.RawByte(']') - } - } - if len(in.Options) != 0 { - const prefix string = ",\"options\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v6, v7 := range in.Options { - if v6 > 0 { - out.RawByte(',') - } - if v7 == nil { - out.RawString("null") - } else { - easyjson76d27232EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *v7) - } - } - out.RawByte(']') - } - } - if len(in.Searches) != 0 { - const prefix string = ",\"searches\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v8, v9 := range in.Searches { - if v8 > 0 { - out.RawByte(',') - } - out.String(string(v9)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PodDNSConfig) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson76d27232EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PodDNSConfig) MarshalEasyJSON(w *jwriter.Writer) { - easyjson76d27232EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PodDNSConfig) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson76d27232DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PodDNSConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson76d27232DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson76d27232DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *PodDNSConfigOption) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "value": - out.Value = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson76d27232EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in PodDNSConfigOption) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Value != "" { - const prefix string = ",\"value\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Value)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_dns_config_option_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_dns_config_option_easyjson.go deleted file mode 100644 index b5d9d6b..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_dns_config_option_easyjson.go +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson7fe0d938DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodDNSConfigOption) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "value": - out.Value = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7fe0d938EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodDNSConfigOption) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Value != "" { - const prefix string = ",\"value\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Value)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PodDNSConfigOption) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson7fe0d938EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PodDNSConfigOption) MarshalEasyJSON(w *jwriter.Writer) { - easyjson7fe0d938EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PodDNSConfigOption) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson7fe0d938DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PodDNSConfigOption) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson7fe0d938DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_easyjson.go deleted file mode 100644 index 8452092..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_easyjson.go +++ /dev/null @@ -1,4405 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Pod) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(PodSpec) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.Spec) - } - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(PodStatus) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.Status) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Pod) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.Spec) - } - if in.Status != nil { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.Status) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Pod) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Pod) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Pod) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Pod) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *PodStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*PodCondition, 0, 8) - } else { - out.Conditions = []*PodCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *PodCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(PodCondition) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV13(in, v1) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "containerStatuses": - if in.IsNull() { - in.Skip() - out.ContainerStatuses = nil - } else { - in.Delim('[') - if out.ContainerStatuses == nil { - if !in.IsDelim(']') { - out.ContainerStatuses = make([]*ContainerStatus, 0, 8) - } else { - out.ContainerStatuses = []*ContainerStatus{} - } - } else { - out.ContainerStatuses = (out.ContainerStatuses)[:0] - } - for !in.IsDelim(']') { - var v2 *ContainerStatus - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(ContainerStatus) - } - (*v2).UnmarshalEasyJSON(in) - } - out.ContainerStatuses = append(out.ContainerStatuses, v2) - in.WantComma() - } - in.Delim(']') - } - case "ephemeralContainerStatuses": - if in.IsNull() { - in.Skip() - out.EphemeralContainerStatuses = nil - } else { - in.Delim('[') - if out.EphemeralContainerStatuses == nil { - if !in.IsDelim(']') { - out.EphemeralContainerStatuses = make([]*ContainerStatus, 0, 8) - } else { - out.EphemeralContainerStatuses = []*ContainerStatus{} - } - } else { - out.EphemeralContainerStatuses = (out.EphemeralContainerStatuses)[:0] - } - for !in.IsDelim(']') { - var v3 *ContainerStatus - if in.IsNull() { - in.Skip() - v3 = nil - } else { - if v3 == nil { - v3 = new(ContainerStatus) - } - (*v3).UnmarshalEasyJSON(in) - } - out.EphemeralContainerStatuses = append(out.EphemeralContainerStatuses, v3) - in.WantComma() - } - in.Delim(']') - } - case "hostIP": - out.HostIP = string(in.String()) - case "initContainerStatuses": - if in.IsNull() { - in.Skip() - out.InitContainerStatuses = nil - } else { - in.Delim('[') - if out.InitContainerStatuses == nil { - if !in.IsDelim(']') { - out.InitContainerStatuses = make([]*ContainerStatus, 0, 8) - } else { - out.InitContainerStatuses = []*ContainerStatus{} - } - } else { - out.InitContainerStatuses = (out.InitContainerStatuses)[:0] - } - for !in.IsDelim(']') { - var v4 *ContainerStatus - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(ContainerStatus) - } - (*v4).UnmarshalEasyJSON(in) - } - out.InitContainerStatuses = append(out.InitContainerStatuses, v4) - in.WantComma() - } - in.Delim(']') - } - case "message": - out.Message = string(in.String()) - case "nominatedNodeName": - out.NominatedNodeName = string(in.String()) - case "phase": - out.Phase = string(in.String()) - case "podIP": - out.PodIP = string(in.String()) - case "podIPs": - if in.IsNull() { - in.Skip() - out.PodIPs = nil - } else { - in.Delim('[') - if out.PodIPs == nil { - if !in.IsDelim(']') { - out.PodIPs = make([]*PodIP, 0, 8) - } else { - out.PodIPs = []*PodIP{} - } - } else { - out.PodIPs = (out.PodIPs)[:0] - } - for !in.IsDelim(']') { - var v5 *PodIP - if in.IsNull() { - in.Skip() - v5 = nil - } else { - if v5 == nil { - v5 = new(PodIP) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV14(in, v5) - } - out.PodIPs = append(out.PodIPs, v5) - in.WantComma() - } - in.Delim(']') - } - case "qosClass": - out.QosClass = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "startTime": - if in.IsNull() { - in.Skip() - out.StartTime = nil - } else { - if out.StartTime == nil { - out.StartTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.StartTime).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in PodStatus) { - out.RawByte('{') - first := true - _ = first - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v6, v7 := range in.Conditions { - if v6 > 0 { - out.RawByte(',') - } - if v7 == nil { - out.RawString("null") - } else { - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *v7) - } - } - out.RawByte(']') - } - } - if len(in.ContainerStatuses) != 0 { - const prefix string = ",\"containerStatuses\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v8, v9 := range in.ContainerStatuses { - if v8 > 0 { - out.RawByte(',') - } - if v9 == nil { - out.RawString("null") - } else { - (*v9).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.EphemeralContainerStatuses) != 0 { - const prefix string = ",\"ephemeralContainerStatuses\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v10, v11 := range in.EphemeralContainerStatuses { - if v10 > 0 { - out.RawByte(',') - } - if v11 == nil { - out.RawString("null") - } else { - (*v11).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.HostIP != "" { - const prefix string = ",\"hostIP\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.HostIP)) - } - if len(in.InitContainerStatuses) != 0 { - const prefix string = ",\"initContainerStatuses\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v12, v13 := range in.InitContainerStatuses { - if v12 > 0 { - out.RawByte(',') - } - if v13 == nil { - out.RawString("null") - } else { - (*v13).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.NominatedNodeName != "" { - const prefix string = ",\"nominatedNodeName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.NominatedNodeName)) - } - if in.Phase != "" { - const prefix string = ",\"phase\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Phase)) - } - if in.PodIP != "" { - const prefix string = ",\"podIP\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.PodIP)) - } - if len(in.PodIPs) != 0 { - const prefix string = ",\"podIPs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v14, v15 := range in.PodIPs { - if v14 > 0 { - out.RawByte(',') - } - if v15 == nil { - out.RawString("null") - } else { - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *v15) - } - } - out.RawByte(']') - } - } - if in.QosClass != "" { - const prefix string = ",\"qosClass\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.QosClass)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - if in.StartTime != nil { - const prefix string = ",\"startTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.StartTime).MarshalJSON()) - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Lexer, out *PodIP) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "ip": - out.IP = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter.Writer, in PodIP) { - out.RawByte('{') - first := true - _ = first - if in.IP != "" { - const prefix string = ",\"ip\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.IP)) - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *PodCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastProbeTime": - if in.IsNull() { - in.Skip() - out.LastProbeTime = nil - } else { - if out.LastProbeTime == nil { - out.LastProbeTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastProbeTime).UnmarshalJSON(data)) - } - } - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in PodCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastProbeTime != nil { - const prefix string = ",\"lastProbeTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastProbeTime).MarshalJSON()) - } - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *PodSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "activeDeadlineSeconds": - out.ActiveDeadlineSeconds = int64(in.Int64()) - case "affinity": - if in.IsNull() { - in.Skip() - out.Affinity = nil - } else { - if out.Affinity == nil { - out.Affinity = new(Affinity) - } - (*out.Affinity).UnmarshalEasyJSON(in) - } - case "automountServiceAccountToken": - out.AutomountServiceAccountToken = bool(in.Bool()) - case "containers": - if in.IsNull() { - in.Skip() - out.Containers = nil - } else { - in.Delim('[') - if out.Containers == nil { - if !in.IsDelim(']') { - out.Containers = make([]*Container, 0, 8) - } else { - out.Containers = []*Container{} - } - } else { - out.Containers = (out.Containers)[:0] - } - for !in.IsDelim(']') { - var v16 *Container - if in.IsNull() { - in.Skip() - v16 = nil - } else { - if v16 == nil { - v16 = new(Container) - } - (*v16).UnmarshalEasyJSON(in) - } - out.Containers = append(out.Containers, v16) - in.WantComma() - } - in.Delim(']') - } - case "dnsConfig": - if in.IsNull() { - in.Skip() - out.DNSConfig = nil - } else { - if out.DNSConfig == nil { - out.DNSConfig = new(PodDNSConfig) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV15(in, out.DNSConfig) - } - case "dnsPolicy": - out.DNSPolicy = string(in.String()) - case "enableServiceLinks": - out.EnableServiceLinks = bool(in.Bool()) - case "ephemeralContainers": - if in.IsNull() { - in.Skip() - out.EphemeralContainers = nil - } else { - in.Delim('[') - if out.EphemeralContainers == nil { - if !in.IsDelim(']') { - out.EphemeralContainers = make([]*EphemeralContainer, 0, 8) - } else { - out.EphemeralContainers = []*EphemeralContainer{} - } - } else { - out.EphemeralContainers = (out.EphemeralContainers)[:0] - } - for !in.IsDelim(']') { - var v17 *EphemeralContainer - if in.IsNull() { - in.Skip() - v17 = nil - } else { - if v17 == nil { - v17 = new(EphemeralContainer) - } - (*v17).UnmarshalEasyJSON(in) - } - out.EphemeralContainers = append(out.EphemeralContainers, v17) - in.WantComma() - } - in.Delim(']') - } - case "hostAliases": - if in.IsNull() { - in.Skip() - out.HostAliases = nil - } else { - in.Delim('[') - if out.HostAliases == nil { - if !in.IsDelim(']') { - out.HostAliases = make([]*HostAlias, 0, 8) - } else { - out.HostAliases = []*HostAlias{} - } - } else { - out.HostAliases = (out.HostAliases)[:0] - } - for !in.IsDelim(']') { - var v18 *HostAlias - if in.IsNull() { - in.Skip() - v18 = nil - } else { - if v18 == nil { - v18 = new(HostAlias) - } - (*v18).UnmarshalEasyJSON(in) - } - out.HostAliases = append(out.HostAliases, v18) - in.WantComma() - } - in.Delim(']') - } - case "hostIPC": - out.HostIPC = bool(in.Bool()) - case "hostNetwork": - out.HostNetwork = bool(in.Bool()) - case "hostPID": - out.HostPID = bool(in.Bool()) - case "hostname": - out.Hostname = string(in.String()) - case "imagePullSecrets": - if in.IsNull() { - in.Skip() - out.ImagePullSecrets = nil - } else { - in.Delim('[') - if out.ImagePullSecrets == nil { - if !in.IsDelim(']') { - out.ImagePullSecrets = make([]*LocalObjectReference, 0, 8) - } else { - out.ImagePullSecrets = []*LocalObjectReference{} - } - } else { - out.ImagePullSecrets = (out.ImagePullSecrets)[:0] - } - for !in.IsDelim(']') { - var v19 *LocalObjectReference - if in.IsNull() { - in.Skip() - v19 = nil - } else { - if v19 == nil { - v19 = new(LocalObjectReference) - } - (*v19).UnmarshalEasyJSON(in) - } - out.ImagePullSecrets = append(out.ImagePullSecrets, v19) - in.WantComma() - } - in.Delim(']') - } - case "initContainers": - if in.IsNull() { - in.Skip() - out.InitContainers = nil - } else { - in.Delim('[') - if out.InitContainers == nil { - if !in.IsDelim(']') { - out.InitContainers = make([]*Container, 0, 8) - } else { - out.InitContainers = []*Container{} - } - } else { - out.InitContainers = (out.InitContainers)[:0] - } - for !in.IsDelim(']') { - var v20 *Container - if in.IsNull() { - in.Skip() - v20 = nil - } else { - if v20 == nil { - v20 = new(Container) - } - (*v20).UnmarshalEasyJSON(in) - } - out.InitContainers = append(out.InitContainers, v20) - in.WantComma() - } - in.Delim(']') - } - case "nodeName": - out.NodeName = string(in.String()) - case "nodeSelector": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.NodeSelector = make(map[string]string) - } else { - out.NodeSelector = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v21 string - v21 = string(in.String()) - (out.NodeSelector)[key] = v21 - in.WantComma() - } - in.Delim('}') - } - case "os": - if in.IsNull() { - in.Skip() - out.OS = nil - } else { - if out.OS == nil { - out.OS = new(PodOS) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV16(in, out.OS) - } - case "overhead": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Overhead = make(map[string]*resource.Quantity) - } else { - out.Overhead = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v22 *resource.Quantity - if in.IsNull() { - in.Skip() - v22 = nil - } else { - if v22 == nil { - v22 = new(resource.Quantity) - } - *v22 = resource.Quantity(in.String()) - } - (out.Overhead)[key] = v22 - in.WantComma() - } - in.Delim('}') - } - case "preemptionPolicy": - out.PreemptionPolicy = string(in.String()) - case "priority": - out.Priority = int32(in.Int32()) - case "priorityClassName": - out.PriorityClassName = string(in.String()) - case "readinessGates": - if in.IsNull() { - in.Skip() - out.ReadinessGates = nil - } else { - in.Delim('[') - if out.ReadinessGates == nil { - if !in.IsDelim(']') { - out.ReadinessGates = make([]*PodReadinessGate, 0, 8) - } else { - out.ReadinessGates = []*PodReadinessGate{} - } - } else { - out.ReadinessGates = (out.ReadinessGates)[:0] - } - for !in.IsDelim(']') { - var v23 *PodReadinessGate - if in.IsNull() { - in.Skip() - v23 = nil - } else { - if v23 == nil { - v23 = new(PodReadinessGate) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV17(in, v23) - } - out.ReadinessGates = append(out.ReadinessGates, v23) - in.WantComma() - } - in.Delim(']') - } - case "restartPolicy": - out.RestartPolicy = string(in.String()) - case "runtimeClassName": - out.RuntimeClassName = string(in.String()) - case "schedulerName": - out.SchedulerName = string(in.String()) - case "securityContext": - if in.IsNull() { - in.Skip() - out.SecurityContext = nil - } else { - if out.SecurityContext == nil { - out.SecurityContext = new(PodSecurityContext) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV18(in, out.SecurityContext) - } - case "serviceAccount": - out.ServiceAccount = string(in.String()) - case "serviceAccountName": - out.ServiceAccountName = string(in.String()) - case "setHostnameAsFQDN": - out.SetHostnameAsFQDN = bool(in.Bool()) - case "shareProcessNamespace": - out.ShareProcessNamespace = bool(in.Bool()) - case "subdomain": - out.Subdomain = string(in.String()) - case "terminationGracePeriodSeconds": - out.TerminationGracePeriodSeconds = int64(in.Int64()) - case "tolerations": - if in.IsNull() { - in.Skip() - out.Tolerations = nil - } else { - in.Delim('[') - if out.Tolerations == nil { - if !in.IsDelim(']') { - out.Tolerations = make([]*Toleration, 0, 8) - } else { - out.Tolerations = []*Toleration{} - } - } else { - out.Tolerations = (out.Tolerations)[:0] - } - for !in.IsDelim(']') { - var v24 *Toleration - if in.IsNull() { - in.Skip() - v24 = nil - } else { - if v24 == nil { - v24 = new(Toleration) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV19(in, v24) - } - out.Tolerations = append(out.Tolerations, v24) - in.WantComma() - } - in.Delim(']') - } - case "topologySpreadConstraints": - if in.IsNull() { - in.Skip() - out.TopologySpreadConstraints = nil - } else { - in.Delim('[') - if out.TopologySpreadConstraints == nil { - if !in.IsDelim(']') { - out.TopologySpreadConstraints = make([]*TopologySpreadConstraint, 0, 8) - } else { - out.TopologySpreadConstraints = []*TopologySpreadConstraint{} - } - } else { - out.TopologySpreadConstraints = (out.TopologySpreadConstraints)[:0] - } - for !in.IsDelim(']') { - var v25 *TopologySpreadConstraint - if in.IsNull() { - in.Skip() - v25 = nil - } else { - if v25 == nil { - v25 = new(TopologySpreadConstraint) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV110(in, v25) - } - out.TopologySpreadConstraints = append(out.TopologySpreadConstraints, v25) - in.WantComma() - } - in.Delim(']') - } - case "volumes": - if in.IsNull() { - in.Skip() - out.Volumes = nil - } else { - in.Delim('[') - if out.Volumes == nil { - if !in.IsDelim(']') { - out.Volumes = make([]*Volume, 0, 8) - } else { - out.Volumes = []*Volume{} - } - } else { - out.Volumes = (out.Volumes)[:0] - } - for !in.IsDelim(']') { - var v26 *Volume - if in.IsNull() { - in.Skip() - v26 = nil - } else { - if v26 == nil { - v26 = new(Volume) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV111(in, v26) - } - out.Volumes = append(out.Volumes, v26) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in PodSpec) { - out.RawByte('{') - first := true - _ = first - if in.ActiveDeadlineSeconds != 0 { - const prefix string = ",\"activeDeadlineSeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int64(int64(in.ActiveDeadlineSeconds)) - } - if in.Affinity != nil { - const prefix string = ",\"affinity\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Affinity).MarshalEasyJSON(out) - } - if in.AutomountServiceAccountToken { - const prefix string = ",\"automountServiceAccountToken\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.AutomountServiceAccountToken)) - } - { - const prefix string = ",\"containers\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Containers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v27, v28 := range in.Containers { - if v27 > 0 { - out.RawByte(',') - } - if v28 == nil { - out.RawString("null") - } else { - (*v28).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.DNSConfig != nil { - const prefix string = ",\"dnsConfig\":" - out.RawString(prefix) - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV15(out, *in.DNSConfig) - } - if in.DNSPolicy != "" { - const prefix string = ",\"dnsPolicy\":" - out.RawString(prefix) - out.String(string(in.DNSPolicy)) - } - if in.EnableServiceLinks { - const prefix string = ",\"enableServiceLinks\":" - out.RawString(prefix) - out.Bool(bool(in.EnableServiceLinks)) - } - if len(in.EphemeralContainers) != 0 { - const prefix string = ",\"ephemeralContainers\":" - out.RawString(prefix) - { - out.RawByte('[') - for v29, v30 := range in.EphemeralContainers { - if v29 > 0 { - out.RawByte(',') - } - if v30 == nil { - out.RawString("null") - } else { - (*v30).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.HostAliases) != 0 { - const prefix string = ",\"hostAliases\":" - out.RawString(prefix) - { - out.RawByte('[') - for v31, v32 := range in.HostAliases { - if v31 > 0 { - out.RawByte(',') - } - if v32 == nil { - out.RawString("null") - } else { - (*v32).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.HostIPC { - const prefix string = ",\"hostIPC\":" - out.RawString(prefix) - out.Bool(bool(in.HostIPC)) - } - if in.HostNetwork { - const prefix string = ",\"hostNetwork\":" - out.RawString(prefix) - out.Bool(bool(in.HostNetwork)) - } - if in.HostPID { - const prefix string = ",\"hostPID\":" - out.RawString(prefix) - out.Bool(bool(in.HostPID)) - } - if in.Hostname != "" { - const prefix string = ",\"hostname\":" - out.RawString(prefix) - out.String(string(in.Hostname)) - } - if len(in.ImagePullSecrets) != 0 { - const prefix string = ",\"imagePullSecrets\":" - out.RawString(prefix) - { - out.RawByte('[') - for v33, v34 := range in.ImagePullSecrets { - if v33 > 0 { - out.RawByte(',') - } - if v34 == nil { - out.RawString("null") - } else { - (*v34).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.InitContainers) != 0 { - const prefix string = ",\"initContainers\":" - out.RawString(prefix) - { - out.RawByte('[') - for v35, v36 := range in.InitContainers { - if v35 > 0 { - out.RawByte(',') - } - if v36 == nil { - out.RawString("null") - } else { - (*v36).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.NodeName != "" { - const prefix string = ",\"nodeName\":" - out.RawString(prefix) - out.String(string(in.NodeName)) - } - if len(in.NodeSelector) != 0 { - const prefix string = ",\"nodeSelector\":" - out.RawString(prefix) - { - out.RawByte('{') - v37First := true - for v37Name, v37Value := range in.NodeSelector { - if v37First { - v37First = false - } else { - out.RawByte(',') - } - out.String(string(v37Name)) - out.RawByte(':') - out.String(string(v37Value)) - } - out.RawByte('}') - } - } - if in.OS != nil { - const prefix string = ",\"os\":" - out.RawString(prefix) - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV16(out, *in.OS) - } - if len(in.Overhead) != 0 { - const prefix string = ",\"overhead\":" - out.RawString(prefix) - { - out.RawByte('{') - v38First := true - for v38Name, v38Value := range in.Overhead { - if v38First { - v38First = false - } else { - out.RawByte(',') - } - out.String(string(v38Name)) - out.RawByte(':') - if v38Value == nil { - out.RawString("null") - } else { - out.String(string(*v38Value)) - } - } - out.RawByte('}') - } - } - if in.PreemptionPolicy != "" { - const prefix string = ",\"preemptionPolicy\":" - out.RawString(prefix) - out.String(string(in.PreemptionPolicy)) - } - if in.Priority != 0 { - const prefix string = ",\"priority\":" - out.RawString(prefix) - out.Int32(int32(in.Priority)) - } - if in.PriorityClassName != "" { - const prefix string = ",\"priorityClassName\":" - out.RawString(prefix) - out.String(string(in.PriorityClassName)) - } - if len(in.ReadinessGates) != 0 { - const prefix string = ",\"readinessGates\":" - out.RawString(prefix) - { - out.RawByte('[') - for v39, v40 := range in.ReadinessGates { - if v39 > 0 { - out.RawByte(',') - } - if v40 == nil { - out.RawString("null") - } else { - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV17(out, *v40) - } - } - out.RawByte(']') - } - } - if in.RestartPolicy != "" { - const prefix string = ",\"restartPolicy\":" - out.RawString(prefix) - out.String(string(in.RestartPolicy)) - } - if in.RuntimeClassName != "" { - const prefix string = ",\"runtimeClassName\":" - out.RawString(prefix) - out.String(string(in.RuntimeClassName)) - } - if in.SchedulerName != "" { - const prefix string = ",\"schedulerName\":" - out.RawString(prefix) - out.String(string(in.SchedulerName)) - } - if in.SecurityContext != nil { - const prefix string = ",\"securityContext\":" - out.RawString(prefix) - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV18(out, *in.SecurityContext) - } - if in.ServiceAccount != "" { - const prefix string = ",\"serviceAccount\":" - out.RawString(prefix) - out.String(string(in.ServiceAccount)) - } - if in.ServiceAccountName != "" { - const prefix string = ",\"serviceAccountName\":" - out.RawString(prefix) - out.String(string(in.ServiceAccountName)) - } - if in.SetHostnameAsFQDN { - const prefix string = ",\"setHostnameAsFQDN\":" - out.RawString(prefix) - out.Bool(bool(in.SetHostnameAsFQDN)) - } - if in.ShareProcessNamespace { - const prefix string = ",\"shareProcessNamespace\":" - out.RawString(prefix) - out.Bool(bool(in.ShareProcessNamespace)) - } - if in.Subdomain != "" { - const prefix string = ",\"subdomain\":" - out.RawString(prefix) - out.String(string(in.Subdomain)) - } - if in.TerminationGracePeriodSeconds != 0 { - const prefix string = ",\"terminationGracePeriodSeconds\":" - out.RawString(prefix) - out.Int64(int64(in.TerminationGracePeriodSeconds)) - } - if len(in.Tolerations) != 0 { - const prefix string = ",\"tolerations\":" - out.RawString(prefix) - { - out.RawByte('[') - for v41, v42 := range in.Tolerations { - if v41 > 0 { - out.RawByte(',') - } - if v42 == nil { - out.RawString("null") - } else { - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV19(out, *v42) - } - } - out.RawByte(']') - } - } - if len(in.TopologySpreadConstraints) != 0 { - const prefix string = ",\"topologySpreadConstraints\":" - out.RawString(prefix) - { - out.RawByte('[') - for v43, v44 := range in.TopologySpreadConstraints { - if v43 > 0 { - out.RawByte(',') - } - if v44 == nil { - out.RawString("null") - } else { - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV110(out, *v44) - } - } - out.RawByte(']') - } - } - if len(in.Volumes) != 0 { - const prefix string = ",\"volumes\":" - out.RawString(prefix) - { - out.RawByte('[') - for v45, v46 := range in.Volumes { - if v45 > 0 { - out.RawByte(',') - } - if v46 == nil { - out.RawString("null") - } else { - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV111(out, *v46) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV111(in *jlexer.Lexer, out *Volume) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "awsElasticBlockStore": - if in.IsNull() { - in.Skip() - out.AWSElasticBlockStore = nil - } else { - if out.AWSElasticBlockStore == nil { - out.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - (*out.AWSElasticBlockStore).UnmarshalEasyJSON(in) - } - case "azureDisk": - if in.IsNull() { - in.Skip() - out.AzureDisk = nil - } else { - if out.AzureDisk == nil { - out.AzureDisk = new(AzureDiskVolumeSource) - } - (*out.AzureDisk).UnmarshalEasyJSON(in) - } - case "azureFile": - if in.IsNull() { - in.Skip() - out.AzureFile = nil - } else { - if out.AzureFile == nil { - out.AzureFile = new(AzureFileVolumeSource) - } - (*out.AzureFile).UnmarshalEasyJSON(in) - } - case "cephfs": - if in.IsNull() { - in.Skip() - out.Cephfs = nil - } else { - if out.Cephfs == nil { - out.Cephfs = new(CephFSVolumeSource) - } - (*out.Cephfs).UnmarshalEasyJSON(in) - } - case "cinder": - if in.IsNull() { - in.Skip() - out.Cinder = nil - } else { - if out.Cinder == nil { - out.Cinder = new(CinderVolumeSource) - } - (*out.Cinder).UnmarshalEasyJSON(in) - } - case "configMap": - if in.IsNull() { - in.Skip() - out.ConfigMap = nil - } else { - if out.ConfigMap == nil { - out.ConfigMap = new(ConfigMapVolumeSource) - } - (*out.ConfigMap).UnmarshalEasyJSON(in) - } - case "csi": - if in.IsNull() { - in.Skip() - out.CSI = nil - } else { - if out.CSI == nil { - out.CSI = new(CSIVolumeSource) - } - (*out.CSI).UnmarshalEasyJSON(in) - } - case "downwardAPI": - if in.IsNull() { - in.Skip() - out.DownwardAPI = nil - } else { - if out.DownwardAPI == nil { - out.DownwardAPI = new(DownwardAPIVolumeSource) - } - (*out.DownwardAPI).UnmarshalEasyJSON(in) - } - case "emptyDir": - if in.IsNull() { - in.Skip() - out.EmptyDir = nil - } else { - if out.EmptyDir == nil { - out.EmptyDir = new(EmptyDirVolumeSource) - } - (*out.EmptyDir).UnmarshalEasyJSON(in) - } - case "ephemeral": - if in.IsNull() { - in.Skip() - out.Ephemeral = nil - } else { - if out.Ephemeral == nil { - out.Ephemeral = new(EphemeralVolumeSource) - } - (*out.Ephemeral).UnmarshalEasyJSON(in) - } - case "fc": - if in.IsNull() { - in.Skip() - out.FC = nil - } else { - if out.FC == nil { - out.FC = new(FCVolumeSource) - } - (*out.FC).UnmarshalEasyJSON(in) - } - case "flexVolume": - if in.IsNull() { - in.Skip() - out.FlexVolume = nil - } else { - if out.FlexVolume == nil { - out.FlexVolume = new(FlexVolumeSource) - } - (*out.FlexVolume).UnmarshalEasyJSON(in) - } - case "flocker": - if in.IsNull() { - in.Skip() - out.Flocker = nil - } else { - if out.Flocker == nil { - out.Flocker = new(FlockerVolumeSource) - } - (*out.Flocker).UnmarshalEasyJSON(in) - } - case "gcePersistentDisk": - if in.IsNull() { - in.Skip() - out.GCEPersistentDisk = nil - } else { - if out.GCEPersistentDisk == nil { - out.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - (*out.GCEPersistentDisk).UnmarshalEasyJSON(in) - } - case "gitRepo": - if in.IsNull() { - in.Skip() - out.GitRepo = nil - } else { - if out.GitRepo == nil { - out.GitRepo = new(GitRepoVolumeSource) - } - (*out.GitRepo).UnmarshalEasyJSON(in) - } - case "glusterfs": - if in.IsNull() { - in.Skip() - out.Glusterfs = nil - } else { - if out.Glusterfs == nil { - out.Glusterfs = new(GlusterfsVolumeSource) - } - (*out.Glusterfs).UnmarshalEasyJSON(in) - } - case "hostPath": - if in.IsNull() { - in.Skip() - out.HostPath = nil - } else { - if out.HostPath == nil { - out.HostPath = new(HostPathVolumeSource) - } - (*out.HostPath).UnmarshalEasyJSON(in) - } - case "iscsi": - if in.IsNull() { - in.Skip() - out.ISCSI = nil - } else { - if out.ISCSI == nil { - out.ISCSI = new(ISCSIVolumeSource) - } - (*out.ISCSI).UnmarshalEasyJSON(in) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "nfs": - if in.IsNull() { - in.Skip() - out.NFS = nil - } else { - if out.NFS == nil { - out.NFS = new(NFSVolumeSource) - } - (*out.NFS).UnmarshalEasyJSON(in) - } - case "persistentVolumeClaim": - if in.IsNull() { - in.Skip() - out.PersistentVolumeClaim = nil - } else { - if out.PersistentVolumeClaim == nil { - out.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) - } - (*out.PersistentVolumeClaim).UnmarshalEasyJSON(in) - } - case "photonPersistentDisk": - if in.IsNull() { - in.Skip() - out.PhotonPersistentDisk = nil - } else { - if out.PhotonPersistentDisk == nil { - out.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) - } - (*out.PhotonPersistentDisk).UnmarshalEasyJSON(in) - } - case "portworxVolume": - if in.IsNull() { - in.Skip() - out.PortworxVolume = nil - } else { - if out.PortworxVolume == nil { - out.PortworxVolume = new(PortworxVolumeSource) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV112(in, out.PortworxVolume) - } - case "projected": - if in.IsNull() { - in.Skip() - out.Projected = nil - } else { - if out.Projected == nil { - out.Projected = new(ProjectedVolumeSource) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV113(in, out.Projected) - } - case "quobyte": - if in.IsNull() { - in.Skip() - out.Quobyte = nil - } else { - if out.Quobyte == nil { - out.Quobyte = new(QuobyteVolumeSource) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV114(in, out.Quobyte) - } - case "rbd": - if in.IsNull() { - in.Skip() - out.RBD = nil - } else { - if out.RBD == nil { - out.RBD = new(RBDVolumeSource) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV115(in, out.RBD) - } - case "scaleIO": - if in.IsNull() { - in.Skip() - out.ScaleIO = nil - } else { - if out.ScaleIO == nil { - out.ScaleIO = new(ScaleIOVolumeSource) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV116(in, out.ScaleIO) - } - case "secret": - if in.IsNull() { - in.Skip() - out.Secret = nil - } else { - if out.Secret == nil { - out.Secret = new(SecretVolumeSource) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV117(in, out.Secret) - } - case "storageos": - if in.IsNull() { - in.Skip() - out.Storageos = nil - } else { - if out.Storageos == nil { - out.Storageos = new(StorageOSVolumeSource) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV118(in, out.Storageos) - } - case "vsphereVolume": - if in.IsNull() { - in.Skip() - out.VsphereVolume = nil - } else { - if out.VsphereVolume == nil { - out.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV119(in, out.VsphereVolume) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter.Writer, in Volume) { - out.RawByte('{') - first := true - _ = first - if in.AWSElasticBlockStore != nil { - const prefix string = ",\"awsElasticBlockStore\":" - first = false - out.RawString(prefix[1:]) - (*in.AWSElasticBlockStore).MarshalEasyJSON(out) - } - if in.AzureDisk != nil { - const prefix string = ",\"azureDisk\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.AzureDisk).MarshalEasyJSON(out) - } - if in.AzureFile != nil { - const prefix string = ",\"azureFile\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.AzureFile).MarshalEasyJSON(out) - } - if in.Cephfs != nil { - const prefix string = ",\"cephfs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Cephfs).MarshalEasyJSON(out) - } - if in.Cinder != nil { - const prefix string = ",\"cinder\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Cinder).MarshalEasyJSON(out) - } - if in.ConfigMap != nil { - const prefix string = ",\"configMap\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.ConfigMap).MarshalEasyJSON(out) - } - if in.CSI != nil { - const prefix string = ",\"csi\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.CSI).MarshalEasyJSON(out) - } - if in.DownwardAPI != nil { - const prefix string = ",\"downwardAPI\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.DownwardAPI).MarshalEasyJSON(out) - } - if in.EmptyDir != nil { - const prefix string = ",\"emptyDir\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.EmptyDir).MarshalEasyJSON(out) - } - if in.Ephemeral != nil { - const prefix string = ",\"ephemeral\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Ephemeral).MarshalEasyJSON(out) - } - if in.FC != nil { - const prefix string = ",\"fc\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.FC).MarshalEasyJSON(out) - } - if in.FlexVolume != nil { - const prefix string = ",\"flexVolume\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.FlexVolume).MarshalEasyJSON(out) - } - if in.Flocker != nil { - const prefix string = ",\"flocker\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Flocker).MarshalEasyJSON(out) - } - if in.GCEPersistentDisk != nil { - const prefix string = ",\"gcePersistentDisk\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.GCEPersistentDisk).MarshalEasyJSON(out) - } - if in.GitRepo != nil { - const prefix string = ",\"gitRepo\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.GitRepo).MarshalEasyJSON(out) - } - if in.Glusterfs != nil { - const prefix string = ",\"glusterfs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Glusterfs).MarshalEasyJSON(out) - } - if in.HostPath != nil { - const prefix string = ",\"hostPath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.HostPath).MarshalEasyJSON(out) - } - if in.ISCSI != nil { - const prefix string = ",\"iscsi\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.ISCSI).MarshalEasyJSON(out) - } - { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - if in.NFS != nil { - const prefix string = ",\"nfs\":" - out.RawString(prefix) - (*in.NFS).MarshalEasyJSON(out) - } - if in.PersistentVolumeClaim != nil { - const prefix string = ",\"persistentVolumeClaim\":" - out.RawString(prefix) - (*in.PersistentVolumeClaim).MarshalEasyJSON(out) - } - if in.PhotonPersistentDisk != nil { - const prefix string = ",\"photonPersistentDisk\":" - out.RawString(prefix) - (*in.PhotonPersistentDisk).MarshalEasyJSON(out) - } - if in.PortworxVolume != nil { - const prefix string = ",\"portworxVolume\":" - out.RawString(prefix) - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV112(out, *in.PortworxVolume) - } - if in.Projected != nil { - const prefix string = ",\"projected\":" - out.RawString(prefix) - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV113(out, *in.Projected) - } - if in.Quobyte != nil { - const prefix string = ",\"quobyte\":" - out.RawString(prefix) - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV114(out, *in.Quobyte) - } - if in.RBD != nil { - const prefix string = ",\"rbd\":" - out.RawString(prefix) - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV115(out, *in.RBD) - } - if in.ScaleIO != nil { - const prefix string = ",\"scaleIO\":" - out.RawString(prefix) - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV116(out, *in.ScaleIO) - } - if in.Secret != nil { - const prefix string = ",\"secret\":" - out.RawString(prefix) - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV117(out, *in.Secret) - } - if in.Storageos != nil { - const prefix string = ",\"storageos\":" - out.RawString(prefix) - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV118(out, *in.Storageos) - } - if in.VsphereVolume != nil { - const prefix string = ",\"vsphereVolume\":" - out.RawString(prefix) - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV119(out, *in.VsphereVolume) - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV119(in *jlexer.Lexer, out *VsphereVirtualDiskVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "storagePolicyID": - out.StoragePolicyID = string(in.String()) - case "storagePolicyName": - out.StoragePolicyName = string(in.String()) - case "volumePath": - if in.IsNull() { - in.Skip() - out.VolumePath = nil - } else { - if out.VolumePath == nil { - out.VolumePath = new(string) - } - *out.VolumePath = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV119(out *jwriter.Writer, in VsphereVirtualDiskVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.StoragePolicyID != "" { - const prefix string = ",\"storagePolicyID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StoragePolicyID)) - } - if in.StoragePolicyName != "" { - const prefix string = ",\"storagePolicyName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StoragePolicyName)) - } - { - const prefix string = ",\"volumePath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.VolumePath == nil { - out.RawString("null") - } else { - out.String(string(*in.VolumePath)) - } - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV118(in *jlexer.Lexer, out *StorageOSVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(LocalObjectReference) - } - (*out.SecretRef).UnmarshalEasyJSON(in) - } - case "volumeName": - out.VolumeName = string(in.String()) - case "volumeNamespace": - out.VolumeNamespace = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV118(out *jwriter.Writer, in StorageOSVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.SecretRef).MarshalEasyJSON(out) - } - if in.VolumeName != "" { - const prefix string = ",\"volumeName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeName)) - } - if in.VolumeNamespace != "" { - const prefix string = ",\"volumeNamespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeNamespace)) - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV117(in *jlexer.Lexer, out *SecretVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "defaultMode": - out.DefaultMode = int32(in.Int32()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*KeyToPath, 0, 8) - } else { - out.Items = []*KeyToPath{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v47 *KeyToPath - if in.IsNull() { - in.Skip() - v47 = nil - } else { - if v47 == nil { - v47 = new(KeyToPath) - } - (*v47).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v47) - in.WantComma() - } - in.Delim(']') - } - case "optional": - out.Optional = bool(in.Bool()) - case "secretName": - out.SecretName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV117(out *jwriter.Writer, in SecretVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.DefaultMode != 0 { - const prefix string = ",\"defaultMode\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.DefaultMode)) - } - if len(in.Items) != 0 { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v48, v49 := range in.Items { - if v48 > 0 { - out.RawByte(',') - } - if v49 == nil { - out.RawString("null") - } else { - (*v49).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Optional { - const prefix string = ",\"optional\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Optional)) - } - if in.SecretName != "" { - const prefix string = ",\"secretName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.SecretName)) - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV116(in *jlexer.Lexer, out *ScaleIOVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "gateway": - if in.IsNull() { - in.Skip() - out.Gateway = nil - } else { - if out.Gateway == nil { - out.Gateway = new(string) - } - *out.Gateway = string(in.String()) - } - case "protectionDomain": - out.ProtectionDomain = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(LocalObjectReference) - } - (*out.SecretRef).UnmarshalEasyJSON(in) - } - case "sslEnabled": - out.SslEnabled = bool(in.Bool()) - case "storageMode": - out.StorageMode = string(in.String()) - case "storagePool": - out.StoragePool = string(in.String()) - case "system": - if in.IsNull() { - in.Skip() - out.System = nil - } else { - if out.System == nil { - out.System = new(string) - } - *out.System = string(in.String()) - } - case "volumeName": - out.VolumeName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV116(out *jwriter.Writer, in ScaleIOVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - { - const prefix string = ",\"gateway\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Gateway == nil { - out.RawString("null") - } else { - out.String(string(*in.Gateway)) - } - } - if in.ProtectionDomain != "" { - const prefix string = ",\"protectionDomain\":" - out.RawString(prefix) - out.String(string(in.ProtectionDomain)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - if in.SecretRef == nil { - out.RawString("null") - } else { - (*in.SecretRef).MarshalEasyJSON(out) - } - } - if in.SslEnabled { - const prefix string = ",\"sslEnabled\":" - out.RawString(prefix) - out.Bool(bool(in.SslEnabled)) - } - if in.StorageMode != "" { - const prefix string = ",\"storageMode\":" - out.RawString(prefix) - out.String(string(in.StorageMode)) - } - if in.StoragePool != "" { - const prefix string = ",\"storagePool\":" - out.RawString(prefix) - out.String(string(in.StoragePool)) - } - { - const prefix string = ",\"system\":" - out.RawString(prefix) - if in.System == nil { - out.RawString("null") - } else { - out.String(string(*in.System)) - } - } - if in.VolumeName != "" { - const prefix string = ",\"volumeName\":" - out.RawString(prefix) - out.String(string(in.VolumeName)) - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV115(in *jlexer.Lexer, out *RBDVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "image": - if in.IsNull() { - in.Skip() - out.Image = nil - } else { - if out.Image == nil { - out.Image = new(string) - } - *out.Image = string(in.String()) - } - case "keyring": - out.Keyring = string(in.String()) - case "monitors": - if in.IsNull() { - in.Skip() - out.Monitors = nil - } else { - in.Delim('[') - if out.Monitors == nil { - if !in.IsDelim(']') { - out.Monitors = make([]string, 0, 4) - } else { - out.Monitors = []string{} - } - } else { - out.Monitors = (out.Monitors)[:0] - } - for !in.IsDelim(']') { - var v50 string - v50 = string(in.String()) - out.Monitors = append(out.Monitors, v50) - in.WantComma() - } - in.Delim(']') - } - case "pool": - out.Pool = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(LocalObjectReference) - } - (*out.SecretRef).UnmarshalEasyJSON(in) - } - case "user": - out.User = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV115(out *jwriter.Writer, in RBDVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - { - const prefix string = ",\"image\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Image == nil { - out.RawString("null") - } else { - out.String(string(*in.Image)) - } - } - if in.Keyring != "" { - const prefix string = ",\"keyring\":" - out.RawString(prefix) - out.String(string(in.Keyring)) - } - { - const prefix string = ",\"monitors\":" - out.RawString(prefix) - if in.Monitors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v51, v52 := range in.Monitors { - if v51 > 0 { - out.RawByte(',') - } - out.String(string(v52)) - } - out.RawByte(']') - } - } - if in.Pool != "" { - const prefix string = ",\"pool\":" - out.RawString(prefix) - out.String(string(in.Pool)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - (*in.SecretRef).MarshalEasyJSON(out) - } - if in.User != "" { - const prefix string = ",\"user\":" - out.RawString(prefix) - out.String(string(in.User)) - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV114(in *jlexer.Lexer, out *QuobyteVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "group": - out.Group = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "registry": - if in.IsNull() { - in.Skip() - out.Registry = nil - } else { - if out.Registry == nil { - out.Registry = new(string) - } - *out.Registry = string(in.String()) - } - case "tenant": - out.Tenant = string(in.String()) - case "user": - out.User = string(in.String()) - case "volume": - if in.IsNull() { - in.Skip() - out.Volume = nil - } else { - if out.Volume == nil { - out.Volume = new(string) - } - *out.Volume = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV114(out *jwriter.Writer, in QuobyteVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.Group != "" { - const prefix string = ",\"group\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Group)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"registry\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Registry == nil { - out.RawString("null") - } else { - out.String(string(*in.Registry)) - } - } - if in.Tenant != "" { - const prefix string = ",\"tenant\":" - out.RawString(prefix) - out.String(string(in.Tenant)) - } - if in.User != "" { - const prefix string = ",\"user\":" - out.RawString(prefix) - out.String(string(in.User)) - } - { - const prefix string = ",\"volume\":" - out.RawString(prefix) - if in.Volume == nil { - out.RawString("null") - } else { - out.String(string(*in.Volume)) - } - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV113(in *jlexer.Lexer, out *ProjectedVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "defaultMode": - out.DefaultMode = int32(in.Int32()) - case "sources": - if in.IsNull() { - in.Skip() - out.Sources = nil - } else { - in.Delim('[') - if out.Sources == nil { - if !in.IsDelim(']') { - out.Sources = make([]*VolumeProjection, 0, 8) - } else { - out.Sources = []*VolumeProjection{} - } - } else { - out.Sources = (out.Sources)[:0] - } - for !in.IsDelim(']') { - var v53 *VolumeProjection - if in.IsNull() { - in.Skip() - v53 = nil - } else { - if v53 == nil { - v53 = new(VolumeProjection) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV120(in, v53) - } - out.Sources = append(out.Sources, v53) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV113(out *jwriter.Writer, in ProjectedVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.DefaultMode != 0 { - const prefix string = ",\"defaultMode\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.DefaultMode)) - } - if len(in.Sources) != 0 { - const prefix string = ",\"sources\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v54, v55 := range in.Sources { - if v54 > 0 { - out.RawByte(',') - } - if v55 == nil { - out.RawString("null") - } else { - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV120(out, *v55) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV120(in *jlexer.Lexer, out *VolumeProjection) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "configMap": - if in.IsNull() { - in.Skip() - out.ConfigMap = nil - } else { - if out.ConfigMap == nil { - out.ConfigMap = new(ConfigMapProjection) - } - (*out.ConfigMap).UnmarshalEasyJSON(in) - } - case "downwardAPI": - if in.IsNull() { - in.Skip() - out.DownwardAPI = nil - } else { - if out.DownwardAPI == nil { - out.DownwardAPI = new(DownwardAPIProjection) - } - (*out.DownwardAPI).UnmarshalEasyJSON(in) - } - case "secret": - if in.IsNull() { - in.Skip() - out.Secret = nil - } else { - if out.Secret == nil { - out.Secret = new(SecretProjection) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV121(in, out.Secret) - } - case "serviceAccountToken": - if in.IsNull() { - in.Skip() - out.ServiceAccountToken = nil - } else { - if out.ServiceAccountToken == nil { - out.ServiceAccountToken = new(ServiceAccountTokenProjection) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV122(in, out.ServiceAccountToken) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV120(out *jwriter.Writer, in VolumeProjection) { - out.RawByte('{') - first := true - _ = first - if in.ConfigMap != nil { - const prefix string = ",\"configMap\":" - first = false - out.RawString(prefix[1:]) - (*in.ConfigMap).MarshalEasyJSON(out) - } - if in.DownwardAPI != nil { - const prefix string = ",\"downwardAPI\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.DownwardAPI).MarshalEasyJSON(out) - } - if in.Secret != nil { - const prefix string = ",\"secret\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV121(out, *in.Secret) - } - if in.ServiceAccountToken != nil { - const prefix string = ",\"serviceAccountToken\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV122(out, *in.ServiceAccountToken) - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV122(in *jlexer.Lexer, out *ServiceAccountTokenProjection) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "audience": - out.Audience = string(in.String()) - case "expirationSeconds": - out.ExpirationSeconds = int64(in.Int64()) - case "path": - if in.IsNull() { - in.Skip() - out.Path = nil - } else { - if out.Path == nil { - out.Path = new(string) - } - *out.Path = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV122(out *jwriter.Writer, in ServiceAccountTokenProjection) { - out.RawByte('{') - first := true - _ = first - if in.Audience != "" { - const prefix string = ",\"audience\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Audience)) - } - if in.ExpirationSeconds != 0 { - const prefix string = ",\"expirationSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.ExpirationSeconds)) - } - { - const prefix string = ",\"path\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Path == nil { - out.RawString("null") - } else { - out.String(string(*in.Path)) - } - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV121(in *jlexer.Lexer, out *SecretProjection) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*KeyToPath, 0, 8) - } else { - out.Items = []*KeyToPath{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v56 *KeyToPath - if in.IsNull() { - in.Skip() - v56 = nil - } else { - if v56 == nil { - v56 = new(KeyToPath) - } - (*v56).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v56) - in.WantComma() - } - in.Delim(']') - } - case "name": - out.Name = string(in.String()) - case "optional": - out.Optional = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV121(out *jwriter.Writer, in SecretProjection) { - out.RawByte('{') - first := true - _ = first - if len(in.Items) != 0 { - const prefix string = ",\"items\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v57, v58 := range in.Items { - if v57 > 0 { - out.RawByte(',') - } - if v58 == nil { - out.RawString("null") - } else { - (*v58).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Name != "" { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Name)) - } - if in.Optional { - const prefix string = ",\"optional\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Optional)) - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV112(in *jlexer.Lexer, out *PortworxVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "volumeID": - if in.IsNull() { - in.Skip() - out.VolumeID = nil - } else { - if out.VolumeID == nil { - out.VolumeID = new(string) - } - *out.VolumeID = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV112(out *jwriter.Writer, in PortworxVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"volumeID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.VolumeID == nil { - out.RawString("null") - } else { - out.String(string(*in.VolumeID)) - } - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV110(in *jlexer.Lexer, out *TopologySpreadConstraint) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "labelSelector": - if in.IsNull() { - in.Skip() - out.LabelSelector = nil - } else { - if out.LabelSelector == nil { - out.LabelSelector = new(_v1.LabelSelector) - } - (*out.LabelSelector).UnmarshalEasyJSON(in) - } - case "maxSkew": - if in.IsNull() { - in.Skip() - out.MaxSkew = nil - } else { - if out.MaxSkew == nil { - out.MaxSkew = new(int32) - } - *out.MaxSkew = int32(in.Int32()) - } - case "minDomains": - out.MinDomains = int32(in.Int32()) - case "topologyKey": - if in.IsNull() { - in.Skip() - out.TopologyKey = nil - } else { - if out.TopologyKey == nil { - out.TopologyKey = new(string) - } - *out.TopologyKey = string(in.String()) - } - case "whenUnsatisfiable": - if in.IsNull() { - in.Skip() - out.WhenUnsatisfiable = nil - } else { - if out.WhenUnsatisfiable == nil { - out.WhenUnsatisfiable = new(string) - } - *out.WhenUnsatisfiable = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV110(out *jwriter.Writer, in TopologySpreadConstraint) { - out.RawByte('{') - first := true - _ = first - if in.LabelSelector != nil { - const prefix string = ",\"labelSelector\":" - first = false - out.RawString(prefix[1:]) - (*in.LabelSelector).MarshalEasyJSON(out) - } - { - const prefix string = ",\"maxSkew\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.MaxSkew == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.MaxSkew)) - } - } - if in.MinDomains != 0 { - const prefix string = ",\"minDomains\":" - out.RawString(prefix) - out.Int32(int32(in.MinDomains)) - } - { - const prefix string = ",\"topologyKey\":" - out.RawString(prefix) - if in.TopologyKey == nil { - out.RawString("null") - } else { - out.String(string(*in.TopologyKey)) - } - } - { - const prefix string = ",\"whenUnsatisfiable\":" - out.RawString(prefix) - if in.WhenUnsatisfiable == nil { - out.RawString("null") - } else { - out.String(string(*in.WhenUnsatisfiable)) - } - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV19(in *jlexer.Lexer, out *Toleration) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "effect": - out.Effect = string(in.String()) - case "key": - out.Key = string(in.String()) - case "operator": - out.Operator = string(in.String()) - case "tolerationSeconds": - out.TolerationSeconds = int64(in.Int64()) - case "value": - out.Value = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV19(out *jwriter.Writer, in Toleration) { - out.RawByte('{') - first := true - _ = first - if in.Effect != "" { - const prefix string = ",\"effect\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Effect)) - } - if in.Key != "" { - const prefix string = ",\"key\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Key)) - } - if in.Operator != "" { - const prefix string = ",\"operator\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Operator)) - } - if in.TolerationSeconds != 0 { - const prefix string = ",\"tolerationSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.TolerationSeconds)) - } - if in.Value != "" { - const prefix string = ",\"value\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Value)) - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV18(in *jlexer.Lexer, out *PodSecurityContext) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsGroup": - out.FSGroup = int64(in.Int64()) - case "fsGroupChangePolicy": - out.FSGroupChangePolicy = string(in.String()) - case "runAsGroup": - out.RunAsGroup = int64(in.Int64()) - case "runAsNonRoot": - out.RunAsNonRoot = bool(in.Bool()) - case "runAsUser": - out.RunAsUser = int64(in.Int64()) - case "seLinuxOptions": - if in.IsNull() { - in.Skip() - out.SELinuxOptions = nil - } else { - if out.SELinuxOptions == nil { - out.SELinuxOptions = new(SELinuxOptions) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV123(in, out.SELinuxOptions) - } - case "seccompProfile": - if in.IsNull() { - in.Skip() - out.SeccompProfile = nil - } else { - if out.SeccompProfile == nil { - out.SeccompProfile = new(SeccompProfile) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV124(in, out.SeccompProfile) - } - case "supplementalGroups": - if in.IsNull() { - in.Skip() - out.SupplementalGroups = nil - } else { - in.Delim('[') - if out.SupplementalGroups == nil { - if !in.IsDelim(']') { - out.SupplementalGroups = make([]int64, 0, 8) - } else { - out.SupplementalGroups = []int64{} - } - } else { - out.SupplementalGroups = (out.SupplementalGroups)[:0] - } - for !in.IsDelim(']') { - var v59 int64 - v59 = int64(in.Int64()) - out.SupplementalGroups = append(out.SupplementalGroups, v59) - in.WantComma() - } - in.Delim(']') - } - case "sysctls": - if in.IsNull() { - in.Skip() - out.Sysctls = nil - } else { - in.Delim('[') - if out.Sysctls == nil { - if !in.IsDelim(']') { - out.Sysctls = make([]*Sysctl, 0, 8) - } else { - out.Sysctls = []*Sysctl{} - } - } else { - out.Sysctls = (out.Sysctls)[:0] - } - for !in.IsDelim(']') { - var v60 *Sysctl - if in.IsNull() { - in.Skip() - v60 = nil - } else { - if v60 == nil { - v60 = new(Sysctl) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV125(in, v60) - } - out.Sysctls = append(out.Sysctls, v60) - in.WantComma() - } - in.Delim(']') - } - case "windowsOptions": - if in.IsNull() { - in.Skip() - out.WindowsOptions = nil - } else { - if out.WindowsOptions == nil { - out.WindowsOptions = new(WindowsSecurityContextOptions) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV126(in, out.WindowsOptions) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV18(out *jwriter.Writer, in PodSecurityContext) { - out.RawByte('{') - first := true - _ = first - if in.FSGroup != 0 { - const prefix string = ",\"fsGroup\":" - first = false - out.RawString(prefix[1:]) - out.Int64(int64(in.FSGroup)) - } - if in.FSGroupChangePolicy != "" { - const prefix string = ",\"fsGroupChangePolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.FSGroupChangePolicy)) - } - if in.RunAsGroup != 0 { - const prefix string = ",\"runAsGroup\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.RunAsGroup)) - } - if in.RunAsNonRoot { - const prefix string = ",\"runAsNonRoot\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.RunAsNonRoot)) - } - if in.RunAsUser != 0 { - const prefix string = ",\"runAsUser\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.RunAsUser)) - } - if in.SELinuxOptions != nil { - const prefix string = ",\"seLinuxOptions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV123(out, *in.SELinuxOptions) - } - if in.SeccompProfile != nil { - const prefix string = ",\"seccompProfile\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV124(out, *in.SeccompProfile) - } - if len(in.SupplementalGroups) != 0 { - const prefix string = ",\"supplementalGroups\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v61, v62 := range in.SupplementalGroups { - if v61 > 0 { - out.RawByte(',') - } - out.Int64(int64(v62)) - } - out.RawByte(']') - } - } - if len(in.Sysctls) != 0 { - const prefix string = ",\"sysctls\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v63, v64 := range in.Sysctls { - if v63 > 0 { - out.RawByte(',') - } - if v64 == nil { - out.RawString("null") - } else { - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV125(out, *v64) - } - } - out.RawByte(']') - } - } - if in.WindowsOptions != nil { - const prefix string = ",\"windowsOptions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV126(out, *in.WindowsOptions) - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV126(in *jlexer.Lexer, out *WindowsSecurityContextOptions) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "gmsaCredentialSpec": - out.GmsaCredentialSpec = string(in.String()) - case "gmsaCredentialSpecName": - out.GmsaCredentialSpecName = string(in.String()) - case "hostProcess": - out.HostProcess = bool(in.Bool()) - case "runAsUserName": - out.RunAsUserName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV126(out *jwriter.Writer, in WindowsSecurityContextOptions) { - out.RawByte('{') - first := true - _ = first - if in.GmsaCredentialSpec != "" { - const prefix string = ",\"gmsaCredentialSpec\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.GmsaCredentialSpec)) - } - if in.GmsaCredentialSpecName != "" { - const prefix string = ",\"gmsaCredentialSpecName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.GmsaCredentialSpecName)) - } - if in.HostProcess { - const prefix string = ",\"hostProcess\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.HostProcess)) - } - if in.RunAsUserName != "" { - const prefix string = ",\"runAsUserName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.RunAsUserName)) - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV125(in *jlexer.Lexer, out *Sysctl) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "value": - if in.IsNull() { - in.Skip() - out.Value = nil - } else { - if out.Value == nil { - out.Value = new(string) - } - *out.Value = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV125(out *jwriter.Writer, in Sysctl) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"name\":" - out.RawString(prefix[1:]) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - { - const prefix string = ",\"value\":" - out.RawString(prefix) - if in.Value == nil { - out.RawString("null") - } else { - out.String(string(*in.Value)) - } - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV124(in *jlexer.Lexer, out *SeccompProfile) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "localhostProfile": - out.LocalhostProfile = string(in.String()) - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV124(out *jwriter.Writer, in SeccompProfile) { - out.RawByte('{') - first := true - _ = first - if in.LocalhostProfile != "" { - const prefix string = ",\"localhostProfile\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.LocalhostProfile)) - } - { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV123(in *jlexer.Lexer, out *SELinuxOptions) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "level": - out.Level = string(in.String()) - case "role": - out.Role = string(in.String()) - case "type": - out.Type = string(in.String()) - case "user": - out.User = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV123(out *jwriter.Writer, in SELinuxOptions) { - out.RawByte('{') - first := true - _ = first - if in.Level != "" { - const prefix string = ",\"level\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Level)) - } - if in.Role != "" { - const prefix string = ",\"role\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Role)) - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - if in.User != "" { - const prefix string = ",\"user\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.User)) - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV17(in *jlexer.Lexer, out *PodReadinessGate) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "conditionType": - if in.IsNull() { - in.Skip() - out.ConditionType = nil - } else { - if out.ConditionType == nil { - out.ConditionType = new(string) - } - *out.ConditionType = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV17(out *jwriter.Writer, in PodReadinessGate) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"conditionType\":" - out.RawString(prefix[1:]) - if in.ConditionType == nil { - out.RawString("null") - } else { - out.String(string(*in.ConditionType)) - } - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV16(in *jlexer.Lexer, out *PodOS) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV16(out *jwriter.Writer, in PodOS) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"name\":" - out.RawString(prefix[1:]) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV15(in *jlexer.Lexer, out *PodDNSConfig) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "nameservers": - if in.IsNull() { - in.Skip() - out.Nameservers = nil - } else { - in.Delim('[') - if out.Nameservers == nil { - if !in.IsDelim(']') { - out.Nameservers = make([]string, 0, 4) - } else { - out.Nameservers = []string{} - } - } else { - out.Nameservers = (out.Nameservers)[:0] - } - for !in.IsDelim(']') { - var v65 string - v65 = string(in.String()) - out.Nameservers = append(out.Nameservers, v65) - in.WantComma() - } - in.Delim(']') - } - case "options": - if in.IsNull() { - in.Skip() - out.Options = nil - } else { - in.Delim('[') - if out.Options == nil { - if !in.IsDelim(']') { - out.Options = make([]*PodDNSConfigOption, 0, 8) - } else { - out.Options = []*PodDNSConfigOption{} - } - } else { - out.Options = (out.Options)[:0] - } - for !in.IsDelim(']') { - var v66 *PodDNSConfigOption - if in.IsNull() { - in.Skip() - v66 = nil - } else { - if v66 == nil { - v66 = new(PodDNSConfigOption) - } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV127(in, v66) - } - out.Options = append(out.Options, v66) - in.WantComma() - } - in.Delim(']') - } - case "searches": - if in.IsNull() { - in.Skip() - out.Searches = nil - } else { - in.Delim('[') - if out.Searches == nil { - if !in.IsDelim(']') { - out.Searches = make([]string, 0, 4) - } else { - out.Searches = []string{} - } - } else { - out.Searches = (out.Searches)[:0] - } - for !in.IsDelim(']') { - var v67 string - v67 = string(in.String()) - out.Searches = append(out.Searches, v67) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV15(out *jwriter.Writer, in PodDNSConfig) { - out.RawByte('{') - first := true - _ = first - if len(in.Nameservers) != 0 { - const prefix string = ",\"nameservers\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v68, v69 := range in.Nameservers { - if v68 > 0 { - out.RawByte(',') - } - out.String(string(v69)) - } - out.RawByte(']') - } - } - if len(in.Options) != 0 { - const prefix string = ",\"options\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v70, v71 := range in.Options { - if v70 > 0 { - out.RawByte(',') - } - if v71 == nil { - out.RawString("null") - } else { - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV127(out, *v71) - } - } - out.RawByte(']') - } - } - if len(in.Searches) != 0 { - const prefix string = ",\"searches\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v72, v73 := range in.Searches { - if v72 > 0 { - out.RawByte(',') - } - out.String(string(v73)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV127(in *jlexer.Lexer, out *PodDNSConfigOption) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "value": - out.Value = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV127(out *jwriter.Writer, in PodDNSConfigOption) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Value != "" { - const prefix string = ",\"value\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Value)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_ip.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_ip.go index 830943d..5310b74 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_ip.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_ip.go @@ -6,7 +6,8 @@ package v1 // Editing this file might prove futile when you re-run the swagger generate command // PodIP IP address information for entries in the (plural) PodIPs field. Each entry includes: -// IP: An IP address allocated to the pod. Routable at least within the cluster. +// +// IP: An IP address allocated to the pod. Routable at least within the cluster. // // swagger:model PodIP type PodIP struct { diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_ip_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_ip_easyjson.go deleted file mode 100644 index 6a632ca..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_ip_easyjson.go +++ /dev/null @@ -1,86 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson1e021c83DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodIP) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "ip": - out.IP = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1e021c83EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodIP) { - out.RawByte('{') - first := true - _ = first - if in.IP != "" { - const prefix string = ",\"ip\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.IP)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PodIP) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson1e021c83EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PodIP) MarshalEasyJSON(w *jwriter.Writer) { - easyjson1e021c83EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PodIP) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson1e021c83DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PodIP) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson1e021c83DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_list_easyjson.go deleted file mode 100644 index 5aaf935..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonF2565bdcDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*Pod, 0, 8) - } else { - out.Items = []*Pod{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *Pod - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(Pod) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF2565bdcEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PodList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonF2565bdcEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PodList) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonF2565bdcEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PodList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonF2565bdcDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PodList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonF2565bdcDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_os_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_os_easyjson.go deleted file mode 100644 index a1073f1..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_os_easyjson.go +++ /dev/null @@ -1,97 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson903630eeDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodOS) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson903630eeEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodOS) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"name\":" - out.RawString(prefix[1:]) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PodOS) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson903630eeEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PodOS) MarshalEasyJSON(w *jwriter.Writer) { - easyjson903630eeEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PodOS) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson903630eeDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PodOS) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson903630eeDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_readiness_gate_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_readiness_gate_easyjson.go deleted file mode 100644 index 472b72d..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_readiness_gate_easyjson.go +++ /dev/null @@ -1,97 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson7f9b0feDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodReadinessGate) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "conditionType": - if in.IsNull() { - in.Skip() - out.ConditionType = nil - } else { - if out.ConditionType == nil { - out.ConditionType = new(string) - } - *out.ConditionType = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7f9b0feEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodReadinessGate) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"conditionType\":" - out.RawString(prefix[1:]) - if in.ConditionType == nil { - out.RawString("null") - } else { - out.String(string(*in.ConditionType)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PodReadinessGate) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson7f9b0feEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PodReadinessGate) MarshalEasyJSON(w *jwriter.Writer) { - easyjson7f9b0feEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PodReadinessGate) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson7f9b0feDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PodReadinessGate) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson7f9b0feDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_resource_claim.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_resource_claim.go new file mode 100644 index 0000000..b03db8a --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_resource_claim.go @@ -0,0 +1,19 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +// PodResourceClaim PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name. +// +// swagger:model PodResourceClaim +type PodResourceClaim struct { + + // Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. + // Required: true + Name *string `json:"name"` + + // Source describes where to find the ResourceClaim. + Source *ClaimSource `json:"source,omitempty"` +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_scheduling_gate.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_scheduling_gate.go new file mode 100644 index 0000000..56befa4 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_scheduling_gate.go @@ -0,0 +1,16 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +// PodSchedulingGate PodSchedulingGate is associated to a Pod to guard its scheduling. +// +// swagger:model PodSchedulingGate +type PodSchedulingGate struct { + + // Name of the scheduling gate. Each scheduling gate must have a unique name field. + // Required: true + Name *string `json:"name"` +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_security_context.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_security_context.go index 84822fa..fa96da1 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_security_context.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_security_context.go @@ -35,7 +35,7 @@ type PodSecurityContext struct { // The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows. SeccompProfile *SeccompProfile `json:"seccompProfile,omitempty"` - // A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. Note that this field cannot be set when spec.os.name is windows. + // A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows. SupplementalGroups []int64 `json:"supplementalGroups,omitempty"` // Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_security_context_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_security_context_easyjson.go deleted file mode 100644 index d699586..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_security_context_easyjson.go +++ /dev/null @@ -1,588 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson6769e492DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodSecurityContext) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsGroup": - out.FSGroup = int64(in.Int64()) - case "fsGroupChangePolicy": - out.FSGroupChangePolicy = string(in.String()) - case "runAsGroup": - out.RunAsGroup = int64(in.Int64()) - case "runAsNonRoot": - out.RunAsNonRoot = bool(in.Bool()) - case "runAsUser": - out.RunAsUser = int64(in.Int64()) - case "seLinuxOptions": - if in.IsNull() { - in.Skip() - out.SELinuxOptions = nil - } else { - if out.SELinuxOptions == nil { - out.SELinuxOptions = new(SELinuxOptions) - } - easyjson6769e492DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SELinuxOptions) - } - case "seccompProfile": - if in.IsNull() { - in.Skip() - out.SeccompProfile = nil - } else { - if out.SeccompProfile == nil { - out.SeccompProfile = new(SeccompProfile) - } - easyjson6769e492DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.SeccompProfile) - } - case "supplementalGroups": - if in.IsNull() { - in.Skip() - out.SupplementalGroups = nil - } else { - in.Delim('[') - if out.SupplementalGroups == nil { - if !in.IsDelim(']') { - out.SupplementalGroups = make([]int64, 0, 8) - } else { - out.SupplementalGroups = []int64{} - } - } else { - out.SupplementalGroups = (out.SupplementalGroups)[:0] - } - for !in.IsDelim(']') { - var v1 int64 - v1 = int64(in.Int64()) - out.SupplementalGroups = append(out.SupplementalGroups, v1) - in.WantComma() - } - in.Delim(']') - } - case "sysctls": - if in.IsNull() { - in.Skip() - out.Sysctls = nil - } else { - in.Delim('[') - if out.Sysctls == nil { - if !in.IsDelim(']') { - out.Sysctls = make([]*Sysctl, 0, 8) - } else { - out.Sysctls = []*Sysctl{} - } - } else { - out.Sysctls = (out.Sysctls)[:0] - } - for !in.IsDelim(']') { - var v2 *Sysctl - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(Sysctl) - } - easyjson6769e492DecodeGithubComKubewardenK8sObjectsApiCoreV13(in, v2) - } - out.Sysctls = append(out.Sysctls, v2) - in.WantComma() - } - in.Delim(']') - } - case "windowsOptions": - if in.IsNull() { - in.Skip() - out.WindowsOptions = nil - } else { - if out.WindowsOptions == nil { - out.WindowsOptions = new(WindowsSecurityContextOptions) - } - easyjson6769e492DecodeGithubComKubewardenK8sObjectsApiCoreV14(in, out.WindowsOptions) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodSecurityContext) { - out.RawByte('{') - first := true - _ = first - if in.FSGroup != 0 { - const prefix string = ",\"fsGroup\":" - first = false - out.RawString(prefix[1:]) - out.Int64(int64(in.FSGroup)) - } - if in.FSGroupChangePolicy != "" { - const prefix string = ",\"fsGroupChangePolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.FSGroupChangePolicy)) - } - if in.RunAsGroup != 0 { - const prefix string = ",\"runAsGroup\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.RunAsGroup)) - } - if in.RunAsNonRoot { - const prefix string = ",\"runAsNonRoot\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.RunAsNonRoot)) - } - if in.RunAsUser != 0 { - const prefix string = ",\"runAsUser\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.RunAsUser)) - } - if in.SELinuxOptions != nil { - const prefix string = ",\"seLinuxOptions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SELinuxOptions) - } - if in.SeccompProfile != nil { - const prefix string = ",\"seccompProfile\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.SeccompProfile) - } - if len(in.SupplementalGroups) != 0 { - const prefix string = ",\"supplementalGroups\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v3, v4 := range in.SupplementalGroups { - if v3 > 0 { - out.RawByte(',') - } - out.Int64(int64(v4)) - } - out.RawByte(']') - } - } - if len(in.Sysctls) != 0 { - const prefix string = ",\"sysctls\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v5, v6 := range in.Sysctls { - if v5 > 0 { - out.RawByte(',') - } - if v6 == nil { - out.RawString("null") - } else { - easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *v6) - } - } - out.RawByte(']') - } - } - if in.WindowsOptions != nil { - const prefix string = ",\"windowsOptions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *in.WindowsOptions) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PodSecurityContext) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PodSecurityContext) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PodSecurityContext) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson6769e492DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PodSecurityContext) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6769e492DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson6769e492DecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Lexer, out *WindowsSecurityContextOptions) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "gmsaCredentialSpec": - out.GmsaCredentialSpec = string(in.String()) - case "gmsaCredentialSpecName": - out.GmsaCredentialSpecName = string(in.String()) - case "hostProcess": - out.HostProcess = bool(in.Bool()) - case "runAsUserName": - out.RunAsUserName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter.Writer, in WindowsSecurityContextOptions) { - out.RawByte('{') - first := true - _ = first - if in.GmsaCredentialSpec != "" { - const prefix string = ",\"gmsaCredentialSpec\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.GmsaCredentialSpec)) - } - if in.GmsaCredentialSpecName != "" { - const prefix string = ",\"gmsaCredentialSpecName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.GmsaCredentialSpecName)) - } - if in.HostProcess { - const prefix string = ",\"hostProcess\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.HostProcess)) - } - if in.RunAsUserName != "" { - const prefix string = ",\"runAsUserName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.RunAsUserName)) - } - out.RawByte('}') -} -func easyjson6769e492DecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *Sysctl) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "value": - if in.IsNull() { - in.Skip() - out.Value = nil - } else { - if out.Value == nil { - out.Value = new(string) - } - *out.Value = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in Sysctl) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"name\":" - out.RawString(prefix[1:]) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - { - const prefix string = ",\"value\":" - out.RawString(prefix) - if in.Value == nil { - out.RawString("null") - } else { - out.String(string(*in.Value)) - } - } - out.RawByte('}') -} -func easyjson6769e492DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *SeccompProfile) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "localhostProfile": - out.LocalhostProfile = string(in.String()) - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in SeccompProfile) { - out.RawByte('{') - first := true - _ = first - if in.LocalhostProfile != "" { - const prefix string = ",\"localhostProfile\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.LocalhostProfile)) - } - { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} -func easyjson6769e492DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SELinuxOptions) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "level": - out.Level = string(in.String()) - case "role": - out.Role = string(in.String()) - case "type": - out.Type = string(in.String()) - case "user": - out.User = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SELinuxOptions) { - out.RawByte('{') - first := true - _ = first - if in.Level != "" { - const prefix string = ",\"level\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Level)) - } - if in.Role != "" { - const prefix string = ",\"role\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Role)) - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - if in.User != "" { - const prefix string = ",\"user\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.User)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_spec.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_spec.go index 56c6f3c..bba6c32 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_spec.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_spec.go @@ -31,14 +31,12 @@ type PodSpec struct { DNSConfig *PodDNSConfig `json:"dnsConfig,omitempty"` // Set DNS policy for the pod. Defaults to "ClusterFirst". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. - // - // DNSPolicy string `json:"dnsPolicy,omitempty"` // EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. EnableServiceLinks bool `json:"enableServiceLinks,omitempty"` - // List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate. + // List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. EphemeralContainers []*EphemeralContainer `json:"ephemeralContainers,omitempty"` // HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. @@ -53,6 +51,9 @@ type PodSpec struct { // Use the host's pid namespace. Optional: Default to false. HostPID bool `json:"hostPID,omitempty"` + // Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. + HostUsers bool `json:"hostUsers,omitempty"` + // Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. Hostname string `json:"hostname,omitempty"` @@ -72,7 +73,7 @@ type PodSpec struct { // // If the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions // - // If the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup This is a beta field and requires the IdentifyPodOS feature + // If the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup OS *PodOS `json:"os,omitempty"` // Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md @@ -90,9 +91,14 @@ type PodSpec struct { // If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates ReadinessGates []*PodReadinessGate `json:"readinessGates,omitempty"` - // Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy + // ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. // + // This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. // + // This field is immutable. + ResourceClaims []*PodResourceClaim `json:"resourceClaims,omitempty"` + + // Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy RestartPolicy string `json:"restartPolicy,omitempty"` // RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class @@ -101,6 +107,13 @@ type PodSpec struct { // If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. SchedulerName string `json:"schedulerName,omitempty"` + // SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. + // + // SchedulingGates can only be set at pod creation time, and be removed only afterwards. + // + // This is a beta feature enabled by the PodSchedulingReadiness feature gate. + SchedulingGates []*PodSchedulingGate `json:"schedulingGates,omitempty"` + // SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. SecurityContext *PodSecurityContext `json:"securityContext,omitempty"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_spec_easyjson.go deleted file mode 100644 index c00e033..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_spec_easyjson.go +++ /dev/null @@ -1,2821 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "activeDeadlineSeconds": - out.ActiveDeadlineSeconds = int64(in.Int64()) - case "affinity": - if in.IsNull() { - in.Skip() - out.Affinity = nil - } else { - if out.Affinity == nil { - out.Affinity = new(Affinity) - } - (*out.Affinity).UnmarshalEasyJSON(in) - } - case "automountServiceAccountToken": - out.AutomountServiceAccountToken = bool(in.Bool()) - case "containers": - if in.IsNull() { - in.Skip() - out.Containers = nil - } else { - in.Delim('[') - if out.Containers == nil { - if !in.IsDelim(']') { - out.Containers = make([]*Container, 0, 8) - } else { - out.Containers = []*Container{} - } - } else { - out.Containers = (out.Containers)[:0] - } - for !in.IsDelim(']') { - var v1 *Container - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(Container) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Containers = append(out.Containers, v1) - in.WantComma() - } - in.Delim(']') - } - case "dnsConfig": - if in.IsNull() { - in.Skip() - out.DNSConfig = nil - } else { - if out.DNSConfig == nil { - out.DNSConfig = new(PodDNSConfig) - } - (*out.DNSConfig).UnmarshalEasyJSON(in) - } - case "dnsPolicy": - out.DNSPolicy = string(in.String()) - case "enableServiceLinks": - out.EnableServiceLinks = bool(in.Bool()) - case "ephemeralContainers": - if in.IsNull() { - in.Skip() - out.EphemeralContainers = nil - } else { - in.Delim('[') - if out.EphemeralContainers == nil { - if !in.IsDelim(']') { - out.EphemeralContainers = make([]*EphemeralContainer, 0, 8) - } else { - out.EphemeralContainers = []*EphemeralContainer{} - } - } else { - out.EphemeralContainers = (out.EphemeralContainers)[:0] - } - for !in.IsDelim(']') { - var v2 *EphemeralContainer - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(EphemeralContainer) - } - (*v2).UnmarshalEasyJSON(in) - } - out.EphemeralContainers = append(out.EphemeralContainers, v2) - in.WantComma() - } - in.Delim(']') - } - case "hostAliases": - if in.IsNull() { - in.Skip() - out.HostAliases = nil - } else { - in.Delim('[') - if out.HostAliases == nil { - if !in.IsDelim(']') { - out.HostAliases = make([]*HostAlias, 0, 8) - } else { - out.HostAliases = []*HostAlias{} - } - } else { - out.HostAliases = (out.HostAliases)[:0] - } - for !in.IsDelim(']') { - var v3 *HostAlias - if in.IsNull() { - in.Skip() - v3 = nil - } else { - if v3 == nil { - v3 = new(HostAlias) - } - (*v3).UnmarshalEasyJSON(in) - } - out.HostAliases = append(out.HostAliases, v3) - in.WantComma() - } - in.Delim(']') - } - case "hostIPC": - out.HostIPC = bool(in.Bool()) - case "hostNetwork": - out.HostNetwork = bool(in.Bool()) - case "hostPID": - out.HostPID = bool(in.Bool()) - case "hostname": - out.Hostname = string(in.String()) - case "imagePullSecrets": - if in.IsNull() { - in.Skip() - out.ImagePullSecrets = nil - } else { - in.Delim('[') - if out.ImagePullSecrets == nil { - if !in.IsDelim(']') { - out.ImagePullSecrets = make([]*LocalObjectReference, 0, 8) - } else { - out.ImagePullSecrets = []*LocalObjectReference{} - } - } else { - out.ImagePullSecrets = (out.ImagePullSecrets)[:0] - } - for !in.IsDelim(']') { - var v4 *LocalObjectReference - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(LocalObjectReference) - } - (*v4).UnmarshalEasyJSON(in) - } - out.ImagePullSecrets = append(out.ImagePullSecrets, v4) - in.WantComma() - } - in.Delim(']') - } - case "initContainers": - if in.IsNull() { - in.Skip() - out.InitContainers = nil - } else { - in.Delim('[') - if out.InitContainers == nil { - if !in.IsDelim(']') { - out.InitContainers = make([]*Container, 0, 8) - } else { - out.InitContainers = []*Container{} - } - } else { - out.InitContainers = (out.InitContainers)[:0] - } - for !in.IsDelim(']') { - var v5 *Container - if in.IsNull() { - in.Skip() - v5 = nil - } else { - if v5 == nil { - v5 = new(Container) - } - (*v5).UnmarshalEasyJSON(in) - } - out.InitContainers = append(out.InitContainers, v5) - in.WantComma() - } - in.Delim(']') - } - case "nodeName": - out.NodeName = string(in.String()) - case "nodeSelector": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.NodeSelector = make(map[string]string) - } else { - out.NodeSelector = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v6 string - v6 = string(in.String()) - (out.NodeSelector)[key] = v6 - in.WantComma() - } - in.Delim('}') - } - case "os": - if in.IsNull() { - in.Skip() - out.OS = nil - } else { - if out.OS == nil { - out.OS = new(PodOS) - } - (*out.OS).UnmarshalEasyJSON(in) - } - case "overhead": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Overhead = make(map[string]*resource.Quantity) - } else { - out.Overhead = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v7 *resource.Quantity - if in.IsNull() { - in.Skip() - v7 = nil - } else { - if v7 == nil { - v7 = new(resource.Quantity) - } - *v7 = resource.Quantity(in.String()) - } - (out.Overhead)[key] = v7 - in.WantComma() - } - in.Delim('}') - } - case "preemptionPolicy": - out.PreemptionPolicy = string(in.String()) - case "priority": - out.Priority = int32(in.Int32()) - case "priorityClassName": - out.PriorityClassName = string(in.String()) - case "readinessGates": - if in.IsNull() { - in.Skip() - out.ReadinessGates = nil - } else { - in.Delim('[') - if out.ReadinessGates == nil { - if !in.IsDelim(']') { - out.ReadinessGates = make([]*PodReadinessGate, 0, 8) - } else { - out.ReadinessGates = []*PodReadinessGate{} - } - } else { - out.ReadinessGates = (out.ReadinessGates)[:0] - } - for !in.IsDelim(']') { - var v8 *PodReadinessGate - if in.IsNull() { - in.Skip() - v8 = nil - } else { - if v8 == nil { - v8 = new(PodReadinessGate) - } - (*v8).UnmarshalEasyJSON(in) - } - out.ReadinessGates = append(out.ReadinessGates, v8) - in.WantComma() - } - in.Delim(']') - } - case "restartPolicy": - out.RestartPolicy = string(in.String()) - case "runtimeClassName": - out.RuntimeClassName = string(in.String()) - case "schedulerName": - out.SchedulerName = string(in.String()) - case "securityContext": - if in.IsNull() { - in.Skip() - out.SecurityContext = nil - } else { - if out.SecurityContext == nil { - out.SecurityContext = new(PodSecurityContext) - } - (*out.SecurityContext).UnmarshalEasyJSON(in) - } - case "serviceAccount": - out.ServiceAccount = string(in.String()) - case "serviceAccountName": - out.ServiceAccountName = string(in.String()) - case "setHostnameAsFQDN": - out.SetHostnameAsFQDN = bool(in.Bool()) - case "shareProcessNamespace": - out.ShareProcessNamespace = bool(in.Bool()) - case "subdomain": - out.Subdomain = string(in.String()) - case "terminationGracePeriodSeconds": - out.TerminationGracePeriodSeconds = int64(in.Int64()) - case "tolerations": - if in.IsNull() { - in.Skip() - out.Tolerations = nil - } else { - in.Delim('[') - if out.Tolerations == nil { - if !in.IsDelim(']') { - out.Tolerations = make([]*Toleration, 0, 8) - } else { - out.Tolerations = []*Toleration{} - } - } else { - out.Tolerations = (out.Tolerations)[:0] - } - for !in.IsDelim(']') { - var v9 *Toleration - if in.IsNull() { - in.Skip() - v9 = nil - } else { - if v9 == nil { - v9 = new(Toleration) - } - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, v9) - } - out.Tolerations = append(out.Tolerations, v9) - in.WantComma() - } - in.Delim(']') - } - case "topologySpreadConstraints": - if in.IsNull() { - in.Skip() - out.TopologySpreadConstraints = nil - } else { - in.Delim('[') - if out.TopologySpreadConstraints == nil { - if !in.IsDelim(']') { - out.TopologySpreadConstraints = make([]*TopologySpreadConstraint, 0, 8) - } else { - out.TopologySpreadConstraints = []*TopologySpreadConstraint{} - } - } else { - out.TopologySpreadConstraints = (out.TopologySpreadConstraints)[:0] - } - for !in.IsDelim(']') { - var v10 *TopologySpreadConstraint - if in.IsNull() { - in.Skip() - v10 = nil - } else { - if v10 == nil { - v10 = new(TopologySpreadConstraint) - } - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV12(in, v10) - } - out.TopologySpreadConstraints = append(out.TopologySpreadConstraints, v10) - in.WantComma() - } - in.Delim(']') - } - case "volumes": - if in.IsNull() { - in.Skip() - out.Volumes = nil - } else { - in.Delim('[') - if out.Volumes == nil { - if !in.IsDelim(']') { - out.Volumes = make([]*Volume, 0, 8) - } else { - out.Volumes = []*Volume{} - } - } else { - out.Volumes = (out.Volumes)[:0] - } - for !in.IsDelim(']') { - var v11 *Volume - if in.IsNull() { - in.Skip() - v11 = nil - } else { - if v11 == nil { - v11 = new(Volume) - } - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV13(in, v11) - } - out.Volumes = append(out.Volumes, v11) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodSpec) { - out.RawByte('{') - first := true - _ = first - if in.ActiveDeadlineSeconds != 0 { - const prefix string = ",\"activeDeadlineSeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int64(int64(in.ActiveDeadlineSeconds)) - } - if in.Affinity != nil { - const prefix string = ",\"affinity\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Affinity).MarshalEasyJSON(out) - } - if in.AutomountServiceAccountToken { - const prefix string = ",\"automountServiceAccountToken\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.AutomountServiceAccountToken)) - } - { - const prefix string = ",\"containers\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Containers == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v12, v13 := range in.Containers { - if v12 > 0 { - out.RawByte(',') - } - if v13 == nil { - out.RawString("null") - } else { - (*v13).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.DNSConfig != nil { - const prefix string = ",\"dnsConfig\":" - out.RawString(prefix) - (*in.DNSConfig).MarshalEasyJSON(out) - } - if in.DNSPolicy != "" { - const prefix string = ",\"dnsPolicy\":" - out.RawString(prefix) - out.String(string(in.DNSPolicy)) - } - if in.EnableServiceLinks { - const prefix string = ",\"enableServiceLinks\":" - out.RawString(prefix) - out.Bool(bool(in.EnableServiceLinks)) - } - if len(in.EphemeralContainers) != 0 { - const prefix string = ",\"ephemeralContainers\":" - out.RawString(prefix) - { - out.RawByte('[') - for v14, v15 := range in.EphemeralContainers { - if v14 > 0 { - out.RawByte(',') - } - if v15 == nil { - out.RawString("null") - } else { - (*v15).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.HostAliases) != 0 { - const prefix string = ",\"hostAliases\":" - out.RawString(prefix) - { - out.RawByte('[') - for v16, v17 := range in.HostAliases { - if v16 > 0 { - out.RawByte(',') - } - if v17 == nil { - out.RawString("null") - } else { - (*v17).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.HostIPC { - const prefix string = ",\"hostIPC\":" - out.RawString(prefix) - out.Bool(bool(in.HostIPC)) - } - if in.HostNetwork { - const prefix string = ",\"hostNetwork\":" - out.RawString(prefix) - out.Bool(bool(in.HostNetwork)) - } - if in.HostPID { - const prefix string = ",\"hostPID\":" - out.RawString(prefix) - out.Bool(bool(in.HostPID)) - } - if in.Hostname != "" { - const prefix string = ",\"hostname\":" - out.RawString(prefix) - out.String(string(in.Hostname)) - } - if len(in.ImagePullSecrets) != 0 { - const prefix string = ",\"imagePullSecrets\":" - out.RawString(prefix) - { - out.RawByte('[') - for v18, v19 := range in.ImagePullSecrets { - if v18 > 0 { - out.RawByte(',') - } - if v19 == nil { - out.RawString("null") - } else { - (*v19).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.InitContainers) != 0 { - const prefix string = ",\"initContainers\":" - out.RawString(prefix) - { - out.RawByte('[') - for v20, v21 := range in.InitContainers { - if v20 > 0 { - out.RawByte(',') - } - if v21 == nil { - out.RawString("null") - } else { - (*v21).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.NodeName != "" { - const prefix string = ",\"nodeName\":" - out.RawString(prefix) - out.String(string(in.NodeName)) - } - if len(in.NodeSelector) != 0 { - const prefix string = ",\"nodeSelector\":" - out.RawString(prefix) - { - out.RawByte('{') - v22First := true - for v22Name, v22Value := range in.NodeSelector { - if v22First { - v22First = false - } else { - out.RawByte(',') - } - out.String(string(v22Name)) - out.RawByte(':') - out.String(string(v22Value)) - } - out.RawByte('}') - } - } - if in.OS != nil { - const prefix string = ",\"os\":" - out.RawString(prefix) - (*in.OS).MarshalEasyJSON(out) - } - if len(in.Overhead) != 0 { - const prefix string = ",\"overhead\":" - out.RawString(prefix) - { - out.RawByte('{') - v23First := true - for v23Name, v23Value := range in.Overhead { - if v23First { - v23First = false - } else { - out.RawByte(',') - } - out.String(string(v23Name)) - out.RawByte(':') - if v23Value == nil { - out.RawString("null") - } else { - out.String(string(*v23Value)) - } - } - out.RawByte('}') - } - } - if in.PreemptionPolicy != "" { - const prefix string = ",\"preemptionPolicy\":" - out.RawString(prefix) - out.String(string(in.PreemptionPolicy)) - } - if in.Priority != 0 { - const prefix string = ",\"priority\":" - out.RawString(prefix) - out.Int32(int32(in.Priority)) - } - if in.PriorityClassName != "" { - const prefix string = ",\"priorityClassName\":" - out.RawString(prefix) - out.String(string(in.PriorityClassName)) - } - if len(in.ReadinessGates) != 0 { - const prefix string = ",\"readinessGates\":" - out.RawString(prefix) - { - out.RawByte('[') - for v24, v25 := range in.ReadinessGates { - if v24 > 0 { - out.RawByte(',') - } - if v25 == nil { - out.RawString("null") - } else { - (*v25).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.RestartPolicy != "" { - const prefix string = ",\"restartPolicy\":" - out.RawString(prefix) - out.String(string(in.RestartPolicy)) - } - if in.RuntimeClassName != "" { - const prefix string = ",\"runtimeClassName\":" - out.RawString(prefix) - out.String(string(in.RuntimeClassName)) - } - if in.SchedulerName != "" { - const prefix string = ",\"schedulerName\":" - out.RawString(prefix) - out.String(string(in.SchedulerName)) - } - if in.SecurityContext != nil { - const prefix string = ",\"securityContext\":" - out.RawString(prefix) - (*in.SecurityContext).MarshalEasyJSON(out) - } - if in.ServiceAccount != "" { - const prefix string = ",\"serviceAccount\":" - out.RawString(prefix) - out.String(string(in.ServiceAccount)) - } - if in.ServiceAccountName != "" { - const prefix string = ",\"serviceAccountName\":" - out.RawString(prefix) - out.String(string(in.ServiceAccountName)) - } - if in.SetHostnameAsFQDN { - const prefix string = ",\"setHostnameAsFQDN\":" - out.RawString(prefix) - out.Bool(bool(in.SetHostnameAsFQDN)) - } - if in.ShareProcessNamespace { - const prefix string = ",\"shareProcessNamespace\":" - out.RawString(prefix) - out.Bool(bool(in.ShareProcessNamespace)) - } - if in.Subdomain != "" { - const prefix string = ",\"subdomain\":" - out.RawString(prefix) - out.String(string(in.Subdomain)) - } - if in.TerminationGracePeriodSeconds != 0 { - const prefix string = ",\"terminationGracePeriodSeconds\":" - out.RawString(prefix) - out.Int64(int64(in.TerminationGracePeriodSeconds)) - } - if len(in.Tolerations) != 0 { - const prefix string = ",\"tolerations\":" - out.RawString(prefix) - { - out.RawByte('[') - for v26, v27 := range in.Tolerations { - if v26 > 0 { - out.RawByte(',') - } - if v27 == nil { - out.RawString("null") - } else { - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *v27) - } - } - out.RawByte(']') - } - } - if len(in.TopologySpreadConstraints) != 0 { - const prefix string = ",\"topologySpreadConstraints\":" - out.RawString(prefix) - { - out.RawByte('[') - for v28, v29 := range in.TopologySpreadConstraints { - if v28 > 0 { - out.RawByte(',') - } - if v29 == nil { - out.RawString("null") - } else { - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *v29) - } - } - out.RawByte(']') - } - } - if len(in.Volumes) != 0 { - const prefix string = ",\"volumes\":" - out.RawString(prefix) - { - out.RawByte('[') - for v30, v31 := range in.Volumes { - if v30 > 0 { - out.RawByte(',') - } - if v31 == nil { - out.RawString("null") - } else { - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *v31) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PodSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PodSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PodSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PodSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *Volume) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "awsElasticBlockStore": - if in.IsNull() { - in.Skip() - out.AWSElasticBlockStore = nil - } else { - if out.AWSElasticBlockStore == nil { - out.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - (*out.AWSElasticBlockStore).UnmarshalEasyJSON(in) - } - case "azureDisk": - if in.IsNull() { - in.Skip() - out.AzureDisk = nil - } else { - if out.AzureDisk == nil { - out.AzureDisk = new(AzureDiskVolumeSource) - } - (*out.AzureDisk).UnmarshalEasyJSON(in) - } - case "azureFile": - if in.IsNull() { - in.Skip() - out.AzureFile = nil - } else { - if out.AzureFile == nil { - out.AzureFile = new(AzureFileVolumeSource) - } - (*out.AzureFile).UnmarshalEasyJSON(in) - } - case "cephfs": - if in.IsNull() { - in.Skip() - out.Cephfs = nil - } else { - if out.Cephfs == nil { - out.Cephfs = new(CephFSVolumeSource) - } - (*out.Cephfs).UnmarshalEasyJSON(in) - } - case "cinder": - if in.IsNull() { - in.Skip() - out.Cinder = nil - } else { - if out.Cinder == nil { - out.Cinder = new(CinderVolumeSource) - } - (*out.Cinder).UnmarshalEasyJSON(in) - } - case "configMap": - if in.IsNull() { - in.Skip() - out.ConfigMap = nil - } else { - if out.ConfigMap == nil { - out.ConfigMap = new(ConfigMapVolumeSource) - } - (*out.ConfigMap).UnmarshalEasyJSON(in) - } - case "csi": - if in.IsNull() { - in.Skip() - out.CSI = nil - } else { - if out.CSI == nil { - out.CSI = new(CSIVolumeSource) - } - (*out.CSI).UnmarshalEasyJSON(in) - } - case "downwardAPI": - if in.IsNull() { - in.Skip() - out.DownwardAPI = nil - } else { - if out.DownwardAPI == nil { - out.DownwardAPI = new(DownwardAPIVolumeSource) - } - (*out.DownwardAPI).UnmarshalEasyJSON(in) - } - case "emptyDir": - if in.IsNull() { - in.Skip() - out.EmptyDir = nil - } else { - if out.EmptyDir == nil { - out.EmptyDir = new(EmptyDirVolumeSource) - } - (*out.EmptyDir).UnmarshalEasyJSON(in) - } - case "ephemeral": - if in.IsNull() { - in.Skip() - out.Ephemeral = nil - } else { - if out.Ephemeral == nil { - out.Ephemeral = new(EphemeralVolumeSource) - } - (*out.Ephemeral).UnmarshalEasyJSON(in) - } - case "fc": - if in.IsNull() { - in.Skip() - out.FC = nil - } else { - if out.FC == nil { - out.FC = new(FCVolumeSource) - } - (*out.FC).UnmarshalEasyJSON(in) - } - case "flexVolume": - if in.IsNull() { - in.Skip() - out.FlexVolume = nil - } else { - if out.FlexVolume == nil { - out.FlexVolume = new(FlexVolumeSource) - } - (*out.FlexVolume).UnmarshalEasyJSON(in) - } - case "flocker": - if in.IsNull() { - in.Skip() - out.Flocker = nil - } else { - if out.Flocker == nil { - out.Flocker = new(FlockerVolumeSource) - } - (*out.Flocker).UnmarshalEasyJSON(in) - } - case "gcePersistentDisk": - if in.IsNull() { - in.Skip() - out.GCEPersistentDisk = nil - } else { - if out.GCEPersistentDisk == nil { - out.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - (*out.GCEPersistentDisk).UnmarshalEasyJSON(in) - } - case "gitRepo": - if in.IsNull() { - in.Skip() - out.GitRepo = nil - } else { - if out.GitRepo == nil { - out.GitRepo = new(GitRepoVolumeSource) - } - (*out.GitRepo).UnmarshalEasyJSON(in) - } - case "glusterfs": - if in.IsNull() { - in.Skip() - out.Glusterfs = nil - } else { - if out.Glusterfs == nil { - out.Glusterfs = new(GlusterfsVolumeSource) - } - (*out.Glusterfs).UnmarshalEasyJSON(in) - } - case "hostPath": - if in.IsNull() { - in.Skip() - out.HostPath = nil - } else { - if out.HostPath == nil { - out.HostPath = new(HostPathVolumeSource) - } - (*out.HostPath).UnmarshalEasyJSON(in) - } - case "iscsi": - if in.IsNull() { - in.Skip() - out.ISCSI = nil - } else { - if out.ISCSI == nil { - out.ISCSI = new(ISCSIVolumeSource) - } - (*out.ISCSI).UnmarshalEasyJSON(in) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "nfs": - if in.IsNull() { - in.Skip() - out.NFS = nil - } else { - if out.NFS == nil { - out.NFS = new(NFSVolumeSource) - } - (*out.NFS).UnmarshalEasyJSON(in) - } - case "persistentVolumeClaim": - if in.IsNull() { - in.Skip() - out.PersistentVolumeClaim = nil - } else { - if out.PersistentVolumeClaim == nil { - out.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) - } - (*out.PersistentVolumeClaim).UnmarshalEasyJSON(in) - } - case "photonPersistentDisk": - if in.IsNull() { - in.Skip() - out.PhotonPersistentDisk = nil - } else { - if out.PhotonPersistentDisk == nil { - out.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) - } - (*out.PhotonPersistentDisk).UnmarshalEasyJSON(in) - } - case "portworxVolume": - if in.IsNull() { - in.Skip() - out.PortworxVolume = nil - } else { - if out.PortworxVolume == nil { - out.PortworxVolume = new(PortworxVolumeSource) - } - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV14(in, out.PortworxVolume) - } - case "projected": - if in.IsNull() { - in.Skip() - out.Projected = nil - } else { - if out.Projected == nil { - out.Projected = new(ProjectedVolumeSource) - } - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV15(in, out.Projected) - } - case "quobyte": - if in.IsNull() { - in.Skip() - out.Quobyte = nil - } else { - if out.Quobyte == nil { - out.Quobyte = new(QuobyteVolumeSource) - } - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV16(in, out.Quobyte) - } - case "rbd": - if in.IsNull() { - in.Skip() - out.RBD = nil - } else { - if out.RBD == nil { - out.RBD = new(RBDVolumeSource) - } - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV17(in, out.RBD) - } - case "scaleIO": - if in.IsNull() { - in.Skip() - out.ScaleIO = nil - } else { - if out.ScaleIO == nil { - out.ScaleIO = new(ScaleIOVolumeSource) - } - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV18(in, out.ScaleIO) - } - case "secret": - if in.IsNull() { - in.Skip() - out.Secret = nil - } else { - if out.Secret == nil { - out.Secret = new(SecretVolumeSource) - } - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV19(in, out.Secret) - } - case "storageos": - if in.IsNull() { - in.Skip() - out.Storageos = nil - } else { - if out.Storageos == nil { - out.Storageos = new(StorageOSVolumeSource) - } - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV110(in, out.Storageos) - } - case "vsphereVolume": - if in.IsNull() { - in.Skip() - out.VsphereVolume = nil - } else { - if out.VsphereVolume == nil { - out.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV111(in, out.VsphereVolume) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in Volume) { - out.RawByte('{') - first := true - _ = first - if in.AWSElasticBlockStore != nil { - const prefix string = ",\"awsElasticBlockStore\":" - first = false - out.RawString(prefix[1:]) - (*in.AWSElasticBlockStore).MarshalEasyJSON(out) - } - if in.AzureDisk != nil { - const prefix string = ",\"azureDisk\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.AzureDisk).MarshalEasyJSON(out) - } - if in.AzureFile != nil { - const prefix string = ",\"azureFile\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.AzureFile).MarshalEasyJSON(out) - } - if in.Cephfs != nil { - const prefix string = ",\"cephfs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Cephfs).MarshalEasyJSON(out) - } - if in.Cinder != nil { - const prefix string = ",\"cinder\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Cinder).MarshalEasyJSON(out) - } - if in.ConfigMap != nil { - const prefix string = ",\"configMap\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.ConfigMap).MarshalEasyJSON(out) - } - if in.CSI != nil { - const prefix string = ",\"csi\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.CSI).MarshalEasyJSON(out) - } - if in.DownwardAPI != nil { - const prefix string = ",\"downwardAPI\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.DownwardAPI).MarshalEasyJSON(out) - } - if in.EmptyDir != nil { - const prefix string = ",\"emptyDir\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.EmptyDir).MarshalEasyJSON(out) - } - if in.Ephemeral != nil { - const prefix string = ",\"ephemeral\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Ephemeral).MarshalEasyJSON(out) - } - if in.FC != nil { - const prefix string = ",\"fc\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.FC).MarshalEasyJSON(out) - } - if in.FlexVolume != nil { - const prefix string = ",\"flexVolume\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.FlexVolume).MarshalEasyJSON(out) - } - if in.Flocker != nil { - const prefix string = ",\"flocker\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Flocker).MarshalEasyJSON(out) - } - if in.GCEPersistentDisk != nil { - const prefix string = ",\"gcePersistentDisk\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.GCEPersistentDisk).MarshalEasyJSON(out) - } - if in.GitRepo != nil { - const prefix string = ",\"gitRepo\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.GitRepo).MarshalEasyJSON(out) - } - if in.Glusterfs != nil { - const prefix string = ",\"glusterfs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Glusterfs).MarshalEasyJSON(out) - } - if in.HostPath != nil { - const prefix string = ",\"hostPath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.HostPath).MarshalEasyJSON(out) - } - if in.ISCSI != nil { - const prefix string = ",\"iscsi\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.ISCSI).MarshalEasyJSON(out) - } - { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - if in.NFS != nil { - const prefix string = ",\"nfs\":" - out.RawString(prefix) - (*in.NFS).MarshalEasyJSON(out) - } - if in.PersistentVolumeClaim != nil { - const prefix string = ",\"persistentVolumeClaim\":" - out.RawString(prefix) - (*in.PersistentVolumeClaim).MarshalEasyJSON(out) - } - if in.PhotonPersistentDisk != nil { - const prefix string = ",\"photonPersistentDisk\":" - out.RawString(prefix) - (*in.PhotonPersistentDisk).MarshalEasyJSON(out) - } - if in.PortworxVolume != nil { - const prefix string = ",\"portworxVolume\":" - out.RawString(prefix) - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *in.PortworxVolume) - } - if in.Projected != nil { - const prefix string = ",\"projected\":" - out.RawString(prefix) - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV15(out, *in.Projected) - } - if in.Quobyte != nil { - const prefix string = ",\"quobyte\":" - out.RawString(prefix) - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV16(out, *in.Quobyte) - } - if in.RBD != nil { - const prefix string = ",\"rbd\":" - out.RawString(prefix) - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV17(out, *in.RBD) - } - if in.ScaleIO != nil { - const prefix string = ",\"scaleIO\":" - out.RawString(prefix) - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV18(out, *in.ScaleIO) - } - if in.Secret != nil { - const prefix string = ",\"secret\":" - out.RawString(prefix) - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV19(out, *in.Secret) - } - if in.Storageos != nil { - const prefix string = ",\"storageos\":" - out.RawString(prefix) - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV110(out, *in.Storageos) - } - if in.VsphereVolume != nil { - const prefix string = ",\"vsphereVolume\":" - out.RawString(prefix) - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV111(out, *in.VsphereVolume) - } - out.RawByte('}') -} -func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV111(in *jlexer.Lexer, out *VsphereVirtualDiskVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "storagePolicyID": - out.StoragePolicyID = string(in.String()) - case "storagePolicyName": - out.StoragePolicyName = string(in.String()) - case "volumePath": - if in.IsNull() { - in.Skip() - out.VolumePath = nil - } else { - if out.VolumePath == nil { - out.VolumePath = new(string) - } - *out.VolumePath = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter.Writer, in VsphereVirtualDiskVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.StoragePolicyID != "" { - const prefix string = ",\"storagePolicyID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StoragePolicyID)) - } - if in.StoragePolicyName != "" { - const prefix string = ",\"storagePolicyName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StoragePolicyName)) - } - { - const prefix string = ",\"volumePath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.VolumePath == nil { - out.RawString("null") - } else { - out.String(string(*in.VolumePath)) - } - } - out.RawByte('}') -} -func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV110(in *jlexer.Lexer, out *StorageOSVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(LocalObjectReference) - } - (*out.SecretRef).UnmarshalEasyJSON(in) - } - case "volumeName": - out.VolumeName = string(in.String()) - case "volumeNamespace": - out.VolumeNamespace = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV110(out *jwriter.Writer, in StorageOSVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.SecretRef).MarshalEasyJSON(out) - } - if in.VolumeName != "" { - const prefix string = ",\"volumeName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeName)) - } - if in.VolumeNamespace != "" { - const prefix string = ",\"volumeNamespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeNamespace)) - } - out.RawByte('}') -} -func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV19(in *jlexer.Lexer, out *SecretVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "defaultMode": - out.DefaultMode = int32(in.Int32()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*KeyToPath, 0, 8) - } else { - out.Items = []*KeyToPath{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v32 *KeyToPath - if in.IsNull() { - in.Skip() - v32 = nil - } else { - if v32 == nil { - v32 = new(KeyToPath) - } - (*v32).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v32) - in.WantComma() - } - in.Delim(']') - } - case "optional": - out.Optional = bool(in.Bool()) - case "secretName": - out.SecretName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV19(out *jwriter.Writer, in SecretVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.DefaultMode != 0 { - const prefix string = ",\"defaultMode\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.DefaultMode)) - } - if len(in.Items) != 0 { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v33, v34 := range in.Items { - if v33 > 0 { - out.RawByte(',') - } - if v34 == nil { - out.RawString("null") - } else { - (*v34).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Optional { - const prefix string = ",\"optional\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Optional)) - } - if in.SecretName != "" { - const prefix string = ",\"secretName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.SecretName)) - } - out.RawByte('}') -} -func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV18(in *jlexer.Lexer, out *ScaleIOVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "gateway": - if in.IsNull() { - in.Skip() - out.Gateway = nil - } else { - if out.Gateway == nil { - out.Gateway = new(string) - } - *out.Gateway = string(in.String()) - } - case "protectionDomain": - out.ProtectionDomain = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(LocalObjectReference) - } - (*out.SecretRef).UnmarshalEasyJSON(in) - } - case "sslEnabled": - out.SslEnabled = bool(in.Bool()) - case "storageMode": - out.StorageMode = string(in.String()) - case "storagePool": - out.StoragePool = string(in.String()) - case "system": - if in.IsNull() { - in.Skip() - out.System = nil - } else { - if out.System == nil { - out.System = new(string) - } - *out.System = string(in.String()) - } - case "volumeName": - out.VolumeName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV18(out *jwriter.Writer, in ScaleIOVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - { - const prefix string = ",\"gateway\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Gateway == nil { - out.RawString("null") - } else { - out.String(string(*in.Gateway)) - } - } - if in.ProtectionDomain != "" { - const prefix string = ",\"protectionDomain\":" - out.RawString(prefix) - out.String(string(in.ProtectionDomain)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - if in.SecretRef == nil { - out.RawString("null") - } else { - (*in.SecretRef).MarshalEasyJSON(out) - } - } - if in.SslEnabled { - const prefix string = ",\"sslEnabled\":" - out.RawString(prefix) - out.Bool(bool(in.SslEnabled)) - } - if in.StorageMode != "" { - const prefix string = ",\"storageMode\":" - out.RawString(prefix) - out.String(string(in.StorageMode)) - } - if in.StoragePool != "" { - const prefix string = ",\"storagePool\":" - out.RawString(prefix) - out.String(string(in.StoragePool)) - } - { - const prefix string = ",\"system\":" - out.RawString(prefix) - if in.System == nil { - out.RawString("null") - } else { - out.String(string(*in.System)) - } - } - if in.VolumeName != "" { - const prefix string = ",\"volumeName\":" - out.RawString(prefix) - out.String(string(in.VolumeName)) - } - out.RawByte('}') -} -func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV17(in *jlexer.Lexer, out *RBDVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "image": - if in.IsNull() { - in.Skip() - out.Image = nil - } else { - if out.Image == nil { - out.Image = new(string) - } - *out.Image = string(in.String()) - } - case "keyring": - out.Keyring = string(in.String()) - case "monitors": - if in.IsNull() { - in.Skip() - out.Monitors = nil - } else { - in.Delim('[') - if out.Monitors == nil { - if !in.IsDelim(']') { - out.Monitors = make([]string, 0, 4) - } else { - out.Monitors = []string{} - } - } else { - out.Monitors = (out.Monitors)[:0] - } - for !in.IsDelim(']') { - var v35 string - v35 = string(in.String()) - out.Monitors = append(out.Monitors, v35) - in.WantComma() - } - in.Delim(']') - } - case "pool": - out.Pool = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(LocalObjectReference) - } - (*out.SecretRef).UnmarshalEasyJSON(in) - } - case "user": - out.User = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV17(out *jwriter.Writer, in RBDVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - { - const prefix string = ",\"image\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Image == nil { - out.RawString("null") - } else { - out.String(string(*in.Image)) - } - } - if in.Keyring != "" { - const prefix string = ",\"keyring\":" - out.RawString(prefix) - out.String(string(in.Keyring)) - } - { - const prefix string = ",\"monitors\":" - out.RawString(prefix) - if in.Monitors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v36, v37 := range in.Monitors { - if v36 > 0 { - out.RawByte(',') - } - out.String(string(v37)) - } - out.RawByte(']') - } - } - if in.Pool != "" { - const prefix string = ",\"pool\":" - out.RawString(prefix) - out.String(string(in.Pool)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - (*in.SecretRef).MarshalEasyJSON(out) - } - if in.User != "" { - const prefix string = ",\"user\":" - out.RawString(prefix) - out.String(string(in.User)) - } - out.RawByte('}') -} -func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV16(in *jlexer.Lexer, out *QuobyteVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "group": - out.Group = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "registry": - if in.IsNull() { - in.Skip() - out.Registry = nil - } else { - if out.Registry == nil { - out.Registry = new(string) - } - *out.Registry = string(in.String()) - } - case "tenant": - out.Tenant = string(in.String()) - case "user": - out.User = string(in.String()) - case "volume": - if in.IsNull() { - in.Skip() - out.Volume = nil - } else { - if out.Volume == nil { - out.Volume = new(string) - } - *out.Volume = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV16(out *jwriter.Writer, in QuobyteVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.Group != "" { - const prefix string = ",\"group\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Group)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"registry\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Registry == nil { - out.RawString("null") - } else { - out.String(string(*in.Registry)) - } - } - if in.Tenant != "" { - const prefix string = ",\"tenant\":" - out.RawString(prefix) - out.String(string(in.Tenant)) - } - if in.User != "" { - const prefix string = ",\"user\":" - out.RawString(prefix) - out.String(string(in.User)) - } - { - const prefix string = ",\"volume\":" - out.RawString(prefix) - if in.Volume == nil { - out.RawString("null") - } else { - out.String(string(*in.Volume)) - } - } - out.RawByte('}') -} -func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV15(in *jlexer.Lexer, out *ProjectedVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "defaultMode": - out.DefaultMode = int32(in.Int32()) - case "sources": - if in.IsNull() { - in.Skip() - out.Sources = nil - } else { - in.Delim('[') - if out.Sources == nil { - if !in.IsDelim(']') { - out.Sources = make([]*VolumeProjection, 0, 8) - } else { - out.Sources = []*VolumeProjection{} - } - } else { - out.Sources = (out.Sources)[:0] - } - for !in.IsDelim(']') { - var v38 *VolumeProjection - if in.IsNull() { - in.Skip() - v38 = nil - } else { - if v38 == nil { - v38 = new(VolumeProjection) - } - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV112(in, v38) - } - out.Sources = append(out.Sources, v38) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV15(out *jwriter.Writer, in ProjectedVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.DefaultMode != 0 { - const prefix string = ",\"defaultMode\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.DefaultMode)) - } - if len(in.Sources) != 0 { - const prefix string = ",\"sources\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v39, v40 := range in.Sources { - if v39 > 0 { - out.RawByte(',') - } - if v40 == nil { - out.RawString("null") - } else { - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV112(out, *v40) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV112(in *jlexer.Lexer, out *VolumeProjection) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "configMap": - if in.IsNull() { - in.Skip() - out.ConfigMap = nil - } else { - if out.ConfigMap == nil { - out.ConfigMap = new(ConfigMapProjection) - } - (*out.ConfigMap).UnmarshalEasyJSON(in) - } - case "downwardAPI": - if in.IsNull() { - in.Skip() - out.DownwardAPI = nil - } else { - if out.DownwardAPI == nil { - out.DownwardAPI = new(DownwardAPIProjection) - } - (*out.DownwardAPI).UnmarshalEasyJSON(in) - } - case "secret": - if in.IsNull() { - in.Skip() - out.Secret = nil - } else { - if out.Secret == nil { - out.Secret = new(SecretProjection) - } - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV113(in, out.Secret) - } - case "serviceAccountToken": - if in.IsNull() { - in.Skip() - out.ServiceAccountToken = nil - } else { - if out.ServiceAccountToken == nil { - out.ServiceAccountToken = new(ServiceAccountTokenProjection) - } - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV114(in, out.ServiceAccountToken) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV112(out *jwriter.Writer, in VolumeProjection) { - out.RawByte('{') - first := true - _ = first - if in.ConfigMap != nil { - const prefix string = ",\"configMap\":" - first = false - out.RawString(prefix[1:]) - (*in.ConfigMap).MarshalEasyJSON(out) - } - if in.DownwardAPI != nil { - const prefix string = ",\"downwardAPI\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.DownwardAPI).MarshalEasyJSON(out) - } - if in.Secret != nil { - const prefix string = ",\"secret\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV113(out, *in.Secret) - } - if in.ServiceAccountToken != nil { - const prefix string = ",\"serviceAccountToken\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV114(out, *in.ServiceAccountToken) - } - out.RawByte('}') -} -func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV114(in *jlexer.Lexer, out *ServiceAccountTokenProjection) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "audience": - out.Audience = string(in.String()) - case "expirationSeconds": - out.ExpirationSeconds = int64(in.Int64()) - case "path": - if in.IsNull() { - in.Skip() - out.Path = nil - } else { - if out.Path == nil { - out.Path = new(string) - } - *out.Path = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV114(out *jwriter.Writer, in ServiceAccountTokenProjection) { - out.RawByte('{') - first := true - _ = first - if in.Audience != "" { - const prefix string = ",\"audience\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Audience)) - } - if in.ExpirationSeconds != 0 { - const prefix string = ",\"expirationSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.ExpirationSeconds)) - } - { - const prefix string = ",\"path\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Path == nil { - out.RawString("null") - } else { - out.String(string(*in.Path)) - } - } - out.RawByte('}') -} -func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV113(in *jlexer.Lexer, out *SecretProjection) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*KeyToPath, 0, 8) - } else { - out.Items = []*KeyToPath{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v41 *KeyToPath - if in.IsNull() { - in.Skip() - v41 = nil - } else { - if v41 == nil { - v41 = new(KeyToPath) - } - (*v41).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v41) - in.WantComma() - } - in.Delim(']') - } - case "name": - out.Name = string(in.String()) - case "optional": - out.Optional = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV113(out *jwriter.Writer, in SecretProjection) { - out.RawByte('{') - first := true - _ = first - if len(in.Items) != 0 { - const prefix string = ",\"items\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v42, v43 := range in.Items { - if v42 > 0 { - out.RawByte(',') - } - if v43 == nil { - out.RawString("null") - } else { - (*v43).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Name != "" { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Name)) - } - if in.Optional { - const prefix string = ",\"optional\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Optional)) - } - out.RawByte('}') -} -func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Lexer, out *PortworxVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "volumeID": - if in.IsNull() { - in.Skip() - out.VolumeID = nil - } else { - if out.VolumeID == nil { - out.VolumeID = new(string) - } - *out.VolumeID = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter.Writer, in PortworxVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"volumeID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.VolumeID == nil { - out.RawString("null") - } else { - out.String(string(*in.VolumeID)) - } - } - out.RawByte('}') -} -func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *TopologySpreadConstraint) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "labelSelector": - if in.IsNull() { - in.Skip() - out.LabelSelector = nil - } else { - if out.LabelSelector == nil { - out.LabelSelector = new(_v1.LabelSelector) - } - (*out.LabelSelector).UnmarshalEasyJSON(in) - } - case "maxSkew": - if in.IsNull() { - in.Skip() - out.MaxSkew = nil - } else { - if out.MaxSkew == nil { - out.MaxSkew = new(int32) - } - *out.MaxSkew = int32(in.Int32()) - } - case "minDomains": - out.MinDomains = int32(in.Int32()) - case "topologyKey": - if in.IsNull() { - in.Skip() - out.TopologyKey = nil - } else { - if out.TopologyKey == nil { - out.TopologyKey = new(string) - } - *out.TopologyKey = string(in.String()) - } - case "whenUnsatisfiable": - if in.IsNull() { - in.Skip() - out.WhenUnsatisfiable = nil - } else { - if out.WhenUnsatisfiable == nil { - out.WhenUnsatisfiable = new(string) - } - *out.WhenUnsatisfiable = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in TopologySpreadConstraint) { - out.RawByte('{') - first := true - _ = first - if in.LabelSelector != nil { - const prefix string = ",\"labelSelector\":" - first = false - out.RawString(prefix[1:]) - (*in.LabelSelector).MarshalEasyJSON(out) - } - { - const prefix string = ",\"maxSkew\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.MaxSkew == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.MaxSkew)) - } - } - if in.MinDomains != 0 { - const prefix string = ",\"minDomains\":" - out.RawString(prefix) - out.Int32(int32(in.MinDomains)) - } - { - const prefix string = ",\"topologyKey\":" - out.RawString(prefix) - if in.TopologyKey == nil { - out.RawString("null") - } else { - out.String(string(*in.TopologyKey)) - } - } - { - const prefix string = ",\"whenUnsatisfiable\":" - out.RawString(prefix) - if in.WhenUnsatisfiable == nil { - out.RawString("null") - } else { - out.String(string(*in.WhenUnsatisfiable)) - } - } - out.RawByte('}') -} -func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *Toleration) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "effect": - out.Effect = string(in.String()) - case "key": - out.Key = string(in.String()) - case "operator": - out.Operator = string(in.String()) - case "tolerationSeconds": - out.TolerationSeconds = int64(in.Int64()) - case "value": - out.Value = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in Toleration) { - out.RawByte('{') - first := true - _ = first - if in.Effect != "" { - const prefix string = ",\"effect\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Effect)) - } - if in.Key != "" { - const prefix string = ",\"key\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Key)) - } - if in.Operator != "" { - const prefix string = ",\"operator\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Operator)) - } - if in.TolerationSeconds != 0 { - const prefix string = ",\"tolerationSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.TolerationSeconds)) - } - if in.Value != "" { - const prefix string = ",\"value\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Value)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_status.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_status.go index e3e972b..5493548 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_status.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_status.go @@ -20,7 +20,7 @@ type PodStatus struct { // The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status ContainerStatuses []*ContainerStatus `json:"containerStatuses,omitempty"` - // Status for any ephemeral containers that have run in this pod. This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate. + // Status for any ephemeral containers that have run in this pod. EphemeralContainerStatuses []*ContainerStatus `json:"ephemeralContainerStatuses,omitempty"` // IP address of the host to which the pod is assigned. Empty if not yet scheduled. @@ -40,8 +40,6 @@ type PodStatus struct { // Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. // // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase - // - // Phase string `json:"phase,omitempty"` // IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. @@ -50,14 +48,15 @@ type PodStatus struct { // podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. PodIPs []*PodIP `json:"podIPs,omitempty"` - // The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md - // - // + // The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes QosClass string `json:"qosClass,omitempty"` // A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' Reason string `json:"reason,omitempty"` + // Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to "Proposed" + Resize string `json:"resize,omitempty"` + // RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. StartTime *apimachinery_pkg_apis_meta_v1.Time `json:"startTime,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_status_easyjson.go deleted file mode 100644 index bcc0a8a..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_status_easyjson.go +++ /dev/null @@ -1,451 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson7c8bc0beDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*PodCondition, 0, 8) - } else { - out.Conditions = []*PodCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *PodCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(PodCondition) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "containerStatuses": - if in.IsNull() { - in.Skip() - out.ContainerStatuses = nil - } else { - in.Delim('[') - if out.ContainerStatuses == nil { - if !in.IsDelim(']') { - out.ContainerStatuses = make([]*ContainerStatus, 0, 8) - } else { - out.ContainerStatuses = []*ContainerStatus{} - } - } else { - out.ContainerStatuses = (out.ContainerStatuses)[:0] - } - for !in.IsDelim(']') { - var v2 *ContainerStatus - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(ContainerStatus) - } - (*v2).UnmarshalEasyJSON(in) - } - out.ContainerStatuses = append(out.ContainerStatuses, v2) - in.WantComma() - } - in.Delim(']') - } - case "ephemeralContainerStatuses": - if in.IsNull() { - in.Skip() - out.EphemeralContainerStatuses = nil - } else { - in.Delim('[') - if out.EphemeralContainerStatuses == nil { - if !in.IsDelim(']') { - out.EphemeralContainerStatuses = make([]*ContainerStatus, 0, 8) - } else { - out.EphemeralContainerStatuses = []*ContainerStatus{} - } - } else { - out.EphemeralContainerStatuses = (out.EphemeralContainerStatuses)[:0] - } - for !in.IsDelim(']') { - var v3 *ContainerStatus - if in.IsNull() { - in.Skip() - v3 = nil - } else { - if v3 == nil { - v3 = new(ContainerStatus) - } - (*v3).UnmarshalEasyJSON(in) - } - out.EphemeralContainerStatuses = append(out.EphemeralContainerStatuses, v3) - in.WantComma() - } - in.Delim(']') - } - case "hostIP": - out.HostIP = string(in.String()) - case "initContainerStatuses": - if in.IsNull() { - in.Skip() - out.InitContainerStatuses = nil - } else { - in.Delim('[') - if out.InitContainerStatuses == nil { - if !in.IsDelim(']') { - out.InitContainerStatuses = make([]*ContainerStatus, 0, 8) - } else { - out.InitContainerStatuses = []*ContainerStatus{} - } - } else { - out.InitContainerStatuses = (out.InitContainerStatuses)[:0] - } - for !in.IsDelim(']') { - var v4 *ContainerStatus - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(ContainerStatus) - } - (*v4).UnmarshalEasyJSON(in) - } - out.InitContainerStatuses = append(out.InitContainerStatuses, v4) - in.WantComma() - } - in.Delim(']') - } - case "message": - out.Message = string(in.String()) - case "nominatedNodeName": - out.NominatedNodeName = string(in.String()) - case "phase": - out.Phase = string(in.String()) - case "podIP": - out.PodIP = string(in.String()) - case "podIPs": - if in.IsNull() { - in.Skip() - out.PodIPs = nil - } else { - in.Delim('[') - if out.PodIPs == nil { - if !in.IsDelim(']') { - out.PodIPs = make([]*PodIP, 0, 8) - } else { - out.PodIPs = []*PodIP{} - } - } else { - out.PodIPs = (out.PodIPs)[:0] - } - for !in.IsDelim(']') { - var v5 *PodIP - if in.IsNull() { - in.Skip() - v5 = nil - } else { - if v5 == nil { - v5 = new(PodIP) - } - (*v5).UnmarshalEasyJSON(in) - } - out.PodIPs = append(out.PodIPs, v5) - in.WantComma() - } - in.Delim(']') - } - case "qosClass": - out.QosClass = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "startTime": - if in.IsNull() { - in.Skip() - out.StartTime = nil - } else { - if out.StartTime == nil { - out.StartTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.StartTime).UnmarshalJSON(data)) - } - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7c8bc0beEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodStatus) { - out.RawByte('{') - first := true - _ = first - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v6, v7 := range in.Conditions { - if v6 > 0 { - out.RawByte(',') - } - if v7 == nil { - out.RawString("null") - } else { - (*v7).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.ContainerStatuses) != 0 { - const prefix string = ",\"containerStatuses\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v8, v9 := range in.ContainerStatuses { - if v8 > 0 { - out.RawByte(',') - } - if v9 == nil { - out.RawString("null") - } else { - (*v9).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if len(in.EphemeralContainerStatuses) != 0 { - const prefix string = ",\"ephemeralContainerStatuses\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v10, v11 := range in.EphemeralContainerStatuses { - if v10 > 0 { - out.RawByte(',') - } - if v11 == nil { - out.RawString("null") - } else { - (*v11).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.HostIP != "" { - const prefix string = ",\"hostIP\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.HostIP)) - } - if len(in.InitContainerStatuses) != 0 { - const prefix string = ",\"initContainerStatuses\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v12, v13 := range in.InitContainerStatuses { - if v12 > 0 { - out.RawByte(',') - } - if v13 == nil { - out.RawString("null") - } else { - (*v13).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.NominatedNodeName != "" { - const prefix string = ",\"nominatedNodeName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.NominatedNodeName)) - } - if in.Phase != "" { - const prefix string = ",\"phase\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Phase)) - } - if in.PodIP != "" { - const prefix string = ",\"podIP\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.PodIP)) - } - if len(in.PodIPs) != 0 { - const prefix string = ",\"podIPs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v14, v15 := range in.PodIPs { - if v14 > 0 { - out.RawByte(',') - } - if v15 == nil { - out.RawString("null") - } else { - (*v15).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.QosClass != "" { - const prefix string = ",\"qosClass\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.QosClass)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - if in.StartTime != nil { - const prefix string = ",\"startTime\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((*in.StartTime).MarshalJSON()) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PodStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson7c8bc0beEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PodStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjson7c8bc0beEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PodStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson7c8bc0beDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PodStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson7c8bc0beDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_easyjson.go deleted file mode 100644 index 9c38162..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_easyjson.go +++ /dev/null @@ -1,210 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonFe84804aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodTemplate) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "template": - if in.IsNull() { - in.Skip() - out.Template = nil - } else { - if out.Template == nil { - out.Template = new(PodTemplateSpec) - } - easyjsonFe84804aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.Template) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonFe84804aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodTemplate) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Template != nil { - const prefix string = ",\"template\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonFe84804aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.Template) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PodTemplate) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonFe84804aEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PodTemplate) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonFe84804aEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PodTemplate) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonFe84804aDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PodTemplate) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonFe84804aDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonFe84804aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *PodTemplateSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(PodSpec) - } - (*out.Spec).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonFe84804aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in PodTemplateSpec) { - out.RawByte('{') - first := true - _ = first - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - first = false - out.RawString(prefix[1:]) - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Spec).MarshalEasyJSON(out) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_list_easyjson.go deleted file mode 100644 index 0c67124..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonA136ee0fDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodTemplateList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*PodTemplate, 0, 8) - } else { - out.Items = []*PodTemplate{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *PodTemplate - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(PodTemplate) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA136ee0fEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodTemplateList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PodTemplateList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonA136ee0fEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PodTemplateList) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonA136ee0fEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PodTemplateList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonA136ee0fDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PodTemplateList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonA136ee0fDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_spec_easyjson.go deleted file mode 100644 index a9b211d..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_spec_easyjson.go +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson1e4d41d6DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodTemplateSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(PodSpec) - } - (*out.Spec).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1e4d41d6EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodTemplateSpec) { - out.RawByte('{') - first := true - _ = first - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - first = false - out.RawString(prefix[1:]) - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Spec).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PodTemplateSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson1e4d41d6EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PodTemplateSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjson1e4d41d6EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PodTemplateSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson1e4d41d6DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PodTemplateSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson1e4d41d6DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/port_status.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/port_status.go index 269ea71..a192e21 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/port_status.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/port_status.go @@ -21,8 +21,6 @@ type PortStatus struct { Port *int32 `json:"port"` // Protocol is the protocol of the service port of which status is recorded here The supported values are: "TCP", "UDP", "SCTP" - // - // // Required: true Protocol *string `json:"protocol"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/port_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/port_status_easyjson.go deleted file mode 100644 index f373ad3..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/port_status_easyjson.go +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson331c9188DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PortStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "error": - out.Error = string(in.String()) - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(int32) - } - *out.Port = int32(in.Int32()) - } - case "protocol": - if in.IsNull() { - in.Skip() - out.Protocol = nil - } else { - if out.Protocol == nil { - out.Protocol = new(string) - } - *out.Protocol = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson331c9188EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PortStatus) { - out.RawByte('{') - first := true - _ = first - if in.Error != "" { - const prefix string = ",\"error\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Error)) - } - { - const prefix string = ",\"port\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Port == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Port)) - } - } - { - const prefix string = ",\"protocol\":" - out.RawString(prefix) - if in.Protocol == nil { - out.RawString("null") - } else { - out.String(string(*in.Protocol)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PortStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson331c9188EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PortStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjson331c9188EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PortStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson331c9188DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PortStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson331c9188DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/portworx_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/portworx_volume_source_easyjson.go deleted file mode 100644 index 2c691f2..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/portworx_volume_source_easyjson.go +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson6549b042DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PortworxVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "volumeID": - if in.IsNull() { - in.Skip() - out.VolumeID = nil - } else { - if out.VolumeID == nil { - out.VolumeID = new(string) - } - *out.VolumeID = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6549b042EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PortworxVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"volumeID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.VolumeID == nil { - out.RawString("null") - } else { - out.String(string(*in.VolumeID)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PortworxVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson6549b042EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PortworxVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6549b042EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PortworxVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson6549b042DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PortworxVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6549b042DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/preferred_scheduling_term_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/preferred_scheduling_term_easyjson.go deleted file mode 100644 index 60d5a43..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/preferred_scheduling_term_easyjson.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE9001bc7DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PreferredSchedulingTerm) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "preference": - if in.IsNull() { - in.Skip() - out.Preference = nil - } else { - if out.Preference == nil { - out.Preference = new(NodeSelectorTerm) - } - (*out.Preference).UnmarshalEasyJSON(in) - } - case "weight": - if in.IsNull() { - in.Skip() - out.Weight = nil - } else { - if out.Weight == nil { - out.Weight = new(int32) - } - *out.Weight = int32(in.Int32()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE9001bc7EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PreferredSchedulingTerm) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"preference\":" - out.RawString(prefix[1:]) - if in.Preference == nil { - out.RawString("null") - } else { - (*in.Preference).MarshalEasyJSON(out) - } - } - { - const prefix string = ",\"weight\":" - out.RawString(prefix) - if in.Weight == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Weight)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v PreferredSchedulingTerm) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE9001bc7EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v PreferredSchedulingTerm) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE9001bc7EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *PreferredSchedulingTerm) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE9001bc7DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *PreferredSchedulingTerm) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE9001bc7DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/probe.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/probe.go index e76e8b4..818a2ee 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/probe.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/probe.go @@ -16,7 +16,7 @@ type Probe struct { // Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. FailureThreshold int32 `json:"failureThreshold,omitempty"` - // GRPC specifies an action involving a GRPC port. This is a beta field and requires enabling GRPCContainerProbe feature gate. + // GRPC specifies an action involving a GRPC port. GRPC *GRPCAction `json:"grpc,omitempty"` // HTTPGet specifies the http request to perform. diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/probe_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/probe_easyjson.go deleted file mode 100644 index 27a9347..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/probe_easyjson.go +++ /dev/null @@ -1,294 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonDe232084DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Probe) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "exec": - if in.IsNull() { - in.Skip() - out.Exec = nil - } else { - if out.Exec == nil { - out.Exec = new(ExecAction) - } - (*out.Exec).UnmarshalEasyJSON(in) - } - case "failureThreshold": - out.FailureThreshold = int32(in.Int32()) - case "grpc": - if in.IsNull() { - in.Skip() - out.GRPC = nil - } else { - if out.GRPC == nil { - out.GRPC = new(GRPCAction) - } - (*out.GRPC).UnmarshalEasyJSON(in) - } - case "httpGet": - if in.IsNull() { - in.Skip() - out.HTTPGet = nil - } else { - if out.HTTPGet == nil { - out.HTTPGet = new(HTTPGetAction) - } - (*out.HTTPGet).UnmarshalEasyJSON(in) - } - case "initialDelaySeconds": - out.InitialDelaySeconds = int32(in.Int32()) - case "periodSeconds": - out.PeriodSeconds = int32(in.Int32()) - case "successThreshold": - out.SuccessThreshold = int32(in.Int32()) - case "tcpSocket": - if in.IsNull() { - in.Skip() - out.TCPSocket = nil - } else { - if out.TCPSocket == nil { - out.TCPSocket = new(TCPSocketAction) - } - easyjsonDe232084DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.TCPSocket) - } - case "terminationGracePeriodSeconds": - out.TerminationGracePeriodSeconds = int64(in.Int64()) - case "timeoutSeconds": - out.TimeoutSeconds = int32(in.Int32()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonDe232084EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Probe) { - out.RawByte('{') - first := true - _ = first - if in.Exec != nil { - const prefix string = ",\"exec\":" - first = false - out.RawString(prefix[1:]) - (*in.Exec).MarshalEasyJSON(out) - } - if in.FailureThreshold != 0 { - const prefix string = ",\"failureThreshold\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.FailureThreshold)) - } - if in.GRPC != nil { - const prefix string = ",\"grpc\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.GRPC).MarshalEasyJSON(out) - } - if in.HTTPGet != nil { - const prefix string = ",\"httpGet\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.HTTPGet).MarshalEasyJSON(out) - } - if in.InitialDelaySeconds != 0 { - const prefix string = ",\"initialDelaySeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.InitialDelaySeconds)) - } - if in.PeriodSeconds != 0 { - const prefix string = ",\"periodSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.PeriodSeconds)) - } - if in.SuccessThreshold != 0 { - const prefix string = ",\"successThreshold\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.SuccessThreshold)) - } - if in.TCPSocket != nil { - const prefix string = ",\"tcpSocket\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonDe232084EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.TCPSocket) - } - if in.TerminationGracePeriodSeconds != 0 { - const prefix string = ",\"terminationGracePeriodSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.TerminationGracePeriodSeconds)) - } - if in.TimeoutSeconds != 0 { - const prefix string = ",\"timeoutSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.TimeoutSeconds)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Probe) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonDe232084EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Probe) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonDe232084EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Probe) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonDe232084DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Probe) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonDe232084DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonDe232084DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *TCPSocketAction) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "host": - out.Host = string(in.String()) - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(intstr.IntOrString) - } - *out.Port = intstr.IntOrString(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonDe232084EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in TCPSocketAction) { - out.RawByte('{') - first := true - _ = first - if in.Host != "" { - const prefix string = ",\"host\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Host)) - } - { - const prefix string = ",\"port\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Port == nil { - out.RawString("null") - } else { - out.String(string(*in.Port)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/projected_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/projected_volume_source_easyjson.go deleted file mode 100644 index 0c1dc80..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/projected_volume_source_easyjson.go +++ /dev/null @@ -1,439 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson2f078869DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ProjectedVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "defaultMode": - out.DefaultMode = int32(in.Int32()) - case "sources": - if in.IsNull() { - in.Skip() - out.Sources = nil - } else { - in.Delim('[') - if out.Sources == nil { - if !in.IsDelim(']') { - out.Sources = make([]*VolumeProjection, 0, 8) - } else { - out.Sources = []*VolumeProjection{} - } - } else { - out.Sources = (out.Sources)[:0] - } - for !in.IsDelim(']') { - var v1 *VolumeProjection - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(VolumeProjection) - } - easyjson2f078869DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, v1) - } - out.Sources = append(out.Sources, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2f078869EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ProjectedVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.DefaultMode != 0 { - const prefix string = ",\"defaultMode\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.DefaultMode)) - } - if len(in.Sources) != 0 { - const prefix string = ",\"sources\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Sources { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjson2f078869EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *v3) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ProjectedVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson2f078869EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ProjectedVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson2f078869EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ProjectedVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson2f078869DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ProjectedVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson2f078869DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson2f078869DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *VolumeProjection) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "configMap": - if in.IsNull() { - in.Skip() - out.ConfigMap = nil - } else { - if out.ConfigMap == nil { - out.ConfigMap = new(ConfigMapProjection) - } - (*out.ConfigMap).UnmarshalEasyJSON(in) - } - case "downwardAPI": - if in.IsNull() { - in.Skip() - out.DownwardAPI = nil - } else { - if out.DownwardAPI == nil { - out.DownwardAPI = new(DownwardAPIProjection) - } - (*out.DownwardAPI).UnmarshalEasyJSON(in) - } - case "secret": - if in.IsNull() { - in.Skip() - out.Secret = nil - } else { - if out.Secret == nil { - out.Secret = new(SecretProjection) - } - easyjson2f078869DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.Secret) - } - case "serviceAccountToken": - if in.IsNull() { - in.Skip() - out.ServiceAccountToken = nil - } else { - if out.ServiceAccountToken == nil { - out.ServiceAccountToken = new(ServiceAccountTokenProjection) - } - easyjson2f078869DecodeGithubComKubewardenK8sObjectsApiCoreV13(in, out.ServiceAccountToken) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2f078869EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in VolumeProjection) { - out.RawByte('{') - first := true - _ = first - if in.ConfigMap != nil { - const prefix string = ",\"configMap\":" - first = false - out.RawString(prefix[1:]) - (*in.ConfigMap).MarshalEasyJSON(out) - } - if in.DownwardAPI != nil { - const prefix string = ",\"downwardAPI\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.DownwardAPI).MarshalEasyJSON(out) - } - if in.Secret != nil { - const prefix string = ",\"secret\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson2f078869EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.Secret) - } - if in.ServiceAccountToken != nil { - const prefix string = ",\"serviceAccountToken\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson2f078869EncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *in.ServiceAccountToken) - } - out.RawByte('}') -} -func easyjson2f078869DecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *ServiceAccountTokenProjection) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "audience": - out.Audience = string(in.String()) - case "expirationSeconds": - out.ExpirationSeconds = int64(in.Int64()) - case "path": - if in.IsNull() { - in.Skip() - out.Path = nil - } else { - if out.Path == nil { - out.Path = new(string) - } - *out.Path = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2f078869EncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in ServiceAccountTokenProjection) { - out.RawByte('{') - first := true - _ = first - if in.Audience != "" { - const prefix string = ",\"audience\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Audience)) - } - if in.ExpirationSeconds != 0 { - const prefix string = ",\"expirationSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.ExpirationSeconds)) - } - { - const prefix string = ",\"path\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Path == nil { - out.RawString("null") - } else { - out.String(string(*in.Path)) - } - } - out.RawByte('}') -} -func easyjson2f078869DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *SecretProjection) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*KeyToPath, 0, 8) - } else { - out.Items = []*KeyToPath{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v4 *KeyToPath - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(KeyToPath) - } - (*v4).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v4) - in.WantComma() - } - in.Delim(']') - } - case "name": - out.Name = string(in.String()) - case "optional": - out.Optional = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2f078869EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in SecretProjection) { - out.RawByte('{') - first := true - _ = first - if len(in.Items) != 0 { - const prefix string = ",\"items\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v5, v6 := range in.Items { - if v5 > 0 { - out.RawByte(',') - } - if v6 == nil { - out.RawString("null") - } else { - (*v6).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Name != "" { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Name)) - } - if in.Optional { - const prefix string = ",\"optional\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Optional)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/quobyte_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/quobyte_volume_source_easyjson.go deleted file mode 100644 index 6e1cd17..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/quobyte_volume_source_easyjson.go +++ /dev/null @@ -1,155 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonF8e49ec2DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *QuobyteVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "group": - out.Group = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "registry": - if in.IsNull() { - in.Skip() - out.Registry = nil - } else { - if out.Registry == nil { - out.Registry = new(string) - } - *out.Registry = string(in.String()) - } - case "tenant": - out.Tenant = string(in.String()) - case "user": - out.User = string(in.String()) - case "volume": - if in.IsNull() { - in.Skip() - out.Volume = nil - } else { - if out.Volume == nil { - out.Volume = new(string) - } - *out.Volume = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF8e49ec2EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in QuobyteVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.Group != "" { - const prefix string = ",\"group\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Group)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"registry\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Registry == nil { - out.RawString("null") - } else { - out.String(string(*in.Registry)) - } - } - if in.Tenant != "" { - const prefix string = ",\"tenant\":" - out.RawString(prefix) - out.String(string(in.Tenant)) - } - if in.User != "" { - const prefix string = ",\"user\":" - out.RawString(prefix) - out.String(string(in.User)) - } - { - const prefix string = ",\"volume\":" - out.RawString(prefix) - if in.Volume == nil { - out.RawString("null") - } else { - out.String(string(*in.Volume)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v QuobyteVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonF8e49ec2EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v QuobyteVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonF8e49ec2EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *QuobyteVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonF8e49ec2DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *QuobyteVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonF8e49ec2DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_persistent_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_persistent_volume_source_easyjson.go deleted file mode 100644 index 35262d2..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_persistent_volume_source_easyjson.go +++ /dev/null @@ -1,247 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonCe763073DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *RBDPersistentVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "image": - if in.IsNull() { - in.Skip() - out.Image = nil - } else { - if out.Image == nil { - out.Image = new(string) - } - *out.Image = string(in.String()) - } - case "keyring": - out.Keyring = string(in.String()) - case "monitors": - if in.IsNull() { - in.Skip() - out.Monitors = nil - } else { - in.Delim('[') - if out.Monitors == nil { - if !in.IsDelim(']') { - out.Monitors = make([]string, 0, 4) - } else { - out.Monitors = []string{} - } - } else { - out.Monitors = (out.Monitors)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Monitors = append(out.Monitors, v1) - in.WantComma() - } - in.Delim(']') - } - case "pool": - out.Pool = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(SecretReference) - } - easyjsonCe763073DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) - } - case "user": - out.User = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCe763073EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in RBDPersistentVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - { - const prefix string = ",\"image\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Image == nil { - out.RawString("null") - } else { - out.String(string(*in.Image)) - } - } - if in.Keyring != "" { - const prefix string = ",\"keyring\":" - out.RawString(prefix) - out.String(string(in.Keyring)) - } - { - const prefix string = ",\"monitors\":" - out.RawString(prefix) - if in.Monitors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Monitors { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - if in.Pool != "" { - const prefix string = ",\"pool\":" - out.RawString(prefix) - out.String(string(in.Pool)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - easyjsonCe763073EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) - } - if in.User != "" { - const prefix string = ",\"user\":" - out.RawString(prefix) - out.String(string(in.User)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RBDPersistentVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonCe763073EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RBDPersistentVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonCe763073EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RBDPersistentVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonCe763073DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RBDPersistentVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonCe763073DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonCe763073DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "namespace": - out.Namespace = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCe763073EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Namespace != "" { - const prefix string = ",\"namespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Namespace)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_volume_source_easyjson.go deleted file mode 100644 index c864a7e..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_volume_source_easyjson.go +++ /dev/null @@ -1,192 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson345099d5DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *RBDVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "image": - if in.IsNull() { - in.Skip() - out.Image = nil - } else { - if out.Image == nil { - out.Image = new(string) - } - *out.Image = string(in.String()) - } - case "keyring": - out.Keyring = string(in.String()) - case "monitors": - if in.IsNull() { - in.Skip() - out.Monitors = nil - } else { - in.Delim('[') - if out.Monitors == nil { - if !in.IsDelim(']') { - out.Monitors = make([]string, 0, 4) - } else { - out.Monitors = []string{} - } - } else { - out.Monitors = (out.Monitors)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Monitors = append(out.Monitors, v1) - in.WantComma() - } - in.Delim(']') - } - case "pool": - out.Pool = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(LocalObjectReference) - } - (*out.SecretRef).UnmarshalEasyJSON(in) - } - case "user": - out.User = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson345099d5EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in RBDVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - { - const prefix string = ",\"image\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Image == nil { - out.RawString("null") - } else { - out.String(string(*in.Image)) - } - } - if in.Keyring != "" { - const prefix string = ",\"keyring\":" - out.RawString(prefix) - out.String(string(in.Keyring)) - } - { - const prefix string = ",\"monitors\":" - out.RawString(prefix) - if in.Monitors == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Monitors { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - if in.Pool != "" { - const prefix string = ",\"pool\":" - out.RawString(prefix) - out.String(string(in.Pool)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - (*in.SecretRef).MarshalEasyJSON(out) - } - if in.User != "" { - const prefix string = ",\"user\":" - out.RawString(prefix) - out.String(string(in.User)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v RBDVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson345099d5EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v RBDVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson345099d5EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *RBDVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson345099d5DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *RBDVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson345099d5DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_condition_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_condition_easyjson.go deleted file mode 100644 index 14e807c..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_condition_easyjson.go +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson9a7ce39fDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ReplicationControllerCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9a7ce39fEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ReplicationControllerCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ReplicationControllerCondition) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson9a7ce39fEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReplicationControllerCondition) MarshalEasyJSON(w *jwriter.Writer) { - easyjson9a7ce39fEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReplicationControllerCondition) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson9a7ce39fDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ReplicationControllerCondition) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson9a7ce39fDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_easyjson.go deleted file mode 100644 index 6272065..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_easyjson.go +++ /dev/null @@ -1,555 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson4c3d1239DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ReplicationController) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(ReplicationControllerSpec) - } - easyjson4c3d1239DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.Spec) - } - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(ReplicationControllerStatus) - } - easyjson4c3d1239DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.Status) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson4c3d1239EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ReplicationController) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson4c3d1239EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.Spec) - } - if in.Status != nil { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson4c3d1239EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.Status) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ReplicationController) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson4c3d1239EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReplicationController) MarshalEasyJSON(w *jwriter.Writer) { - easyjson4c3d1239EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReplicationController) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson4c3d1239DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ReplicationController) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson4c3d1239DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson4c3d1239DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *ReplicationControllerStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "availableReplicas": - out.AvailableReplicas = int32(in.Int32()) - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*ReplicationControllerCondition, 0, 8) - } else { - out.Conditions = []*ReplicationControllerCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *ReplicationControllerCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ReplicationControllerCondition) - } - easyjson4c3d1239DecodeGithubComKubewardenK8sObjectsApiCoreV13(in, v1) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "fullyLabeledReplicas": - out.FullyLabeledReplicas = int32(in.Int32()) - case "observedGeneration": - out.ObservedGeneration = int64(in.Int64()) - case "readyReplicas": - out.ReadyReplicas = int32(in.Int32()) - case "replicas": - if in.IsNull() { - in.Skip() - out.Replicas = nil - } else { - if out.Replicas == nil { - out.Replicas = new(int32) - } - *out.Replicas = int32(in.Int32()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson4c3d1239EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in ReplicationControllerStatus) { - out.RawByte('{') - first := true - _ = first - if in.AvailableReplicas != 0 { - const prefix string = ",\"availableReplicas\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.AvailableReplicas)) - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjson4c3d1239EncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *v3) - } - } - out.RawByte(']') - } - } - if in.FullyLabeledReplicas != 0 { - const prefix string = ",\"fullyLabeledReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.FullyLabeledReplicas)) - } - if in.ObservedGeneration != 0 { - const prefix string = ",\"observedGeneration\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.ObservedGeneration)) - } - if in.ReadyReplicas != 0 { - const prefix string = ",\"readyReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.ReadyReplicas)) - } - { - const prefix string = ",\"replicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Replicas == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Replicas)) - } - } - out.RawByte('}') -} -func easyjson4c3d1239DecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *ReplicationControllerCondition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson4c3d1239EncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in ReplicationControllerCondition) { - out.RawByte('{') - first := true - _ = first - if in.LastTransitionTime != nil { - const prefix string = ",\"lastTransitionTime\":" - first = false - out.RawString(prefix[1:]) - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} -func easyjson4c3d1239DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *ReplicationControllerSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "minReadySeconds": - out.MinReadySeconds = int32(in.Int32()) - case "replicas": - out.Replicas = int32(in.Int32()) - case "selector": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Selector = make(map[string]string) - } else { - out.Selector = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v4 string - v4 = string(in.String()) - (out.Selector)[key] = v4 - in.WantComma() - } - in.Delim('}') - } - case "template": - if in.IsNull() { - in.Skip() - out.Template = nil - } else { - if out.Template == nil { - out.Template = new(PodTemplateSpec) - } - (*out.Template).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson4c3d1239EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in ReplicationControllerSpec) { - out.RawByte('{') - first := true - _ = first - if in.MinReadySeconds != 0 { - const prefix string = ",\"minReadySeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.MinReadySeconds)) - } - if in.Replicas != 0 { - const prefix string = ",\"replicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Replicas)) - } - if len(in.Selector) != 0 { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v5First := true - for v5Name, v5Value := range in.Selector { - if v5First { - v5First = false - } else { - out.RawByte(',') - } - out.String(string(v5Name)) - out.RawByte(':') - out.String(string(v5Value)) - } - out.RawByte('}') - } - } - if in.Template != nil { - const prefix string = ",\"template\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Template).MarshalEasyJSON(out) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_list_easyjson.go deleted file mode 100644 index bb427a8..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson5f414472DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ReplicationControllerList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*ReplicationController, 0, 8) - } else { - out.Items = []*ReplicationController{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *ReplicationController - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ReplicationController) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson5f414472EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ReplicationControllerList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ReplicationControllerList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson5f414472EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReplicationControllerList) MarshalEasyJSON(w *jwriter.Writer) { - easyjson5f414472EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReplicationControllerList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson5f414472DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ReplicationControllerList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson5f414472DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_spec.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_spec.go index 4ab8838..3dd6bed 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_spec.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_spec.go @@ -19,6 +19,6 @@ type ReplicationControllerSpec struct { // Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors Selector map[string]string `json:"selector,omitempty"` - // Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + // Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is "Always". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template Template *PodTemplateSpec `json:"template,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_spec_easyjson.go deleted file mode 100644 index 4cf0f5b..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_spec_easyjson.go +++ /dev/null @@ -1,162 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson93f01c1fDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ReplicationControllerSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "minReadySeconds": - out.MinReadySeconds = int32(in.Int32()) - case "replicas": - out.Replicas = int32(in.Int32()) - case "selector": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Selector = make(map[string]string) - } else { - out.Selector = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v1 string - v1 = string(in.String()) - (out.Selector)[key] = v1 - in.WantComma() - } - in.Delim('}') - } - case "template": - if in.IsNull() { - in.Skip() - out.Template = nil - } else { - if out.Template == nil { - out.Template = new(PodTemplateSpec) - } - (*out.Template).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson93f01c1fEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ReplicationControllerSpec) { - out.RawByte('{') - first := true - _ = first - if in.MinReadySeconds != 0 { - const prefix string = ",\"minReadySeconds\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.MinReadySeconds)) - } - if in.Replicas != 0 { - const prefix string = ",\"replicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Replicas)) - } - if len(in.Selector) != 0 { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v2First := true - for v2Name, v2Value := range in.Selector { - if v2First { - v2First = false - } else { - out.RawByte(',') - } - out.String(string(v2Name)) - out.RawByte(':') - out.String(string(v2Value)) - } - out.RawByte('}') - } - } - if in.Template != nil { - const prefix string = ",\"template\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Template).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ReplicationControllerSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson93f01c1fEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReplicationControllerSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjson93f01c1fEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReplicationControllerSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson93f01c1fDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ReplicationControllerSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson93f01c1fDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_status.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_status.go index ed02ab4..faad971 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_status.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_status.go @@ -25,7 +25,7 @@ type ReplicationControllerStatus struct { // The number of ready replicas for this replication controller. ReadyReplicas int32 `json:"readyReplicas,omitempty"` - // Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller + // Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller // Required: true Replicas *int32 `json:"replicas"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_status_easyjson.go deleted file mode 100644 index beffedb..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_status_easyjson.go +++ /dev/null @@ -1,200 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson787cf0f8DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ReplicationControllerStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "availableReplicas": - out.AvailableReplicas = int32(in.Int32()) - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*ReplicationControllerCondition, 0, 8) - } else { - out.Conditions = []*ReplicationControllerCondition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *ReplicationControllerCondition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ReplicationControllerCondition) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "fullyLabeledReplicas": - out.FullyLabeledReplicas = int32(in.Int32()) - case "observedGeneration": - out.ObservedGeneration = int64(in.Int64()) - case "readyReplicas": - out.ReadyReplicas = int32(in.Int32()) - case "replicas": - if in.IsNull() { - in.Skip() - out.Replicas = nil - } else { - if out.Replicas == nil { - out.Replicas = new(int32) - } - *out.Replicas = int32(in.Int32()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson787cf0f8EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ReplicationControllerStatus) { - out.RawByte('{') - first := true - _ = first - if in.AvailableReplicas != 0 { - const prefix string = ",\"availableReplicas\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.AvailableReplicas)) - } - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.FullyLabeledReplicas != 0 { - const prefix string = ",\"fullyLabeledReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.FullyLabeledReplicas)) - } - if in.ObservedGeneration != 0 { - const prefix string = ",\"observedGeneration\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.ObservedGeneration)) - } - if in.ReadyReplicas != 0 { - const prefix string = ",\"readyReplicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.ReadyReplicas)) - } - { - const prefix string = ",\"replicas\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Replicas == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Replicas)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ReplicationControllerStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson787cf0f8EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ReplicationControllerStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjson787cf0f8EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ReplicationControllerStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson787cf0f8DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ReplicationControllerStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson787cf0f8DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_claim.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_claim.go new file mode 100644 index 0000000..367b726 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_claim.go @@ -0,0 +1,16 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +// ResourceClaim ResourceClaim references one entry in PodSpec.ResourceClaims. +// +// swagger:model ResourceClaim +type ResourceClaim struct { + + // Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. + // Required: true + Name *string `json:"name"` +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_field_selector_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_field_selector_easyjson.go deleted file mode 100644 index 2437279..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_field_selector_easyjson.go +++ /dev/null @@ -1,131 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE98630a5DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ResourceFieldSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "containerName": - out.ContainerName = string(in.String()) - case "divisor": - if in.IsNull() { - in.Skip() - out.Divisor = nil - } else { - if out.Divisor == nil { - out.Divisor = new(resource.Quantity) - } - *out.Divisor = resource.Quantity(in.String()) - } - case "resource": - if in.IsNull() { - in.Skip() - out.Resource = nil - } else { - if out.Resource == nil { - out.Resource = new(string) - } - *out.Resource = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE98630a5EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ResourceFieldSelector) { - out.RawByte('{') - first := true - _ = first - if in.ContainerName != "" { - const prefix string = ",\"containerName\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.ContainerName)) - } - if in.Divisor != nil { - const prefix string = ",\"divisor\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(*in.Divisor)) - } - { - const prefix string = ",\"resource\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Resource == nil { - out.RawString("null") - } else { - out.String(string(*in.Resource)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ResourceFieldSelector) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE98630a5EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ResourceFieldSelector) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE98630a5EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ResourceFieldSelector) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE98630a5DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ResourceFieldSelector) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE98630a5DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_easyjson.go deleted file mode 100644 index a1340ce..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_easyjson.go +++ /dev/null @@ -1,647 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE1e21f65DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ResourceQuota) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(ResourceQuotaSpec) - } - easyjsonE1e21f65DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.Spec) - } - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(ResourceQuotaStatus) - } - easyjsonE1e21f65DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.Status) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE1e21f65EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ResourceQuota) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonE1e21f65EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.Spec) - } - if in.Status != nil { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonE1e21f65EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.Status) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ResourceQuota) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE1e21f65EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ResourceQuota) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE1e21f65EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ResourceQuota) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE1e21f65DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ResourceQuota) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE1e21f65DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonE1e21f65DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *ResourceQuotaStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "hard": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Hard = make(map[string]*resource.Quantity) - } else { - out.Hard = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v1 *resource.Quantity - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(resource.Quantity) - } - *v1 = resource.Quantity(in.String()) - } - (out.Hard)[key] = v1 - in.WantComma() - } - in.Delim('}') - } - case "used": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Used = make(map[string]*resource.Quantity) - } else { - out.Used = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v2 *resource.Quantity - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(resource.Quantity) - } - *v2 = resource.Quantity(in.String()) - } - (out.Used)[key] = v2 - in.WantComma() - } - in.Delim('}') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE1e21f65EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in ResourceQuotaStatus) { - out.RawByte('{') - first := true - _ = first - if len(in.Hard) != 0 { - const prefix string = ",\"hard\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('{') - v3First := true - for v3Name, v3Value := range in.Hard { - if v3First { - v3First = false - } else { - out.RawByte(',') - } - out.String(string(v3Name)) - out.RawByte(':') - if v3Value == nil { - out.RawString("null") - } else { - out.String(string(*v3Value)) - } - } - out.RawByte('}') - } - } - if len(in.Used) != 0 { - const prefix string = ",\"used\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v4First := true - for v4Name, v4Value := range in.Used { - if v4First { - v4First = false - } else { - out.RawByte(',') - } - out.String(string(v4Name)) - out.RawByte(':') - if v4Value == nil { - out.RawString("null") - } else { - out.String(string(*v4Value)) - } - } - out.RawByte('}') - } - } - out.RawByte('}') -} -func easyjsonE1e21f65DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *ResourceQuotaSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "hard": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Hard = make(map[string]*resource.Quantity) - } else { - out.Hard = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v5 *resource.Quantity - if in.IsNull() { - in.Skip() - v5 = nil - } else { - if v5 == nil { - v5 = new(resource.Quantity) - } - *v5 = resource.Quantity(in.String()) - } - (out.Hard)[key] = v5 - in.WantComma() - } - in.Delim('}') - } - case "scopeSelector": - if in.IsNull() { - in.Skip() - out.ScopeSelector = nil - } else { - if out.ScopeSelector == nil { - out.ScopeSelector = new(ScopeSelector) - } - easyjsonE1e21f65DecodeGithubComKubewardenK8sObjectsApiCoreV13(in, out.ScopeSelector) - } - case "scopes": - if in.IsNull() { - in.Skip() - out.Scopes = nil - } else { - in.Delim('[') - if out.Scopes == nil { - if !in.IsDelim(']') { - out.Scopes = make([]string, 0, 4) - } else { - out.Scopes = []string{} - } - } else { - out.Scopes = (out.Scopes)[:0] - } - for !in.IsDelim(']') { - var v6 string - v6 = string(in.String()) - out.Scopes = append(out.Scopes, v6) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE1e21f65EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in ResourceQuotaSpec) { - out.RawByte('{') - first := true - _ = first - if len(in.Hard) != 0 { - const prefix string = ",\"hard\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('{') - v7First := true - for v7Name, v7Value := range in.Hard { - if v7First { - v7First = false - } else { - out.RawByte(',') - } - out.String(string(v7Name)) - out.RawByte(':') - if v7Value == nil { - out.RawString("null") - } else { - out.String(string(*v7Value)) - } - } - out.RawByte('}') - } - } - if in.ScopeSelector != nil { - const prefix string = ",\"scopeSelector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonE1e21f65EncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *in.ScopeSelector) - } - if len(in.Scopes) != 0 { - const prefix string = ",\"scopes\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v8, v9 := range in.Scopes { - if v8 > 0 { - out.RawByte(',') - } - out.String(string(v9)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjsonE1e21f65DecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *ScopeSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "matchExpressions": - if in.IsNull() { - in.Skip() - out.MatchExpressions = nil - } else { - in.Delim('[') - if out.MatchExpressions == nil { - if !in.IsDelim(']') { - out.MatchExpressions = make([]*ScopedResourceSelectorRequirement, 0, 8) - } else { - out.MatchExpressions = []*ScopedResourceSelectorRequirement{} - } - } else { - out.MatchExpressions = (out.MatchExpressions)[:0] - } - for !in.IsDelim(']') { - var v10 *ScopedResourceSelectorRequirement - if in.IsNull() { - in.Skip() - v10 = nil - } else { - if v10 == nil { - v10 = new(ScopedResourceSelectorRequirement) - } - easyjsonE1e21f65DecodeGithubComKubewardenK8sObjectsApiCoreV14(in, v10) - } - out.MatchExpressions = append(out.MatchExpressions, v10) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE1e21f65EncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in ScopeSelector) { - out.RawByte('{') - first := true - _ = first - if len(in.MatchExpressions) != 0 { - const prefix string = ",\"matchExpressions\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v11, v12 := range in.MatchExpressions { - if v11 > 0 { - out.RawByte(',') - } - if v12 == nil { - out.RawString("null") - } else { - easyjsonE1e21f65EncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *v12) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjsonE1e21f65DecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Lexer, out *ScopedResourceSelectorRequirement) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "operator": - if in.IsNull() { - in.Skip() - out.Operator = nil - } else { - if out.Operator == nil { - out.Operator = new(string) - } - *out.Operator = string(in.String()) - } - case "scopeName": - if in.IsNull() { - in.Skip() - out.ScopeName = nil - } else { - if out.ScopeName == nil { - out.ScopeName = new(string) - } - *out.ScopeName = string(in.String()) - } - case "values": - if in.IsNull() { - in.Skip() - out.Values = nil - } else { - in.Delim('[') - if out.Values == nil { - if !in.IsDelim(']') { - out.Values = make([]string, 0, 4) - } else { - out.Values = []string{} - } - } else { - out.Values = (out.Values)[:0] - } - for !in.IsDelim(']') { - var v13 string - v13 = string(in.String()) - out.Values = append(out.Values, v13) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE1e21f65EncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter.Writer, in ScopedResourceSelectorRequirement) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"operator\":" - out.RawString(prefix[1:]) - if in.Operator == nil { - out.RawString("null") - } else { - out.String(string(*in.Operator)) - } - } - { - const prefix string = ",\"scopeName\":" - out.RawString(prefix) - if in.ScopeName == nil { - out.RawString("null") - } else { - out.String(string(*in.ScopeName)) - } - } - if len(in.Values) != 0 { - const prefix string = ",\"values\":" - out.RawString(prefix) - { - out.RawByte('[') - for v14, v15 := range in.Values { - if v14 > 0 { - out.RawByte(',') - } - out.String(string(v15)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_list_easyjson.go deleted file mode 100644 index d459705..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson6dc918beDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ResourceQuotaList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*ResourceQuota, 0, 8) - } else { - out.Items = []*ResourceQuota{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *ResourceQuota - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ResourceQuota) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6dc918beEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ResourceQuotaList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ResourceQuotaList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson6dc918beEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ResourceQuotaList) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6dc918beEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ResourceQuotaList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson6dc918beDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ResourceQuotaList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6dc918beDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_spec_easyjson.go deleted file mode 100644 index 8c61297..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_spec_easyjson.go +++ /dev/null @@ -1,388 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonFc0a5813DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ResourceQuotaSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "hard": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Hard = make(map[string]*resource.Quantity) - } else { - out.Hard = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v1 *resource.Quantity - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(resource.Quantity) - } - *v1 = resource.Quantity(in.String()) - } - (out.Hard)[key] = v1 - in.WantComma() - } - in.Delim('}') - } - case "scopeSelector": - if in.IsNull() { - in.Skip() - out.ScopeSelector = nil - } else { - if out.ScopeSelector == nil { - out.ScopeSelector = new(ScopeSelector) - } - easyjsonFc0a5813DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.ScopeSelector) - } - case "scopes": - if in.IsNull() { - in.Skip() - out.Scopes = nil - } else { - in.Delim('[') - if out.Scopes == nil { - if !in.IsDelim(']') { - out.Scopes = make([]string, 0, 4) - } else { - out.Scopes = []string{} - } - } else { - out.Scopes = (out.Scopes)[:0] - } - for !in.IsDelim(']') { - var v2 string - v2 = string(in.String()) - out.Scopes = append(out.Scopes, v2) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonFc0a5813EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ResourceQuotaSpec) { - out.RawByte('{') - first := true - _ = first - if len(in.Hard) != 0 { - const prefix string = ",\"hard\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('{') - v3First := true - for v3Name, v3Value := range in.Hard { - if v3First { - v3First = false - } else { - out.RawByte(',') - } - out.String(string(v3Name)) - out.RawByte(':') - if v3Value == nil { - out.RawString("null") - } else { - out.String(string(*v3Value)) - } - } - out.RawByte('}') - } - } - if in.ScopeSelector != nil { - const prefix string = ",\"scopeSelector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonFc0a5813EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.ScopeSelector) - } - if len(in.Scopes) != 0 { - const prefix string = ",\"scopes\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v4, v5 := range in.Scopes { - if v4 > 0 { - out.RawByte(',') - } - out.String(string(v5)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ResourceQuotaSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonFc0a5813EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ResourceQuotaSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonFc0a5813EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ResourceQuotaSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonFc0a5813DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ResourceQuotaSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonFc0a5813DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonFc0a5813DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *ScopeSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "matchExpressions": - if in.IsNull() { - in.Skip() - out.MatchExpressions = nil - } else { - in.Delim('[') - if out.MatchExpressions == nil { - if !in.IsDelim(']') { - out.MatchExpressions = make([]*ScopedResourceSelectorRequirement, 0, 8) - } else { - out.MatchExpressions = []*ScopedResourceSelectorRequirement{} - } - } else { - out.MatchExpressions = (out.MatchExpressions)[:0] - } - for !in.IsDelim(']') { - var v6 *ScopedResourceSelectorRequirement - if in.IsNull() { - in.Skip() - v6 = nil - } else { - if v6 == nil { - v6 = new(ScopedResourceSelectorRequirement) - } - easyjsonFc0a5813DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, v6) - } - out.MatchExpressions = append(out.MatchExpressions, v6) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonFc0a5813EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in ScopeSelector) { - out.RawByte('{') - first := true - _ = first - if len(in.MatchExpressions) != 0 { - const prefix string = ",\"matchExpressions\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v7, v8 := range in.MatchExpressions { - if v7 > 0 { - out.RawByte(',') - } - if v8 == nil { - out.RawString("null") - } else { - easyjsonFc0a5813EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *v8) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} -func easyjsonFc0a5813DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *ScopedResourceSelectorRequirement) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "operator": - if in.IsNull() { - in.Skip() - out.Operator = nil - } else { - if out.Operator == nil { - out.Operator = new(string) - } - *out.Operator = string(in.String()) - } - case "scopeName": - if in.IsNull() { - in.Skip() - out.ScopeName = nil - } else { - if out.ScopeName == nil { - out.ScopeName = new(string) - } - *out.ScopeName = string(in.String()) - } - case "values": - if in.IsNull() { - in.Skip() - out.Values = nil - } else { - in.Delim('[') - if out.Values == nil { - if !in.IsDelim(']') { - out.Values = make([]string, 0, 4) - } else { - out.Values = []string{} - } - } else { - out.Values = (out.Values)[:0] - } - for !in.IsDelim(']') { - var v9 string - v9 = string(in.String()) - out.Values = append(out.Values, v9) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonFc0a5813EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in ScopedResourceSelectorRequirement) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"operator\":" - out.RawString(prefix[1:]) - if in.Operator == nil { - out.RawString("null") - } else { - out.String(string(*in.Operator)) - } - } - { - const prefix string = ",\"scopeName\":" - out.RawString(prefix) - if in.ScopeName == nil { - out.RawString("null") - } else { - out.String(string(*in.ScopeName)) - } - } - if len(in.Values) != 0 { - const prefix string = ",\"values\":" - out.RawString(prefix) - { - out.RawByte('[') - for v10, v11 := range in.Values { - if v10 > 0 { - out.RawByte(',') - } - out.String(string(v11)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_status_easyjson.go deleted file mode 100644 index 52c56a2..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_status_easyjson.go +++ /dev/null @@ -1,187 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonBe0fda7cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ResourceQuotaStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "hard": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Hard = make(map[string]*resource.Quantity) - } else { - out.Hard = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v1 *resource.Quantity - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(resource.Quantity) - } - *v1 = resource.Quantity(in.String()) - } - (out.Hard)[key] = v1 - in.WantComma() - } - in.Delim('}') - } - case "used": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Used = make(map[string]*resource.Quantity) - } else { - out.Used = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v2 *resource.Quantity - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(resource.Quantity) - } - *v2 = resource.Quantity(in.String()) - } - (out.Used)[key] = v2 - in.WantComma() - } - in.Delim('}') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBe0fda7cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ResourceQuotaStatus) { - out.RawByte('{') - first := true - _ = first - if len(in.Hard) != 0 { - const prefix string = ",\"hard\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('{') - v3First := true - for v3Name, v3Value := range in.Hard { - if v3First { - v3First = false - } else { - out.RawByte(',') - } - out.String(string(v3Name)) - out.RawByte(':') - if v3Value == nil { - out.RawString("null") - } else { - out.String(string(*v3Value)) - } - } - out.RawByte('}') - } - } - if len(in.Used) != 0 { - const prefix string = ",\"used\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v4First := true - for v4Name, v4Value := range in.Used { - if v4First { - v4First = false - } else { - out.RawByte(',') - } - out.String(string(v4Name)) - out.RawByte(':') - if v4Value == nil { - out.RawString("null") - } else { - out.String(string(*v4Value)) - } - } - out.RawByte('}') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ResourceQuotaStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonBe0fda7cEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ResourceQuotaStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonBe0fda7cEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ResourceQuotaStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonBe0fda7cDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ResourceQuotaStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonBe0fda7cDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_requirements.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_requirements.go index 757e86b..7e53b8e 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_requirements.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_requirements.go @@ -14,9 +14,16 @@ import ( // swagger:model ResourceRequirements type ResourceRequirements struct { + // Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. + // + // This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. + // + // This field is immutable. It can only be set for containers. + Claims []*ResourceClaim `json:"claims,omitempty"` + // Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ Limits map[string]*apimachinery_pkg_api_resource.Quantity `json:"limits,omitempty"` - // Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ + // Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ Requests map[string]*apimachinery_pkg_api_resource.Quantity `json:"requests,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_requirements_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_requirements_easyjson.go deleted file mode 100644 index d71f966..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_requirements_easyjson.go +++ /dev/null @@ -1,187 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - resource "github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson28f1750dDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ResourceRequirements) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "limits": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Limits = make(map[string]*resource.Quantity) - } else { - out.Limits = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v1 *resource.Quantity - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(resource.Quantity) - } - *v1 = resource.Quantity(in.String()) - } - (out.Limits)[key] = v1 - in.WantComma() - } - in.Delim('}') - } - case "requests": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Requests = make(map[string]*resource.Quantity) - } else { - out.Requests = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v2 *resource.Quantity - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(resource.Quantity) - } - *v2 = resource.Quantity(in.String()) - } - (out.Requests)[key] = v2 - in.WantComma() - } - in.Delim('}') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson28f1750dEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ResourceRequirements) { - out.RawByte('{') - first := true - _ = first - if len(in.Limits) != 0 { - const prefix string = ",\"limits\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('{') - v3First := true - for v3Name, v3Value := range in.Limits { - if v3First { - v3First = false - } else { - out.RawByte(',') - } - out.String(string(v3Name)) - out.RawByte(':') - if v3Value == nil { - out.RawString("null") - } else { - out.String(string(*v3Value)) - } - } - out.RawByte('}') - } - } - if len(in.Requests) != 0 { - const prefix string = ",\"requests\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v4First := true - for v4Name, v4Value := range in.Requests { - if v4First { - v4First = false - } else { - out.RawByte(',') - } - out.String(string(v4Name)) - out.RawByte(':') - if v4Value == nil { - out.RawString("null") - } else { - out.String(string(*v4Value)) - } - } - out.RawByte('}') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ResourceRequirements) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson28f1750dEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ResourceRequirements) MarshalEasyJSON(w *jwriter.Writer) { - easyjson28f1750dEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ResourceRequirements) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson28f1750dDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ResourceRequirements) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson28f1750dDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_persistent_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_persistent_volume_source_easyjson.go deleted file mode 100644 index 3e8e008..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_persistent_volume_source_easyjson.go +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonB4d2e762DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ScaleIOPersistentVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "gateway": - if in.IsNull() { - in.Skip() - out.Gateway = nil - } else { - if out.Gateway == nil { - out.Gateway = new(string) - } - *out.Gateway = string(in.String()) - } - case "protectionDomain": - out.ProtectionDomain = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(SecretReference) - } - easyjsonB4d2e762DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) - } - case "sslEnabled": - out.SslEnabled = bool(in.Bool()) - case "storageMode": - out.StorageMode = string(in.String()) - case "storagePool": - out.StoragePool = string(in.String()) - case "system": - if in.IsNull() { - in.Skip() - out.System = nil - } else { - if out.System == nil { - out.System = new(string) - } - *out.System = string(in.String()) - } - case "volumeName": - out.VolumeName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB4d2e762EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ScaleIOPersistentVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - { - const prefix string = ",\"gateway\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Gateway == nil { - out.RawString("null") - } else { - out.String(string(*in.Gateway)) - } - } - if in.ProtectionDomain != "" { - const prefix string = ",\"protectionDomain\":" - out.RawString(prefix) - out.String(string(in.ProtectionDomain)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - if in.SecretRef == nil { - out.RawString("null") - } else { - easyjsonB4d2e762EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) - } - } - if in.SslEnabled { - const prefix string = ",\"sslEnabled\":" - out.RawString(prefix) - out.Bool(bool(in.SslEnabled)) - } - if in.StorageMode != "" { - const prefix string = ",\"storageMode\":" - out.RawString(prefix) - out.String(string(in.StorageMode)) - } - if in.StoragePool != "" { - const prefix string = ",\"storagePool\":" - out.RawString(prefix) - out.String(string(in.StoragePool)) - } - { - const prefix string = ",\"system\":" - out.RawString(prefix) - if in.System == nil { - out.RawString("null") - } else { - out.String(string(*in.System)) - } - } - if in.VolumeName != "" { - const prefix string = ",\"volumeName\":" - out.RawString(prefix) - out.String(string(in.VolumeName)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ScaleIOPersistentVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonB4d2e762EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ScaleIOPersistentVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonB4d2e762EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ScaleIOPersistentVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonB4d2e762DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ScaleIOPersistentVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonB4d2e762DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonB4d2e762DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "namespace": - out.Namespace = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB4d2e762EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Namespace != "" { - const prefix string = ",\"namespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Namespace)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_volume_source_easyjson.go deleted file mode 100644 index ff1bc50..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_volume_source_easyjson.go +++ /dev/null @@ -1,190 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson101c4fe2DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ScaleIOVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "gateway": - if in.IsNull() { - in.Skip() - out.Gateway = nil - } else { - if out.Gateway == nil { - out.Gateway = new(string) - } - *out.Gateway = string(in.String()) - } - case "protectionDomain": - out.ProtectionDomain = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(LocalObjectReference) - } - (*out.SecretRef).UnmarshalEasyJSON(in) - } - case "sslEnabled": - out.SslEnabled = bool(in.Bool()) - case "storageMode": - out.StorageMode = string(in.String()) - case "storagePool": - out.StoragePool = string(in.String()) - case "system": - if in.IsNull() { - in.Skip() - out.System = nil - } else { - if out.System == nil { - out.System = new(string) - } - *out.System = string(in.String()) - } - case "volumeName": - out.VolumeName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson101c4fe2EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ScaleIOVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - { - const prefix string = ",\"gateway\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Gateway == nil { - out.RawString("null") - } else { - out.String(string(*in.Gateway)) - } - } - if in.ProtectionDomain != "" { - const prefix string = ",\"protectionDomain\":" - out.RawString(prefix) - out.String(string(in.ProtectionDomain)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - { - const prefix string = ",\"secretRef\":" - out.RawString(prefix) - if in.SecretRef == nil { - out.RawString("null") - } else { - (*in.SecretRef).MarshalEasyJSON(out) - } - } - if in.SslEnabled { - const prefix string = ",\"sslEnabled\":" - out.RawString(prefix) - out.Bool(bool(in.SslEnabled)) - } - if in.StorageMode != "" { - const prefix string = ",\"storageMode\":" - out.RawString(prefix) - out.String(string(in.StorageMode)) - } - if in.StoragePool != "" { - const prefix string = ",\"storagePool\":" - out.RawString(prefix) - out.String(string(in.StoragePool)) - } - { - const prefix string = ",\"system\":" - out.RawString(prefix) - if in.System == nil { - out.RawString("null") - } else { - out.String(string(*in.System)) - } - } - if in.VolumeName != "" { - const prefix string = ",\"volumeName\":" - out.RawString(prefix) - out.String(string(in.VolumeName)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ScaleIOVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson101c4fe2EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ScaleIOVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson101c4fe2EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ScaleIOVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson101c4fe2DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ScaleIOVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson101c4fe2DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scope_selector_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scope_selector_easyjson.go deleted file mode 100644 index f6621c7..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scope_selector_easyjson.go +++ /dev/null @@ -1,238 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonCcd7c12cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ScopeSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "matchExpressions": - if in.IsNull() { - in.Skip() - out.MatchExpressions = nil - } else { - in.Delim('[') - if out.MatchExpressions == nil { - if !in.IsDelim(']') { - out.MatchExpressions = make([]*ScopedResourceSelectorRequirement, 0, 8) - } else { - out.MatchExpressions = []*ScopedResourceSelectorRequirement{} - } - } else { - out.MatchExpressions = (out.MatchExpressions)[:0] - } - for !in.IsDelim(']') { - var v1 *ScopedResourceSelectorRequirement - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ScopedResourceSelectorRequirement) - } - easyjsonCcd7c12cDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, v1) - } - out.MatchExpressions = append(out.MatchExpressions, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCcd7c12cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ScopeSelector) { - out.RawByte('{') - first := true - _ = first - if len(in.MatchExpressions) != 0 { - const prefix string = ",\"matchExpressions\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.MatchExpressions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjsonCcd7c12cEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *v3) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ScopeSelector) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonCcd7c12cEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ScopeSelector) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonCcd7c12cEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ScopeSelector) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonCcd7c12cDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ScopeSelector) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonCcd7c12cDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonCcd7c12cDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *ScopedResourceSelectorRequirement) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "operator": - if in.IsNull() { - in.Skip() - out.Operator = nil - } else { - if out.Operator == nil { - out.Operator = new(string) - } - *out.Operator = string(in.String()) - } - case "scopeName": - if in.IsNull() { - in.Skip() - out.ScopeName = nil - } else { - if out.ScopeName == nil { - out.ScopeName = new(string) - } - *out.ScopeName = string(in.String()) - } - case "values": - if in.IsNull() { - in.Skip() - out.Values = nil - } else { - in.Delim('[') - if out.Values == nil { - if !in.IsDelim(']') { - out.Values = make([]string, 0, 4) - } else { - out.Values = []string{} - } - } else { - out.Values = (out.Values)[:0] - } - for !in.IsDelim(']') { - var v4 string - v4 = string(in.String()) - out.Values = append(out.Values, v4) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCcd7c12cEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in ScopedResourceSelectorRequirement) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"operator\":" - out.RawString(prefix[1:]) - if in.Operator == nil { - out.RawString("null") - } else { - out.String(string(*in.Operator)) - } - } - { - const prefix string = ",\"scopeName\":" - out.RawString(prefix) - if in.ScopeName == nil { - out.RawString("null") - } else { - out.String(string(*in.ScopeName)) - } - } - if len(in.Values) != 0 { - const prefix string = ",\"values\":" - out.RawString(prefix) - { - out.RawByte('[') - for v5, v6 := range in.Values { - if v5 > 0 { - out.RawByte(',') - } - out.String(string(v6)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scoped_resource_selector_requirement.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scoped_resource_selector_requirement.go index bd5c817..7bd0675 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scoped_resource_selector_requirement.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scoped_resource_selector_requirement.go @@ -11,14 +11,10 @@ package v1 type ScopedResourceSelectorRequirement struct { // Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. - // - // // Required: true Operator *string `json:"operator"` // The name of the scope that the selector applies to. - // - // // Required: true ScopeName *string `json:"scopeName"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scoped_resource_selector_requirement_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scoped_resource_selector_requirement_easyjson.go deleted file mode 100644 index 9598817..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scoped_resource_selector_requirement_easyjson.go +++ /dev/null @@ -1,153 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson5a4557c5DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ScopedResourceSelectorRequirement) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "operator": - if in.IsNull() { - in.Skip() - out.Operator = nil - } else { - if out.Operator == nil { - out.Operator = new(string) - } - *out.Operator = string(in.String()) - } - case "scopeName": - if in.IsNull() { - in.Skip() - out.ScopeName = nil - } else { - if out.ScopeName == nil { - out.ScopeName = new(string) - } - *out.ScopeName = string(in.String()) - } - case "values": - if in.IsNull() { - in.Skip() - out.Values = nil - } else { - in.Delim('[') - if out.Values == nil { - if !in.IsDelim(']') { - out.Values = make([]string, 0, 4) - } else { - out.Values = []string{} - } - } else { - out.Values = (out.Values)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Values = append(out.Values, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson5a4557c5EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ScopedResourceSelectorRequirement) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"operator\":" - out.RawString(prefix[1:]) - if in.Operator == nil { - out.RawString("null") - } else { - out.String(string(*in.Operator)) - } - } - { - const prefix string = ",\"scopeName\":" - out.RawString(prefix) - if in.ScopeName == nil { - out.RawString("null") - } else { - out.String(string(*in.ScopeName)) - } - } - if len(in.Values) != 0 { - const prefix string = ",\"values\":" - out.RawString(prefix) - { - out.RawByte('[') - for v2, v3 := range in.Values { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ScopedResourceSelectorRequirement) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson5a4557c5EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ScopedResourceSelectorRequirement) MarshalEasyJSON(w *jwriter.Writer) { - easyjson5a4557c5EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ScopedResourceSelectorRequirement) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson5a4557c5DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ScopedResourceSelectorRequirement) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson5a4557c5DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/se_linux_options_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/se_linux_options_easyjson.go deleted file mode 100644 index f7449a0..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/se_linux_options_easyjson.go +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonA0bebc24DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *SELinuxOptions) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "level": - out.Level = string(in.String()) - case "role": - out.Role = string(in.String()) - case "type": - out.Type = string(in.String()) - case "user": - out.User = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA0bebc24EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in SELinuxOptions) { - out.RawByte('{') - first := true - _ = first - if in.Level != "" { - const prefix string = ",\"level\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Level)) - } - if in.Role != "" { - const prefix string = ",\"role\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Role)) - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - if in.User != "" { - const prefix string = ",\"user\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.User)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SELinuxOptions) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonA0bebc24EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SELinuxOptions) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonA0bebc24EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SELinuxOptions) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonA0bebc24DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SELinuxOptions) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonA0bebc24DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/seccomp_profile.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/seccomp_profile.go index 23e4985..e395515 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/seccomp_profile.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/seccomp_profile.go @@ -16,8 +16,6 @@ type SeccompProfile struct { // type indicates which kind of seccomp profile will be applied. Valid options are: // // Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied. - // - // // Required: true Type *string `json:"type"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/seccomp_profile_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/seccomp_profile_easyjson.go deleted file mode 100644 index d94336d..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/seccomp_profile_easyjson.go +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson1b5b9e6eDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *SeccompProfile) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "localhostProfile": - out.LocalhostProfile = string(in.String()) - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1b5b9e6eEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in SeccompProfile) { - out.RawByte('{') - first := true - _ = first - if in.LocalhostProfile != "" { - const prefix string = ",\"localhostProfile\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.LocalhostProfile)) - } - { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SeccompProfile) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson1b5b9e6eEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SeccompProfile) MarshalEasyJSON(w *jwriter.Writer) { - easyjson1b5b9e6eEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SeccompProfile) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson1b5b9e6eDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SeccompProfile) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson1b5b9e6eDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_easyjson.go deleted file mode 100644 index 4c3be9f..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_easyjson.go +++ /dev/null @@ -1,237 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - strfmt "github.com/go-openapi/strfmt" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson82929020DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Secret) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "data": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Data = make(map[string]strfmt.Base64) - } else { - out.Data = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v1 strfmt.Base64 - if in.IsNull() { - in.Skip() - v1 = nil - } else { - v1 = in.Bytes() - } - (out.Data)[key] = v1 - in.WantComma() - } - in.Delim('}') - } - case "immutable": - out.Immutable = bool(in.Bool()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "stringData": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.StringData = make(map[string]string) - } else { - out.StringData = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v3 string - v3 = string(in.String()) - (out.StringData)[key] = v3 - in.WantComma() - } - in.Delim('}') - } - case "type": - out.Type = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson82929020EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Secret) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if len(in.Data) != 0 { - const prefix string = ",\"data\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v4First := true - for v4Name, v4Value := range in.Data { - if v4First { - v4First = false - } else { - out.RawByte(',') - } - out.String(string(v4Name)) - out.RawByte(':') - out.Base64Bytes(v4Value) - } - out.RawByte('}') - } - } - if in.Immutable { - const prefix string = ",\"immutable\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Immutable)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if len(in.StringData) != 0 { - const prefix string = ",\"stringData\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v7First := true - for v7Name, v7Value := range in.StringData { - if v7First { - v7First = false - } else { - out.RawByte(',') - } - out.String(string(v7Name)) - out.RawByte(':') - out.String(string(v7Value)) - } - out.RawByte('}') - } - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Secret) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson82929020EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Secret) MarshalEasyJSON(w *jwriter.Writer) { - easyjson82929020EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Secret) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson82929020DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Secret) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson82929020DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_env_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_env_source_easyjson.go deleted file mode 100644 index d2265ff..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_env_source_easyjson.go +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonD833ee7eDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *SecretEnvSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "optional": - out.Optional = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonD833ee7eEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in SecretEnvSource) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Optional { - const prefix string = ",\"optional\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Optional)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SecretEnvSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonD833ee7eEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SecretEnvSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonD833ee7eEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SecretEnvSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonD833ee7eDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SecretEnvSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonD833ee7eDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_key_selector_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_key_selector_easyjson.go deleted file mode 100644 index 4e81394..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_key_selector_easyjson.go +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE8b2103eDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *SecretKeySelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "name": - out.Name = string(in.String()) - case "optional": - out.Optional = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE8b2103eEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in SecretKeySelector) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"key\":" - out.RawString(prefix[1:]) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - if in.Name != "" { - const prefix string = ",\"name\":" - out.RawString(prefix) - out.String(string(in.Name)) - } - if in.Optional { - const prefix string = ",\"optional\":" - out.RawString(prefix) - out.Bool(bool(in.Optional)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SecretKeySelector) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE8b2103eEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SecretKeySelector) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE8b2103eEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SecretKeySelector) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE8b2103eDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SecretKeySelector) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE8b2103eDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_list_easyjson.go deleted file mode 100644 index 99830e5..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson573c0b21DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *SecretList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*Secret, 0, 8) - } else { - out.Items = []*Secret{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *Secret - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(Secret) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson573c0b21EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in SecretList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SecretList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson573c0b21EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SecretList) MarshalEasyJSON(w *jwriter.Writer) { - easyjson573c0b21EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SecretList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson573c0b21DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SecretList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson573c0b21DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_projection_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_projection_easyjson.go deleted file mode 100644 index 73ac996..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_projection_easyjson.go +++ /dev/null @@ -1,152 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson6f3b96f6DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *SecretProjection) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*KeyToPath, 0, 8) - } else { - out.Items = []*KeyToPath{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *KeyToPath - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(KeyToPath) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "name": - out.Name = string(in.String()) - case "optional": - out.Optional = bool(in.Bool()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6f3b96f6EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in SecretProjection) { - out.RawByte('{') - first := true - _ = first - if len(in.Items) != 0 { - const prefix string = ",\"items\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Name != "" { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Name)) - } - if in.Optional { - const prefix string = ",\"optional\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Optional)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SecretProjection) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson6f3b96f6EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SecretProjection) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6f3b96f6EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SecretProjection) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson6f3b96f6DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SecretProjection) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6f3b96f6DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_reference_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_reference_easyjson.go deleted file mode 100644 index 00ac9c9..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_reference_easyjson.go +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonB3094536DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *SecretReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - out.Name = string(in.String()) - case "namespace": - out.Namespace = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB3094536EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in SecretReference) { - out.RawByte('{') - first := true - _ = first - if in.Name != "" { - const prefix string = ",\"name\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Name)) - } - if in.Namespace != "" { - const prefix string = ",\"namespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Namespace)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SecretReference) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonB3094536EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SecretReference) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonB3094536EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SecretReference) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonB3094536DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SecretReference) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonB3094536DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_volume_source_easyjson.go deleted file mode 100644 index 4acdf5a..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_volume_source_easyjson.go +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonAe447f1bDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *SecretVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "defaultMode": - out.DefaultMode = int32(in.Int32()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*KeyToPath, 0, 8) - } else { - out.Items = []*KeyToPath{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *KeyToPath - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(KeyToPath) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "optional": - out.Optional = bool(in.Bool()) - case "secretName": - out.SecretName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonAe447f1bEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in SecretVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.DefaultMode != 0 { - const prefix string = ",\"defaultMode\":" - first = false - out.RawString(prefix[1:]) - out.Int32(int32(in.DefaultMode)) - } - if len(in.Items) != 0 { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Optional { - const prefix string = ",\"optional\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Optional)) - } - if in.SecretName != "" { - const prefix string = ",\"secretName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.SecretName)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SecretVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonAe447f1bEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SecretVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonAe447f1bEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SecretVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonAe447f1bDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SecretVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonAe447f1bDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/security_context_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/security_context_easyjson.go deleted file mode 100644 index a0d6e19..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/security_context_easyjson.go +++ /dev/null @@ -1,317 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson2dce4aeDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *SecurityContext) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "allowPrivilegeEscalation": - out.AllowPrivilegeEscalation = bool(in.Bool()) - case "capabilities": - if in.IsNull() { - in.Skip() - out.Capabilities = nil - } else { - if out.Capabilities == nil { - out.Capabilities = new(Capabilities) - } - (*out.Capabilities).UnmarshalEasyJSON(in) - } - case "privileged": - out.Privileged = bool(in.Bool()) - case "procMount": - out.ProcMount = string(in.String()) - case "readOnlyRootFilesystem": - out.ReadOnlyRootFilesystem = bool(in.Bool()) - case "runAsGroup": - out.RunAsGroup = int64(in.Int64()) - case "runAsNonRoot": - out.RunAsNonRoot = bool(in.Bool()) - case "runAsUser": - out.RunAsUser = int64(in.Int64()) - case "seLinuxOptions": - if in.IsNull() { - in.Skip() - out.SELinuxOptions = nil - } else { - if out.SELinuxOptions == nil { - out.SELinuxOptions = new(SELinuxOptions) - } - (*out.SELinuxOptions).UnmarshalEasyJSON(in) - } - case "seccompProfile": - if in.IsNull() { - in.Skip() - out.SeccompProfile = nil - } else { - if out.SeccompProfile == nil { - out.SeccompProfile = new(SeccompProfile) - } - (*out.SeccompProfile).UnmarshalEasyJSON(in) - } - case "windowsOptions": - if in.IsNull() { - in.Skip() - out.WindowsOptions = nil - } else { - if out.WindowsOptions == nil { - out.WindowsOptions = new(WindowsSecurityContextOptions) - } - easyjson2dce4aeDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.WindowsOptions) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2dce4aeEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in SecurityContext) { - out.RawByte('{') - first := true - _ = first - if in.AllowPrivilegeEscalation { - const prefix string = ",\"allowPrivilegeEscalation\":" - first = false - out.RawString(prefix[1:]) - out.Bool(bool(in.AllowPrivilegeEscalation)) - } - if in.Capabilities != nil { - const prefix string = ",\"capabilities\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Capabilities).MarshalEasyJSON(out) - } - if in.Privileged { - const prefix string = ",\"privileged\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.Privileged)) - } - if in.ProcMount != "" { - const prefix string = ",\"procMount\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ProcMount)) - } - if in.ReadOnlyRootFilesystem { - const prefix string = ",\"readOnlyRootFilesystem\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnlyRootFilesystem)) - } - if in.RunAsGroup != 0 { - const prefix string = ",\"runAsGroup\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.RunAsGroup)) - } - if in.RunAsNonRoot { - const prefix string = ",\"runAsNonRoot\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.RunAsNonRoot)) - } - if in.RunAsUser != 0 { - const prefix string = ",\"runAsUser\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.RunAsUser)) - } - if in.SELinuxOptions != nil { - const prefix string = ",\"seLinuxOptions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.SELinuxOptions).MarshalEasyJSON(out) - } - if in.SeccompProfile != nil { - const prefix string = ",\"seccompProfile\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.SeccompProfile).MarshalEasyJSON(out) - } - if in.WindowsOptions != nil { - const prefix string = ",\"windowsOptions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson2dce4aeEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.WindowsOptions) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SecurityContext) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson2dce4aeEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SecurityContext) MarshalEasyJSON(w *jwriter.Writer) { - easyjson2dce4aeEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SecurityContext) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson2dce4aeDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SecurityContext) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson2dce4aeDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson2dce4aeDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *WindowsSecurityContextOptions) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "gmsaCredentialSpec": - out.GmsaCredentialSpec = string(in.String()) - case "gmsaCredentialSpecName": - out.GmsaCredentialSpecName = string(in.String()) - case "hostProcess": - out.HostProcess = bool(in.Bool()) - case "runAsUserName": - out.RunAsUserName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2dce4aeEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in WindowsSecurityContextOptions) { - out.RawByte('{') - first := true - _ = first - if in.GmsaCredentialSpec != "" { - const prefix string = ",\"gmsaCredentialSpec\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.GmsaCredentialSpec)) - } - if in.GmsaCredentialSpecName != "" { - const prefix string = ",\"gmsaCredentialSpecName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.GmsaCredentialSpecName)) - } - if in.HostProcess { - const prefix string = ",\"hostProcess\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.HostProcess)) - } - if in.RunAsUserName != "" { - const prefix string = ",\"runAsUserName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.RunAsUserName)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_easyjson.go deleted file mode 100644 index 271ebec..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_easyjson.go +++ /dev/null @@ -1,239 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson3d7129e3DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ServiceAccount) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "automountServiceAccountToken": - out.AutomountServiceAccountToken = bool(in.Bool()) - case "imagePullSecrets": - if in.IsNull() { - in.Skip() - out.ImagePullSecrets = nil - } else { - in.Delim('[') - if out.ImagePullSecrets == nil { - if !in.IsDelim(']') { - out.ImagePullSecrets = make([]*LocalObjectReference, 0, 8) - } else { - out.ImagePullSecrets = []*LocalObjectReference{} - } - } else { - out.ImagePullSecrets = (out.ImagePullSecrets)[:0] - } - for !in.IsDelim(']') { - var v1 *LocalObjectReference - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(LocalObjectReference) - } - (*v1).UnmarshalEasyJSON(in) - } - out.ImagePullSecrets = append(out.ImagePullSecrets, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "secrets": - if in.IsNull() { - in.Skip() - out.Secrets = nil - } else { - in.Delim('[') - if out.Secrets == nil { - if !in.IsDelim(']') { - out.Secrets = make([]*ObjectReference, 0, 8) - } else { - out.Secrets = []*ObjectReference{} - } - } else { - out.Secrets = (out.Secrets)[:0] - } - for !in.IsDelim(']') { - var v2 *ObjectReference - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(ObjectReference) - } - (*v2).UnmarshalEasyJSON(in) - } - out.Secrets = append(out.Secrets, v2) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson3d7129e3EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ServiceAccount) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.AutomountServiceAccountToken { - const prefix string = ",\"automountServiceAccountToken\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.AutomountServiceAccountToken)) - } - if len(in.ImagePullSecrets) != 0 { - const prefix string = ",\"imagePullSecrets\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v3, v4 := range in.ImagePullSecrets { - if v3 > 0 { - out.RawByte(',') - } - if v4 == nil { - out.RawString("null") - } else { - (*v4).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if len(in.Secrets) != 0 { - const prefix string = ",\"secrets\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v5, v6 := range in.Secrets { - if v5 > 0 { - out.RawByte(',') - } - if v6 == nil { - out.RawString("null") - } else { - (*v6).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ServiceAccount) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson3d7129e3EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ServiceAccount) MarshalEasyJSON(w *jwriter.Writer) { - easyjson3d7129e3EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ServiceAccount) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson3d7129e3DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ServiceAccount) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson3d7129e3DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_list_easyjson.go deleted file mode 100644 index 792a574..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson1b9d9278DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ServiceAccountList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*ServiceAccount, 0, 8) - } else { - out.Items = []*ServiceAccount{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *ServiceAccount - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ServiceAccount) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1b9d9278EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ServiceAccountList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ServiceAccountList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson1b9d9278EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ServiceAccountList) MarshalEasyJSON(w *jwriter.Writer) { - easyjson1b9d9278EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ServiceAccountList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson1b9d9278DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ServiceAccountList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson1b9d9278DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_token_projection_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_token_projection_easyjson.go deleted file mode 100644 index 9ecee76..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_token_projection_easyjson.go +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson91088bddDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ServiceAccountTokenProjection) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "audience": - out.Audience = string(in.String()) - case "expirationSeconds": - out.ExpirationSeconds = int64(in.Int64()) - case "path": - if in.IsNull() { - in.Skip() - out.Path = nil - } else { - if out.Path == nil { - out.Path = new(string) - } - *out.Path = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson91088bddEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ServiceAccountTokenProjection) { - out.RawByte('{') - first := true - _ = first - if in.Audience != "" { - const prefix string = ",\"audience\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Audience)) - } - if in.ExpirationSeconds != 0 { - const prefix string = ",\"expirationSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.ExpirationSeconds)) - } - { - const prefix string = ",\"path\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Path == nil { - out.RawString("null") - } else { - out.String(string(*in.Path)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ServiceAccountTokenProjection) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson91088bddEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ServiceAccountTokenProjection) MarshalEasyJSON(w *jwriter.Writer) { - easyjson91088bddEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ServiceAccountTokenProjection) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson91088bddDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ServiceAccountTokenProjection) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson91088bddDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_easyjson.go deleted file mode 100644 index 2c470e9..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_easyjson.go +++ /dev/null @@ -1,890 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonCd93bc43DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Service) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ObjectMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "spec": - if in.IsNull() { - in.Skip() - out.Spec = nil - } else { - if out.Spec == nil { - out.Spec = new(ServiceSpec) - } - easyjsonCd93bc43DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.Spec) - } - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(ServiceStatus) - } - easyjsonCd93bc43DecodeGithubComKubewardenK8sObjectsApiCoreV12(in, out.Status) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCd93bc43EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Service) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Spec != nil { - const prefix string = ",\"spec\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonCd93bc43EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.Spec) - } - if in.Status != nil { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonCd93bc43EncodeGithubComKubewardenK8sObjectsApiCoreV12(out, *in.Status) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Service) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonCd93bc43EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Service) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonCd93bc43EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Service) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonCd93bc43DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Service) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonCd93bc43DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjsonCd93bc43DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lexer, out *ServiceStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*_v1.Condition, 0, 8) - } else { - out.Conditions = []*_v1.Condition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *_v1.Condition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(_v1.Condition) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "loadBalancer": - if in.IsNull() { - in.Skip() - out.LoadBalancer = nil - } else { - if out.LoadBalancer == nil { - out.LoadBalancer = new(LoadBalancerStatus) - } - (*out.LoadBalancer).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCd93bc43EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.Writer, in ServiceStatus) { - out.RawByte('{') - first := true - _ = first - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.LoadBalancer != nil { - const prefix string = ",\"loadBalancer\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.LoadBalancer).MarshalEasyJSON(out) - } - out.RawByte('}') -} -func easyjsonCd93bc43DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *ServiceSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "allocateLoadBalancerNodePorts": - out.AllocateLoadBalancerNodePorts = bool(in.Bool()) - case "clusterIP": - out.ClusterIP = string(in.String()) - case "clusterIPs": - if in.IsNull() { - in.Skip() - out.ClusterIPs = nil - } else { - in.Delim('[') - if out.ClusterIPs == nil { - if !in.IsDelim(']') { - out.ClusterIPs = make([]string, 0, 4) - } else { - out.ClusterIPs = []string{} - } - } else { - out.ClusterIPs = (out.ClusterIPs)[:0] - } - for !in.IsDelim(']') { - var v4 string - v4 = string(in.String()) - out.ClusterIPs = append(out.ClusterIPs, v4) - in.WantComma() - } - in.Delim(']') - } - case "externalIPs": - if in.IsNull() { - in.Skip() - out.ExternalIPs = nil - } else { - in.Delim('[') - if out.ExternalIPs == nil { - if !in.IsDelim(']') { - out.ExternalIPs = make([]string, 0, 4) - } else { - out.ExternalIPs = []string{} - } - } else { - out.ExternalIPs = (out.ExternalIPs)[:0] - } - for !in.IsDelim(']') { - var v5 string - v5 = string(in.String()) - out.ExternalIPs = append(out.ExternalIPs, v5) - in.WantComma() - } - in.Delim(']') - } - case "externalName": - out.ExternalName = string(in.String()) - case "externalTrafficPolicy": - out.ExternalTrafficPolicy = string(in.String()) - case "healthCheckNodePort": - out.HealthCheckNodePort = int32(in.Int32()) - case "internalTrafficPolicy": - out.InternalTrafficPolicy = string(in.String()) - case "ipFamilies": - if in.IsNull() { - in.Skip() - out.IPFamilies = nil - } else { - in.Delim('[') - if out.IPFamilies == nil { - if !in.IsDelim(']') { - out.IPFamilies = make([]string, 0, 4) - } else { - out.IPFamilies = []string{} - } - } else { - out.IPFamilies = (out.IPFamilies)[:0] - } - for !in.IsDelim(']') { - var v6 string - v6 = string(in.String()) - out.IPFamilies = append(out.IPFamilies, v6) - in.WantComma() - } - in.Delim(']') - } - case "ipFamilyPolicy": - out.IPFamilyPolicy = string(in.String()) - case "loadBalancerClass": - out.LoadBalancerClass = string(in.String()) - case "loadBalancerIP": - out.LoadBalancerIP = string(in.String()) - case "loadBalancerSourceRanges": - if in.IsNull() { - in.Skip() - out.LoadBalancerSourceRanges = nil - } else { - in.Delim('[') - if out.LoadBalancerSourceRanges == nil { - if !in.IsDelim(']') { - out.LoadBalancerSourceRanges = make([]string, 0, 4) - } else { - out.LoadBalancerSourceRanges = []string{} - } - } else { - out.LoadBalancerSourceRanges = (out.LoadBalancerSourceRanges)[:0] - } - for !in.IsDelim(']') { - var v7 string - v7 = string(in.String()) - out.LoadBalancerSourceRanges = append(out.LoadBalancerSourceRanges, v7) - in.WantComma() - } - in.Delim(']') - } - case "ports": - if in.IsNull() { - in.Skip() - out.Ports = nil - } else { - in.Delim('[') - if out.Ports == nil { - if !in.IsDelim(']') { - out.Ports = make([]*ServicePort, 0, 8) - } else { - out.Ports = []*ServicePort{} - } - } else { - out.Ports = (out.Ports)[:0] - } - for !in.IsDelim(']') { - var v8 *ServicePort - if in.IsNull() { - in.Skip() - v8 = nil - } else { - if v8 == nil { - v8 = new(ServicePort) - } - easyjsonCd93bc43DecodeGithubComKubewardenK8sObjectsApiCoreV13(in, v8) - } - out.Ports = append(out.Ports, v8) - in.WantComma() - } - in.Delim(']') - } - case "publishNotReadyAddresses": - out.PublishNotReadyAddresses = bool(in.Bool()) - case "selector": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Selector = make(map[string]string) - } else { - out.Selector = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v9 string - v9 = string(in.String()) - (out.Selector)[key] = v9 - in.WantComma() - } - in.Delim('}') - } - case "sessionAffinity": - out.SessionAffinity = string(in.String()) - case "sessionAffinityConfig": - if in.IsNull() { - in.Skip() - out.SessionAffinityConfig = nil - } else { - if out.SessionAffinityConfig == nil { - out.SessionAffinityConfig = new(SessionAffinityConfig) - } - easyjsonCd93bc43DecodeGithubComKubewardenK8sObjectsApiCoreV14(in, out.SessionAffinityConfig) - } - case "type": - out.Type = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCd93bc43EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in ServiceSpec) { - out.RawByte('{') - first := true - _ = first - if in.AllocateLoadBalancerNodePorts { - const prefix string = ",\"allocateLoadBalancerNodePorts\":" - first = false - out.RawString(prefix[1:]) - out.Bool(bool(in.AllocateLoadBalancerNodePorts)) - } - if in.ClusterIP != "" { - const prefix string = ",\"clusterIP\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ClusterIP)) - } - if len(in.ClusterIPs) != 0 { - const prefix string = ",\"clusterIPs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v10, v11 := range in.ClusterIPs { - if v10 > 0 { - out.RawByte(',') - } - out.String(string(v11)) - } - out.RawByte(']') - } - } - if len(in.ExternalIPs) != 0 { - const prefix string = ",\"externalIPs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v12, v13 := range in.ExternalIPs { - if v12 > 0 { - out.RawByte(',') - } - out.String(string(v13)) - } - out.RawByte(']') - } - } - if in.ExternalName != "" { - const prefix string = ",\"externalName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ExternalName)) - } - if in.ExternalTrafficPolicy != "" { - const prefix string = ",\"externalTrafficPolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ExternalTrafficPolicy)) - } - if in.HealthCheckNodePort != 0 { - const prefix string = ",\"healthCheckNodePort\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.HealthCheckNodePort)) - } - if in.InternalTrafficPolicy != "" { - const prefix string = ",\"internalTrafficPolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.InternalTrafficPolicy)) - } - if len(in.IPFamilies) != 0 { - const prefix string = ",\"ipFamilies\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v14, v15 := range in.IPFamilies { - if v14 > 0 { - out.RawByte(',') - } - out.String(string(v15)) - } - out.RawByte(']') - } - } - if in.IPFamilyPolicy != "" { - const prefix string = ",\"ipFamilyPolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.IPFamilyPolicy)) - } - if in.LoadBalancerClass != "" { - const prefix string = ",\"loadBalancerClass\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.LoadBalancerClass)) - } - if in.LoadBalancerIP != "" { - const prefix string = ",\"loadBalancerIP\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.LoadBalancerIP)) - } - if len(in.LoadBalancerSourceRanges) != 0 { - const prefix string = ",\"loadBalancerSourceRanges\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v16, v17 := range in.LoadBalancerSourceRanges { - if v16 > 0 { - out.RawByte(',') - } - out.String(string(v17)) - } - out.RawByte(']') - } - } - if len(in.Ports) != 0 { - const prefix string = ",\"ports\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v18, v19 := range in.Ports { - if v18 > 0 { - out.RawByte(',') - } - if v19 == nil { - out.RawString("null") - } else { - easyjsonCd93bc43EncodeGithubComKubewardenK8sObjectsApiCoreV13(out, *v19) - } - } - out.RawByte(']') - } - } - if in.PublishNotReadyAddresses { - const prefix string = ",\"publishNotReadyAddresses\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.PublishNotReadyAddresses)) - } - if len(in.Selector) != 0 { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v20First := true - for v20Name, v20Value := range in.Selector { - if v20First { - v20First = false - } else { - out.RawByte(',') - } - out.String(string(v20Name)) - out.RawByte(':') - out.String(string(v20Value)) - } - out.RawByte('}') - } - } - if in.SessionAffinity != "" { - const prefix string = ",\"sessionAffinity\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.SessionAffinity)) - } - if in.SessionAffinityConfig != nil { - const prefix string = ",\"sessionAffinityConfig\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjsonCd93bc43EncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *in.SessionAffinityConfig) - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - out.RawByte('}') -} -func easyjsonCd93bc43DecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Lexer, out *SessionAffinityConfig) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "clientIP": - if in.IsNull() { - in.Skip() - out.ClientIP = nil - } else { - if out.ClientIP == nil { - out.ClientIP = new(ClientIPConfig) - } - (*out.ClientIP).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCd93bc43EncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter.Writer, in SessionAffinityConfig) { - out.RawByte('{') - first := true - _ = first - if in.ClientIP != nil { - const prefix string = ",\"clientIP\":" - first = false - out.RawString(prefix[1:]) - (*in.ClientIP).MarshalEasyJSON(out) - } - out.RawByte('}') -} -func easyjsonCd93bc43DecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lexer, out *ServicePort) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "appProtocol": - out.AppProtocol = string(in.String()) - case "name": - out.Name = string(in.String()) - case "nodePort": - out.NodePort = int32(in.Int32()) - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(int32) - } - *out.Port = int32(in.Int32()) - } - case "protocol": - out.Protocol = string(in.String()) - case "targetPort": - if in.IsNull() { - in.Skip() - out.TargetPort = nil - } else { - if out.TargetPort == nil { - out.TargetPort = new(intstr.IntOrString) - } - *out.TargetPort = intstr.IntOrString(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonCd93bc43EncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.Writer, in ServicePort) { - out.RawByte('{') - first := true - _ = first - if in.AppProtocol != "" { - const prefix string = ",\"appProtocol\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.AppProtocol)) - } - if in.Name != "" { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Name)) - } - if in.NodePort != 0 { - const prefix string = ",\"nodePort\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.NodePort)) - } - { - const prefix string = ",\"port\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Port == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Port)) - } - } - if in.Protocol != "" { - const prefix string = ",\"protocol\":" - out.RawString(prefix) - out.String(string(in.Protocol)) - } - if in.TargetPort != nil { - const prefix string = ",\"targetPort\":" - out.RawString(prefix) - out.String(string(*in.TargetPort)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_list_easyjson.go deleted file mode 100644 index 21e0253..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_list_easyjson.go +++ /dev/null @@ -1,165 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson9e5fb298DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ServiceList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "items": - if in.IsNull() { - in.Skip() - out.Items = nil - } else { - in.Delim('[') - if out.Items == nil { - if !in.IsDelim(']') { - out.Items = make([]*Service, 0, 8) - } else { - out.Items = []*Service{} - } - } else { - out.Items = (out.Items)[:0] - } - for !in.IsDelim(']') { - var v1 *Service - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(Service) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Items = append(out.Items, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(_v1.ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9e5fb298EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ServiceList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"items\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Items == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Items { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - out.RawString(prefix) - (*in.Metadata).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ServiceList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson9e5fb298EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ServiceList) MarshalEasyJSON(w *jwriter.Writer) { - easyjson9e5fb298EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ServiceList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson9e5fb298DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ServiceList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson9e5fb298DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_port.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_port.go index 6ddd4e4..eab9c65 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_port.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_port.go @@ -28,8 +28,6 @@ type ServicePort struct { Port *int32 `json:"port"` // The IP protocol for this port. Supports "TCP", "UDP", and "SCTP". Default is TCP. - // - // Protocol string `json:"protocol,omitempty"` // Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_port_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_port_easyjson.go deleted file mode 100644 index 73e222b..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_port_easyjson.go +++ /dev/null @@ -1,157 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonAe6c9c81DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ServicePort) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "appProtocol": - out.AppProtocol = string(in.String()) - case "name": - out.Name = string(in.String()) - case "nodePort": - out.NodePort = int32(in.Int32()) - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(int32) - } - *out.Port = int32(in.Int32()) - } - case "protocol": - out.Protocol = string(in.String()) - case "targetPort": - if in.IsNull() { - in.Skip() - out.TargetPort = nil - } else { - if out.TargetPort == nil { - out.TargetPort = new(intstr.IntOrString) - } - *out.TargetPort = intstr.IntOrString(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonAe6c9c81EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ServicePort) { - out.RawByte('{') - first := true - _ = first - if in.AppProtocol != "" { - const prefix string = ",\"appProtocol\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.AppProtocol)) - } - if in.Name != "" { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Name)) - } - if in.NodePort != 0 { - const prefix string = ",\"nodePort\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.NodePort)) - } - { - const prefix string = ",\"port\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Port == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Port)) - } - } - if in.Protocol != "" { - const prefix string = ",\"protocol\":" - out.RawString(prefix) - out.String(string(in.Protocol)) - } - if in.TargetPort != nil { - const prefix string = ",\"targetPort\":" - out.RawString(prefix) - out.String(string(*in.TargetPort)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ServicePort) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonAe6c9c81EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ServicePort) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonAe6c9c81EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ServicePort) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonAe6c9c81DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ServicePort) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonAe6c9c81DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_spec.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_spec.go index e352cb9..427709b 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_spec.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_spec.go @@ -27,15 +27,13 @@ type ServiceSpec struct { // externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName". ExternalName string `json:"externalName,omitempty"` - // externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. "Local" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. "Cluster" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. - // - // + // externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's "externally-facing" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to "Local", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get "Cluster" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node. ExternalTrafficPolicy string `json:"externalTrafficPolicy,omitempty"` - // healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). + // healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set. HealthCheckNodePort int32 `json:"healthCheckNodePort,omitempty"` - // InternalTrafficPolicy specifies if the cluster internal traffic should be routed to all endpoints or node-local endpoints only. "Cluster" routes internal traffic to a Service to all endpoints. "Local" routes traffic to node-local endpoints only, traffic is dropped if no node-local endpoints are ready. The default value is "Cluster". + // InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to "Local", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, "Cluster", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). InternalTrafficPolicy string `json:"internalTrafficPolicy,omitempty"` // IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are "IPv4" and "IPv6". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to "headless" services. This field will be wiped when updating a Service to type ExternalName. @@ -65,15 +63,11 @@ type ServiceSpec struct { Selector map[string]string `json:"selector,omitempty"` // Supports "ClientIP" and "None". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies - // - // SessionAffinity string `json:"sessionAffinity,omitempty"` // sessionAffinityConfig contains the configurations of session affinity. SessionAffinityConfig *SessionAffinityConfig `json:"sessionAffinityConfig,omitempty"` // type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. "ClusterIP" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is "None", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. "NodePort" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. "LoadBalancer" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. "ExternalName" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types - // - // Type string `json:"type,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_spec_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_spec_easyjson.go deleted file mode 100644 index d37750f..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_spec_easyjson.go +++ /dev/null @@ -1,555 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson9d06a251DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ServiceSpec) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "allocateLoadBalancerNodePorts": - out.AllocateLoadBalancerNodePorts = bool(in.Bool()) - case "clusterIP": - out.ClusterIP = string(in.String()) - case "clusterIPs": - if in.IsNull() { - in.Skip() - out.ClusterIPs = nil - } else { - in.Delim('[') - if out.ClusterIPs == nil { - if !in.IsDelim(']') { - out.ClusterIPs = make([]string, 0, 4) - } else { - out.ClusterIPs = []string{} - } - } else { - out.ClusterIPs = (out.ClusterIPs)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.ClusterIPs = append(out.ClusterIPs, v1) - in.WantComma() - } - in.Delim(']') - } - case "externalIPs": - if in.IsNull() { - in.Skip() - out.ExternalIPs = nil - } else { - in.Delim('[') - if out.ExternalIPs == nil { - if !in.IsDelim(']') { - out.ExternalIPs = make([]string, 0, 4) - } else { - out.ExternalIPs = []string{} - } - } else { - out.ExternalIPs = (out.ExternalIPs)[:0] - } - for !in.IsDelim(']') { - var v2 string - v2 = string(in.String()) - out.ExternalIPs = append(out.ExternalIPs, v2) - in.WantComma() - } - in.Delim(']') - } - case "externalName": - out.ExternalName = string(in.String()) - case "externalTrafficPolicy": - out.ExternalTrafficPolicy = string(in.String()) - case "healthCheckNodePort": - out.HealthCheckNodePort = int32(in.Int32()) - case "internalTrafficPolicy": - out.InternalTrafficPolicy = string(in.String()) - case "ipFamilies": - if in.IsNull() { - in.Skip() - out.IPFamilies = nil - } else { - in.Delim('[') - if out.IPFamilies == nil { - if !in.IsDelim(']') { - out.IPFamilies = make([]string, 0, 4) - } else { - out.IPFamilies = []string{} - } - } else { - out.IPFamilies = (out.IPFamilies)[:0] - } - for !in.IsDelim(']') { - var v3 string - v3 = string(in.String()) - out.IPFamilies = append(out.IPFamilies, v3) - in.WantComma() - } - in.Delim(']') - } - case "ipFamilyPolicy": - out.IPFamilyPolicy = string(in.String()) - case "loadBalancerClass": - out.LoadBalancerClass = string(in.String()) - case "loadBalancerIP": - out.LoadBalancerIP = string(in.String()) - case "loadBalancerSourceRanges": - if in.IsNull() { - in.Skip() - out.LoadBalancerSourceRanges = nil - } else { - in.Delim('[') - if out.LoadBalancerSourceRanges == nil { - if !in.IsDelim(']') { - out.LoadBalancerSourceRanges = make([]string, 0, 4) - } else { - out.LoadBalancerSourceRanges = []string{} - } - } else { - out.LoadBalancerSourceRanges = (out.LoadBalancerSourceRanges)[:0] - } - for !in.IsDelim(']') { - var v4 string - v4 = string(in.String()) - out.LoadBalancerSourceRanges = append(out.LoadBalancerSourceRanges, v4) - in.WantComma() - } - in.Delim(']') - } - case "ports": - if in.IsNull() { - in.Skip() - out.Ports = nil - } else { - in.Delim('[') - if out.Ports == nil { - if !in.IsDelim(']') { - out.Ports = make([]*ServicePort, 0, 8) - } else { - out.Ports = []*ServicePort{} - } - } else { - out.Ports = (out.Ports)[:0] - } - for !in.IsDelim(']') { - var v5 *ServicePort - if in.IsNull() { - in.Skip() - v5 = nil - } else { - if v5 == nil { - v5 = new(ServicePort) - } - (*v5).UnmarshalEasyJSON(in) - } - out.Ports = append(out.Ports, v5) - in.WantComma() - } - in.Delim(']') - } - case "publishNotReadyAddresses": - out.PublishNotReadyAddresses = bool(in.Bool()) - case "selector": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Selector = make(map[string]string) - } else { - out.Selector = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v6 string - v6 = string(in.String()) - (out.Selector)[key] = v6 - in.WantComma() - } - in.Delim('}') - } - case "sessionAffinity": - out.SessionAffinity = string(in.String()) - case "sessionAffinityConfig": - if in.IsNull() { - in.Skip() - out.SessionAffinityConfig = nil - } else { - if out.SessionAffinityConfig == nil { - out.SessionAffinityConfig = new(SessionAffinityConfig) - } - easyjson9d06a251DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SessionAffinityConfig) - } - case "type": - out.Type = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9d06a251EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ServiceSpec) { - out.RawByte('{') - first := true - _ = first - if in.AllocateLoadBalancerNodePorts { - const prefix string = ",\"allocateLoadBalancerNodePorts\":" - first = false - out.RawString(prefix[1:]) - out.Bool(bool(in.AllocateLoadBalancerNodePorts)) - } - if in.ClusterIP != "" { - const prefix string = ",\"clusterIP\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ClusterIP)) - } - if len(in.ClusterIPs) != 0 { - const prefix string = ",\"clusterIPs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v7, v8 := range in.ClusterIPs { - if v7 > 0 { - out.RawByte(',') - } - out.String(string(v8)) - } - out.RawByte(']') - } - } - if len(in.ExternalIPs) != 0 { - const prefix string = ",\"externalIPs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v9, v10 := range in.ExternalIPs { - if v9 > 0 { - out.RawByte(',') - } - out.String(string(v10)) - } - out.RawByte(']') - } - } - if in.ExternalName != "" { - const prefix string = ",\"externalName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ExternalName)) - } - if in.ExternalTrafficPolicy != "" { - const prefix string = ",\"externalTrafficPolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ExternalTrafficPolicy)) - } - if in.HealthCheckNodePort != 0 { - const prefix string = ",\"healthCheckNodePort\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.HealthCheckNodePort)) - } - if in.InternalTrafficPolicy != "" { - const prefix string = ",\"internalTrafficPolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.InternalTrafficPolicy)) - } - if len(in.IPFamilies) != 0 { - const prefix string = ",\"ipFamilies\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v11, v12 := range in.IPFamilies { - if v11 > 0 { - out.RawByte(',') - } - out.String(string(v12)) - } - out.RawByte(']') - } - } - if in.IPFamilyPolicy != "" { - const prefix string = ",\"ipFamilyPolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.IPFamilyPolicy)) - } - if in.LoadBalancerClass != "" { - const prefix string = ",\"loadBalancerClass\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.LoadBalancerClass)) - } - if in.LoadBalancerIP != "" { - const prefix string = ",\"loadBalancerIP\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.LoadBalancerIP)) - } - if len(in.LoadBalancerSourceRanges) != 0 { - const prefix string = ",\"loadBalancerSourceRanges\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v13, v14 := range in.LoadBalancerSourceRanges { - if v13 > 0 { - out.RawByte(',') - } - out.String(string(v14)) - } - out.RawByte(']') - } - } - if len(in.Ports) != 0 { - const prefix string = ",\"ports\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v15, v16 := range in.Ports { - if v15 > 0 { - out.RawByte(',') - } - if v16 == nil { - out.RawString("null") - } else { - (*v16).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.PublishNotReadyAddresses { - const prefix string = ",\"publishNotReadyAddresses\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.PublishNotReadyAddresses)) - } - if len(in.Selector) != 0 { - const prefix string = ",\"selector\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v17First := true - for v17Name, v17Value := range in.Selector { - if v17First { - v17First = false - } else { - out.RawByte(',') - } - out.String(string(v17Name)) - out.RawByte(':') - out.String(string(v17Value)) - } - out.RawByte('}') - } - } - if in.SessionAffinity != "" { - const prefix string = ",\"sessionAffinity\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.SessionAffinity)) - } - if in.SessionAffinityConfig != nil { - const prefix string = ",\"sessionAffinityConfig\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson9d06a251EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SessionAffinityConfig) - } - if in.Type != "" { - const prefix string = ",\"type\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Type)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ServiceSpec) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson9d06a251EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ServiceSpec) MarshalEasyJSON(w *jwriter.Writer) { - easyjson9d06a251EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ServiceSpec) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson9d06a251DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ServiceSpec) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson9d06a251DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson9d06a251DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SessionAffinityConfig) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "clientIP": - if in.IsNull() { - in.Skip() - out.ClientIP = nil - } else { - if out.ClientIP == nil { - out.ClientIP = new(ClientIPConfig) - } - (*out.ClientIP).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9d06a251EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SessionAffinityConfig) { - out.RawByte('{') - first := true - _ = first - if in.ClientIP != nil { - const prefix string = ",\"clientIP\":" - first = false - out.RawString(prefix[1:]) - (*in.ClientIP).MarshalEasyJSON(out) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_status_easyjson.go deleted file mode 100644 index a32fe66..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_status_easyjson.go +++ /dev/null @@ -1,149 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson4b13d882DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ServiceStatus) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "conditions": - if in.IsNull() { - in.Skip() - out.Conditions = nil - } else { - in.Delim('[') - if out.Conditions == nil { - if !in.IsDelim(']') { - out.Conditions = make([]*_v1.Condition, 0, 8) - } else { - out.Conditions = []*_v1.Condition{} - } - } else { - out.Conditions = (out.Conditions)[:0] - } - for !in.IsDelim(']') { - var v1 *_v1.Condition - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(_v1.Condition) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Conditions = append(out.Conditions, v1) - in.WantComma() - } - in.Delim(']') - } - case "loadBalancer": - if in.IsNull() { - in.Skip() - out.LoadBalancer = nil - } else { - if out.LoadBalancer == nil { - out.LoadBalancer = new(LoadBalancerStatus) - } - (*out.LoadBalancer).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson4b13d882EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ServiceStatus) { - out.RawByte('{') - first := true - _ = first - if len(in.Conditions) != 0 { - const prefix string = ",\"conditions\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.Conditions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.LoadBalancer != nil { - const prefix string = ",\"loadBalancer\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.LoadBalancer).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ServiceStatus) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson4b13d882EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ServiceStatus) MarshalEasyJSON(w *jwriter.Writer) { - easyjson4b13d882EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ServiceStatus) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson4b13d882DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ServiceStatus) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson4b13d882DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/session_affinity_config_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/session_affinity_config_easyjson.go deleted file mode 100644 index b4a80ad..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/session_affinity_config_easyjson.go +++ /dev/null @@ -1,94 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson38da1406DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *SessionAffinityConfig) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "clientIP": - if in.IsNull() { - in.Skip() - out.ClientIP = nil - } else { - if out.ClientIP == nil { - out.ClientIP = new(ClientIPConfig) - } - (*out.ClientIP).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson38da1406EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in SessionAffinityConfig) { - out.RawByte('{') - first := true - _ = first - if in.ClientIP != nil { - const prefix string = ",\"clientIP\":" - first = false - out.RawString(prefix[1:]) - (*in.ClientIP).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SessionAffinityConfig) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson38da1406EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SessionAffinityConfig) MarshalEasyJSON(w *jwriter.Writer) { - easyjson38da1406EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SessionAffinityConfig) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson38da1406DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SessionAffinityConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson38da1406DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_persistent_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_persistent_volume_source_easyjson.go deleted file mode 100644 index 00f9520..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_persistent_volume_source_easyjson.go +++ /dev/null @@ -1,142 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonAe7aa5dDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *StorageOSPersistentVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(ObjectReference) - } - (*out.SecretRef).UnmarshalEasyJSON(in) - } - case "volumeName": - out.VolumeName = string(in.String()) - case "volumeNamespace": - out.VolumeNamespace = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonAe7aa5dEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in StorageOSPersistentVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.SecretRef).MarshalEasyJSON(out) - } - if in.VolumeName != "" { - const prefix string = ",\"volumeName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeName)) - } - if in.VolumeNamespace != "" { - const prefix string = ",\"volumeNamespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeNamespace)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StorageOSPersistentVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonAe7aa5dEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StorageOSPersistentVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonAe7aa5dEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StorageOSPersistentVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonAe7aa5dDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StorageOSPersistentVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonAe7aa5dDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_volume_source_easyjson.go deleted file mode 100644 index 4950a26..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_volume_source_easyjson.go +++ /dev/null @@ -1,142 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE2bfc1e7DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *StorageOSVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "secretRef": - if in.IsNull() { - in.Skip() - out.SecretRef = nil - } else { - if out.SecretRef == nil { - out.SecretRef = new(LocalObjectReference) - } - (*out.SecretRef).UnmarshalEasyJSON(in) - } - case "volumeName": - out.VolumeName = string(in.String()) - case "volumeNamespace": - out.VolumeNamespace = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE2bfc1e7EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in StorageOSVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.ReadOnly)) - } - if in.SecretRef != nil { - const prefix string = ",\"secretRef\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.SecretRef).MarshalEasyJSON(out) - } - if in.VolumeName != "" { - const prefix string = ",\"volumeName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeName)) - } - if in.VolumeNamespace != "" { - const prefix string = ",\"volumeNamespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.VolumeNamespace)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StorageOSVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE2bfc1e7EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StorageOSVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE2bfc1e7EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StorageOSVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE2bfc1e7DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StorageOSVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE2bfc1e7DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/swagger.json b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/swagger.json index f6be6db..48ac56b 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/swagger.json +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/swagger.json @@ -1 +1 @@ -{"swagger":"2.0","info":{"title":"kubernetes","version":"unversioned"},"paths":{},"definitions":{"AWSElasticBlockStoreVolumeSource":{"description":"Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.","type":"object","required":["volumeID"],"properties":{"fsType":{"description":"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore","type":"string","x-omitempty":true},"partition":{"description":"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).","type":"integer","format":"int32","x-omitempty":true},"readOnly":{"description":"readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore","type":"boolean","x-omitempty":true},"volumeID":{"description":"volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore","type":"string"}}},"Affinity":{"description":"Affinity is a group of affinity scheduling rules.","type":"object","properties":{"nodeAffinity":{"description":"Describes node affinity scheduling rules for the pod.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeAffinity"},"podAffinity":{"description":"Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodAffinity"},"podAntiAffinity":{"description":"Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodAntiAffinity"}}},"AttachedVolume":{"description":"AttachedVolume describes a volume attached to a node","type":"object","required":["name","devicePath"],"properties":{"devicePath":{"description":"DevicePath represents the device path where the volume should be available","type":"string"},"name":{"description":"Name of the attached volume","type":"string"}}},"AzureDiskVolumeSource":{"description":"AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.","type":"object","required":["diskName","diskURI"],"properties":{"cachingMode":{"description":"cachingMode is the Host Caching mode: None, Read Only, Read Write.","type":"string","x-omitempty":true},"diskName":{"description":"diskName is the Name of the data disk in the blob storage","type":"string"},"diskURI":{"description":"diskURI is the URI of data disk in the blob storage","type":"string"},"fsType":{"description":"fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.","type":"string","x-omitempty":true},"kind":{"description":"kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true}}},"AzureFilePersistentVolumeSource":{"description":"AzureFile represents an Azure File Service mount on the host and bind mount to the pod.","type":"object","required":["secretName","shareName"],"properties":{"readOnly":{"description":"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"secretName":{"description":"secretName is the name of secret that contains Azure Storage Account Name and Key","type":"string"},"secretNamespace":{"description":"secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod","type":"string","x-omitempty":true},"shareName":{"description":"shareName is the azure Share Name","type":"string"}}},"AzureFileVolumeSource":{"description":"AzureFile represents an Azure File Service mount on the host and bind mount to the pod.","type":"object","required":["secretName","shareName"],"properties":{"readOnly":{"description":"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"secretName":{"description":"secretName is the name of secret that contains Azure Storage Account Name and Key","type":"string"},"shareName":{"description":"shareName is the azure share Name","type":"string"}}},"Binding":{"description":"Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.","type":"object","required":["target"],"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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"target":{"description":"The target object that you want to bind to the standard object.","$ref":"#/definitions/ObjectReference"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Binding","version":"v1"}]},"CSIPersistentVolumeSource":{"description":"Represents storage that is managed by an external CSI volume driver (Beta feature)","type":"object","required":["driver","volumeHandle"],"properties":{"controllerExpandSecretRef":{"description":"controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"controllerPublishSecretRef":{"description":"controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"driver":{"description":"driver is the name of the driver to use for this volume. Required.","type":"string"},"fsType":{"description":"fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".","type":"string","x-omitempty":true},"nodePublishSecretRef":{"description":"nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"nodeStageSecretRef":{"description":"nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"readOnly":{"description":"readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).","type":"boolean","x-omitempty":true},"volumeAttributes":{"description":"volumeAttributes of the volume to publish.","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true},"volumeHandle":{"description":"volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required.","type":"string"}}},"CSIVolumeSource":{"description":"Represents a source location of a volume to mount, managed by an external CSI driver","type":"object","required":["driver"],"properties":{"driver":{"description":"driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.","type":"string"},"fsType":{"description":"fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.","type":"string","x-omitempty":true},"nodePublishSecretRef":{"description":"nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"},"readOnly":{"description":"readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).","type":"boolean","x-omitempty":true},"volumeAttributes":{"description":"volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"Capabilities":{"description":"Adds and removes POSIX capabilities from running containers.","type":"object","properties":{"add":{"description":"Added capabilities","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"drop":{"description":"Removed capabilities","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"CephFSPersistentVolumeSource":{"description":"Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.","type":"object","required":["monitors"],"properties":{"monitors":{"description":"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","type":"array","items":{"type":"string"}},"path":{"description":"path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","type":"boolean","x-omitempty":true},"secretFile":{"description":"secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","type":"string","x-omitempty":true},"secretRef":{"description":"secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"user":{"description":"user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","type":"string","x-omitempty":true}}},"CephFSVolumeSource":{"description":"Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.","type":"object","required":["monitors"],"properties":{"monitors":{"description":"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","type":"array","items":{"type":"string"}},"path":{"description":"path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","type":"boolean","x-omitempty":true},"secretFile":{"description":"secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","type":"string","x-omitempty":true},"secretRef":{"description":"secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"},"user":{"description":"user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","type":"string","x-omitempty":true}}},"CinderPersistentVolumeSource":{"description":"Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.","type":"object","required":["volumeID"],"properties":{"fsType":{"description":"fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"volumeID":{"description":"volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md","type":"string"}}},"CinderVolumeSource":{"description":"Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.","type":"object","required":["volumeID"],"properties":{"fsType":{"description":"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef is optional: points to a secret object containing parameters used to connect to OpenStack.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"},"volumeID":{"description":"volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md","type":"string"}}},"ClientIPConfig":{"description":"ClientIPConfig represents the configurations of Client IP based session affinity.","type":"object","properties":{"timeoutSeconds":{"description":"timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be \u003e0 \u0026\u0026 \u003c=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).","type":"integer","format":"int32","x-omitempty":true}}},"ComponentCondition":{"description":"Information about the condition of a component.","type":"object","required":["type","status"],"properties":{"error":{"description":"Condition error code for a component. For example, a health check error code.","type":"string","x-omitempty":true},"message":{"description":"Message about the condition for a component. For example, information about a health check.","type":"string","x-omitempty":true},"status":{"description":"Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".","type":"string"},"type":{"description":"Type of condition for a component. Valid value: \"Healthy\"","type":"string"}}},"ComponentStatus":{"description":"ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+","type":"object","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","x-omitempty":true},"conditions":{"description":"List of component conditions observed","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ComponentCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ComponentStatus","version":"v1"}]},"ComponentStatusList":{"description":"Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of ComponentStatus objects.","type":"array","items":{"$ref":"#/definitions/ComponentStatus"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ComponentStatusList","version":"v1"}]},"ConfigMap":{"description":"ConfigMap holds configuration data for pods to consume.","type":"object","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","x-omitempty":true},"binaryData":{"description":"BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.","type":"object","additionalProperties":{"type":"string","format":"byte","x-omitempty":true},"x-omitempty":true},"data":{"description":"Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true},"immutable":{"description":"Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.","type":"boolean","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ConfigMap","version":"v1"}]},"ConfigMapEnvSource":{"description":"ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.","type":"object","properties":{"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true},"optional":{"description":"Specify whether the ConfigMap must be defined","type":"boolean","x-omitempty":true}}},"ConfigMapKeySelector":{"description":"Selects a key from a ConfigMap.","type":"object","required":["key"],"properties":{"key":{"description":"The key to select.","type":"string"},"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true},"optional":{"description":"Specify whether the ConfigMap or its key must be defined","type":"boolean","x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"ConfigMapList":{"description":"ConfigMapList is a resource containing a list of ConfigMap objects.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"Items is the list of ConfigMaps.","type":"array","items":{"$ref":"#/definitions/ConfigMap"}},"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","x-omitempty":true},"metadata":{"description":"More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ConfigMapList","version":"v1"}]},"ConfigMapNodeConfigSource":{"description":"ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration","type":"object","required":["namespace","name","kubeletConfigKey"],"properties":{"kubeletConfigKey":{"description":"KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.","type":"string"},"name":{"description":"Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.","type":"string"},"namespace":{"description":"Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.","type":"string"},"resourceVersion":{"description":"ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.","type":"string","x-omitempty":true},"uid":{"description":"UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.","type":"string","x-omitempty":true}}},"ConfigMapProjection":{"description":"Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.","type":"object","properties":{"items":{"description":"items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/KeyToPath"},"x-omitempty":true},"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true},"optional":{"description":"optional specify whether the ConfigMap or its keys must be defined","type":"boolean","x-omitempty":true}}},"ConfigMapVolumeSource":{"description":"Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.","type":"object","properties":{"defaultMode":{"description":"defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.","type":"integer","format":"int32","x-omitempty":true},"items":{"description":"items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/KeyToPath"},"x-omitempty":true},"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true},"optional":{"description":"optional specify whether the ConfigMap or its keys must be defined","type":"boolean","x-omitempty":true}}},"Container":{"description":"A single application container that you want to run within a pod.","type":"object","required":["name"],"properties":{"args":{"description":"Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"command":{"description":"Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"env":{"description":"List of environment variables to set in the container. Cannot be updated.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EnvVar"},"x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"envFrom":{"description":"List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EnvFromSource"},"x-omitempty":true},"image":{"description":"Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.","type":"string","x-omitempty":true},"imagePullPolicy":{"description":"Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n\n","type":"string","x-omitempty":true},"lifecycle":{"description":"Actions that the management system should take in response to container lifecycle events. Cannot be updated.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Lifecycle"},"livenessProbe":{"description":"Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Probe"},"name":{"description":"Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.","type":"string"},"ports":{"description":"List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerPort"},"x-kubernetes-list-map-keys":["containerPort","protocol"],"x-kubernetes-list-type":"map","x-kubernetes-patch-merge-key":"containerPort","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"readinessProbe":{"description":"Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Probe"},"resources":{"description":"Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ResourceRequirements"},"securityContext":{"description":"SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecurityContext"},"startupProbe":{"description":"StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Probe"},"stdin":{"description":"Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.","type":"boolean","x-omitempty":true},"stdinOnce":{"description":"Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false","type":"boolean","x-omitempty":true},"terminationMessagePath":{"description":"Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.","type":"string","x-omitempty":true},"terminationMessagePolicy":{"description":"Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.\n\n","type":"string","x-omitempty":true},"tty":{"description":"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.","type":"boolean","x-omitempty":true},"volumeDevices":{"description":"volumeDevices is the list of block devices to be used by the container.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/VolumeDevice"},"x-kubernetes-patch-merge-key":"devicePath","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"volumeMounts":{"description":"Pod volumes to mount into the container's filesystem. Cannot be updated.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/VolumeMount"},"x-kubernetes-patch-merge-key":"mountPath","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"workingDir":{"description":"Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.","type":"string","x-omitempty":true}}},"ContainerImage":{"description":"Describe a container image","type":"object","properties":{"names":{"description":"Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"sizeBytes":{"description":"The size of the image in bytes.","type":"integer","format":"int64","x-omitempty":true}}},"ContainerPort":{"description":"ContainerPort represents a network port in a single container.","type":"object","required":["containerPort"],"properties":{"containerPort":{"description":"Number of port to expose on the pod's IP address. This must be a valid port number, 0 \u003c x \u003c 65536.","type":"integer","format":"int32"},"hostIP":{"description":"What host IP to bind the external port to.","type":"string","x-omitempty":true},"hostPort":{"description":"Number of port to expose on the host. If specified, this must be a valid port number, 0 \u003c x \u003c 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.","type":"integer","format":"int32","x-omitempty":true},"name":{"description":"If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.","type":"string","x-omitempty":true},"protocol":{"description":"Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".\n\n","type":"string","x-omitempty":true}}},"ContainerState":{"description":"ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.","type":"object","properties":{"running":{"description":"Details about a running container","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerStateRunning"},"terminated":{"description":"Details about a terminated container","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerStateTerminated"},"waiting":{"description":"Details about a waiting container","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerStateWaiting"}}},"ContainerStateRunning":{"description":"ContainerStateRunning is a running state of a container.","type":"object","properties":{"startedAt":{"description":"Time at which the container was last (re-)started","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true}}},"ContainerStateTerminated":{"description":"ContainerStateTerminated is a terminated state of a container.","type":"object","required":["exitCode"],"properties":{"containerID":{"description":"Container's ID in the format '\u003ctype\u003e://\u003ccontainer_id\u003e'","type":"string","x-omitempty":true},"exitCode":{"description":"Exit status from the last termination of the container","type":"integer","format":"int32"},"finishedAt":{"description":"Time at which the container last terminated","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"Message regarding the last termination of the container","type":"string","x-omitempty":true},"reason":{"description":"(brief) reason from the last termination of the container","type":"string","x-omitempty":true},"signal":{"description":"Signal from the last termination of the container","type":"integer","format":"int32","x-omitempty":true},"startedAt":{"description":"Time at which previous execution of the container started","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true}}},"ContainerStateWaiting":{"description":"ContainerStateWaiting is a waiting state of a container.","type":"object","properties":{"message":{"description":"Message regarding why the container is not yet running.","type":"string","x-omitempty":true},"reason":{"description":"(brief) reason the container is not yet running.","type":"string","x-omitempty":true}}},"ContainerStatus":{"description":"ContainerStatus contains details for the current status of this container.","type":"object","required":["name","ready","restartCount","image","imageID"],"properties":{"containerID":{"description":"Container's ID in the format '\u003ctype\u003e://\u003ccontainer_id\u003e'.","type":"string","x-omitempty":true},"image":{"description":"The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images.","type":"string"},"imageID":{"description":"ImageID of the container's image.","type":"string"},"lastState":{"description":"Details about the container's last termination condition.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerState"},"name":{"description":"This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.","type":"string"},"ready":{"description":"Specifies whether the container has passed its readiness probe.","type":"boolean"},"restartCount":{"description":"The number of times the container has been restarted.","type":"integer","format":"int32"},"started":{"description":"Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined.","type":"boolean","x-omitempty":true},"state":{"description":"Details about the container's current condition.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerState"}}},"DaemonEndpoint":{"description":"DaemonEndpoint contains information about a single Daemon endpoint.","type":"object","required":["Port"],"properties":{"Port":{"description":"Port number of the given endpoint.","type":"integer","format":"int32"}}},"DownwardAPIProjection":{"description":"Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.","type":"object","properties":{"items":{"description":"Items is a list of DownwardAPIVolume file","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DownwardAPIVolumeFile"},"x-omitempty":true}}},"DownwardAPIVolumeFile":{"description":"DownwardAPIVolumeFile represents information to create the file containing the pod field","type":"object","required":["path"],"properties":{"fieldRef":{"description":"Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ObjectFieldSelector"},"mode":{"description":"Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.","type":"integer","format":"int32","x-omitempty":true},"path":{"description":"Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'","type":"string"},"resourceFieldRef":{"description":"Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ResourceFieldSelector"}}},"DownwardAPIVolumeSource":{"description":"DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.","type":"object","properties":{"defaultMode":{"description":"Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.","type":"integer","format":"int32","x-omitempty":true},"items":{"description":"Items is a list of downward API volume file","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DownwardAPIVolumeFile"},"x-omitempty":true}}},"EmptyDirVolumeSource":{"description":"Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.","type":"object","properties":{"medium":{"description":"medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir","type":"string","x-omitempty":true},"sizeLimit":{"description":"sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir","x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true}}},"EndpointAddress":{"description":"EndpointAddress is a tuple that describes single IP address.","type":"object","required":["ip"],"properties":{"hostname":{"description":"The Hostname of this endpoint","type":"string","x-omitempty":true},"ip":{"description":"The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.","type":"string"},"nodeName":{"description":"Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.","type":"string","x-omitempty":true},"targetRef":{"description":"Reference to object providing the endpoint.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ObjectReference"}},"x-kubernetes-map-type":"atomic"},"EndpointPort":{"description":"EndpointPort is a tuple that describes a single port.","type":"object","required":["port"],"properties":{"appProtocol":{"description":"The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.","type":"string","x-omitempty":true},"name":{"description":"The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.","type":"string","x-omitempty":true},"port":{"description":"The port number of the endpoint.","type":"integer","format":"int32"},"protocol":{"description":"The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.\n\n","type":"string","x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"EndpointSubset":{"description":"EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n }\nThe resulting set of endpoints can be viewed as:\n a: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n b: [ 10.10.1.1:309, 10.10.2.2:309 ]","type":"object","properties":{"addresses":{"description":"IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EndpointAddress"},"x-omitempty":true},"notReadyAddresses":{"description":"IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EndpointAddress"},"x-omitempty":true},"ports":{"description":"Port numbers available on the related IP addresses.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EndpointPort"},"x-omitempty":true}}},"Endpoints":{"description":"Endpoints is a collection of endpoints that implement the actual service. Example:\n Name: \"mysvc\",\n Subsets: [\n {\n Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n },\n {\n Addresses: [{\"ip\": \"10.10.3.3\"}],\n Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n },\n ]","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"subsets":{"description":"The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EndpointSubset"},"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Endpoints","version":"v1"}]},"EndpointsList":{"description":"EndpointsList is a list of endpoints.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of endpoints.","type":"array","items":{"$ref":"#/definitions/Endpoints"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"EndpointsList","version":"v1"}]},"EnvFromSource":{"description":"EnvFromSource represents the source of a set of ConfigMaps","type":"object","properties":{"configMapRef":{"description":"The ConfigMap to select from","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ConfigMapEnvSource"},"prefix":{"description":"An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.","type":"string","x-omitempty":true},"secretRef":{"description":"The Secret to select from","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretEnvSource"}}},"EnvVar":{"description":"EnvVar represents an environment variable present in a Container.","type":"object","required":["name"],"properties":{"name":{"description":"Name of the environment variable. Must be a C_IDENTIFIER.","type":"string"},"value":{"description":"Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".","type":"string","x-omitempty":true},"valueFrom":{"description":"Source for the environment variable's value. Cannot be used if value is not empty.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EnvVarSource"}}},"EnvVarSource":{"description":"EnvVarSource represents a source for the value of an EnvVar.","type":"object","properties":{"configMapKeyRef":{"description":"Selects a key of a ConfigMap.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ConfigMapKeySelector"},"fieldRef":{"description":"Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['\u003cKEY\u003e']`, `metadata.annotations['\u003cKEY\u003e']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ObjectFieldSelector"},"resourceFieldRef":{"description":"Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ResourceFieldSelector"},"secretKeyRef":{"description":"Selects a key of a secret in the pod's namespace","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretKeySelector"}}},"EphemeralContainer":{"description":"An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.\n\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.\n\nThis is a beta feature available on clusters that haven't disabled the EphemeralContainers feature gate.","type":"object","required":["name"],"properties":{"args":{"description":"Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"command":{"description":"Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"env":{"description":"List of environment variables to set in the container. Cannot be updated.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EnvVar"},"x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"envFrom":{"description":"List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EnvFromSource"},"x-omitempty":true},"image":{"description":"Container image name. More info: https://kubernetes.io/docs/concepts/containers/images","type":"string","x-omitempty":true},"imagePullPolicy":{"description":"Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images\n\n","type":"string","x-omitempty":true},"lifecycle":{"description":"Lifecycle is not allowed for ephemeral containers.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Lifecycle"},"livenessProbe":{"description":"Probes are not allowed for ephemeral containers.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Probe"},"name":{"description":"Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.","type":"string"},"ports":{"description":"Ports are not allowed for ephemeral containers.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerPort"},"x-kubernetes-list-map-keys":["containerPort","protocol"],"x-kubernetes-list-type":"map","x-kubernetes-patch-merge-key":"containerPort","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"readinessProbe":{"description":"Probes are not allowed for ephemeral containers.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Probe"},"resources":{"description":"Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ResourceRequirements"},"securityContext":{"description":"Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecurityContext"},"startupProbe":{"description":"Probes are not allowed for ephemeral containers.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Probe"},"stdin":{"description":"Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.","type":"boolean","x-omitempty":true},"stdinOnce":{"description":"Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false","type":"boolean","x-omitempty":true},"targetContainerName":{"description":"If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.\n\nThe container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.","type":"string","x-omitempty":true},"terminationMessagePath":{"description":"Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.","type":"string","x-omitempty":true},"terminationMessagePolicy":{"description":"Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.\n\n","type":"string","x-omitempty":true},"tty":{"description":"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.","type":"boolean","x-omitempty":true},"volumeDevices":{"description":"volumeDevices is the list of block devices to be used by the container.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/VolumeDevice"},"x-kubernetes-patch-merge-key":"devicePath","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"volumeMounts":{"description":"Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/VolumeMount"},"x-kubernetes-patch-merge-key":"mountPath","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"workingDir":{"description":"Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.","type":"string","x-omitempty":true}}},"EphemeralVolumeSource":{"description":"Represents an ephemeral volume that is handled by a normal storage driver.","type":"object","properties":{"volumeClaimTemplate":{"description":"Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `\u003cpod name\u003e-\u003cvolume name\u003e` where `\u003cvolume name\u003e` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PersistentVolumeClaimTemplate"}}},"Event":{"description":"Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.","type":"object","required":["metadata","involvedObject"],"properties":{"action":{"description":"What action was taken/failed regarding to the Regarding object.","type":"string","x-omitempty":true},"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","x-omitempty":true},"count":{"description":"The number of times this event has occurred.","type":"integer","format":"int32","x-omitempty":true},"eventTime":{"description":"Time when this Event was first observed.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"MicroTime"},"x-nullable":true,"x-omitempty":true},"firstTimestamp":{"description":"The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"involvedObject":{"description":"The object that this event is about.","$ref":"#/definitions/ObjectReference"},"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","x-omitempty":true},"lastTimestamp":{"description":"The time at which the most recent occurrence of this event was recorded.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"A human-readable description of the status of this operation.","type":"string","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"}},"reason":{"description":"This should be a short, machine understandable string that gives the reason for the transition into the object's current status.","type":"string","x-omitempty":true},"related":{"description":"Optional secondary object for more complex actions.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ObjectReference"},"reportingComponent":{"description":"Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.","type":"string","x-omitempty":true},"reportingInstance":{"description":"ID of the controller instance, e.g. `kubelet-xyzf`.","type":"string","x-omitempty":true},"series":{"description":"Data about the Event series this event represents or nil if it's a singleton Event.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EventSeries"},"source":{"description":"The component reporting this event. Should be a short machine understandable string.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EventSource"},"type":{"description":"Type of this event (Normal, Warning), new types could be added in the future","type":"string","x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Event","version":"v1"}]},"EventList":{"description":"EventList is a list of events.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of events","type":"array","items":{"$ref":"#/definitions/Event"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"EventList","version":"v1"}]},"EventSeries":{"description":"EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.","type":"object","properties":{"count":{"description":"Number of occurrences in this series up to the last heartbeat time","type":"integer","format":"int32","x-omitempty":true},"lastObservedTime":{"description":"Time of the last occurrence observed","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"MicroTime"},"x-nullable":true,"x-omitempty":true}}},"EventSource":{"description":"EventSource contains information for an event.","type":"object","properties":{"component":{"description":"Component from which the event is generated.","type":"string","x-omitempty":true},"host":{"description":"Node name on which the event is generated.","type":"string","x-omitempty":true}}},"ExecAction":{"description":"ExecAction describes a \"run in container\" action.","type":"object","properties":{"command":{"description":"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"FCVolumeSource":{"description":"Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.","type":"object","properties":{"fsType":{"description":"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.","type":"string","x-omitempty":true},"lun":{"description":"lun is Optional: FC target lun number","type":"integer","format":"int32","x-omitempty":true},"readOnly":{"description":"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"targetWWNs":{"description":"targetWWNs is Optional: FC target worldwide names (WWNs)","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"wwids":{"description":"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"FlexPersistentVolumeSource":{"description":"FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.","type":"object","required":["driver"],"properties":{"driver":{"description":"driver is the name of the driver to use for this volume.","type":"string"},"fsType":{"description":"fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.","type":"string","x-omitempty":true},"options":{"description":"options is Optional: this field holds extra command options if any.","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true},"readOnly":{"description":"readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"}}},"FlexVolumeSource":{"description":"FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.","type":"object","required":["driver"],"properties":{"driver":{"description":"driver is the name of the driver to use for this volume.","type":"string"},"fsType":{"description":"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.","type":"string","x-omitempty":true},"options":{"description":"options is Optional: this field holds extra command options if any.","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true},"readOnly":{"description":"readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"}}},"FlockerVolumeSource":{"description":"Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.","type":"object","properties":{"datasetName":{"description":"datasetName is Name of the dataset stored as metadata -\u003e name on the dataset for Flocker should be considered as deprecated","type":"string","x-omitempty":true},"datasetUUID":{"description":"datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset","type":"string","x-omitempty":true}}},"GCEPersistentDiskVolumeSource":{"description":"Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.","type":"object","required":["pdName"],"properties":{"fsType":{"description":"fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk","type":"string","x-omitempty":true},"partition":{"description":"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk","type":"integer","format":"int32","x-omitempty":true},"pdName":{"description":"pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk","type":"string"},"readOnly":{"description":"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk","type":"boolean","x-omitempty":true}}},"GRPCAction":{"type":"object","required":["port"],"properties":{"port":{"description":"Port number of the gRPC service. Number must be in the range 1 to 65535.","type":"integer","format":"int32"},"service":{"description":"Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.","type":"string","x-omitempty":true}}},"GitRepoVolumeSource":{"description":"Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.","type":"object","required":["repository"],"properties":{"directory":{"description":"directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.","type":"string","x-omitempty":true},"repository":{"description":"repository is the URL","type":"string"},"revision":{"description":"revision is the commit hash for the specified revision.","type":"string","x-omitempty":true}}},"GlusterfsPersistentVolumeSource":{"description":"Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.","type":"object","required":["endpoints","path"],"properties":{"endpoints":{"description":"endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod","type":"string"},"endpointsNamespace":{"description":"endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod","type":"string","x-omitempty":true},"path":{"description":"path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod","type":"string"},"readOnly":{"description":"readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod","type":"boolean","x-omitempty":true}}},"GlusterfsVolumeSource":{"description":"Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.","type":"object","required":["endpoints","path"],"properties":{"endpoints":{"description":"endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod","type":"string"},"path":{"description":"path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod","type":"string"},"readOnly":{"description":"readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod","type":"boolean","x-omitempty":true}}},"HTTPGetAction":{"description":"HTTPGetAction describes an action based on HTTP Get requests.","type":"object","required":["port"],"properties":{"host":{"description":"Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.","type":"string","x-omitempty":true},"httpHeaders":{"description":"Custom headers to set in the request. HTTP allows repeated headers.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/HTTPHeader"},"x-omitempty":true},"path":{"description":"Path to access on the HTTP server.","type":"string","x-omitempty":true},"port":{"description":"Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.","x-go-type":{"import":{"alias":"apimachinery_pkg_util_intstr","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr"},"type":"IntOrString"}},"scheme":{"description":"Scheme to use for connecting to the host. Defaults to HTTP.\n\n","type":"string","x-omitempty":true}}},"HTTPHeader":{"description":"HTTPHeader describes a custom header to be used in HTTP probes","type":"object","required":["name","value"],"properties":{"name":{"description":"The header field name","type":"string"},"value":{"description":"The header field value","type":"string"}}},"HostAlias":{"description":"HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.","type":"object","properties":{"hostnames":{"description":"Hostnames for the above IP address.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"ip":{"description":"IP address of the host file entry.","type":"string","x-omitempty":true}}},"HostPathVolumeSource":{"description":"Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.","type":"object","required":["path"],"properties":{"path":{"description":"path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath","type":"string"},"type":{"description":"type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath","type":"string","x-omitempty":true}}},"ISCSIPersistentVolumeSource":{"description":"ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.","type":"object","required":["targetPortal","iqn","lun"],"properties":{"chapAuthDiscovery":{"description":"chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication","type":"boolean","x-omitempty":true},"chapAuthSession":{"description":"chapAuthSession defines whether support iSCSI Session CHAP authentication","type":"boolean","x-omitempty":true},"fsType":{"description":"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi","type":"string","x-omitempty":true},"initiatorName":{"description":"initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface \u003ctarget portal\u003e:\u003cvolume name\u003e will be created for the connection.","type":"string","x-omitempty":true},"iqn":{"description":"iqn is Target iSCSI Qualified Name.","type":"string"},"iscsiInterface":{"description":"iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).","type":"string","x-omitempty":true},"lun":{"description":"lun is iSCSI Target Lun number.","type":"integer","format":"int32"},"portals":{"description":"portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"readOnly":{"description":"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef is the CHAP Secret for iSCSI target and initiator authentication","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"targetPortal":{"description":"targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).","type":"string"}}},"ISCSIVolumeSource":{"description":"Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.","type":"object","required":["targetPortal","iqn","lun"],"properties":{"chapAuthDiscovery":{"description":"chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication","type":"boolean","x-omitempty":true},"chapAuthSession":{"description":"chapAuthSession defines whether support iSCSI Session CHAP authentication","type":"boolean","x-omitempty":true},"fsType":{"description":"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi","type":"string","x-omitempty":true},"initiatorName":{"description":"initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface \u003ctarget portal\u003e:\u003cvolume name\u003e will be created for the connection.","type":"string","x-omitempty":true},"iqn":{"description":"iqn is the target iSCSI Qualified Name.","type":"string"},"iscsiInterface":{"description":"iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).","type":"string","x-omitempty":true},"lun":{"description":"lun represents iSCSI Target Lun number.","type":"integer","format":"int32"},"portals":{"description":"portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"readOnly":{"description":"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef is the CHAP Secret for iSCSI target and initiator authentication","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"},"targetPortal":{"description":"targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).","type":"string"}}},"KeyToPath":{"description":"Maps a string key to a path within a volume.","type":"object","required":["key","path"],"properties":{"key":{"description":"key is the key to project.","type":"string"},"mode":{"description":"mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.","type":"integer","format":"int32","x-omitempty":true},"path":{"description":"path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.","type":"string"}}},"Lifecycle":{"description":"Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.","type":"object","properties":{"postStart":{"description":"PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LifecycleHandler"},"preStop":{"description":"PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LifecycleHandler"}}},"LifecycleHandler":{"description":"LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.","type":"object","properties":{"exec":{"description":"Exec specifies the action to take.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ExecAction"},"httpGet":{"description":"HTTPGet specifies the http request to perform.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/HTTPGetAction"},"tcpSocket":{"description":"Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/TCPSocketAction"}}},"LimitRange":{"description":"LimitRange sets resource usage limits for each kind of resource in a Namespace.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LimitRangeSpec"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"LimitRange","version":"v1"}]},"LimitRangeItem":{"description":"LimitRangeItem defines a min/max usage limit for any resource that matches on kind.","type":"object","required":["type"],"properties":{"default":{"description":"Default resource requirement limit value by resource name if resource limit is omitted.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"defaultRequest":{"description":"DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"max":{"description":"Max usage constraints on this kind by resource name.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"maxLimitRequestRatio":{"description":"MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"min":{"description":"Min usage constraints on this kind by resource name.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"type":{"description":"Type of resource that this limit applies to.","type":"string"}}},"LimitRangeList":{"description":"LimitRangeList is a list of LimitRange items.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/","type":"array","items":{"$ref":"#/definitions/LimitRange"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"LimitRangeList","version":"v1"}]},"LimitRangeSpec":{"description":"LimitRangeSpec defines a min/max usage limit for resources that match on kind.","type":"object","required":["limits"],"properties":{"limits":{"description":"Limits is the list of LimitRangeItem objects that are enforced.","type":"array","items":{"$ref":"#/definitions/LimitRangeItem"}}}},"LoadBalancerIngress":{"description":"LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.","type":"object","properties":{"hostname":{"description":"Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)","type":"string","x-omitempty":true},"ip":{"description":"IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)","type":"string","x-omitempty":true},"ports":{"description":"Ports is a list of records of service ports If used, every port defined in the service should have an entry in it","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PortStatus"},"x-kubernetes-list-type":"atomic","x-omitempty":true}}},"LoadBalancerStatus":{"description":"LoadBalancerStatus represents the status of a load-balancer.","type":"object","properties":{"ingress":{"description":"Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LoadBalancerIngress"},"x-omitempty":true}}},"LocalObjectReference":{"description":"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.","type":"object","properties":{"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"LocalVolumeSource":{"description":"Local represents directly-attached storage with node affinity (Beta feature)","type":"object","required":["path"],"properties":{"fsType":{"description":"fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified.","type":"string","x-omitempty":true},"path":{"description":"path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).","type":"string"}}},"NFSVolumeSource":{"description":"Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.","type":"object","required":["server","path"],"properties":{"path":{"description":"path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs","type":"string"},"readOnly":{"description":"readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs","type":"boolean","x-omitempty":true},"server":{"description":"server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs","type":"string"}}},"Namespace":{"description":"Namespace provides a scope for Names. Use of multiple namespaces is optional.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NamespaceSpec"},"status":{"description":"Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NamespaceStatus"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Namespace","version":"v1"}]},"NamespaceCondition":{"description":"NamespaceCondition contains details about state of namespace.","type":"object","required":["type","status"],"properties":{"lastTransitionTime":{"x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"type":"string","x-omitempty":true},"reason":{"type":"string","x-omitempty":true},"status":{"description":"Status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"Type of namespace controller condition.","type":"string"}}},"NamespaceList":{"description":"NamespaceList is a list of Namespaces.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/","type":"array","items":{"$ref":"#/definitions/Namespace"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"NamespaceList","version":"v1"}]},"NamespaceSpec":{"description":"NamespaceSpec describes the attributes on a Namespace.","type":"object","properties":{"finalizers":{"description":"Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"NamespaceStatus":{"description":"NamespaceStatus is information about the current status of a Namespace.","type":"object","properties":{"conditions":{"description":"Represents the latest available observations of a namespace's current state.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NamespaceCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"phase":{"description":"Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/\n\n","type":"string","x-omitempty":true}}},"Node":{"description":"Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeSpec"},"status":{"description":"Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeStatus"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Node","version":"v1"}]},"NodeAddress":{"description":"NodeAddress contains information for the node's address.","type":"object","required":["type","address"],"properties":{"address":{"description":"The node address.","type":"string"},"type":{"description":"Node address type, one of Hostname, ExternalIP or InternalIP.","type":"string"}}},"NodeAffinity":{"description":"Node affinity is a group of node affinity scheduling rules.","type":"object","properties":{"preferredDuringSchedulingIgnoredDuringExecution":{"description":"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PreferredSchedulingTerm"},"x-omitempty":true},"requiredDuringSchedulingIgnoredDuringExecution":{"description":"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeSelector"}}},"NodeCondition":{"description":"NodeCondition contains condition information for a node.","type":"object","required":["type","status"],"properties":{"lastHeartbeatTime":{"description":"Last time we got an update on a given condition.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"lastTransitionTime":{"description":"Last time the condition transit from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"Human readable message indicating details about last transition.","type":"string","x-omitempty":true},"reason":{"description":"(brief) reason for the condition's last transition.","type":"string","x-omitempty":true},"status":{"description":"Status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"Type of node condition.","type":"string"}}},"NodeConfigSource":{"description":"NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22","type":"object","properties":{"configMap":{"description":"ConfigMap is a reference to a Node's ConfigMap","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ConfigMapNodeConfigSource"}}},"NodeConfigStatus":{"description":"NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.","type":"object","properties":{"active":{"description":"Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeConfigSource"},"assigned":{"description":"Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeConfigSource"},"error":{"description":"Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.","type":"string","x-omitempty":true},"lastKnownGood":{"description":"LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeConfigSource"}}},"NodeDaemonEndpoints":{"description":"NodeDaemonEndpoints lists ports opened by daemons running on the Node.","type":"object","properties":{"kubeletEndpoint":{"description":"Endpoint on which Kubelet is listening.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DaemonEndpoint"}}},"NodeList":{"description":"NodeList is the whole list of all Nodes which have been registered with master.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of nodes","type":"array","items":{"$ref":"#/definitions/Node"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"NodeList","version":"v1"}]},"NodeSelector":{"description":"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.","type":"object","required":["nodeSelectorTerms"],"properties":{"nodeSelectorTerms":{"description":"Required. A list of node selector terms. The terms are ORed.","type":"array","items":{"$ref":"#/definitions/NodeSelectorTerm"}}},"x-kubernetes-map-type":"atomic"},"NodeSelectorRequirement":{"description":"A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.","type":"object","required":["key","operator"],"properties":{"key":{"description":"The label key that the selector applies to.","type":"string"},"operator":{"description":"Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.\n\n","type":"string"},"values":{"description":"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"NodeSelectorTerm":{"description":"A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.","type":"object","properties":{"matchExpressions":{"description":"A list of node selector requirements by node's labels.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeSelectorRequirement"},"x-omitempty":true},"matchFields":{"description":"A list of node selector requirements by node's fields.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeSelectorRequirement"},"x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"NodeSpec":{"description":"NodeSpec describes the attributes that a node is created with.","type":"object","properties":{"configSource":{"description":"Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed from Kubelets as of 1.24 and will be fully removed in 1.26.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeConfigSource"},"externalID":{"description":"Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966","type":"string","x-omitempty":true},"podCIDR":{"description":"PodCIDR represents the pod IP range assigned to the node.","type":"string","x-omitempty":true},"podCIDRs":{"description":"podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.","type":"array","items":{"type":"string","x-omitempty":true},"x-kubernetes-patch-strategy":"merge","x-omitempty":true},"providerID":{"description":"ID of the node assigned by the cloud provider in the format: \u003cProviderName\u003e://\u003cProviderSpecificNodeID\u003e","type":"string","x-omitempty":true},"taints":{"description":"If specified, the node's taints.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Taint"},"x-omitempty":true},"unschedulable":{"description":"Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration","type":"boolean","x-omitempty":true}}},"NodeStatus":{"description":"NodeStatus is information about the current status of a node.","type":"object","properties":{"addresses":{"description":"List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See http://pr.k8s.io/79391 for an example.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeAddress"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"allocatable":{"description":"Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"capacity":{"description":"Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"conditions":{"description":"Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"config":{"description":"Status of the config assigned to the node via the dynamic Kubelet config feature.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeConfigStatus"},"daemonEndpoints":{"description":"Endpoints of daemons running on the Node.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeDaemonEndpoints"},"images":{"description":"List of container images on this node","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerImage"},"x-omitempty":true},"nodeInfo":{"description":"Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeSystemInfo"},"phase":{"description":"NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.\n\n","type":"string","x-omitempty":true},"volumesAttached":{"description":"List of volumes that are attached to the node.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/AttachedVolume"},"x-omitempty":true},"volumesInUse":{"description":"List of attachable volumes in use (mounted) by the node.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"NodeSystemInfo":{"description":"NodeSystemInfo is a set of ids/uuids to uniquely identify the node.","type":"object","required":["machineID","systemUUID","bootID","kernelVersion","osImage","containerRuntimeVersion","kubeletVersion","kubeProxyVersion","operatingSystem","architecture"],"properties":{"architecture":{"description":"The Architecture reported by the node","type":"string"},"bootID":{"description":"Boot ID reported by the node.","type":"string"},"containerRuntimeVersion":{"description":"ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).","type":"string"},"kernelVersion":{"description":"Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).","type":"string"},"kubeProxyVersion":{"description":"KubeProxy Version reported by the node.","type":"string"},"kubeletVersion":{"description":"Kubelet Version reported by the node.","type":"string"},"machineID":{"description":"MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html","type":"string"},"operatingSystem":{"description":"The Operating System reported by the node","type":"string"},"osImage":{"description":"OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).","type":"string"},"systemUUID":{"description":"SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid","type":"string"}}},"ObjectFieldSelector":{"description":"ObjectFieldSelector selects an APIVersioned field of an object.","type":"object","required":["fieldPath"],"properties":{"apiVersion":{"description":"Version of the schema the FieldPath is written in terms of, defaults to \"v1\".","type":"string","x-omitempty":true},"fieldPath":{"description":"Path of the field to select in the specified API version.","type":"string"}},"x-kubernetes-map-type":"atomic"},"ObjectReference":{"description":"ObjectReference contains enough information to let you inspect or modify the referred object.","type":"object","properties":{"apiVersion":{"description":"API version of the referent.","type":"string","x-omitempty":true},"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","x-omitempty":true},"kind":{"description":"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","type":"string","x-omitempty":true},"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true},"namespace":{"description":"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/","type":"string","x-omitempty":true},"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","x-omitempty":true},"uid":{"description":"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids","type":"string","x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"PersistentVolume":{"description":"PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PersistentVolumeSpec"},"status":{"description":"status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PersistentVolumeStatus"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"PersistentVolume","version":"v1"}]},"PersistentVolumeClaim":{"description":"PersistentVolumeClaim is a user's request for and claim to a persistent volume","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PersistentVolumeClaimSpec"},"status":{"description":"status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PersistentVolumeClaimStatus"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"PersistentVolumeClaim","version":"v1"}]},"PersistentVolumeClaimCondition":{"description":"PersistentVolumeClaimCondition contails details about state of pvc","type":"object","required":["type","status"],"properties":{"lastProbeTime":{"description":"lastProbeTime is the time we probed the condition.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"lastTransitionTime":{"description":"lastTransitionTime is the time the condition transitioned from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"message is the human-readable message indicating details about last transition.","type":"string","x-omitempty":true},"reason":{"description":"reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized.","type":"string","x-omitempty":true},"status":{"type":"string"},"type":{"type":"string"}}},"PersistentVolumeClaimList":{"description":"PersistentVolumeClaimList is a list of PersistentVolumeClaim items.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims","type":"array","items":{"$ref":"#/definitions/PersistentVolumeClaim"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"PersistentVolumeClaimList","version":"v1"}]},"PersistentVolumeClaimSpec":{"description":"PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes","type":"object","properties":{"accessModes":{"description":"accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"dataSource":{"description":"dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/TypedLocalObjectReference"},"dataSourceRef":{"description":"dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While DataSource ignores disallowed values (dropping them), DataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/TypedLocalObjectReference"},"resources":{"description":"resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ResourceRequirements"},"selector":{"description":"selector is a label query over volumes to consider for binding.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"},"x-nullable":true,"x-omitempty":true},"storageClassName":{"description":"storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1","type":"string","x-omitempty":true},"volumeMode":{"description":"volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.","type":"string","x-omitempty":true},"volumeName":{"description":"volumeName is the binding reference to the PersistentVolume backing this claim.","type":"string","x-omitempty":true}}},"PersistentVolumeClaimStatus":{"description":"PersistentVolumeClaimStatus is the current status of a persistent volume claim.","type":"object","properties":{"accessModes":{"description":"accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"allocatedResources":{"description":"allocatedResources is the storage resource within AllocatedResources tracks the capacity allocated to a PVC. It may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"capacity":{"description":"capacity represents the actual resources of the underlying volume.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"conditions":{"description":"conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PersistentVolumeClaimCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"phase":{"description":"phase represents the current phase of PersistentVolumeClaim.\n\n","type":"string","x-omitempty":true},"resizeStatus":{"description":"resizeStatus stores status of resize operation. ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty string by resize controller or kubelet. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.","type":"string","x-omitempty":true}}},"PersistentVolumeClaimTemplate":{"description":"PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.","type":"object","required":["spec"],"properties":{"metadata":{"description":"May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here.","$ref":"#/definitions/PersistentVolumeClaimSpec"}}},"PersistentVolumeClaimVolumeSource":{"description":"PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).","type":"object","required":["claimName"],"properties":{"claimName":{"description":"claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims","type":"string"},"readOnly":{"description":"readOnly Will force the ReadOnly setting in VolumeMounts. Default false.","type":"boolean","x-omitempty":true}}},"PersistentVolumeList":{"description":"PersistentVolumeList is a list of PersistentVolume items.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes","type":"array","items":{"$ref":"#/definitions/PersistentVolume"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"PersistentVolumeList","version":"v1"}]},"PersistentVolumeSpec":{"description":"PersistentVolumeSpec is the specification of a persistent volume.","type":"object","properties":{"accessModes":{"description":"accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"awsElasticBlockStore":{"description":"awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/AWSElasticBlockStoreVolumeSource"},"azureDisk":{"description":"azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/AzureDiskVolumeSource"},"azureFile":{"description":"azureFile represents an Azure File Service mount on the host and bind mount to the pod.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/AzureFilePersistentVolumeSource"},"capacity":{"description":"capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"cephfs":{"description":"cephFS represents a Ceph FS mount on the host that shares a pod's lifetime","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/CephFSPersistentVolumeSource"},"cinder":{"description":"cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/CinderPersistentVolumeSource"},"claimRef":{"description":"claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ObjectReference"},"csi":{"description":"csi represents storage that is handled by an external CSI driver (Beta feature).","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/CSIPersistentVolumeSource"},"fc":{"description":"fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/FCVolumeSource"},"flexVolume":{"description":"flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/FlexPersistentVolumeSource"},"flocker":{"description":"flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/FlockerVolumeSource"},"gcePersistentDisk":{"description":"gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/GCEPersistentDiskVolumeSource"},"glusterfs":{"description":"glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/GlusterfsPersistentVolumeSource"},"hostPath":{"description":"hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/HostPathVolumeSource"},"iscsi":{"description":"iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ISCSIPersistentVolumeSource"},"local":{"description":"local represents directly-attached storage with node affinity","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalVolumeSource"},"mountOptions":{"description":"mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"nfs":{"description":"nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NFSVolumeSource"},"nodeAffinity":{"description":"nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/VolumeNodeAffinity"},"persistentVolumeReclaimPolicy":{"description":"persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming\n\n","type":"string","x-omitempty":true},"photonPersistentDisk":{"description":"photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PhotonPersistentDiskVolumeSource"},"portworxVolume":{"description":"portworxVolume represents a portworx volume attached and mounted on kubelets host machine","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PortworxVolumeSource"},"quobyte":{"description":"quobyte represents a Quobyte mount on the host that shares a pod's lifetime","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/QuobyteVolumeSource"},"rbd":{"description":"rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/RBDPersistentVolumeSource"},"scaleIO":{"description":"scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ScaleIOPersistentVolumeSource"},"storageClassName":{"description":"storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.","type":"string","x-omitempty":true},"storageos":{"description":"storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StorageOSPersistentVolumeSource"},"volumeMode":{"description":"volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.","type":"string","x-omitempty":true},"vsphereVolume":{"description":"vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/VsphereVirtualDiskVolumeSource"}}},"PersistentVolumeStatus":{"description":"PersistentVolumeStatus is the current status of a persistent volume.","type":"object","properties":{"message":{"description":"message is a human-readable message indicating details about why the volume is in this state.","type":"string","x-omitempty":true},"phase":{"description":"phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase\n\n","type":"string","x-omitempty":true},"reason":{"description":"reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.","type":"string","x-omitempty":true}}},"PhotonPersistentDiskVolumeSource":{"description":"Represents a Photon Controller persistent disk resource.","type":"object","required":["pdID"],"properties":{"fsType":{"description":"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.","type":"string","x-omitempty":true},"pdID":{"description":"pdID is the ID that identifies Photon Controller persistent disk","type":"string"}}},"Pod":{"description":"Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodSpec"},"status":{"description":"Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodStatus"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Pod","version":"v1"}]},"PodAffinity":{"description":"Pod affinity is a group of inter pod affinity scheduling rules.","type":"object","properties":{"preferredDuringSchedulingIgnoredDuringExecution":{"description":"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/WeightedPodAffinityTerm"},"x-omitempty":true},"requiredDuringSchedulingIgnoredDuringExecution":{"description":"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodAffinityTerm"},"x-omitempty":true}}},"PodAffinityTerm":{"description":"Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key \u003ctopologyKey\u003e matches that of any node on which a pod of the set of pods is running","type":"object","required":["topologyKey"],"properties":{"labelSelector":{"description":"A label query over a set of resources, in this case pods.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"},"x-nullable":true,"x-omitempty":true},"namespaceSelector":{"description":"A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"},"x-nullable":true,"x-omitempty":true},"namespaces":{"description":"namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"topologyKey":{"description":"This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.","type":"string"}}},"PodAntiAffinity":{"description":"Pod anti affinity is a group of inter pod anti affinity scheduling rules.","type":"object","properties":{"preferredDuringSchedulingIgnoredDuringExecution":{"description":"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/WeightedPodAffinityTerm"},"x-omitempty":true},"requiredDuringSchedulingIgnoredDuringExecution":{"description":"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodAffinityTerm"},"x-omitempty":true}}},"PodCondition":{"description":"PodCondition contains details for the current condition of this pod.","type":"object","required":["type","status"],"properties":{"lastProbeTime":{"description":"Last time we probed the condition.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"lastTransitionTime":{"description":"Last time the condition transitioned from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"Human-readable message indicating details about last transition.","type":"string","x-omitempty":true},"reason":{"description":"Unique, one-word, CamelCase reason for the condition's last transition.","type":"string","x-omitempty":true},"status":{"description":"Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions","type":"string"},"type":{"description":"Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions","type":"string"}}},"PodDNSConfig":{"description":"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.","type":"object","properties":{"nameservers":{"description":"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"options":{"description":"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodDNSConfigOption"},"x-omitempty":true},"searches":{"description":"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"PodDNSConfigOption":{"description":"PodDNSConfigOption defines DNS resolver options of a pod.","type":"object","properties":{"name":{"description":"Required.","type":"string","x-omitempty":true},"value":{"type":"string","x-omitempty":true}}},"PodIP":{"description":"IP address information for entries in the (plural) PodIPs field. Each entry includes:\n IP: An IP address allocated to the pod. Routable at least within the cluster.","type":"object","properties":{"ip":{"description":"ip is an IP address (IPv4 or IPv6) assigned to the pod","type":"string","x-omitempty":true}}},"PodList":{"description":"PodList is a list of Pods.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md","type":"array","items":{"$ref":"#/definitions/Pod"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"PodList","version":"v1"}]},"PodOS":{"description":"PodOS defines the OS parameters of a pod.","type":"object","required":["name"],"properties":{"name":{"description":"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null","type":"string"}}},"PodReadinessGate":{"description":"PodReadinessGate contains the reference to a pod condition","type":"object","required":["conditionType"],"properties":{"conditionType":{"description":"ConditionType refers to a condition in the pod's condition list with matching type.","type":"string"}}},"PodSecurityContext":{"description":"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.","type":"object","properties":{"fsGroup":{"description":"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.","type":"integer","format":"int64","x-omitempty":true},"fsGroupChangePolicy":{"description":"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.","type":"string","x-omitempty":true},"runAsGroup":{"description":"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.","type":"integer","format":"int64","x-omitempty":true},"runAsNonRoot":{"description":"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.","type":"boolean","x-omitempty":true},"runAsUser":{"description":"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.","type":"integer","format":"int64","x-omitempty":true},"seLinuxOptions":{"description":"The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SELinuxOptions"},"seccompProfile":{"description":"The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SeccompProfile"},"supplementalGroups":{"description":"A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. Note that this field cannot be set when spec.os.name is windows.","type":"array","items":{"type":"integer","format":"int64","x-omitempty":true},"x-omitempty":true},"sysctls":{"description":"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Sysctl"},"x-omitempty":true},"windowsOptions":{"description":"The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/WindowsSecurityContextOptions"}}},"PodSpec":{"description":"PodSpec is a description of a pod.","type":"object","required":["containers"],"properties":{"activeDeadlineSeconds":{"description":"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.","type":"integer","format":"int64","x-omitempty":true},"affinity":{"description":"If specified, the pod's scheduling constraints","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Affinity"},"automountServiceAccountToken":{"description":"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.","type":"boolean","x-omitempty":true},"containers":{"description":"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.","type":"array","items":{"$ref":"#/definitions/Container"},"x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge"},"dnsConfig":{"description":"Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodDNSConfig"},"dnsPolicy":{"description":"Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.\n\n","type":"string","x-omitempty":true},"enableServiceLinks":{"description":"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.","type":"boolean","x-omitempty":true},"ephemeralContainers":{"description":"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EphemeralContainer"},"x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"hostAliases":{"description":"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/HostAlias"},"x-kubernetes-patch-merge-key":"ip","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"hostIPC":{"description":"Use the host's ipc namespace. Optional: Default to false.","type":"boolean","x-omitempty":true},"hostNetwork":{"description":"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.","type":"boolean","x-omitempty":true},"hostPID":{"description":"Use the host's pid namespace. Optional: Default to false.","type":"boolean","x-omitempty":true},"hostname":{"description":"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.","type":"string","x-omitempty":true},"imagePullSecrets":{"description":"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"},"x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"initContainers":{"description":"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Container"},"x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"nodeName":{"description":"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.","type":"string","x-omitempty":true},"nodeSelector":{"description":"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-kubernetes-map-type":"atomic","x-omitempty":true},"os":{"description":"Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup This is a beta field and requires the IdentifyPodOS feature","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodOS"},"overhead":{"description":"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"preemptionPolicy":{"description":"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.","type":"string","x-omitempty":true},"priority":{"description":"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.","type":"integer","format":"int32","x-omitempty":true},"priorityClassName":{"description":"If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.","type":"string","x-omitempty":true},"readinessGates":{"description":"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodReadinessGate"},"x-omitempty":true},"restartPolicy":{"description":"Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy\n\n","type":"string","x-omitempty":true},"runtimeClassName":{"description":"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class","type":"string","x-omitempty":true},"schedulerName":{"description":"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.","type":"string","x-omitempty":true},"securityContext":{"description":"SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodSecurityContext"},"serviceAccount":{"description":"DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.","type":"string","x-omitempty":true},"serviceAccountName":{"description":"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/","type":"string","x-omitempty":true},"setHostnameAsFQDN":{"description":"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.","type":"boolean","x-omitempty":true},"shareProcessNamespace":{"description":"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.","type":"boolean","x-omitempty":true},"subdomain":{"description":"If specified, the fully qualified Pod hostname will be \"\u003chostname\u003e.\u003csubdomain\u003e.\u003cpod namespace\u003e.svc.\u003ccluster domain\u003e\". If not specified, the pod will not have a domainname at all.","type":"string","x-omitempty":true},"terminationGracePeriodSeconds":{"description":"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.","type":"integer","format":"int64","x-omitempty":true},"tolerations":{"description":"If specified, the pod's tolerations.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Toleration"},"x-omitempty":true},"topologySpreadConstraints":{"description":"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/TopologySpreadConstraint"},"x-kubernetes-list-map-keys":["topologyKey","whenUnsatisfiable"],"x-kubernetes-list-type":"map","x-kubernetes-patch-merge-key":"topologyKey","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"volumes":{"description":"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Volume"},"x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge,retainKeys","x-omitempty":true}}},"PodStatus":{"description":"PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.","type":"object","properties":{"conditions":{"description":"Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"containerStatuses":{"description":"The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerStatus"},"x-omitempty":true},"ephemeralContainerStatuses":{"description":"Status for any ephemeral containers that have run in this pod. This field is beta-level and available on clusters that haven't disabled the EphemeralContainers feature gate.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerStatus"},"x-omitempty":true},"hostIP":{"description":"IP address of the host to which the pod is assigned. Empty if not yet scheduled.","type":"string","x-omitempty":true},"initContainerStatuses":{"description":"The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerStatus"},"x-omitempty":true},"message":{"description":"A human readable message indicating details about why the pod is in this condition.","type":"string","x-omitempty":true},"nominatedNodeName":{"description":"nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.","type":"string","x-omitempty":true},"phase":{"description":"The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase\n\n","type":"string","x-omitempty":true},"podIP":{"description":"IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.","type":"string","x-omitempty":true},"podIPs":{"description":"podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodIP"},"x-kubernetes-patch-merge-key":"ip","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"qosClass":{"description":"The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md\n\n","type":"string","x-omitempty":true},"reason":{"description":"A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'","type":"string","x-omitempty":true},"startTime":{"description":"RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true}}},"PodTemplate":{"description":"PodTemplate describes a template for creating copies of a predefined pod.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"template":{"description":"Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodTemplateSpec"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"PodTemplate","version":"v1"}]},"PodTemplateList":{"description":"PodTemplateList is a list of PodTemplates.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of pod templates","type":"array","items":{"$ref":"#/definitions/PodTemplate"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"PodTemplateList","version":"v1"}]},"PodTemplateSpec":{"description":"PodTemplateSpec describes the data a pod should have when created from a template","type":"object","properties":{"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodSpec"}}},"PortStatus":{"type":"object","required":["port","protocol"],"properties":{"error":{"description":"Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.","type":"string","x-omitempty":true},"port":{"description":"Port is the port number of the service port of which status is recorded here","type":"integer","format":"int32"},"protocol":{"description":"Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"\n\n","type":"string"}}},"PortworxVolumeSource":{"description":"PortworxVolumeSource represents a Portworx volume resource.","type":"object","required":["volumeID"],"properties":{"fsType":{"description":"fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"volumeID":{"description":"volumeID uniquely identifies a Portworx volume","type":"string"}}},"PreferredSchedulingTerm":{"description":"An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).","type":"object","required":["weight","preference"],"properties":{"preference":{"description":"A node selector term, associated with the corresponding weight.","$ref":"#/definitions/NodeSelectorTerm"},"weight":{"description":"Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.","type":"integer","format":"int32"}}},"Probe":{"description":"Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.","type":"object","properties":{"exec":{"description":"Exec specifies the action to take.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ExecAction"},"failureThreshold":{"description":"Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.","type":"integer","format":"int32","x-omitempty":true},"grpc":{"description":"GRPC specifies an action involving a GRPC port. This is a beta field and requires enabling GRPCContainerProbe feature gate.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/GRPCAction"},"httpGet":{"description":"HTTPGet specifies the http request to perform.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/HTTPGetAction"},"initialDelaySeconds":{"description":"Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes","type":"integer","format":"int32","x-omitempty":true},"periodSeconds":{"description":"How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.","type":"integer","format":"int32","x-omitempty":true},"successThreshold":{"description":"Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.","type":"integer","format":"int32","x-omitempty":true},"tcpSocket":{"description":"TCPSocket specifies an action involving a TCP port.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/TCPSocketAction"},"terminationGracePeriodSeconds":{"description":"Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.","type":"integer","format":"int64","x-omitempty":true},"timeoutSeconds":{"description":"Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes","type":"integer","format":"int32","x-omitempty":true}}},"ProjectedVolumeSource":{"description":"Represents a projected volume source","type":"object","properties":{"defaultMode":{"description":"defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.","type":"integer","format":"int32","x-omitempty":true},"sources":{"description":"sources is the list of volume projections","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/VolumeProjection"},"x-omitempty":true}}},"QuobyteVolumeSource":{"description":"Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.","type":"object","required":["registry","volume"],"properties":{"group":{"description":"group to map volume access to Default is no group","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.","type":"boolean","x-omitempty":true},"registry":{"description":"registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes","type":"string"},"tenant":{"description":"tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin","type":"string","x-omitempty":true},"user":{"description":"user to map volume access to Defaults to serivceaccount user","type":"string","x-omitempty":true},"volume":{"description":"volume is a string that references an already created Quobyte volume by name.","type":"string"}}},"RBDPersistentVolumeSource":{"description":"Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.","type":"object","required":["monitors","image"],"properties":{"fsType":{"description":"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd","type":"string","x-omitempty":true},"image":{"description":"image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"string"},"keyring":{"description":"keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"string","x-omitempty":true},"monitors":{"description":"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"array","items":{"type":"string"}},"pool":{"description":"pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"user":{"description":"user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"string","x-omitempty":true}}},"RBDVolumeSource":{"description":"Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.","type":"object","required":["monitors","image"],"properties":{"fsType":{"description":"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd","type":"string","x-omitempty":true},"image":{"description":"image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"string"},"keyring":{"description":"keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"string","x-omitempty":true},"monitors":{"description":"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"array","items":{"type":"string"}},"pool":{"description":"pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"},"user":{"description":"user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"string","x-omitempty":true}}},"ReplicationController":{"description":"ReplicationController represents the configuration of a replication controller.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ReplicationControllerSpec"},"status":{"description":"Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ReplicationControllerStatus"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ReplicationController","version":"v1"}]},"ReplicationControllerCondition":{"description":"ReplicationControllerCondition describes the state of a replication controller at a certain point.","type":"object","required":["type","status"],"properties":{"lastTransitionTime":{"description":"The last time the condition transitioned from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"A human readable message indicating details about the transition.","type":"string","x-omitempty":true},"reason":{"description":"The reason for the condition's last transition.","type":"string","x-omitempty":true},"status":{"description":"Status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"Type of replication controller condition.","type":"string"}}},"ReplicationControllerList":{"description":"ReplicationControllerList is a collection of replication controllers.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller","type":"array","items":{"$ref":"#/definitions/ReplicationController"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ReplicationControllerList","version":"v1"}]},"ReplicationControllerSpec":{"description":"ReplicationControllerSpec is the specification of a replication controller.","type":"object","properties":{"minReadySeconds":{"description":"Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)","type":"integer","format":"int32","x-omitempty":true},"replicas":{"description":"Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller","type":"integer","format":"int32","x-omitempty":true},"selector":{"description":"Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-kubernetes-map-type":"atomic","x-omitempty":true},"template":{"description":"Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodTemplateSpec"}}},"ReplicationControllerStatus":{"description":"ReplicationControllerStatus represents the current status of a replication controller.","type":"object","required":["replicas"],"properties":{"availableReplicas":{"description":"The number of available replicas (ready for at least minReadySeconds) for this replication controller.","type":"integer","format":"int32","x-omitempty":true},"conditions":{"description":"Represents the latest available observations of a replication controller's current state.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ReplicationControllerCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"fullyLabeledReplicas":{"description":"The number of pods that have labels matching the labels of the pod template of the replication controller.","type":"integer","format":"int32","x-omitempty":true},"observedGeneration":{"description":"ObservedGeneration reflects the generation of the most recently observed replication controller.","type":"integer","format":"int64","x-omitempty":true},"readyReplicas":{"description":"The number of ready replicas for this replication controller.","type":"integer","format":"int32","x-omitempty":true},"replicas":{"description":"Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller","type":"integer","format":"int32"}}},"ResourceFieldSelector":{"description":"ResourceFieldSelector represents container resources (cpu, memory) and their output format","type":"object","required":["resource"],"properties":{"containerName":{"description":"Container name: required for volumes, optional for env vars","type":"string","x-omitempty":true},"divisor":{"description":"Specifies the output format of the exposed resources, defaults to \"1\"","x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"resource":{"description":"Required: resource to select","type":"string"}},"x-kubernetes-map-type":"atomic"},"ResourceQuota":{"description":"ResourceQuota sets aggregate quota restrictions enforced per namespace","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ResourceQuotaSpec"},"status":{"description":"Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ResourceQuotaStatus"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ResourceQuota","version":"v1"}]},"ResourceQuotaList":{"description":"ResourceQuotaList is a list of ResourceQuota items.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/","type":"array","items":{"$ref":"#/definitions/ResourceQuota"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ResourceQuotaList","version":"v1"}]},"ResourceQuotaSpec":{"description":"ResourceQuotaSpec defines the desired hard limits to enforce for Quota.","type":"object","properties":{"hard":{"description":"hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"scopeSelector":{"description":"scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ScopeSelector"},"scopes":{"description":"A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"ResourceQuotaStatus":{"description":"ResourceQuotaStatus defines the enforced hard limits and observed use.","type":"object","properties":{"hard":{"description":"Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"used":{"description":"Used is the current observed total usage of the resource in the namespace.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true}}},"ResourceRequirements":{"description":"ResourceRequirements describes the compute resource requirements.","type":"object","properties":{"limits":{"description":"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"requests":{"description":"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true}}},"SELinuxOptions":{"description":"SELinuxOptions are the labels to be applied to the container","type":"object","properties":{"level":{"description":"Level is SELinux level label that applies to the container.","type":"string","x-omitempty":true},"role":{"description":"Role is a SELinux role label that applies to the container.","type":"string","x-omitempty":true},"type":{"description":"Type is a SELinux type label that applies to the container.","type":"string","x-omitempty":true},"user":{"description":"User is a SELinux user label that applies to the container.","type":"string","x-omitempty":true}}},"ScaleIOPersistentVolumeSource":{"description":"ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume","type":"object","required":["gateway","system","secretRef"],"properties":{"fsType":{"description":"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"","type":"string","x-omitempty":true},"gateway":{"description":"gateway is the host address of the ScaleIO API Gateway.","type":"string"},"protectionDomain":{"description":"protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.","$ref":"#/definitions/SecretReference"},"sslEnabled":{"description":"sslEnabled is the flag to enable/disable SSL communication with Gateway, default false","type":"boolean","x-omitempty":true},"storageMode":{"description":"storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.","type":"string","x-omitempty":true},"storagePool":{"description":"storagePool is the ScaleIO Storage Pool associated with the protection domain.","type":"string","x-omitempty":true},"system":{"description":"system is the name of the storage system as configured in ScaleIO.","type":"string"},"volumeName":{"description":"volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.","type":"string","x-omitempty":true}}},"ScaleIOVolumeSource":{"description":"ScaleIOVolumeSource represents a persistent ScaleIO volume","type":"object","required":["gateway","system","secretRef"],"properties":{"fsType":{"description":"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".","type":"string","x-omitempty":true},"gateway":{"description":"gateway is the host address of the ScaleIO API Gateway.","type":"string"},"protectionDomain":{"description":"protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.","$ref":"#/definitions/LocalObjectReference"},"sslEnabled":{"description":"sslEnabled Flag enable/disable SSL communication with Gateway, default false","type":"boolean","x-omitempty":true},"storageMode":{"description":"storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.","type":"string","x-omitempty":true},"storagePool":{"description":"storagePool is the ScaleIO Storage Pool associated with the protection domain.","type":"string","x-omitempty":true},"system":{"description":"system is the name of the storage system as configured in ScaleIO.","type":"string"},"volumeName":{"description":"volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.","type":"string","x-omitempty":true}}},"ScopeSelector":{"description":"A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.","type":"object","properties":{"matchExpressions":{"description":"A list of scope selector requirements by scope of the resources.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ScopedResourceSelectorRequirement"},"x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"ScopedResourceSelectorRequirement":{"description":"A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.","type":"object","required":["scopeName","operator"],"properties":{"operator":{"description":"Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.\n\n","type":"string"},"scopeName":{"description":"The name of the scope that the selector applies to.\n\n","type":"string"},"values":{"description":"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"SeccompProfile":{"description":"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.","type":"object","required":["type"],"properties":{"localhostProfile":{"description":"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\".","type":"string","x-omitempty":true},"type":{"description":"type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.\n\n","type":"string"}},"x-kubernetes-unions":[{"discriminator":"type","fields-to-discriminateBy":{"localhostProfile":"LocalhostProfile"}}]},"Secret":{"description":"Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.","type":"object","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","x-omitempty":true},"data":{"description":"Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4","type":"object","additionalProperties":{"type":"string","format":"byte","x-omitempty":true},"x-omitempty":true},"immutable":{"description":"Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.","type":"boolean","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"stringData":{"description":"stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true},"type":{"description":"Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types","type":"string","x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Secret","version":"v1"}]},"SecretEnvSource":{"description":"SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.","type":"object","properties":{"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true},"optional":{"description":"Specify whether the Secret must be defined","type":"boolean","x-omitempty":true}}},"SecretKeySelector":{"description":"SecretKeySelector selects a key of a Secret.","type":"object","required":["key"],"properties":{"key":{"description":"The key of the secret to select from. Must be a valid secret key.","type":"string"},"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true},"optional":{"description":"Specify whether the Secret or its key must be defined","type":"boolean","x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"SecretList":{"description":"SecretList is a list of Secret.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret","type":"array","items":{"$ref":"#/definitions/Secret"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"SecretList","version":"v1"}]},"SecretProjection":{"description":"Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.","type":"object","properties":{"items":{"description":"items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/KeyToPath"},"x-omitempty":true},"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true},"optional":{"description":"optional field specify whether the Secret or its key must be defined","type":"boolean","x-omitempty":true}}},"SecretReference":{"description":"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace","type":"object","properties":{"name":{"description":"name is unique within a namespace to reference a secret resource.","type":"string","x-omitempty":true},"namespace":{"description":"namespace defines the space within which the secret name must be unique.","type":"string","x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"SecretVolumeSource":{"description":"Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.","type":"object","properties":{"defaultMode":{"description":"defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.","type":"integer","format":"int32","x-omitempty":true},"items":{"description":"items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/KeyToPath"},"x-omitempty":true},"optional":{"description":"optional field specify whether the Secret or its keys must be defined","type":"boolean","x-omitempty":true},"secretName":{"description":"secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret","type":"string","x-omitempty":true}}},"SecurityContext":{"description":"SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.","type":"object","properties":{"allowPrivilegeEscalation":{"description":"AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows.","type":"boolean","x-omitempty":true},"capabilities":{"description":"The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Capabilities"},"privileged":{"description":"Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.","type":"boolean","x-omitempty":true},"procMount":{"description":"procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows.","type":"string","x-omitempty":true},"readOnlyRootFilesystem":{"description":"Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.","type":"boolean","x-omitempty":true},"runAsGroup":{"description":"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.","type":"integer","format":"int64","x-omitempty":true},"runAsNonRoot":{"description":"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.","type":"boolean","x-omitempty":true},"runAsUser":{"description":"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.","type":"integer","format":"int64","x-omitempty":true},"seLinuxOptions":{"description":"The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SELinuxOptions"},"seccompProfile":{"description":"The seccomp options to use by this container. If seccomp options are provided at both the pod \u0026 container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SeccompProfile"},"windowsOptions":{"description":"The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/WindowsSecurityContextOptions"}}},"Service":{"description":"Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ServiceSpec"},"status":{"description":"Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ServiceStatus"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Service","version":"v1"}]},"ServiceAccount":{"description":"ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets","type":"object","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","x-omitempty":true},"automountServiceAccountToken":{"description":"AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.","type":"boolean","x-omitempty":true},"imagePullSecrets":{"description":"ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"},"x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"secrets":{"description":"Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ObjectReference"},"x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge","x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ServiceAccount","version":"v1"}]},"ServiceAccountList":{"description":"ServiceAccountList is a list of ServiceAccount objects","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/","type":"array","items":{"$ref":"#/definitions/ServiceAccount"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ServiceAccountList","version":"v1"}]},"ServiceAccountTokenProjection":{"description":"ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).","type":"object","required":["path"],"properties":{"audience":{"description":"audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.","type":"string","x-omitempty":true},"expirationSeconds":{"description":"expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.","type":"integer","format":"int64","x-omitempty":true},"path":{"description":"path is the path relative to the mount point of the file to project the token into.","type":"string"}}},"ServiceList":{"description":"ServiceList holds a list of services.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of services","type":"array","items":{"$ref":"#/definitions/Service"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ServiceList","version":"v1"}]},"ServicePort":{"description":"ServicePort contains information on service's port.","type":"object","required":["port"],"properties":{"appProtocol":{"description":"The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.","type":"string","x-omitempty":true},"name":{"description":"The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.","type":"string","x-omitempty":true},"nodePort":{"description":"The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport","type":"integer","format":"int32","x-omitempty":true},"port":{"description":"The port that will be exposed by this service.","type":"integer","format":"int32"},"protocol":{"description":"The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.\n\n","type":"string","x-omitempty":true},"targetPort":{"description":"Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service","x-go-type":{"import":{"alias":"apimachinery_pkg_util_intstr","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr"},"type":"IntOrString"},"x-nullable":true,"x-omitempty":true}}},"ServiceSpec":{"description":"ServiceSpec describes the attributes that a user creates on a service.","type":"object","properties":{"allocateLoadBalancerNodePorts":{"description":"allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type.","type":"boolean","x-omitempty":true},"clusterIP":{"description":"clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies","type":"string","x-omitempty":true},"clusterIPs":{"description":"ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.\n\nThis field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies","type":"array","items":{"type":"string","x-omitempty":true},"x-kubernetes-list-type":"atomic","x-omitempty":true},"externalIPs":{"description":"externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"externalName":{"description":"externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\".","type":"string","x-omitempty":true},"externalTrafficPolicy":{"description":"externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading.\n\n","type":"string","x-omitempty":true},"healthCheckNodePort":{"description":"healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type).","type":"integer","format":"int32","x-omitempty":true},"internalTrafficPolicy":{"description":"InternalTrafficPolicy specifies if the cluster internal traffic should be routed to all endpoints or node-local endpoints only. \"Cluster\" routes internal traffic to a Service to all endpoints. \"Local\" routes traffic to node-local endpoints only, traffic is dropped if no node-local endpoints are ready. The default value is \"Cluster\".","type":"string","x-omitempty":true},"ipFamilies":{"description":"IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName.\n\nThis field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.","type":"array","items":{"type":"string","x-omitempty":true},"x-kubernetes-list-type":"atomic","x-omitempty":true},"ipFamilyPolicy":{"description":"IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName.","type":"string","x-omitempty":true},"loadBalancerClass":{"description":"loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.","type":"string","x-omitempty":true},"loadBalancerIP":{"description":"Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations, and it cannot support dual-stack. As of Kubernetes v1.24, users are encouraged to use implementation-specific annotations when available. This field may be removed in a future API version.","type":"string","x-omitempty":true},"loadBalancerSourceRanges":{"description":"If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"ports":{"description":"The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ServicePort"},"x-kubernetes-list-map-keys":["port","protocol"],"x-kubernetes-list-type":"map","x-kubernetes-patch-merge-key":"port","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"publishNotReadyAddresses":{"description":"publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.","type":"boolean","x-omitempty":true},"selector":{"description":"Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-kubernetes-map-type":"atomic","x-omitempty":true},"sessionAffinity":{"description":"Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies\n\n","type":"string","x-omitempty":true},"sessionAffinityConfig":{"description":"sessionAffinityConfig contains the configurations of session affinity.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SessionAffinityConfig"},"type":{"description":"type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types\n\n","type":"string","x-omitempty":true}}},"ServiceStatus":{"description":"ServiceStatus represents the current status of a service.","type":"object","properties":{"conditions":{"description":"Current service state","type":"array","items":{"x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Condition"},"x-nullable":true,"x-omitempty":true},"x-kubernetes-list-map-keys":["type"],"x-kubernetes-list-type":"map","x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"loadBalancer":{"description":"LoadBalancer contains the current status of the load-balancer, if one is present.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LoadBalancerStatus"}}},"SessionAffinityConfig":{"description":"SessionAffinityConfig represents the configurations of session affinity.","type":"object","properties":{"clientIP":{"description":"clientIP contains the configurations of Client IP based session affinity.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ClientIPConfig"}}},"StorageOSPersistentVolumeSource":{"description":"Represents a StorageOS persistent volume resource.","type":"object","properties":{"fsType":{"description":"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ObjectReference"},"volumeName":{"description":"volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.","type":"string","x-omitempty":true},"volumeNamespace":{"description":"volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.","type":"string","x-omitempty":true}}},"StorageOSVolumeSource":{"description":"Represents a StorageOS persistent volume resource.","type":"object","properties":{"fsType":{"description":"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"},"volumeName":{"description":"volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.","type":"string","x-omitempty":true},"volumeNamespace":{"description":"volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.","type":"string","x-omitempty":true}}},"Sysctl":{"description":"Sysctl defines a kernel parameter to be set","type":"object","required":["name","value"],"properties":{"name":{"description":"Name of a property to set","type":"string"},"value":{"description":"Value of a property to set","type":"string"}}},"TCPSocketAction":{"description":"TCPSocketAction describes an action based on opening a socket","type":"object","required":["port"],"properties":{"host":{"description":"Optional: Host name to connect to, defaults to the pod IP.","type":"string","x-omitempty":true},"port":{"description":"Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.","x-go-type":{"import":{"alias":"apimachinery_pkg_util_intstr","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr"},"type":"IntOrString"}}}},"Taint":{"description":"The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.","type":"object","required":["key","effect"],"properties":{"effect":{"description":"Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.\n\n","type":"string"},"key":{"description":"Required. The taint key to be applied to a node.","type":"string"},"timeAdded":{"description":"TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"value":{"description":"The taint value corresponding to the taint key.","type":"string","x-omitempty":true}}},"Toleration":{"description":"The pod this Toleration is attached to tolerates any taint that matches the triple \u003ckey,value,effect\u003e using the matching operator \u003coperator\u003e.","type":"object","properties":{"effect":{"description":"Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.\n\n","type":"string","x-omitempty":true},"key":{"description":"Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.","type":"string","x-omitempty":true},"operator":{"description":"Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.\n\n","type":"string","x-omitempty":true},"tolerationSeconds":{"description":"TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.","type":"integer","format":"int64","x-omitempty":true},"value":{"description":"Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.","type":"string","x-omitempty":true}}},"TopologySelectorLabelRequirement":{"description":"A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.","type":"object","required":["key","values"],"properties":{"key":{"description":"The label key that the selector applies to.","type":"string"},"values":{"description":"An array of string values. One value must match the label to be selected. Each entry in Values is ORed.","type":"array","items":{"type":"string"}}}},"TopologySelectorTerm":{"description":"A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.","type":"object","properties":{"matchLabelExpressions":{"description":"A list of topology selector requirements by labels.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/TopologySelectorLabelRequirement"},"x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"TopologySpreadConstraint":{"description":"TopologySpreadConstraint specifies how to spread matching pods among the given topology.","type":"object","required":["maxSkew","topologyKey","whenUnsatisfiable"],"properties":{"labelSelector":{"description":"LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"},"x-nullable":true,"x-omitempty":true},"maxSkew":{"description":"MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.","type":"integer","format":"int32"},"minDomains":{"description":"MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.\n\nThis is an alpha field and requires enabling MinDomainsInPodTopologySpread feature gate.","type":"integer","format":"int32","x-omitempty":true},"topologyKey":{"description":"TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each \u003ckey, value\u003e as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes match the node selector. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field.","type":"string"},"whenUnsatisfiable":{"description":"WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.\n\n","type":"string"}}},"TypedLocalObjectReference":{"description":"TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.","type":"object","required":["kind","name"],"properties":{"apiGroup":{"description":"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.","type":"string","x-omitempty":true},"kind":{"description":"Kind is the type of resource being referenced","type":"string"},"name":{"description":"Name is the name of resource being referenced","type":"string"}},"x-kubernetes-map-type":"atomic"},"Volume":{"description":"Volume represents a named volume in a pod that may be accessed by any container in the pod.","type":"object","required":["name"],"properties":{"awsElasticBlockStore":{"description":"awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/AWSElasticBlockStoreVolumeSource"},"azureDisk":{"description":"azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/AzureDiskVolumeSource"},"azureFile":{"description":"azureFile represents an Azure File Service mount on the host and bind mount to the pod.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/AzureFileVolumeSource"},"cephfs":{"description":"cephFS represents a Ceph FS mount on the host that shares a pod's lifetime","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/CephFSVolumeSource"},"cinder":{"description":"cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/CinderVolumeSource"},"configMap":{"description":"configMap represents a configMap that should populate this volume","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ConfigMapVolumeSource"},"csi":{"description":"csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/CSIVolumeSource"},"downwardAPI":{"description":"downwardAPI represents downward API about the pod that should populate this volume","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DownwardAPIVolumeSource"},"emptyDir":{"description":"emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EmptyDirVolumeSource"},"ephemeral":{"description":"ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EphemeralVolumeSource"},"fc":{"description":"fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/FCVolumeSource"},"flexVolume":{"description":"flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/FlexVolumeSource"},"flocker":{"description":"flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/FlockerVolumeSource"},"gcePersistentDisk":{"description":"gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/GCEPersistentDiskVolumeSource"},"gitRepo":{"description":"gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/GitRepoVolumeSource"},"glusterfs":{"description":"glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/GlusterfsVolumeSource"},"hostPath":{"description":"hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/HostPathVolumeSource"},"iscsi":{"description":"iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ISCSIVolumeSource"},"name":{"description":"name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string"},"nfs":{"description":"nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NFSVolumeSource"},"persistentVolumeClaim":{"description":"persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PersistentVolumeClaimVolumeSource"},"photonPersistentDisk":{"description":"photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PhotonPersistentDiskVolumeSource"},"portworxVolume":{"description":"portworxVolume represents a portworx volume attached and mounted on kubelets host machine","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PortworxVolumeSource"},"projected":{"description":"projected items for all in one resources secrets, configmaps, and downward API","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ProjectedVolumeSource"},"quobyte":{"description":"quobyte represents a Quobyte mount on the host that shares a pod's lifetime","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/QuobyteVolumeSource"},"rbd":{"description":"rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/RBDVolumeSource"},"scaleIO":{"description":"scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ScaleIOVolumeSource"},"secret":{"description":"secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretVolumeSource"},"storageos":{"description":"storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StorageOSVolumeSource"},"vsphereVolume":{"description":"vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/VsphereVirtualDiskVolumeSource"}}},"VolumeDevice":{"description":"volumeDevice describes a mapping of a raw block device within a container.","type":"object","required":["name","devicePath"],"properties":{"devicePath":{"description":"devicePath is the path inside of the container that the device will be mapped to.","type":"string"},"name":{"description":"name must match the name of a persistentVolumeClaim in the pod","type":"string"}}},"VolumeMount":{"description":"VolumeMount describes a mounting of a Volume within a container.","type":"object","required":["name","mountPath"],"properties":{"mountPath":{"description":"Path within the container at which the volume should be mounted. Must not contain ':'.","type":"string"},"mountPropagation":{"description":"mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.","type":"string","x-omitempty":true},"name":{"description":"This must match the Name of a Volume.","type":"string"},"readOnly":{"description":"Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.","type":"boolean","x-omitempty":true},"subPath":{"description":"Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).","type":"string","x-omitempty":true},"subPathExpr":{"description":"Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.","type":"string","x-omitempty":true}}},"VolumeNodeAffinity":{"description":"VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.","type":"object","properties":{"required":{"description":"required specifies hard node constraints that must be met.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeSelector"}}},"VolumeProjection":{"description":"Projection that may be projected along with other supported volume types","type":"object","properties":{"configMap":{"description":"configMap information about the configMap data to project","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ConfigMapProjection"},"downwardAPI":{"description":"downwardAPI information about the downwardAPI data to project","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DownwardAPIProjection"},"secret":{"description":"secret information about the secret data to project","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretProjection"},"serviceAccountToken":{"description":"serviceAccountToken is information about the serviceAccountToken data to project","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ServiceAccountTokenProjection"}}},"VsphereVirtualDiskVolumeSource":{"description":"Represents a vSphere volume resource.","type":"object","required":["volumePath"],"properties":{"fsType":{"description":"fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.","type":"string","x-omitempty":true},"storagePolicyID":{"description":"storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.","type":"string","x-omitempty":true},"storagePolicyName":{"description":"storagePolicyName is the storage Policy Based Management (SPBM) profile name.","type":"string","x-omitempty":true},"volumePath":{"description":"volumePath is the path that identifies vSphere volume vmdk","type":"string"}}},"WeightedPodAffinityTerm":{"description":"The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)","type":"object","required":["weight","podAffinityTerm"],"properties":{"podAffinityTerm":{"description":"Required. A pod affinity term, associated with the corresponding weight.","$ref":"#/definitions/PodAffinityTerm"},"weight":{"description":"weight associated with matching the corresponding podAffinityTerm, in the range 1-100.","type":"integer","format":"int32"}}},"WindowsSecurityContextOptions":{"description":"WindowsSecurityContextOptions contain Windows-specific options and credentials.","type":"object","properties":{"gmsaCredentialSpec":{"description":"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.","type":"string","x-omitempty":true},"gmsaCredentialSpecName":{"description":"GMSACredentialSpecName is the name of the GMSA credential spec to use.","type":"string","x-omitempty":true},"hostProcess":{"description":"HostProcess determines if a container should be run as a 'Host Process' container. This field is alpha-level and will only be honored by components that enable the WindowsHostProcessContainers feature flag. Setting this field without the feature flag will result in errors when validating the Pod. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.","type":"boolean","x-omitempty":true},"runAsUserName":{"description":"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.","type":"string","x-omitempty":true}}}}} \ No newline at end of file +{"swagger":"2.0","info":{"title":"kubernetes","version":"unversioned"},"paths":{},"definitions":{"AWSElasticBlockStoreVolumeSource":{"description":"Represents a Persistent Disk resource in AWS.\n\nAn AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.","type":"object","required":["volumeID"],"properties":{"fsType":{"description":"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore","type":"string","x-omitempty":true},"partition":{"description":"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).","type":"integer","format":"int32","x-omitempty":true},"readOnly":{"description":"readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore","type":"boolean","x-omitempty":true},"volumeID":{"description":"volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore","type":"string"}}},"Affinity":{"description":"Affinity is a group of affinity scheduling rules.","type":"object","properties":{"nodeAffinity":{"description":"Describes node affinity scheduling rules for the pod.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeAffinity"},"podAffinity":{"description":"Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodAffinity"},"podAntiAffinity":{"description":"Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodAntiAffinity"}}},"AttachedVolume":{"description":"AttachedVolume describes a volume attached to a node","type":"object","required":["name","devicePath"],"properties":{"devicePath":{"description":"DevicePath represents the device path where the volume should be available","type":"string"},"name":{"description":"Name of the attached volume","type":"string"}}},"AzureDiskVolumeSource":{"description":"AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.","type":"object","required":["diskName","diskURI"],"properties":{"cachingMode":{"description":"cachingMode is the Host Caching mode: None, Read Only, Read Write.","type":"string","x-omitempty":true},"diskName":{"description":"diskName is the Name of the data disk in the blob storage","type":"string"},"diskURI":{"description":"diskURI is the URI of data disk in the blob storage","type":"string"},"fsType":{"description":"fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.","type":"string","x-omitempty":true},"kind":{"description":"kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true}}},"AzureFilePersistentVolumeSource":{"description":"AzureFile represents an Azure File Service mount on the host and bind mount to the pod.","type":"object","required":["secretName","shareName"],"properties":{"readOnly":{"description":"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"secretName":{"description":"secretName is the name of secret that contains Azure Storage Account Name and Key","type":"string"},"secretNamespace":{"description":"secretNamespace is the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod","type":"string","x-omitempty":true},"shareName":{"description":"shareName is the azure Share Name","type":"string"}}},"AzureFileVolumeSource":{"description":"AzureFile represents an Azure File Service mount on the host and bind mount to the pod.","type":"object","required":["secretName","shareName"],"properties":{"readOnly":{"description":"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"secretName":{"description":"secretName is the name of secret that contains Azure Storage Account Name and Key","type":"string"},"shareName":{"description":"shareName is the azure share Name","type":"string"}}},"Binding":{"description":"Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.","type":"object","required":["target"],"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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"target":{"description":"The target object that you want to bind to the standard object.","$ref":"#/definitions/ObjectReference"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Binding","version":"v1"}]},"CSIPersistentVolumeSource":{"description":"Represents storage that is managed by an external CSI volume driver (Beta feature)","type":"object","required":["driver","volumeHandle"],"properties":{"controllerExpandSecretRef":{"description":"controllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"controllerPublishSecretRef":{"description":"controllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"driver":{"description":"driver is the name of the driver to use for this volume. Required.","type":"string"},"fsType":{"description":"fsType to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".","type":"string","x-omitempty":true},"nodeExpandSecretRef":{"description":"nodeExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeExpandVolume call. This is a beta field which is enabled default by CSINodeExpandSecret feature gate. This field is optional, may be omitted if no secret is required. If the secret object contains more than one secret, all secrets are passed.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"nodePublishSecretRef":{"description":"nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"nodeStageSecretRef":{"description":"nodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"readOnly":{"description":"readOnly value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).","type":"boolean","x-omitempty":true},"volumeAttributes":{"description":"volumeAttributes of the volume to publish.","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true},"volumeHandle":{"description":"volumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required.","type":"string"}}},"CSIVolumeSource":{"description":"Represents a source location of a volume to mount, managed by an external CSI driver","type":"object","required":["driver"],"properties":{"driver":{"description":"driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.","type":"string"},"fsType":{"description":"fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.","type":"string","x-omitempty":true},"nodePublishSecretRef":{"description":"nodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"},"readOnly":{"description":"readOnly specifies a read-only configuration for the volume. Defaults to false (read/write).","type":"boolean","x-omitempty":true},"volumeAttributes":{"description":"volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"Capabilities":{"description":"Adds and removes POSIX capabilities from running containers.","type":"object","properties":{"add":{"description":"Added capabilities","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"drop":{"description":"Removed capabilities","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"CephFSPersistentVolumeSource":{"description":"Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.","type":"object","required":["monitors"],"properties":{"monitors":{"description":"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","type":"array","items":{"type":"string"}},"path":{"description":"path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","type":"boolean","x-omitempty":true},"secretFile":{"description":"secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","type":"string","x-omitempty":true},"secretRef":{"description":"secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"user":{"description":"user is Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","type":"string","x-omitempty":true}}},"CephFSVolumeSource":{"description":"Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.","type":"object","required":["monitors"],"properties":{"monitors":{"description":"monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","type":"array","items":{"type":"string"}},"path":{"description":"path is Optional: Used as the mounted root, rather than the full Ceph tree, default is /","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","type":"boolean","x-omitempty":true},"secretFile":{"description":"secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","type":"string","x-omitempty":true},"secretRef":{"description":"secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"},"user":{"description":"user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it","type":"string","x-omitempty":true}}},"CinderPersistentVolumeSource":{"description":"Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.","type":"object","required":["volumeID"],"properties":{"fsType":{"description":"fsType Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef is Optional: points to a secret object containing parameters used to connect to OpenStack.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"volumeID":{"description":"volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md","type":"string"}}},"CinderVolumeSource":{"description":"Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.","type":"object","required":["volumeID"],"properties":{"fsType":{"description":"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef is optional: points to a secret object containing parameters used to connect to OpenStack.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"},"volumeID":{"description":"volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md","type":"string"}}},"ClaimSource":{"description":"ClaimSource describes a reference to a ResourceClaim.\n\nExactly one of these fields should be set. Consumers of this type must treat an empty object as if it has an unknown value.","type":"object","properties":{"resourceClaimName":{"description":"ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod.","type":"string","x-omitempty":true},"resourceClaimTemplateName":{"description":"ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The name of the ResourceClaim will be \u003cpod name\u003e-\u003cresource name\u003e, where \u003cresource name\u003e is the PodResourceClaim.Name. Pod validation will reject the pod if the concatenated name is not valid for a ResourceClaim (e.g. too long).\n\nAn existing ResourceClaim with that name that is not owned by the pod will not be used for the pod to avoid using an unrelated resource by mistake. Scheduling and pod startup are then blocked until the unrelated ResourceClaim is removed.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.","type":"string","x-omitempty":true}}},"ClientIPConfig":{"description":"ClientIPConfig represents the configurations of Client IP based session affinity.","type":"object","properties":{"timeoutSeconds":{"description":"timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be \u003e0 \u0026\u0026 \u003c=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).","type":"integer","format":"int32","x-omitempty":true}}},"ComponentCondition":{"description":"Information about the condition of a component.","type":"object","required":["type","status"],"properties":{"error":{"description":"Condition error code for a component. For example, a health check error code.","type":"string","x-omitempty":true},"message":{"description":"Message about the condition for a component. For example, information about a health check.","type":"string","x-omitempty":true},"status":{"description":"Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".","type":"string"},"type":{"description":"Type of condition for a component. Valid value: \"Healthy\"","type":"string"}}},"ComponentStatus":{"description":"ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+","type":"object","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","x-omitempty":true},"conditions":{"description":"List of component conditions observed","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ComponentCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ComponentStatus","version":"v1"}]},"ComponentStatusList":{"description":"Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of ComponentStatus objects.","type":"array","items":{"$ref":"#/definitions/ComponentStatus"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ComponentStatusList","version":"v1"}]},"ConfigMap":{"description":"ConfigMap holds configuration data for pods to consume.","type":"object","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","x-omitempty":true},"binaryData":{"description":"BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.","type":"object","additionalProperties":{"type":"string","format":"byte","x-omitempty":true},"x-omitempty":true},"data":{"description":"Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true},"immutable":{"description":"Immutable, if set to true, ensures that data stored in the ConfigMap cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.","type":"boolean","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ConfigMap","version":"v1"}]},"ConfigMapEnvSource":{"description":"ConfigMapEnvSource selects a ConfigMap to populate the environment variables with.\n\nThe contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.","type":"object","properties":{"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true},"optional":{"description":"Specify whether the ConfigMap must be defined","type":"boolean","x-omitempty":true}}},"ConfigMapKeySelector":{"description":"Selects a key from a ConfigMap.","type":"object","required":["key"],"properties":{"key":{"description":"The key to select.","type":"string"},"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true},"optional":{"description":"Specify whether the ConfigMap or its key must be defined","type":"boolean","x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"ConfigMapList":{"description":"ConfigMapList is a resource containing a list of ConfigMap objects.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"Items is the list of ConfigMaps.","type":"array","items":{"$ref":"#/definitions/ConfigMap"}},"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","x-omitempty":true},"metadata":{"description":"More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ConfigMapList","version":"v1"}]},"ConfigMapNodeConfigSource":{"description":"ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration","type":"object","required":["namespace","name","kubeletConfigKey"],"properties":{"kubeletConfigKey":{"description":"KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.","type":"string"},"name":{"description":"Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.","type":"string"},"namespace":{"description":"Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.","type":"string"},"resourceVersion":{"description":"ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.","type":"string","x-omitempty":true},"uid":{"description":"UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.","type":"string","x-omitempty":true}}},"ConfigMapProjection":{"description":"Adapts a ConfigMap into a projected volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.","type":"object","properties":{"items":{"description":"items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/KeyToPath"},"x-omitempty":true},"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true},"optional":{"description":"optional specify whether the ConfigMap or its keys must be defined","type":"boolean","x-omitempty":true}}},"ConfigMapVolumeSource":{"description":"Adapts a ConfigMap into a volume.\n\nThe contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.","type":"object","properties":{"defaultMode":{"description":"defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.","type":"integer","format":"int32","x-omitempty":true},"items":{"description":"items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/KeyToPath"},"x-omitempty":true},"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true},"optional":{"description":"optional specify whether the ConfigMap or its keys must be defined","type":"boolean","x-omitempty":true}}},"Container":{"description":"A single application container that you want to run within a pod.","type":"object","required":["name"],"properties":{"args":{"description":"Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"command":{"description":"Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"env":{"description":"List of environment variables to set in the container. Cannot be updated.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EnvVar"},"x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"envFrom":{"description":"List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EnvFromSource"},"x-omitempty":true},"image":{"description":"Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.","type":"string","x-omitempty":true},"imagePullPolicy":{"description":"Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images","type":"string","x-omitempty":true},"lifecycle":{"description":"Actions that the management system should take in response to container lifecycle events. Cannot be updated.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Lifecycle"},"livenessProbe":{"description":"Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Probe"},"name":{"description":"Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.","type":"string"},"ports":{"description":"List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerPort"},"x-kubernetes-list-map-keys":["containerPort","protocol"],"x-kubernetes-list-type":"map","x-kubernetes-patch-merge-key":"containerPort","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"readinessProbe":{"description":"Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Probe"},"resizePolicy":{"description":"Resources resize policy for the container.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerResizePolicy"},"x-kubernetes-list-type":"atomic","x-omitempty":true},"resources":{"description":"Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ResourceRequirements"},"securityContext":{"description":"SecurityContext defines the security options the container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext. More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecurityContext"},"startupProbe":{"description":"StartupProbe indicates that the Pod has successfully initialized. If specified, no other probes are executed until this completes successfully. If this probe fails, the Pod will be restarted, just as if the livenessProbe failed. This can be used to provide different probe parameters at the beginning of a Pod's lifecycle, when it might take a long time to load data or warm a cache, than during steady-state operation. This cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Probe"},"stdin":{"description":"Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.","type":"boolean","x-omitempty":true},"stdinOnce":{"description":"Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false","type":"boolean","x-omitempty":true},"terminationMessagePath":{"description":"Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.","type":"string","x-omitempty":true},"terminationMessagePolicy":{"description":"Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.","type":"string","x-omitempty":true},"tty":{"description":"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.","type":"boolean","x-omitempty":true},"volumeDevices":{"description":"volumeDevices is the list of block devices to be used by the container.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/VolumeDevice"},"x-kubernetes-patch-merge-key":"devicePath","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"volumeMounts":{"description":"Pod volumes to mount into the container's filesystem. Cannot be updated.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/VolumeMount"},"x-kubernetes-patch-merge-key":"mountPath","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"workingDir":{"description":"Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.","type":"string","x-omitempty":true}}},"ContainerImage":{"description":"Describe a container image","type":"object","properties":{"names":{"description":"Names by which this image is known. e.g. [\"kubernetes.example/hyperkube:v1.0.7\", \"cloud-vendor.registry.example/cloud-vendor/hyperkube:v1.0.7\"]","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"sizeBytes":{"description":"The size of the image in bytes.","type":"integer","format":"int64","x-omitempty":true}}},"ContainerPort":{"description":"ContainerPort represents a network port in a single container.","type":"object","required":["containerPort"],"properties":{"containerPort":{"description":"Number of port to expose on the pod's IP address. This must be a valid port number, 0 \u003c x \u003c 65536.","type":"integer","format":"int32"},"hostIP":{"description":"What host IP to bind the external port to.","type":"string","x-omitempty":true},"hostPort":{"description":"Number of port to expose on the host. If specified, this must be a valid port number, 0 \u003c x \u003c 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.","type":"integer","format":"int32","x-omitempty":true},"name":{"description":"If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.","type":"string","x-omitempty":true},"protocol":{"description":"Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".","type":"string","x-omitempty":true}}},"ContainerResizePolicy":{"description":"ContainerResizePolicy represents resource resize policy for the container.","type":"object","required":["resourceName","restartPolicy"],"properties":{"resourceName":{"description":"Name of the resource to which this resource resize policy applies. Supported values: cpu, memory.","type":"string"},"restartPolicy":{"description":"Restart policy to apply when specified resource is resized. If not specified, it defaults to NotRequired.","type":"string"}}},"ContainerState":{"description":"ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.","type":"object","properties":{"running":{"description":"Details about a running container","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerStateRunning"},"terminated":{"description":"Details about a terminated container","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerStateTerminated"},"waiting":{"description":"Details about a waiting container","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerStateWaiting"}}},"ContainerStateRunning":{"description":"ContainerStateRunning is a running state of a container.","type":"object","properties":{"startedAt":{"description":"Time at which the container was last (re-)started","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true}}},"ContainerStateTerminated":{"description":"ContainerStateTerminated is a terminated state of a container.","type":"object","required":["exitCode"],"properties":{"containerID":{"description":"Container's ID in the format '\u003ctype\u003e://\u003ccontainer_id\u003e'","type":"string","x-omitempty":true},"exitCode":{"description":"Exit status from the last termination of the container","type":"integer","format":"int32"},"finishedAt":{"description":"Time at which the container last terminated","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"Message regarding the last termination of the container","type":"string","x-omitempty":true},"reason":{"description":"(brief) reason from the last termination of the container","type":"string","x-omitempty":true},"signal":{"description":"Signal from the last termination of the container","type":"integer","format":"int32","x-omitempty":true},"startedAt":{"description":"Time at which previous execution of the container started","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true}}},"ContainerStateWaiting":{"description":"ContainerStateWaiting is a waiting state of a container.","type":"object","properties":{"message":{"description":"Message regarding why the container is not yet running.","type":"string","x-omitempty":true},"reason":{"description":"(brief) reason the container is not yet running.","type":"string","x-omitempty":true}}},"ContainerStatus":{"description":"ContainerStatus contains details for the current status of this container.","type":"object","required":["name","ready","restartCount","image","imageID"],"properties":{"allocatedResources":{"description":"AllocatedResources represents the compute resources allocated for this container by the node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission and after successfully admitting desired pod resize.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"containerID":{"description":"ContainerID is the ID of the container in the format '\u003ctype\u003e://\u003ccontainer_id\u003e'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\").","type":"string","x-omitempty":true},"image":{"description":"Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images.","type":"string"},"imageID":{"description":"ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime.","type":"string"},"lastState":{"description":"LastTerminationState holds the last termination state of the container to help debug container crashes and restarts. This field is not populated if the container is still running and RestartCount is 0.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerState"},"name":{"description":"Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated.","type":"string"},"ready":{"description":"Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).\n\nThe value is typically used to determine whether a container is ready to accept traffic.","type":"boolean"},"resources":{"description":"Resources represents the compute resource requests and limits that have been successfully enacted on the running container after it has been started or has been successfully resized.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ResourceRequirements"},"restartCount":{"description":"RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.","type":"integer","format":"int32"},"started":{"description":"Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false.","type":"boolean","x-omitempty":true},"state":{"description":"State holds details about the container's current condition.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerState"}}},"DaemonEndpoint":{"description":"DaemonEndpoint contains information about a single Daemon endpoint.","type":"object","required":["Port"],"properties":{"Port":{"description":"Port number of the given endpoint.","type":"integer","format":"int32"}}},"DownwardAPIProjection":{"description":"Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.","type":"object","properties":{"items":{"description":"Items is a list of DownwardAPIVolume file","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DownwardAPIVolumeFile"},"x-omitempty":true}}},"DownwardAPIVolumeFile":{"description":"DownwardAPIVolumeFile represents information to create the file containing the pod field","type":"object","required":["path"],"properties":{"fieldRef":{"description":"Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ObjectFieldSelector"},"mode":{"description":"Optional: mode bits used to set permissions on this file, must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.","type":"integer","format":"int32","x-omitempty":true},"path":{"description":"Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'","type":"string"},"resourceFieldRef":{"description":"Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ResourceFieldSelector"}}},"DownwardAPIVolumeSource":{"description":"DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.","type":"object","properties":{"defaultMode":{"description":"Optional: mode bits to use on created files by default. Must be a Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.","type":"integer","format":"int32","x-omitempty":true},"items":{"description":"Items is a list of downward API volume file","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DownwardAPIVolumeFile"},"x-omitempty":true}}},"EmptyDirVolumeSource":{"description":"Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.","type":"object","properties":{"medium":{"description":"medium represents what type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir","type":"string","x-omitempty":true},"sizeLimit":{"description":"sizeLimit is the total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir","x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true}}},"EndpointAddress":{"description":"EndpointAddress is a tuple that describes single IP address.","type":"object","required":["ip"],"properties":{"hostname":{"description":"The Hostname of this endpoint","type":"string","x-omitempty":true},"ip":{"description":"The IP of this endpoint. May not be loopback (127.0.0.0/8 or ::1), link-local (169.254.0.0/16 or fe80::/10), or link-local multicast (224.0.0.0/24 or ff02::/16).","type":"string"},"nodeName":{"description":"Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.","type":"string","x-omitempty":true},"targetRef":{"description":"Reference to object providing the endpoint.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ObjectReference"}},"x-kubernetes-map-type":"atomic"},"EndpointPort":{"description":"EndpointPort is a tuple that describes a single port.","type":"object","required":["port"],"properties":{"appProtocol":{"description":"The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:\n\n* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).\n\n* Kubernetes-defined prefixed names:\n * 'kubernetes.io/h2c' - HTTP/2 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540\n\n* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.","type":"string","x-omitempty":true},"name":{"description":"The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.","type":"string","x-omitempty":true},"port":{"description":"The port number of the endpoint.","type":"integer","format":"int32"},"protocol":{"description":"The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.","type":"string","x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"EndpointSubset":{"description":"EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given:\n\n\t{\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t}\n\nThe resulting set of endpoints can be viewed as:\n\n\ta: [ 10.10.1.1:8675, 10.10.2.2:8675 ],\n\tb: [ 10.10.1.1:309, 10.10.2.2:309 ]","type":"object","properties":{"addresses":{"description":"IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EndpointAddress"},"x-omitempty":true},"notReadyAddresses":{"description":"IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EndpointAddress"},"x-omitempty":true},"ports":{"description":"Port numbers available on the related IP addresses.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EndpointPort"},"x-omitempty":true}}},"Endpoints":{"description":"Endpoints is a collection of endpoints that implement the actual service. Example:\n\n\t Name: \"mysvc\",\n\t Subsets: [\n\t {\n\t Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}]\n\t },\n\t {\n\t Addresses: [{\"ip\": \"10.10.3.3\"}],\n\t Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}]\n\t },\n\t]","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"subsets":{"description":"The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EndpointSubset"},"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Endpoints","version":"v1"}]},"EndpointsList":{"description":"EndpointsList is a list of endpoints.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of endpoints.","type":"array","items":{"$ref":"#/definitions/Endpoints"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"EndpointsList","version":"v1"}]},"EnvFromSource":{"description":"EnvFromSource represents the source of a set of ConfigMaps","type":"object","properties":{"configMapRef":{"description":"The ConfigMap to select from","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ConfigMapEnvSource"},"prefix":{"description":"An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.","type":"string","x-omitempty":true},"secretRef":{"description":"The Secret to select from","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretEnvSource"}}},"EnvVar":{"description":"EnvVar represents an environment variable present in a Container.","type":"object","required":["name"],"properties":{"name":{"description":"Name of the environment variable. Must be a C_IDENTIFIER.","type":"string"},"value":{"description":"Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".","type":"string","x-omitempty":true},"valueFrom":{"description":"Source for the environment variable's value. Cannot be used if value is not empty.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EnvVarSource"}}},"EnvVarSource":{"description":"EnvVarSource represents a source for the value of an EnvVar.","type":"object","properties":{"configMapKeyRef":{"description":"Selects a key of a ConfigMap.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ConfigMapKeySelector"},"fieldRef":{"description":"Selects a field of the pod: supports metadata.name, metadata.namespace, `metadata.labels['\u003cKEY\u003e']`, `metadata.annotations['\u003cKEY\u003e']`, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ObjectFieldSelector"},"resourceFieldRef":{"description":"Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ResourceFieldSelector"},"secretKeyRef":{"description":"Selects a key of a secret in the pod's namespace","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretKeySelector"}}},"EphemeralContainer":{"description":"An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation.\n\nTo add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.","type":"object","required":["name"],"properties":{"args":{"description":"Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"command":{"description":"Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"env":{"description":"List of environment variables to set in the container. Cannot be updated.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EnvVar"},"x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"envFrom":{"description":"List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EnvFromSource"},"x-omitempty":true},"image":{"description":"Container image name. More info: https://kubernetes.io/docs/concepts/containers/images","type":"string","x-omitempty":true},"imagePullPolicy":{"description":"Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images","type":"string","x-omitempty":true},"lifecycle":{"description":"Lifecycle is not allowed for ephemeral containers.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Lifecycle"},"livenessProbe":{"description":"Probes are not allowed for ephemeral containers.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Probe"},"name":{"description":"Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers.","type":"string"},"ports":{"description":"Ports are not allowed for ephemeral containers.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerPort"},"x-kubernetes-list-map-keys":["containerPort","protocol"],"x-kubernetes-list-type":"map","x-kubernetes-patch-merge-key":"containerPort","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"readinessProbe":{"description":"Probes are not allowed for ephemeral containers.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Probe"},"resizePolicy":{"description":"Resources resize policy for the container.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerResizePolicy"},"x-kubernetes-list-type":"atomic","x-omitempty":true},"resources":{"description":"Resources are not allowed for ephemeral containers. Ephemeral containers use spare resources already allocated to the pod.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ResourceRequirements"},"securityContext":{"description":"Optional: SecurityContext defines the security options the ephemeral container should be run with. If set, the fields of SecurityContext override the equivalent fields of PodSecurityContext.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecurityContext"},"startupProbe":{"description":"Probes are not allowed for ephemeral containers.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Probe"},"stdin":{"description":"Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.","type":"boolean","x-omitempty":true},"stdinOnce":{"description":"Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false","type":"boolean","x-omitempty":true},"targetContainerName":{"description":"If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec.\n\nThe container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined.","type":"string","x-omitempty":true},"terminationMessagePath":{"description":"Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.","type":"string","x-omitempty":true},"terminationMessagePolicy":{"description":"Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.","type":"string","x-omitempty":true},"tty":{"description":"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.","type":"boolean","x-omitempty":true},"volumeDevices":{"description":"volumeDevices is the list of block devices to be used by the container.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/VolumeDevice"},"x-kubernetes-patch-merge-key":"devicePath","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"volumeMounts":{"description":"Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/VolumeMount"},"x-kubernetes-patch-merge-key":"mountPath","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"workingDir":{"description":"Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.","type":"string","x-omitempty":true}}},"EphemeralVolumeSource":{"description":"Represents an ephemeral volume that is handled by a normal storage driver.","type":"object","properties":{"volumeClaimTemplate":{"description":"Will be used to create a stand-alone PVC to provision the volume. The pod in which this EphemeralVolumeSource is embedded will be the owner of the PVC, i.e. the PVC will be deleted together with the pod. The name of the PVC will be `\u003cpod name\u003e-\u003cvolume name\u003e` where `\u003cvolume name\u003e` is the name from the `PodSpec.Volumes` array entry. Pod validation will reject the pod if the concatenated name is not valid for a PVC (for example, too long).\n\nAn existing PVC with that name that is not owned by the pod will *not* be used for the pod to avoid using an unrelated volume by mistake. Starting the pod is then blocked until the unrelated PVC is removed. If such a pre-created PVC is meant to be used by the pod, the PVC has to updated with an owner reference to the pod once the pod exists. Normally this should not be necessary, but it may be useful when manually reconstructing a broken cluster.\n\nThis field is read-only and no changes will be made by Kubernetes to the PVC after it has been created.\n\nRequired, must not be nil.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PersistentVolumeClaimTemplate"}}},"Event":{"description":"Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.","type":"object","required":["metadata","involvedObject"],"properties":{"action":{"description":"What action was taken/failed regarding to the Regarding object.","type":"string","x-omitempty":true},"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","x-omitempty":true},"count":{"description":"The number of times this event has occurred.","type":"integer","format":"int32","x-omitempty":true},"eventTime":{"description":"Time when this Event was first observed.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"MicroTime"},"x-nullable":true,"x-omitempty":true},"firstTimestamp":{"description":"The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"involvedObject":{"description":"The object that this event is about.","$ref":"#/definitions/ObjectReference"},"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","x-omitempty":true},"lastTimestamp":{"description":"The time at which the most recent occurrence of this event was recorded.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"A human-readable description of the status of this operation.","type":"string","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"}},"reason":{"description":"This should be a short, machine understandable string that gives the reason for the transition into the object's current status.","type":"string","x-omitempty":true},"related":{"description":"Optional secondary object for more complex actions.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ObjectReference"},"reportingComponent":{"description":"Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.","type":"string","x-omitempty":true},"reportingInstance":{"description":"ID of the controller instance, e.g. `kubelet-xyzf`.","type":"string","x-omitempty":true},"series":{"description":"Data about the Event series this event represents or nil if it's a singleton Event.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EventSeries"},"source":{"description":"The component reporting this event. Should be a short machine understandable string.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EventSource"},"type":{"description":"Type of this event (Normal, Warning), new types could be added in the future","type":"string","x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Event","version":"v1"}]},"EventList":{"description":"EventList is a list of events.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of events","type":"array","items":{"$ref":"#/definitions/Event"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"EventList","version":"v1"}]},"EventSeries":{"description":"EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.","type":"object","properties":{"count":{"description":"Number of occurrences in this series up to the last heartbeat time","type":"integer","format":"int32","x-omitempty":true},"lastObservedTime":{"description":"Time of the last occurrence observed","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"MicroTime"},"x-nullable":true,"x-omitempty":true}}},"EventSource":{"description":"EventSource contains information for an event.","type":"object","properties":{"component":{"description":"Component from which the event is generated.","type":"string","x-omitempty":true},"host":{"description":"Node name on which the event is generated.","type":"string","x-omitempty":true}}},"ExecAction":{"description":"ExecAction describes a \"run in container\" action.","type":"object","properties":{"command":{"description":"Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"FCVolumeSource":{"description":"Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.","type":"object","properties":{"fsType":{"description":"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.","type":"string","x-omitempty":true},"lun":{"description":"lun is Optional: FC target lun number","type":"integer","format":"int32","x-omitempty":true},"readOnly":{"description":"readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"targetWWNs":{"description":"targetWWNs is Optional: FC target worldwide names (WWNs)","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"wwids":{"description":"wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"FlexPersistentVolumeSource":{"description":"FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.","type":"object","required":["driver"],"properties":{"driver":{"description":"driver is the name of the driver to use for this volume.","type":"string"},"fsType":{"description":"fsType is the Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.","type":"string","x-omitempty":true},"options":{"description":"options is Optional: this field holds extra command options if any.","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true},"readOnly":{"description":"readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef is Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"}}},"FlexVolumeSource":{"description":"FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.","type":"object","required":["driver"],"properties":{"driver":{"description":"driver is the name of the driver to use for this volume.","type":"string"},"fsType":{"description":"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.","type":"string","x-omitempty":true},"options":{"description":"options is Optional: this field holds extra command options if any.","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true},"readOnly":{"description":"readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef is Optional: secretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"}}},"FlockerVolumeSource":{"description":"Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.","type":"object","properties":{"datasetName":{"description":"datasetName is Name of the dataset stored as metadata -\u003e name on the dataset for Flocker should be considered as deprecated","type":"string","x-omitempty":true},"datasetUUID":{"description":"datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset","type":"string","x-omitempty":true}}},"GCEPersistentDiskVolumeSource":{"description":"Represents a Persistent Disk resource in Google Compute Engine.\n\nA GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.","type":"object","required":["pdName"],"properties":{"fsType":{"description":"fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk","type":"string","x-omitempty":true},"partition":{"description":"partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk","type":"integer","format":"int32","x-omitempty":true},"pdName":{"description":"pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk","type":"string"},"readOnly":{"description":"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk","type":"boolean","x-omitempty":true}}},"GRPCAction":{"type":"object","required":["port"],"properties":{"port":{"description":"Port number of the gRPC service. Number must be in the range 1 to 65535.","type":"integer","format":"int32"},"service":{"description":"Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).\n\nIf this is not specified, the default behavior is defined by gRPC.","type":"string","x-omitempty":true}}},"GitRepoVolumeSource":{"description":"Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling.\n\nDEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.","type":"object","required":["repository"],"properties":{"directory":{"description":"directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.","type":"string","x-omitempty":true},"repository":{"description":"repository is the URL","type":"string"},"revision":{"description":"revision is the commit hash for the specified revision.","type":"string","x-omitempty":true}}},"GlusterfsPersistentVolumeSource":{"description":"Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.","type":"object","required":["endpoints","path"],"properties":{"endpoints":{"description":"endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod","type":"string"},"endpointsNamespace":{"description":"endpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod","type":"string","x-omitempty":true},"path":{"description":"path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod","type":"string"},"readOnly":{"description":"readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod","type":"boolean","x-omitempty":true}}},"GlusterfsVolumeSource":{"description":"Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.","type":"object","required":["endpoints","path"],"properties":{"endpoints":{"description":"endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod","type":"string"},"path":{"description":"path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod","type":"string"},"readOnly":{"description":"readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod","type":"boolean","x-omitempty":true}}},"HTTPGetAction":{"description":"HTTPGetAction describes an action based on HTTP Get requests.","type":"object","required":["port"],"properties":{"host":{"description":"Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.","type":"string","x-omitempty":true},"httpHeaders":{"description":"Custom headers to set in the request. HTTP allows repeated headers.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/HTTPHeader"},"x-omitempty":true},"path":{"description":"Path to access on the HTTP server.","type":"string","x-omitempty":true},"port":{"description":"Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.","x-go-type":{"import":{"alias":"apimachinery_pkg_util_intstr","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr"},"type":"IntOrString"}},"scheme":{"description":"Scheme to use for connecting to the host. Defaults to HTTP.","type":"string","x-omitempty":true}}},"HTTPHeader":{"description":"HTTPHeader describes a custom header to be used in HTTP probes","type":"object","required":["name","value"],"properties":{"name":{"description":"The header field name","type":"string"},"value":{"description":"The header field value","type":"string"}}},"HostAlias":{"description":"HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.","type":"object","properties":{"hostnames":{"description":"Hostnames for the above IP address.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"ip":{"description":"IP address of the host file entry.","type":"string","x-omitempty":true}}},"HostPathVolumeSource":{"description":"Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.","type":"object","required":["path"],"properties":{"path":{"description":"path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath","type":"string"},"type":{"description":"type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath","type":"string","x-omitempty":true}}},"ISCSIPersistentVolumeSource":{"description":"ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.","type":"object","required":["targetPortal","iqn","lun"],"properties":{"chapAuthDiscovery":{"description":"chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication","type":"boolean","x-omitempty":true},"chapAuthSession":{"description":"chapAuthSession defines whether support iSCSI Session CHAP authentication","type":"boolean","x-omitempty":true},"fsType":{"description":"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi","type":"string","x-omitempty":true},"initiatorName":{"description":"initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface \u003ctarget portal\u003e:\u003cvolume name\u003e will be created for the connection.","type":"string","x-omitempty":true},"iqn":{"description":"iqn is Target iSCSI Qualified Name.","type":"string"},"iscsiInterface":{"description":"iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).","type":"string","x-omitempty":true},"lun":{"description":"lun is iSCSI Target Lun number.","type":"integer","format":"int32"},"portals":{"description":"portals is the iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"readOnly":{"description":"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef is the CHAP Secret for iSCSI target and initiator authentication","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"targetPortal":{"description":"targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).","type":"string"}}},"ISCSIVolumeSource":{"description":"Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.","type":"object","required":["targetPortal","iqn","lun"],"properties":{"chapAuthDiscovery":{"description":"chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication","type":"boolean","x-omitempty":true},"chapAuthSession":{"description":"chapAuthSession defines whether support iSCSI Session CHAP authentication","type":"boolean","x-omitempty":true},"fsType":{"description":"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi","type":"string","x-omitempty":true},"initiatorName":{"description":"initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface \u003ctarget portal\u003e:\u003cvolume name\u003e will be created for the connection.","type":"string","x-omitempty":true},"iqn":{"description":"iqn is the target iSCSI Qualified Name.","type":"string"},"iscsiInterface":{"description":"iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).","type":"string","x-omitempty":true},"lun":{"description":"lun represents iSCSI Target Lun number.","type":"integer","format":"int32"},"portals":{"description":"portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"readOnly":{"description":"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef is the CHAP Secret for iSCSI target and initiator authentication","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"},"targetPortal":{"description":"targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).","type":"string"}}},"KeyToPath":{"description":"Maps a string key to a path within a volume.","type":"object","required":["key","path"],"properties":{"key":{"description":"key is the key to project.","type":"string"},"mode":{"description":"mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.","type":"integer","format":"int32","x-omitempty":true},"path":{"description":"path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.","type":"string"}}},"Lifecycle":{"description":"Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.","type":"object","properties":{"postStart":{"description":"PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LifecycleHandler"},"preStop":{"description":"PreStop is called immediately before a container is terminated due to an API request or management event such as liveness/startup probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The Pod's termination grace period countdown begins before the PreStop hook is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period (unless delayed by finalizers). Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LifecycleHandler"}}},"LifecycleHandler":{"description":"LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.","type":"object","properties":{"exec":{"description":"Exec specifies the action to take.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ExecAction"},"httpGet":{"description":"HTTPGet specifies the http request to perform.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/HTTPGetAction"},"tcpSocket":{"description":"Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept for the backward compatibility. There are no validation of this field and lifecycle hooks will fail in runtime when tcp handler is specified.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/TCPSocketAction"}}},"LimitRange":{"description":"LimitRange sets resource usage limits for each kind of resource in a Namespace.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LimitRangeSpec"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"LimitRange","version":"v1"}]},"LimitRangeItem":{"description":"LimitRangeItem defines a min/max usage limit for any resource that matches on kind.","type":"object","required":["type"],"properties":{"default":{"description":"Default resource requirement limit value by resource name if resource limit is omitted.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"defaultRequest":{"description":"DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"max":{"description":"Max usage constraints on this kind by resource name.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"maxLimitRequestRatio":{"description":"MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"min":{"description":"Min usage constraints on this kind by resource name.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"type":{"description":"Type of resource that this limit applies to.","type":"string"}}},"LimitRangeList":{"description":"LimitRangeList is a list of LimitRange items.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/","type":"array","items":{"$ref":"#/definitions/LimitRange"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"LimitRangeList","version":"v1"}]},"LimitRangeSpec":{"description":"LimitRangeSpec defines a min/max usage limit for resources that match on kind.","type":"object","required":["limits"],"properties":{"limits":{"description":"Limits is the list of LimitRangeItem objects that are enforced.","type":"array","items":{"$ref":"#/definitions/LimitRangeItem"}}}},"LoadBalancerIngress":{"description":"LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.","type":"object","properties":{"hostname":{"description":"Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)","type":"string","x-omitempty":true},"ip":{"description":"IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)","type":"string","x-omitempty":true},"ports":{"description":"Ports is a list of records of service ports If used, every port defined in the service should have an entry in it","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PortStatus"},"x-kubernetes-list-type":"atomic","x-omitempty":true}}},"LoadBalancerStatus":{"description":"LoadBalancerStatus represents the status of a load-balancer.","type":"object","properties":{"ingress":{"description":"Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LoadBalancerIngress"},"x-omitempty":true}}},"LocalObjectReference":{"description":"LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.","type":"object","properties":{"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"LocalVolumeSource":{"description":"Local represents directly-attached storage with node affinity (Beta feature)","type":"object","required":["path"],"properties":{"fsType":{"description":"fsType is the filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a filesystem if unspecified.","type":"string","x-omitempty":true},"path":{"description":"path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).","type":"string"}}},"NFSVolumeSource":{"description":"Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.","type":"object","required":["server","path"],"properties":{"path":{"description":"path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs","type":"string"},"readOnly":{"description":"readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs","type":"boolean","x-omitempty":true},"server":{"description":"server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs","type":"string"}}},"Namespace":{"description":"Namespace provides a scope for Names. Use of multiple namespaces is optional.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NamespaceSpec"},"status":{"description":"Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NamespaceStatus"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Namespace","version":"v1"}]},"NamespaceCondition":{"description":"NamespaceCondition contains details about state of namespace.","type":"object","required":["type","status"],"properties":{"lastTransitionTime":{"x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"type":"string","x-omitempty":true},"reason":{"type":"string","x-omitempty":true},"status":{"description":"Status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"Type of namespace controller condition.","type":"string"}}},"NamespaceList":{"description":"NamespaceList is a list of Namespaces.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/","type":"array","items":{"$ref":"#/definitions/Namespace"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"NamespaceList","version":"v1"}]},"NamespaceSpec":{"description":"NamespaceSpec describes the attributes on a Namespace.","type":"object","properties":{"finalizers":{"description":"Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"NamespaceStatus":{"description":"NamespaceStatus is information about the current status of a Namespace.","type":"object","properties":{"conditions":{"description":"Represents the latest available observations of a namespace's current state.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NamespaceCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"phase":{"description":"Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/","type":"string","x-omitempty":true}}},"Node":{"description":"Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeSpec"},"status":{"description":"Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeStatus"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Node","version":"v1"}]},"NodeAddress":{"description":"NodeAddress contains information for the node's address.","type":"object","required":["type","address"],"properties":{"address":{"description":"The node address.","type":"string"},"type":{"description":"Node address type, one of Hostname, ExternalIP or InternalIP.","type":"string"}}},"NodeAffinity":{"description":"Node affinity is a group of node affinity scheduling rules.","type":"object","properties":{"preferredDuringSchedulingIgnoredDuringExecution":{"description":"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PreferredSchedulingTerm"},"x-omitempty":true},"requiredDuringSchedulingIgnoredDuringExecution":{"description":"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeSelector"}}},"NodeCondition":{"description":"NodeCondition contains condition information for a node.","type":"object","required":["type","status"],"properties":{"lastHeartbeatTime":{"description":"Last time we got an update on a given condition.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"lastTransitionTime":{"description":"Last time the condition transit from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"Human readable message indicating details about last transition.","type":"string","x-omitempty":true},"reason":{"description":"(brief) reason for the condition's last transition.","type":"string","x-omitempty":true},"status":{"description":"Status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"Type of node condition.","type":"string"}}},"NodeConfigSource":{"description":"NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22","type":"object","properties":{"configMap":{"description":"ConfigMap is a reference to a Node's ConfigMap","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ConfigMapNodeConfigSource"}}},"NodeConfigStatus":{"description":"NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.","type":"object","properties":{"active":{"description":"Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeConfigSource"},"assigned":{"description":"Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeConfigSource"},"error":{"description":"Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.","type":"string","x-omitempty":true},"lastKnownGood":{"description":"LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeConfigSource"}}},"NodeDaemonEndpoints":{"description":"NodeDaemonEndpoints lists ports opened by daemons running on the Node.","type":"object","properties":{"kubeletEndpoint":{"description":"Endpoint on which Kubelet is listening.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DaemonEndpoint"}}},"NodeList":{"description":"NodeList is the whole list of all Nodes which have been registered with master.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of nodes","type":"array","items":{"$ref":"#/definitions/Node"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"NodeList","version":"v1"}]},"NodeSelector":{"description":"A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.","type":"object","required":["nodeSelectorTerms"],"properties":{"nodeSelectorTerms":{"description":"Required. A list of node selector terms. The terms are ORed.","type":"array","items":{"$ref":"#/definitions/NodeSelectorTerm"}}},"x-kubernetes-map-type":"atomic"},"NodeSelectorRequirement":{"description":"A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.","type":"object","required":["key","operator"],"properties":{"key":{"description":"The label key that the selector applies to.","type":"string"},"operator":{"description":"Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.","type":"string"},"values":{"description":"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"NodeSelectorTerm":{"description":"A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.","type":"object","properties":{"matchExpressions":{"description":"A list of node selector requirements by node's labels.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeSelectorRequirement"},"x-omitempty":true},"matchFields":{"description":"A list of node selector requirements by node's fields.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeSelectorRequirement"},"x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"NodeSpec":{"description":"NodeSpec describes the attributes that a node is created with.","type":"object","properties":{"configSource":{"description":"Deprecated: Previously used to specify the source of the node's configuration for the DynamicKubeletConfig feature. This feature is removed.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeConfigSource"},"externalID":{"description":"Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966","type":"string","x-omitempty":true},"podCIDR":{"description":"PodCIDR represents the pod IP range assigned to the node.","type":"string","x-omitempty":true},"podCIDRs":{"description":"podCIDRs represents the IP ranges assigned to the node for usage by Pods on that node. If this field is specified, the 0th entry must match the podCIDR field. It may contain at most 1 value for each of IPv4 and IPv6.","type":"array","items":{"type":"string","x-omitempty":true},"x-kubernetes-patch-strategy":"merge","x-omitempty":true},"providerID":{"description":"ID of the node assigned by the cloud provider in the format: \u003cProviderName\u003e://\u003cProviderSpecificNodeID\u003e","type":"string","x-omitempty":true},"taints":{"description":"If specified, the node's taints.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Taint"},"x-omitempty":true},"unschedulable":{"description":"Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration","type":"boolean","x-omitempty":true}}},"NodeStatus":{"description":"NodeStatus is information about the current status of a node.","type":"object","properties":{"addresses":{"description":"List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses Note: This field is declared as mergeable, but the merge key is not sufficiently unique, which can cause data corruption when it is merged. Callers should instead use a full-replacement patch. See https://pr.k8s.io/79391 for an example. Consumers should assume that addresses can change during the lifetime of a Node. However, there are some exceptions where this may not be possible, such as Pods that inherit a Node's address in its own status or consumers of the downward API (status.hostIP).","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeAddress"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"allocatable":{"description":"Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"capacity":{"description":"Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"conditions":{"description":"Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"config":{"description":"Status of the config assigned to the node via the dynamic Kubelet config feature.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeConfigStatus"},"daemonEndpoints":{"description":"Endpoints of daemons running on the Node.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeDaemonEndpoints"},"images":{"description":"List of container images on this node","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerImage"},"x-omitempty":true},"nodeInfo":{"description":"Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeSystemInfo"},"phase":{"description":"NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.","type":"string","x-omitempty":true},"volumesAttached":{"description":"List of volumes that are attached to the node.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/AttachedVolume"},"x-omitempty":true},"volumesInUse":{"description":"List of attachable volumes in use (mounted) by the node.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"NodeSystemInfo":{"description":"NodeSystemInfo is a set of ids/uuids to uniquely identify the node.","type":"object","required":["machineID","systemUUID","bootID","kernelVersion","osImage","containerRuntimeVersion","kubeletVersion","kubeProxyVersion","operatingSystem","architecture"],"properties":{"architecture":{"description":"The Architecture reported by the node","type":"string"},"bootID":{"description":"Boot ID reported by the node.","type":"string"},"containerRuntimeVersion":{"description":"ContainerRuntime Version reported by the node through runtime remote API (e.g. containerd://1.4.2).","type":"string"},"kernelVersion":{"description":"Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).","type":"string"},"kubeProxyVersion":{"description":"KubeProxy Version reported by the node.","type":"string"},"kubeletVersion":{"description":"Kubelet Version reported by the node.","type":"string"},"machineID":{"description":"MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html","type":"string"},"operatingSystem":{"description":"The Operating System reported by the node","type":"string"},"osImage":{"description":"OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).","type":"string"},"systemUUID":{"description":"SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid","type":"string"}}},"ObjectFieldSelector":{"description":"ObjectFieldSelector selects an APIVersioned field of an object.","type":"object","required":["fieldPath"],"properties":{"apiVersion":{"description":"Version of the schema the FieldPath is written in terms of, defaults to \"v1\".","type":"string","x-omitempty":true},"fieldPath":{"description":"Path of the field to select in the specified API version.","type":"string"}},"x-kubernetes-map-type":"atomic"},"ObjectReference":{"description":"ObjectReference contains enough information to let you inspect or modify the referred object.","type":"object","properties":{"apiVersion":{"description":"API version of the referent.","type":"string","x-omitempty":true},"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","x-omitempty":true},"kind":{"description":"Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","type":"string","x-omitempty":true},"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true},"namespace":{"description":"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/","type":"string","x-omitempty":true},"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","x-omitempty":true},"uid":{"description":"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids","type":"string","x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"PersistentVolume":{"description":"PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PersistentVolumeSpec"},"status":{"description":"status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PersistentVolumeStatus"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"PersistentVolume","version":"v1"}]},"PersistentVolumeClaim":{"description":"PersistentVolumeClaim is a user's request for and claim to a persistent volume","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PersistentVolumeClaimSpec"},"status":{"description":"status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PersistentVolumeClaimStatus"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"PersistentVolumeClaim","version":"v1"}]},"PersistentVolumeClaimCondition":{"description":"PersistentVolumeClaimCondition contains details about state of pvc","type":"object","required":["type","status"],"properties":{"lastProbeTime":{"description":"lastProbeTime is the time we probed the condition.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"lastTransitionTime":{"description":"lastTransitionTime is the time the condition transitioned from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"message is the human-readable message indicating details about last transition.","type":"string","x-omitempty":true},"reason":{"description":"reason is a unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized.","type":"string","x-omitempty":true},"status":{"type":"string"},"type":{"type":"string"}}},"PersistentVolumeClaimList":{"description":"PersistentVolumeClaimList is a list of PersistentVolumeClaim items.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"items is a list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims","type":"array","items":{"$ref":"#/definitions/PersistentVolumeClaim"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"PersistentVolumeClaimList","version":"v1"}]},"PersistentVolumeClaimSpec":{"description":"PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes","type":"object","properties":{"accessModes":{"description":"accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"dataSource":{"description":"dataSource field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/TypedLocalObjectReference"},"dataSourceRef":{"description":"dataSourceRef specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the dataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, when namespace isn't specified in dataSourceRef, both fields (dataSource and dataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. When namespace is specified in dataSourceRef, dataSource isn't set to the same value and must be empty. There are three important differences between dataSource and dataSourceRef: * While dataSource only allows two specific types of objects, dataSourceRef\n allows any non-core object, as well as PersistentVolumeClaim objects.\n* While dataSource ignores disallowed values (dropping them), dataSourceRef\n preserves all values, and generates an error if a disallowed value is\n specified.\n* While dataSource only allows local objects, dataSourceRef allows objects\n in any namespaces.\n(Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/TypedObjectReference"},"resources":{"description":"resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ResourceRequirements"},"selector":{"description":"selector is a label query over volumes to consider for binding.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"},"x-nullable":true,"x-omitempty":true},"storageClassName":{"description":"storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1","type":"string","x-omitempty":true},"volumeMode":{"description":"volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.","type":"string","x-omitempty":true},"volumeName":{"description":"volumeName is the binding reference to the PersistentVolume backing this claim.","type":"string","x-omitempty":true}}},"PersistentVolumeClaimStatus":{"description":"PersistentVolumeClaimStatus is the current status of a persistent volume claim.","type":"object","properties":{"accessModes":{"description":"accessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"allocatedResources":{"description":"allocatedResources is the storage resource within AllocatedResources tracks the capacity allocated to a PVC. It may be larger than the actual capacity when a volume expansion operation is requested. For storage quota, the larger value from allocatedResources and PVC.spec.resources is used. If allocatedResources is not set, PVC.spec.resources alone is used for quota calculation. If a volume expansion capacity request is lowered, allocatedResources is only lowered if there are no expansion operations in progress and if the actual volume capacity is equal or lower than the requested capacity. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"capacity":{"description":"capacity represents the actual resources of the underlying volume.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"conditions":{"description":"conditions is the current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PersistentVolumeClaimCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"phase":{"description":"phase represents the current phase of PersistentVolumeClaim.","type":"string","x-omitempty":true},"resizeStatus":{"description":"resizeStatus stores status of resize operation. ResizeStatus is not set by default but when expansion is complete resizeStatus is set to empty string by resize controller or kubelet. This is an alpha field and requires enabling RecoverVolumeExpansionFailure feature.","type":"string","x-omitempty":true}}},"PersistentVolumeClaimTemplate":{"description":"PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.","type":"object","required":["spec"],"properties":{"metadata":{"description":"May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here.","$ref":"#/definitions/PersistentVolumeClaimSpec"}}},"PersistentVolumeClaimVolumeSource":{"description":"PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).","type":"object","required":["claimName"],"properties":{"claimName":{"description":"claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims","type":"string"},"readOnly":{"description":"readOnly Will force the ReadOnly setting in VolumeMounts. Default false.","type":"boolean","x-omitempty":true}}},"PersistentVolumeList":{"description":"PersistentVolumeList is a list of PersistentVolume items.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"items is a list of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes","type":"array","items":{"$ref":"#/definitions/PersistentVolume"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"PersistentVolumeList","version":"v1"}]},"PersistentVolumeSpec":{"description":"PersistentVolumeSpec is the specification of a persistent volume.","type":"object","properties":{"accessModes":{"description":"accessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"awsElasticBlockStore":{"description":"awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/AWSElasticBlockStoreVolumeSource"},"azureDisk":{"description":"azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/AzureDiskVolumeSource"},"azureFile":{"description":"azureFile represents an Azure File Service mount on the host and bind mount to the pod.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/AzureFilePersistentVolumeSource"},"capacity":{"description":"capacity is the description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"cephfs":{"description":"cephFS represents a Ceph FS mount on the host that shares a pod's lifetime","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/CephFSPersistentVolumeSource"},"cinder":{"description":"cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/CinderPersistentVolumeSource"},"claimRef":{"description":"claimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding","x-kubernetes-map-type":"granular","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ObjectReference"},"csi":{"description":"csi represents storage that is handled by an external CSI driver (Beta feature).","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/CSIPersistentVolumeSource"},"fc":{"description":"fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/FCVolumeSource"},"flexVolume":{"description":"flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/FlexPersistentVolumeSource"},"flocker":{"description":"flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/FlockerVolumeSource"},"gcePersistentDisk":{"description":"gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/GCEPersistentDiskVolumeSource"},"glusterfs":{"description":"glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://examples.k8s.io/volumes/glusterfs/README.md","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/GlusterfsPersistentVolumeSource"},"hostPath":{"description":"hostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/HostPathVolumeSource"},"iscsi":{"description":"iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ISCSIPersistentVolumeSource"},"local":{"description":"local represents directly-attached storage with node affinity","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalVolumeSource"},"mountOptions":{"description":"mountOptions is the list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"nfs":{"description":"nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NFSVolumeSource"},"nodeAffinity":{"description":"nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/VolumeNodeAffinity"},"persistentVolumeReclaimPolicy":{"description":"persistentVolumeReclaimPolicy defines what happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming","type":"string","x-omitempty":true},"photonPersistentDisk":{"description":"photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PhotonPersistentDiskVolumeSource"},"portworxVolume":{"description":"portworxVolume represents a portworx volume attached and mounted on kubelets host machine","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PortworxVolumeSource"},"quobyte":{"description":"quobyte represents a Quobyte mount on the host that shares a pod's lifetime","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/QuobyteVolumeSource"},"rbd":{"description":"rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/RBDPersistentVolumeSource"},"scaleIO":{"description":"scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ScaleIOPersistentVolumeSource"},"storageClassName":{"description":"storageClassName is the name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.","type":"string","x-omitempty":true},"storageos":{"description":"storageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://examples.k8s.io/volumes/storageos/README.md","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StorageOSPersistentVolumeSource"},"volumeMode":{"description":"volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec.","type":"string","x-omitempty":true},"vsphereVolume":{"description":"vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/VsphereVirtualDiskVolumeSource"}}},"PersistentVolumeStatus":{"description":"PersistentVolumeStatus is the current status of a persistent volume.","type":"object","properties":{"message":{"description":"message is a human-readable message indicating details about why the volume is in this state.","type":"string","x-omitempty":true},"phase":{"description":"phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase","type":"string","x-omitempty":true},"reason":{"description":"reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.","type":"string","x-omitempty":true}}},"PhotonPersistentDiskVolumeSource":{"description":"Represents a Photon Controller persistent disk resource.","type":"object","required":["pdID"],"properties":{"fsType":{"description":"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.","type":"string","x-omitempty":true},"pdID":{"description":"pdID is the ID that identifies Photon Controller persistent disk","type":"string"}}},"Pod":{"description":"Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodSpec"},"status":{"description":"Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodStatus"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Pod","version":"v1"}]},"PodAffinity":{"description":"Pod affinity is a group of inter pod affinity scheduling rules.","type":"object","properties":{"preferredDuringSchedulingIgnoredDuringExecution":{"description":"The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/WeightedPodAffinityTerm"},"x-omitempty":true},"requiredDuringSchedulingIgnoredDuringExecution":{"description":"If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodAffinityTerm"},"x-omitempty":true}}},"PodAffinityTerm":{"description":"Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key \u003ctopologyKey\u003e matches that of any node on which a pod of the set of pods is running","type":"object","required":["topologyKey"],"properties":{"labelSelector":{"description":"A label query over a set of resources, in this case pods.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"},"x-nullable":true,"x-omitempty":true},"namespaceSelector":{"description":"A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"},"x-nullable":true,"x-omitempty":true},"namespaces":{"description":"namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\".","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"topologyKey":{"description":"This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.","type":"string"}}},"PodAntiAffinity":{"description":"Pod anti affinity is a group of inter pod anti affinity scheduling rules.","type":"object","properties":{"preferredDuringSchedulingIgnoredDuringExecution":{"description":"The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/WeightedPodAffinityTerm"},"x-omitempty":true},"requiredDuringSchedulingIgnoredDuringExecution":{"description":"If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodAffinityTerm"},"x-omitempty":true}}},"PodCondition":{"description":"PodCondition contains details for the current condition of this pod.","type":"object","required":["type","status"],"properties":{"lastProbeTime":{"description":"Last time we probed the condition.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"lastTransitionTime":{"description":"Last time the condition transitioned from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"Human-readable message indicating details about last transition.","type":"string","x-omitempty":true},"reason":{"description":"Unique, one-word, CamelCase reason for the condition's last transition.","type":"string","x-omitempty":true},"status":{"description":"Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions","type":"string"},"type":{"description":"Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions","type":"string"}}},"PodDNSConfig":{"description":"PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.","type":"object","properties":{"nameservers":{"description":"A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"options":{"description":"A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodDNSConfigOption"},"x-omitempty":true},"searches":{"description":"A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"PodDNSConfigOption":{"description":"PodDNSConfigOption defines DNS resolver options of a pod.","type":"object","properties":{"name":{"description":"Required.","type":"string","x-omitempty":true},"value":{"type":"string","x-omitempty":true}}},"PodIP":{"description":"IP address information for entries in the (plural) PodIPs field. Each entry includes:\n\n\tIP: An IP address allocated to the pod. Routable at least within the cluster.","type":"object","properties":{"ip":{"description":"ip is an IP address (IPv4 or IPv6) assigned to the pod","type":"string","x-omitempty":true}}},"PodList":{"description":"PodList is a list of Pods.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of pods. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md","type":"array","items":{"$ref":"#/definitions/Pod"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"PodList","version":"v1"}]},"PodOS":{"description":"PodOS defines the OS parameters of a pod.","type":"object","required":["name"],"properties":{"name":{"description":"Name is the name of the operating system. The currently supported values are linux and windows. Additional value may be defined in future and can be one of: https://github.com/opencontainers/runtime-spec/blob/master/config.md#platform-specific-configuration Clients should expect to handle additional values and treat unrecognized values in this field as os: null","type":"string"}}},"PodReadinessGate":{"description":"PodReadinessGate contains the reference to a pod condition","type":"object","required":["conditionType"],"properties":{"conditionType":{"description":"ConditionType refers to a condition in the pod's condition list with matching type.","type":"string"}}},"PodResourceClaim":{"description":"PodResourceClaim references exactly one ResourceClaim through a ClaimSource. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.","type":"object","required":["name"],"properties":{"name":{"description":"Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.","type":"string"},"source":{"description":"Source describes where to find the ResourceClaim.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ClaimSource"}}},"PodSchedulingGate":{"description":"PodSchedulingGate is associated to a Pod to guard its scheduling.","type":"object","required":["name"],"properties":{"name":{"description":"Name of the scheduling gate. Each scheduling gate must have a unique name field.","type":"string"}}},"PodSecurityContext":{"description":"PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.","type":"object","properties":{"fsGroup":{"description":"A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:\n\n1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw----\n\nIf unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows.","type":"integer","format":"int64","x-omitempty":true},"fsGroupChangePolicy":{"description":"fsGroupChangePolicy defines behavior of changing ownership and permission of the volume before being exposed inside Pod. This field will only apply to volume types which support fsGroup based ownership(and permissions). It will have no effect on ephemeral volume types such as: secret, configmaps and emptydir. Valid values are \"OnRootMismatch\" and \"Always\". If not specified, \"Always\" is used. Note that this field cannot be set when spec.os.name is windows.","type":"string","x-omitempty":true},"runAsGroup":{"description":"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.","type":"integer","format":"int64","x-omitempty":true},"runAsNonRoot":{"description":"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.","type":"boolean","x-omitempty":true},"runAsUser":{"description":"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.","type":"integer","format":"int64","x-omitempty":true},"seLinuxOptions":{"description":"The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SELinuxOptions"},"seccompProfile":{"description":"The seccomp options to use by the containers in this pod. Note that this field cannot be set when spec.os.name is windows.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SeccompProfile"},"supplementalGroups":{"description":"A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows.","type":"array","items":{"type":"integer","format":"int64","x-omitempty":true},"x-omitempty":true},"sysctls":{"description":"Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Sysctl"},"x-omitempty":true},"windowsOptions":{"description":"The Windows specific settings applied to all containers. If unspecified, the options within a container's SecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/WindowsSecurityContextOptions"}}},"PodSpec":{"description":"PodSpec is a description of a pod.","type":"object","required":["containers"],"properties":{"activeDeadlineSeconds":{"description":"Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.","type":"integer","format":"int64","x-omitempty":true},"affinity":{"description":"If specified, the pod's scheduling constraints","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Affinity"},"automountServiceAccountToken":{"description":"AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.","type":"boolean","x-omitempty":true},"containers":{"description":"List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.","type":"array","items":{"$ref":"#/definitions/Container"},"x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge"},"dnsConfig":{"description":"Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodDNSConfig"},"dnsPolicy":{"description":"Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.","type":"string","x-omitempty":true},"enableServiceLinks":{"description":"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.","type":"boolean","x-omitempty":true},"ephemeralContainers":{"description":"List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EphemeralContainer"},"x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"hostAliases":{"description":"HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/HostAlias"},"x-kubernetes-patch-merge-key":"ip","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"hostIPC":{"description":"Use the host's ipc namespace. Optional: Default to false.","type":"boolean","x-omitempty":true},"hostNetwork":{"description":"Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.","type":"boolean","x-omitempty":true},"hostPID":{"description":"Use the host's pid namespace. Optional: Default to false.","type":"boolean","x-omitempty":true},"hostUsers":{"description":"Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.","type":"boolean","x-omitempty":true},"hostname":{"description":"Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.","type":"string","x-omitempty":true},"imagePullSecrets":{"description":"ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"},"x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"initContainers":{"description":"List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Container"},"x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"nodeName":{"description":"NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.","type":"string","x-omitempty":true},"nodeSelector":{"description":"NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-kubernetes-map-type":"atomic","x-omitempty":true},"os":{"description":"Specifies the OS of the containers in the pod. Some pod and container fields are restricted if this is set.\n\nIf the OS field is set to linux, the following fields must be unset: -securityContext.windowsOptions\n\nIf the OS field is set to windows, following fields must be unset: - spec.hostPID - spec.hostIPC - spec.hostUsers - spec.securityContext.seLinuxOptions - spec.securityContext.seccompProfile - spec.securityContext.fsGroup - spec.securityContext.fsGroupChangePolicy - spec.securityContext.sysctls - spec.shareProcessNamespace - spec.securityContext.runAsUser - spec.securityContext.runAsGroup - spec.securityContext.supplementalGroups - spec.containers[*].securityContext.seLinuxOptions - spec.containers[*].securityContext.seccompProfile - spec.containers[*].securityContext.capabilities - spec.containers[*].securityContext.readOnlyRootFilesystem - spec.containers[*].securityContext.privileged - spec.containers[*].securityContext.allowPrivilegeEscalation - spec.containers[*].securityContext.procMount - spec.containers[*].securityContext.runAsUser - spec.containers[*].securityContext.runAsGroup","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodOS"},"overhead":{"description":"Overhead represents the resource overhead associated with running a pod for a given RuntimeClass. This field will be autopopulated at admission time by the RuntimeClass admission controller. If the RuntimeClass admission controller is enabled, overhead must not be set in Pod create requests. The RuntimeClass admission controller will reject Pod create requests which have the overhead already set. If RuntimeClass is configured and selected in the PodSpec, Overhead will be set to the value defined in the corresponding RuntimeClass, otherwise it will remain unset and treated as zero. More info: https://git.k8s.io/enhancements/keps/sig-node/688-pod-overhead/README.md","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"preemptionPolicy":{"description":"PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset.","type":"string","x-omitempty":true},"priority":{"description":"The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.","type":"integer","format":"int32","x-omitempty":true},"priorityClassName":{"description":"If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.","type":"string","x-omitempty":true},"readinessGates":{"description":"If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodReadinessGate"},"x-omitempty":true},"resourceClaims":{"description":"ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodResourceClaim"},"x-kubernetes-list-map-keys":["name"],"x-kubernetes-list-type":"map","x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge,retainKeys","x-omitempty":true},"restartPolicy":{"description":"Restart policy for all containers within the pod. One of Always, OnFailure, Never. In some contexts, only a subset of those values may be permitted. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy","type":"string","x-omitempty":true},"runtimeClassName":{"description":"RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class","type":"string","x-omitempty":true},"schedulerName":{"description":"If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.","type":"string","x-omitempty":true},"schedulingGates":{"description":"SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod.\n\nSchedulingGates can only be set at pod creation time, and be removed only afterwards.\n\nThis is a beta feature enabled by the PodSchedulingReadiness feature gate.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodSchedulingGate"},"x-kubernetes-list-map-keys":["name"],"x-kubernetes-list-type":"map","x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"securityContext":{"description":"SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodSecurityContext"},"serviceAccount":{"description":"DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.","type":"string","x-omitempty":true},"serviceAccountName":{"description":"ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/","type":"string","x-omitempty":true},"setHostnameAsFQDN":{"description":"If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false.","type":"boolean","x-omitempty":true},"shareProcessNamespace":{"description":"Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.","type":"boolean","x-omitempty":true},"subdomain":{"description":"If specified, the fully qualified Pod hostname will be \"\u003chostname\u003e.\u003csubdomain\u003e.\u003cpod namespace\u003e.svc.\u003ccluster domain\u003e\". If not specified, the pod will not have a domainname at all.","type":"string","x-omitempty":true},"terminationGracePeriodSeconds":{"description":"Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.","type":"integer","format":"int64","x-omitempty":true},"tolerations":{"description":"If specified, the pod's tolerations.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Toleration"},"x-omitempty":true},"topologySpreadConstraints":{"description":"TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/TopologySpreadConstraint"},"x-kubernetes-list-map-keys":["topologyKey","whenUnsatisfiable"],"x-kubernetes-list-type":"map","x-kubernetes-patch-merge-key":"topologyKey","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"volumes":{"description":"List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Volume"},"x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge,retainKeys","x-omitempty":true}}},"PodStatus":{"description":"PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.","type":"object","properties":{"conditions":{"description":"Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"containerStatuses":{"description":"The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerStatus"},"x-omitempty":true},"ephemeralContainerStatuses":{"description":"Status for any ephemeral containers that have run in this pod.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerStatus"},"x-omitempty":true},"hostIP":{"description":"IP address of the host to which the pod is assigned. Empty if not yet scheduled.","type":"string","x-omitempty":true},"initContainerStatuses":{"description":"The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ContainerStatus"},"x-omitempty":true},"message":{"description":"A human readable message indicating details about why the pod is in this condition.","type":"string","x-omitempty":true},"nominatedNodeName":{"description":"nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.","type":"string","x-omitempty":true},"phase":{"description":"The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values:\n\nPending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod.\n\nMore info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase","type":"string","x-omitempty":true},"podIP":{"description":"IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.","type":"string","x-omitempty":true},"podIPs":{"description":"podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodIP"},"x-kubernetes-patch-merge-key":"ip","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"qosClass":{"description":"The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-qos/#quality-of-service-classes","type":"string","x-omitempty":true},"reason":{"description":"A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'","type":"string","x-omitempty":true},"resize":{"description":"Status of resources resize desired for pod's containers. It is empty if no resources resize is pending. Any changes to container resources will automatically set this to \"Proposed\"","type":"string","x-omitempty":true},"startTime":{"description":"RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true}}},"PodTemplate":{"description":"PodTemplate describes a template for creating copies of a predefined pod.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"template":{"description":"Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodTemplateSpec"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"PodTemplate","version":"v1"}]},"PodTemplateList":{"description":"PodTemplateList is a list of PodTemplates.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of pod templates","type":"array","items":{"$ref":"#/definitions/PodTemplate"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"PodTemplateList","version":"v1"}]},"PodTemplateSpec":{"description":"PodTemplateSpec describes the data a pod should have when created from a template","type":"object","properties":{"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodSpec"}}},"PortStatus":{"type":"object","required":["port","protocol"],"properties":{"error":{"description":"Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use\n CamelCase names\n- cloud provider specific error values must have names that comply with the\n format foo.example.com/CamelCase.","type":"string","x-omitempty":true},"port":{"description":"Port is the port number of the service port of which status is recorded here","type":"integer","format":"int32"},"protocol":{"description":"Protocol is the protocol of the service port of which status is recorded here The supported values are: \"TCP\", \"UDP\", \"SCTP\"","type":"string"}}},"PortworxVolumeSource":{"description":"PortworxVolumeSource represents a Portworx volume resource.","type":"object","required":["volumeID"],"properties":{"fsType":{"description":"fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"volumeID":{"description":"volumeID uniquely identifies a Portworx volume","type":"string"}}},"PreferredSchedulingTerm":{"description":"An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).","type":"object","required":["weight","preference"],"properties":{"preference":{"description":"A node selector term, associated with the corresponding weight.","$ref":"#/definitions/NodeSelectorTerm"},"weight":{"description":"Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.","type":"integer","format":"int32"}}},"Probe":{"description":"Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.","type":"object","properties":{"exec":{"description":"Exec specifies the action to take.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ExecAction"},"failureThreshold":{"description":"Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.","type":"integer","format":"int32","x-omitempty":true},"grpc":{"description":"GRPC specifies an action involving a GRPC port.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/GRPCAction"},"httpGet":{"description":"HTTPGet specifies the http request to perform.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/HTTPGetAction"},"initialDelaySeconds":{"description":"Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes","type":"integer","format":"int32","x-omitempty":true},"periodSeconds":{"description":"How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.","type":"integer","format":"int32","x-omitempty":true},"successThreshold":{"description":"Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.","type":"integer","format":"int32","x-omitempty":true},"tcpSocket":{"description":"TCPSocket specifies an action involving a TCP port.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/TCPSocketAction"},"terminationGracePeriodSeconds":{"description":"Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset.","type":"integer","format":"int64","x-omitempty":true},"timeoutSeconds":{"description":"Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes","type":"integer","format":"int32","x-omitempty":true}}},"ProjectedVolumeSource":{"description":"Represents a projected volume source","type":"object","properties":{"defaultMode":{"description":"defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.","type":"integer","format":"int32","x-omitempty":true},"sources":{"description":"sources is the list of volume projections","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/VolumeProjection"},"x-omitempty":true}}},"QuobyteVolumeSource":{"description":"Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.","type":"object","required":["registry","volume"],"properties":{"group":{"description":"group to map volume access to Default is no group","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.","type":"boolean","x-omitempty":true},"registry":{"description":"registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes","type":"string"},"tenant":{"description":"tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin","type":"string","x-omitempty":true},"user":{"description":"user to map volume access to Defaults to serivceaccount user","type":"string","x-omitempty":true},"volume":{"description":"volume is a string that references an already created Quobyte volume by name.","type":"string"}}},"RBDPersistentVolumeSource":{"description":"Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.","type":"object","required":["monitors","image"],"properties":{"fsType":{"description":"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd","type":"string","x-omitempty":true},"image":{"description":"image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"string"},"keyring":{"description":"keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"string","x-omitempty":true},"monitors":{"description":"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"array","items":{"type":"string"}},"pool":{"description":"pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretReference"},"user":{"description":"user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"string","x-omitempty":true}}},"RBDVolumeSource":{"description":"Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.","type":"object","required":["monitors","image"],"properties":{"fsType":{"description":"fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd","type":"string","x-omitempty":true},"image":{"description":"image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"string"},"keyring":{"description":"keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"string","x-omitempty":true},"monitors":{"description":"monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"array","items":{"type":"string"}},"pool":{"description":"pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"},"user":{"description":"user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it","type":"string","x-omitempty":true}}},"ReplicationController":{"description":"ReplicationController represents the configuration of a replication controller.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ReplicationControllerSpec"},"status":{"description":"Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ReplicationControllerStatus"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ReplicationController","version":"v1"}]},"ReplicationControllerCondition":{"description":"ReplicationControllerCondition describes the state of a replication controller at a certain point.","type":"object","required":["type","status"],"properties":{"lastTransitionTime":{"description":"The last time the condition transitioned from one status to another.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"message":{"description":"A human readable message indicating details about the transition.","type":"string","x-omitempty":true},"reason":{"description":"The reason for the condition's last transition.","type":"string","x-omitempty":true},"status":{"description":"Status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"Type of replication controller condition.","type":"string"}}},"ReplicationControllerList":{"description":"ReplicationControllerList is a collection of replication controllers.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller","type":"array","items":{"$ref":"#/definitions/ReplicationController"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ReplicationControllerList","version":"v1"}]},"ReplicationControllerSpec":{"description":"ReplicationControllerSpec is the specification of a replication controller.","type":"object","properties":{"minReadySeconds":{"description":"Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)","type":"integer","format":"int32","x-omitempty":true},"replicas":{"description":"Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller","type":"integer","format":"int32","x-omitempty":true},"selector":{"description":"Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-kubernetes-map-type":"atomic","x-omitempty":true},"template":{"description":"Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. The only allowed template.spec.restartPolicy value is \"Always\". More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PodTemplateSpec"}}},"ReplicationControllerStatus":{"description":"ReplicationControllerStatus represents the current status of a replication controller.","type":"object","required":["replicas"],"properties":{"availableReplicas":{"description":"The number of available replicas (ready for at least minReadySeconds) for this replication controller.","type":"integer","format":"int32","x-omitempty":true},"conditions":{"description":"Represents the latest available observations of a replication controller's current state.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ReplicationControllerCondition"},"x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"fullyLabeledReplicas":{"description":"The number of pods that have labels matching the labels of the pod template of the replication controller.","type":"integer","format":"int32","x-omitempty":true},"observedGeneration":{"description":"ObservedGeneration reflects the generation of the most recently observed replication controller.","type":"integer","format":"int64","x-omitempty":true},"readyReplicas":{"description":"The number of ready replicas for this replication controller.","type":"integer","format":"int32","x-omitempty":true},"replicas":{"description":"Replicas is the most recently observed number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller","type":"integer","format":"int32"}}},"ResourceClaim":{"description":"ResourceClaim references one entry in PodSpec.ResourceClaims.","type":"object","required":["name"],"properties":{"name":{"description":"Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container.","type":"string"}}},"ResourceFieldSelector":{"description":"ResourceFieldSelector represents container resources (cpu, memory) and their output format","type":"object","required":["resource"],"properties":{"containerName":{"description":"Container name: required for volumes, optional for env vars","type":"string","x-omitempty":true},"divisor":{"description":"Specifies the output format of the exposed resources, defaults to \"1\"","x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"resource":{"description":"Required: resource to select","type":"string"}},"x-kubernetes-map-type":"atomic"},"ResourceQuota":{"description":"ResourceQuota sets aggregate quota restrictions enforced per namespace","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ResourceQuotaSpec"},"status":{"description":"Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ResourceQuotaStatus"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ResourceQuota","version":"v1"}]},"ResourceQuotaList":{"description":"ResourceQuotaList is a list of ResourceQuota items.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/","type":"array","items":{"$ref":"#/definitions/ResourceQuota"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ResourceQuotaList","version":"v1"}]},"ResourceQuotaSpec":{"description":"ResourceQuotaSpec defines the desired hard limits to enforce for Quota.","type":"object","properties":{"hard":{"description":"hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"scopeSelector":{"description":"scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ScopeSelector"},"scopes":{"description":"A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"ResourceQuotaStatus":{"description":"ResourceQuotaStatus defines the enforced hard limits and observed use.","type":"object","properties":{"hard":{"description":"Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"used":{"description":"Used is the current observed total usage of the resource in the namespace.","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true}}},"ResourceRequirements":{"description":"ResourceRequirements describes the compute resource requirements.","type":"object","properties":{"claims":{"description":"Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.\n\nThis is an alpha field and requires enabling the DynamicResourceAllocation feature gate.\n\nThis field is immutable. It can only be set for containers.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ResourceClaim"},"x-kubernetes-list-map-keys":["name"],"x-kubernetes-list-type":"map","x-omitempty":true},"limits":{"description":"Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true},"requests":{"description":"Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/","type":"object","additionalProperties":{"x-go-type":{"import":{"alias":"apimachinery_pkg_api_resource","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource"},"type":"Quantity"},"x-nullable":true,"x-omitempty":true},"x-omitempty":true}}},"SELinuxOptions":{"description":"SELinuxOptions are the labels to be applied to the container","type":"object","properties":{"level":{"description":"Level is SELinux level label that applies to the container.","type":"string","x-omitempty":true},"role":{"description":"Role is a SELinux role label that applies to the container.","type":"string","x-omitempty":true},"type":{"description":"Type is a SELinux type label that applies to the container.","type":"string","x-omitempty":true},"user":{"description":"User is a SELinux user label that applies to the container.","type":"string","x-omitempty":true}}},"ScaleIOPersistentVolumeSource":{"description":"ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume","type":"object","required":["gateway","system","secretRef"],"properties":{"fsType":{"description":"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"","type":"string","x-omitempty":true},"gateway":{"description":"gateway is the host address of the ScaleIO API Gateway.","type":"string"},"protectionDomain":{"description":"protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.","$ref":"#/definitions/SecretReference"},"sslEnabled":{"description":"sslEnabled is the flag to enable/disable SSL communication with Gateway, default false","type":"boolean","x-omitempty":true},"storageMode":{"description":"storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.","type":"string","x-omitempty":true},"storagePool":{"description":"storagePool is the ScaleIO Storage Pool associated with the protection domain.","type":"string","x-omitempty":true},"system":{"description":"system is the name of the storage system as configured in ScaleIO.","type":"string"},"volumeName":{"description":"volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.","type":"string","x-omitempty":true}}},"ScaleIOVolumeSource":{"description":"ScaleIOVolumeSource represents a persistent ScaleIO volume","type":"object","required":["gateway","system","secretRef"],"properties":{"fsType":{"description":"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".","type":"string","x-omitempty":true},"gateway":{"description":"gateway is the host address of the ScaleIO API Gateway.","type":"string"},"protectionDomain":{"description":"protectionDomain is the name of the ScaleIO Protection Domain for the configured storage.","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.","$ref":"#/definitions/LocalObjectReference"},"sslEnabled":{"description":"sslEnabled Flag enable/disable SSL communication with Gateway, default false","type":"boolean","x-omitempty":true},"storageMode":{"description":"storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.","type":"string","x-omitempty":true},"storagePool":{"description":"storagePool is the ScaleIO Storage Pool associated with the protection domain.","type":"string","x-omitempty":true},"system":{"description":"system is the name of the storage system as configured in ScaleIO.","type":"string"},"volumeName":{"description":"volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source.","type":"string","x-omitempty":true}}},"ScopeSelector":{"description":"A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.","type":"object","properties":{"matchExpressions":{"description":"A list of scope selector requirements by scope of the resources.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ScopedResourceSelectorRequirement"},"x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"ScopedResourceSelectorRequirement":{"description":"A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.","type":"object","required":["scopeName","operator"],"properties":{"operator":{"description":"Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.","type":"string"},"scopeName":{"description":"The name of the scope that the selector applies to.","type":"string"},"values":{"description":"An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"SeccompProfile":{"description":"SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.","type":"object","required":["type"],"properties":{"localhostProfile":{"description":"localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\".","type":"string","x-omitempty":true},"type":{"description":"type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.","type":"string"}},"x-kubernetes-unions":[{"discriminator":"type","fields-to-discriminateBy":{"localhostProfile":"LocalhostProfile"}}]},"Secret":{"description":"Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.","type":"object","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","x-omitempty":true},"data":{"description":"Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4","type":"object","additionalProperties":{"type":"string","format":"byte","x-omitempty":true},"x-omitempty":true},"immutable":{"description":"Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). If not set to true, the field can be modified at any time. Defaulted to nil.","type":"boolean","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"stringData":{"description":"stringData allows specifying non-binary secret data in string form. It is provided as a write-only input field for convenience. All keys and values are merged into the data field on write, overwriting any existing values. The stringData field is never output when reading from the API.","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true},"type":{"description":"Used to facilitate programmatic handling of secret data. More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types","type":"string","x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Secret","version":"v1"}]},"SecretEnvSource":{"description":"SecretEnvSource selects a Secret to populate the environment variables with.\n\nThe contents of the target Secret's Data field will represent the key-value pairs as environment variables.","type":"object","properties":{"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true},"optional":{"description":"Specify whether the Secret must be defined","type":"boolean","x-omitempty":true}}},"SecretKeySelector":{"description":"SecretKeySelector selects a key of a Secret.","type":"object","required":["key"],"properties":{"key":{"description":"The key of the secret to select from. Must be a valid secret key.","type":"string"},"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true},"optional":{"description":"Specify whether the Secret or its key must be defined","type":"boolean","x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"SecretList":{"description":"SecretList is a list of Secret.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret","type":"array","items":{"$ref":"#/definitions/Secret"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"SecretList","version":"v1"}]},"SecretProjection":{"description":"Adapts a secret into a projected volume.\n\nThe contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.","type":"object","properties":{"items":{"description":"items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/KeyToPath"},"x-omitempty":true},"name":{"description":"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string","x-omitempty":true},"optional":{"description":"optional field specify whether the Secret or its key must be defined","type":"boolean","x-omitempty":true}}},"SecretReference":{"description":"SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace","type":"object","properties":{"name":{"description":"name is unique within a namespace to reference a secret resource.","type":"string","x-omitempty":true},"namespace":{"description":"namespace defines the space within which the secret name must be unique.","type":"string","x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"SecretVolumeSource":{"description":"Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.","type":"object","properties":{"defaultMode":{"description":"defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.","type":"integer","format":"int32","x-omitempty":true},"items":{"description":"items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/KeyToPath"},"x-omitempty":true},"optional":{"description":"optional field specify whether the Secret or its keys must be defined","type":"boolean","x-omitempty":true},"secretName":{"description":"secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret","type":"string","x-omitempty":true}}},"SecurityContext":{"description":"SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.","type":"object","properties":{"allowPrivilegeEscalation":{"description":"AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows.","type":"boolean","x-omitempty":true},"capabilities":{"description":"The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. Note that this field cannot be set when spec.os.name is windows.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Capabilities"},"privileged":{"description":"Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows.","type":"boolean","x-omitempty":true},"procMount":{"description":"procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows.","type":"string","x-omitempty":true},"readOnlyRootFilesystem":{"description":"Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows.","type":"boolean","x-omitempty":true},"runAsGroup":{"description":"The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.","type":"integer","format":"int64","x-omitempty":true},"runAsNonRoot":{"description":"Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.","type":"boolean","x-omitempty":true},"runAsUser":{"description":"The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.","type":"integer","format":"int64","x-omitempty":true},"seLinuxOptions":{"description":"The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SELinuxOptions"},"seccompProfile":{"description":"The seccomp options to use by this container. If seccomp options are provided at both the pod \u0026 container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SeccompProfile"},"windowsOptions":{"description":"The Windows specific settings applied to all containers. If unspecified, the options from the PodSecurityContext will be used. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is linux.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/WindowsSecurityContextOptions"}}},"Service":{"description":"Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.","type":"object","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","x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"spec":{"description":"Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ServiceSpec"},"status":{"description":"Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ServiceStatus"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Service","version":"v1"}]},"ServiceAccount":{"description":"ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets","type":"object","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","x-omitempty":true},"automountServiceAccountToken":{"description":"AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.","type":"boolean","x-omitempty":true},"imagePullSecrets":{"description":"ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"},"x-omitempty":true},"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","x-omitempty":true},"metadata":{"description":"Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ObjectMeta"},"x-nullable":true,"x-omitempty":true},"secrets":{"description":"Secrets is a list of the secrets in the same namespace that pods running using this ServiceAccount are allowed to use. Pods are only limited to this list if this service account has a \"kubernetes.io/enforce-mountable-secrets\" annotation set to \"true\". This field should not be used to find auto-generated service account token secrets for use outside of pods. Instead, tokens can be requested directly using the TokenRequest API, or service account token secrets can be manually created. More info: https://kubernetes.io/docs/concepts/configuration/secret","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ObjectReference"},"x-kubernetes-patch-merge-key":"name","x-kubernetes-patch-strategy":"merge","x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ServiceAccount","version":"v1"}]},"ServiceAccountList":{"description":"ServiceAccountList is a list of ServiceAccount objects","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/","type":"array","items":{"$ref":"#/definitions/ServiceAccount"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ServiceAccountList","version":"v1"}]},"ServiceAccountTokenProjection":{"description":"ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).","type":"object","required":["path"],"properties":{"audience":{"description":"audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.","type":"string","x-omitempty":true},"expirationSeconds":{"description":"expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.","type":"integer","format":"int64","x-omitempty":true},"path":{"description":"path is the path relative to the mount point of the file to project the token into.","type":"string"}}},"ServiceList":{"description":"ServiceList holds a list of services.","type":"object","required":["items"],"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","x-omitempty":true},"items":{"description":"List of services","type":"array","items":{"$ref":"#/definitions/Service"}},"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","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"ListMeta"},"x-nullable":true,"x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"ServiceList","version":"v1"}]},"ServicePort":{"description":"ServicePort contains information on service's port.","type":"object","required":["port"],"properties":{"appProtocol":{"description":"The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.","type":"string","x-omitempty":true},"name":{"description":"The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.","type":"string","x-omitempty":true},"nodePort":{"description":"The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport","type":"integer","format":"int32","x-omitempty":true},"port":{"description":"The port that will be exposed by this service.","type":"integer","format":"int32"},"protocol":{"description":"The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.","type":"string","x-omitempty":true},"targetPort":{"description":"Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service","x-go-type":{"import":{"alias":"apimachinery_pkg_util_intstr","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr"},"type":"IntOrString"},"x-nullable":true,"x-omitempty":true}}},"ServiceSpec":{"description":"ServiceSpec describes the attributes that a user creates on a service.","type":"object","properties":{"allocateLoadBalancerNodePorts":{"description":"allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type.","type":"boolean","x-omitempty":true},"clusterIP":{"description":"clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies","type":"string","x-omitempty":true},"clusterIPs":{"description":"ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value.\n\nThis field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies","type":"array","items":{"type":"string","x-omitempty":true},"x-kubernetes-list-type":"atomic","x-omitempty":true},"externalIPs":{"description":"externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"externalName":{"description":"externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\".","type":"string","x-omitempty":true},"externalTrafficPolicy":{"description":"externalTrafficPolicy describes how nodes distribute service traffic they receive on one of the Service's \"externally-facing\" addresses (NodePorts, ExternalIPs, and LoadBalancer IPs). If set to \"Local\", the proxy will configure the service in a way that assumes that external load balancers will take care of balancing the service traffic between nodes, and so each node will deliver traffic only to the node-local endpoints of the service, without masquerading the client source IP. (Traffic mistakenly sent to a node with no endpoints will be dropped.) The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features). Note that traffic sent to an External IP or LoadBalancer IP from within the cluster will always get \"Cluster\" semantics, but clients sending to a NodePort from within the cluster may need to take traffic policy into account when picking a node.","type":"string","x-omitempty":true},"healthCheckNodePort":{"description":"healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set.","type":"integer","format":"int32","x-omitempty":true},"internalTrafficPolicy":{"description":"InternalTrafficPolicy describes how nodes distribute service traffic they receive on the ClusterIP. If set to \"Local\", the proxy will assume that pods only want to talk to endpoints of the service on the same node as the pod, dropping the traffic if there are no local endpoints. The default value, \"Cluster\", uses the standard behavior of routing to all endpoints evenly (possibly modified by topology and other features).","type":"string","x-omitempty":true},"ipFamilies":{"description":"IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName.\n\nThis field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field.","type":"array","items":{"type":"string","x-omitempty":true},"x-kubernetes-list-type":"atomic","x-omitempty":true},"ipFamilyPolicy":{"description":"IPFamilyPolicy represents the dual-stack-ness requested or required by this Service. If there is no value provided, then this field will be set to SingleStack. Services can be \"SingleStack\" (a single IP family), \"PreferDualStack\" (two IP families on dual-stack configured clusters or a single IP family on single-stack clusters), or \"RequireDualStack\" (two IP families on dual-stack configured clusters, otherwise fail). The ipFamilies and clusterIPs fields depend on the value of this field. This field will be wiped when updating a service to type ExternalName.","type":"string","x-omitempty":true},"loadBalancerClass":{"description":"loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type.","type":"string","x-omitempty":true},"loadBalancerIP":{"description":"Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations, and it cannot support dual-stack. As of Kubernetes v1.24, users are encouraged to use implementation-specific annotations when available. This field may be removed in a future API version.","type":"string","x-omitempty":true},"loadBalancerSourceRanges":{"description":"If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"ports":{"description":"The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ServicePort"},"x-kubernetes-list-map-keys":["port","protocol"],"x-kubernetes-list-type":"map","x-kubernetes-patch-merge-key":"port","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"publishNotReadyAddresses":{"description":"publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior.","type":"boolean","x-omitempty":true},"selector":{"description":"Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-kubernetes-map-type":"atomic","x-omitempty":true},"sessionAffinity":{"description":"Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies","type":"string","x-omitempty":true},"sessionAffinityConfig":{"description":"sessionAffinityConfig contains the configurations of session affinity.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SessionAffinityConfig"},"type":{"description":"type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object or EndpointSlice objects. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a virtual IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the same endpoints as the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the same endpoints as the clusterIP. \"ExternalName\" aliases this service to the specified externalName. Several other fields do not apply to ExternalName services. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types","type":"string","x-omitempty":true}}},"ServiceStatus":{"description":"ServiceStatus represents the current status of a service.","type":"object","properties":{"conditions":{"description":"Current service state","type":"array","items":{"x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Condition"},"x-nullable":true,"x-omitempty":true},"x-kubernetes-list-map-keys":["type"],"x-kubernetes-list-type":"map","x-kubernetes-patch-merge-key":"type","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"loadBalancer":{"description":"LoadBalancer contains the current status of the load-balancer, if one is present.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LoadBalancerStatus"}}},"SessionAffinityConfig":{"description":"SessionAffinityConfig represents the configurations of session affinity.","type":"object","properties":{"clientIP":{"description":"clientIP contains the configurations of Client IP based session affinity.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ClientIPConfig"}}},"StorageOSPersistentVolumeSource":{"description":"Represents a StorageOS persistent volume resource.","type":"object","properties":{"fsType":{"description":"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ObjectReference"},"volumeName":{"description":"volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.","type":"string","x-omitempty":true},"volumeNamespace":{"description":"volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.","type":"string","x-omitempty":true}}},"StorageOSVolumeSource":{"description":"Represents a StorageOS persistent volume resource.","type":"object","properties":{"fsType":{"description":"fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.","type":"string","x-omitempty":true},"readOnly":{"description":"readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.","type":"boolean","x-omitempty":true},"secretRef":{"description":"secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LocalObjectReference"},"volumeName":{"description":"volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.","type":"string","x-omitempty":true},"volumeNamespace":{"description":"volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.","type":"string","x-omitempty":true}}},"Sysctl":{"description":"Sysctl defines a kernel parameter to be set","type":"object","required":["name","value"],"properties":{"name":{"description":"Name of a property to set","type":"string"},"value":{"description":"Value of a property to set","type":"string"}}},"TCPSocketAction":{"description":"TCPSocketAction describes an action based on opening a socket","type":"object","required":["port"],"properties":{"host":{"description":"Optional: Host name to connect to, defaults to the pod IP.","type":"string","x-omitempty":true},"port":{"description":"Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.","x-go-type":{"import":{"alias":"apimachinery_pkg_util_intstr","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr"},"type":"IntOrString"}}}},"Taint":{"description":"The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.","type":"object","required":["key","effect"],"properties":{"effect":{"description":"Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.","type":"string"},"key":{"description":"Required. The taint key to be applied to a node.","type":"string"},"timeAdded":{"description":"TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"Time"},"x-nullable":true,"x-omitempty":true},"value":{"description":"The taint value corresponding to the taint key.","type":"string","x-omitempty":true}}},"Toleration":{"description":"The pod this Toleration is attached to tolerates any taint that matches the triple \u003ckey,value,effect\u003e using the matching operator \u003coperator\u003e.","type":"object","properties":{"effect":{"description":"Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.","type":"string","x-omitempty":true},"key":{"description":"Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.","type":"string","x-omitempty":true},"operator":{"description":"Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.","type":"string","x-omitempty":true},"tolerationSeconds":{"description":"TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.","type":"integer","format":"int64","x-omitempty":true},"value":{"description":"Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.","type":"string","x-omitempty":true}}},"TopologySelectorLabelRequirement":{"description":"A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.","type":"object","required":["key","values"],"properties":{"key":{"description":"The label key that the selector applies to.","type":"string"},"values":{"description":"An array of string values. One value must match the label to be selected. Each entry in Values is ORed.","type":"array","items":{"type":"string"}}}},"TopologySelectorTerm":{"description":"A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.","type":"object","properties":{"matchLabelExpressions":{"description":"A list of topology selector requirements by labels.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/TopologySelectorLabelRequirement"},"x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"TopologySpreadConstraint":{"description":"TopologySpreadConstraint specifies how to spread matching pods among the given topology.","type":"object","required":["maxSkew","topologyKey","whenUnsatisfiable"],"properties":{"labelSelector":{"description":"LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain.","x-go-type":{"import":{"alias":"apimachinery_pkg_apis_meta_v1","package":"github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1"},"type":"LabelSelector"},"x-nullable":true,"x-omitempty":true},"matchLabelKeys":{"description":"MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.\n\nThis is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).","type":"array","items":{"type":"string","x-omitempty":true},"x-kubernetes-list-type":"atomic","x-omitempty":true},"maxSkew":{"description":"MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed.","type":"integer","format":"int32"},"minDomains":{"description":"MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.\n\nFor example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.\n\nThis is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default).","type":"integer","format":"int32","x-omitempty":true},"nodeAffinityPolicy":{"description":"NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.\n\nIf this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.","type":"string","x-omitempty":true},"nodeTaintsPolicy":{"description":"NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.\n\nIf this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.","type":"string","x-omitempty":true},"topologyKey":{"description":"TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each \u003ckey, value\u003e as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field.","type":"string"},"whenUnsatisfiable":{"description":"WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location,\n but giving higher precedence to topologies that would help reduce the\n skew.\nA constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.","type":"string"}}},"TypedLocalObjectReference":{"description":"TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.","type":"object","required":["kind","name"],"properties":{"apiGroup":{"description":"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.","type":"string","x-omitempty":true},"kind":{"description":"Kind is the type of resource being referenced","type":"string"},"name":{"description":"Name is the name of resource being referenced","type":"string"}},"x-kubernetes-map-type":"atomic"},"TypedObjectReference":{"type":"object","required":["kind","name"],"properties":{"apiGroup":{"description":"APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.","type":"string","x-omitempty":true},"kind":{"description":"Kind is the type of resource being referenced","type":"string"},"name":{"description":"Name is the name of resource being referenced","type":"string"},"namespace":{"description":"Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.","type":"string","x-omitempty":true}}},"Volume":{"description":"Volume represents a named volume in a pod that may be accessed by any container in the pod.","type":"object","required":["name"],"properties":{"awsElasticBlockStore":{"description":"awsElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/AWSElasticBlockStoreVolumeSource"},"azureDisk":{"description":"azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/AzureDiskVolumeSource"},"azureFile":{"description":"azureFile represents an Azure File Service mount on the host and bind mount to the pod.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/AzureFileVolumeSource"},"cephfs":{"description":"cephFS represents a Ceph FS mount on the host that shares a pod's lifetime","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/CephFSVolumeSource"},"cinder":{"description":"cinder represents a cinder volume attached and mounted on kubelets host machine. More info: https://examples.k8s.io/mysql-cinder-pd/README.md","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/CinderVolumeSource"},"configMap":{"description":"configMap represents a configMap that should populate this volume","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ConfigMapVolumeSource"},"csi":{"description":"csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature).","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/CSIVolumeSource"},"downwardAPI":{"description":"downwardAPI represents downward API about the pod that should populate this volume","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DownwardAPIVolumeSource"},"emptyDir":{"description":"emptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EmptyDirVolumeSource"},"ephemeral":{"description":"ephemeral represents a volume that is handled by a cluster storage driver. The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, and deleted when the pod is removed.\n\nUse this if: a) the volume is only needed while the pod runs, b) features of normal volumes like restoring from snapshot or capacity\n tracking are needed,\nc) the storage driver is specified through a storage class, and d) the storage driver supports dynamic volume provisioning through\n a PersistentVolumeClaim (see EphemeralVolumeSource for more\n information on the connection between this volume type\n and PersistentVolumeClaim).\n\nUse PersistentVolumeClaim or one of the vendor-specific APIs for volumes that persist for longer than the lifecycle of an individual pod.\n\nUse CSI for light-weight local ephemeral volumes if the CSI driver is meant to be used that way - see the documentation of the driver for more information.\n\nA pod can use both types of ephemeral volumes and persistent volumes at the same time.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/EphemeralVolumeSource"},"fc":{"description":"fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/FCVolumeSource"},"flexVolume":{"description":"flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/FlexVolumeSource"},"flocker":{"description":"flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/FlockerVolumeSource"},"gcePersistentDisk":{"description":"gcePersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/GCEPersistentDiskVolumeSource"},"gitRepo":{"description":"gitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/GitRepoVolumeSource"},"glusterfs":{"description":"glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/glusterfs/README.md","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/GlusterfsVolumeSource"},"hostPath":{"description":"hostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/HostPathVolumeSource"},"iscsi":{"description":"iscsi represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://examples.k8s.io/volumes/iscsi/README.md","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ISCSIVolumeSource"},"name":{"description":"name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names","type":"string"},"nfs":{"description":"nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NFSVolumeSource"},"persistentVolumeClaim":{"description":"persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PersistentVolumeClaimVolumeSource"},"photonPersistentDisk":{"description":"photonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PhotonPersistentDiskVolumeSource"},"portworxVolume":{"description":"portworxVolume represents a portworx volume attached and mounted on kubelets host machine","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/PortworxVolumeSource"},"projected":{"description":"projected items for all in one resources secrets, configmaps, and downward API","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ProjectedVolumeSource"},"quobyte":{"description":"quobyte represents a Quobyte mount on the host that shares a pod's lifetime","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/QuobyteVolumeSource"},"rbd":{"description":"rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://examples.k8s.io/volumes/rbd/README.md","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/RBDVolumeSource"},"scaleIO":{"description":"scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ScaleIOVolumeSource"},"secret":{"description":"secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretVolumeSource"},"storageos":{"description":"storageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StorageOSVolumeSource"},"vsphereVolume":{"description":"vsphereVolume represents a vSphere volume attached and mounted on kubelets host machine","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/VsphereVirtualDiskVolumeSource"}}},"VolumeDevice":{"description":"volumeDevice describes a mapping of a raw block device within a container.","type":"object","required":["name","devicePath"],"properties":{"devicePath":{"description":"devicePath is the path inside of the container that the device will be mapped to.","type":"string"},"name":{"description":"name must match the name of a persistentVolumeClaim in the pod","type":"string"}}},"VolumeMount":{"description":"VolumeMount describes a mounting of a Volume within a container.","type":"object","required":["name","mountPath"],"properties":{"mountPath":{"description":"Path within the container at which the volume should be mounted. Must not contain ':'.","type":"string"},"mountPropagation":{"description":"mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.","type":"string","x-omitempty":true},"name":{"description":"This must match the Name of a Volume.","type":"string"},"readOnly":{"description":"Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.","type":"boolean","x-omitempty":true},"subPath":{"description":"Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).","type":"string","x-omitempty":true},"subPathExpr":{"description":"Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive.","type":"string","x-omitempty":true}}},"VolumeNodeAffinity":{"description":"VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.","type":"object","properties":{"required":{"description":"required specifies hard node constraints that must be met.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/NodeSelector"}}},"VolumeProjection":{"description":"Projection that may be projected along with other supported volume types","type":"object","properties":{"configMap":{"description":"configMap information about the configMap data to project","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ConfigMapProjection"},"downwardAPI":{"description":"downwardAPI information about the downwardAPI data to project","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/DownwardAPIProjection"},"secret":{"description":"secret information about the secret data to project","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/SecretProjection"},"serviceAccountToken":{"description":"serviceAccountToken is information about the serviceAccountToken data to project","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ServiceAccountTokenProjection"}}},"VsphereVirtualDiskVolumeSource":{"description":"Represents a vSphere volume resource.","type":"object","required":["volumePath"],"properties":{"fsType":{"description":"fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.","type":"string","x-omitempty":true},"storagePolicyID":{"description":"storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.","type":"string","x-omitempty":true},"storagePolicyName":{"description":"storagePolicyName is the storage Policy Based Management (SPBM) profile name.","type":"string","x-omitempty":true},"volumePath":{"description":"volumePath is the path that identifies vSphere volume vmdk","type":"string"}}},"WeightedPodAffinityTerm":{"description":"The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)","type":"object","required":["weight","podAffinityTerm"],"properties":{"podAffinityTerm":{"description":"Required. A pod affinity term, associated with the corresponding weight.","$ref":"#/definitions/PodAffinityTerm"},"weight":{"description":"weight associated with matching the corresponding podAffinityTerm, in the range 1-100.","type":"integer","format":"int32"}}},"WindowsSecurityContextOptions":{"description":"WindowsSecurityContextOptions contain Windows-specific options and credentials.","type":"object","properties":{"gmsaCredentialSpec":{"description":"GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field.","type":"string","x-omitempty":true},"gmsaCredentialSpecName":{"description":"GMSACredentialSpecName is the name of the GMSA credential spec to use.","type":"string","x-omitempty":true},"hostProcess":{"description":"HostProcess determines if a container should be run as a 'Host Process' container. This field is alpha-level and will only be honored by components that enable the WindowsHostProcessContainers feature flag. Setting this field without the feature flag will result in errors when validating the Pod. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true.","type":"boolean","x-omitempty":true},"runAsUserName":{"description":"The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.","type":"string","x-omitempty":true}}}}} \ No newline at end of file diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/sysctl_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/sysctl_easyjson.go deleted file mode 100644 index 7cb030e..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/sysctl_easyjson.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson4b8a0936DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Sysctl) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "value": - if in.IsNull() { - in.Skip() - out.Value = nil - } else { - if out.Value == nil { - out.Value = new(string) - } - *out.Value = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson4b8a0936EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Sysctl) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"name\":" - out.RawString(prefix[1:]) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - { - const prefix string = ",\"value\":" - out.RawString(prefix) - if in.Value == nil { - out.RawString("null") - } else { - out.String(string(*in.Value)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Sysctl) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson4b8a0936EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Sysctl) MarshalEasyJSON(w *jwriter.Writer) { - easyjson4b8a0936EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Sysctl) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson4b8a0936DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Sysctl) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson4b8a0936DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/taint.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/taint.go index e9077a4..f0f9f92 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/taint.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/taint.go @@ -15,8 +15,6 @@ import ( type Taint struct { // Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. - // - // // Required: true Effect *string `json:"effect"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/taint_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/taint_easyjson.go deleted file mode 100644 index 302b466..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/taint_easyjson.go +++ /dev/null @@ -1,141 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson9f3c6a92DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Taint) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "effect": - if in.IsNull() { - in.Skip() - out.Effect = nil - } else { - if out.Effect == nil { - out.Effect = new(string) - } - *out.Effect = string(in.String()) - } - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "timeAdded": - if in.IsNull() { - in.Skip() - out.TimeAdded = nil - } else { - if out.TimeAdded == nil { - out.TimeAdded = new(_v1.Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.TimeAdded).UnmarshalJSON(data)) - } - } - case "value": - out.Value = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson9f3c6a92EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Taint) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"effect\":" - out.RawString(prefix[1:]) - if in.Effect == nil { - out.RawString("null") - } else { - out.String(string(*in.Effect)) - } - } - { - const prefix string = ",\"key\":" - out.RawString(prefix) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - if in.TimeAdded != nil { - const prefix string = ",\"timeAdded\":" - out.RawString(prefix) - out.Raw((*in.TimeAdded).MarshalJSON()) - } - if in.Value != "" { - const prefix string = ",\"value\":" - out.RawString(prefix) - out.String(string(in.Value)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Taint) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson9f3c6a92EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Taint) MarshalEasyJSON(w *jwriter.Writer) { - easyjson9f3c6a92EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Taint) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson9f3c6a92DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Taint) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson9f3c6a92DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/tcp_socket_action_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/tcp_socket_action_easyjson.go deleted file mode 100644 index f85200f..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/tcp_socket_action_easyjson.go +++ /dev/null @@ -1,111 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - intstr "github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonAf269742DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *TCPSocketAction) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "host": - out.Host = string(in.String()) - case "port": - if in.IsNull() { - in.Skip() - out.Port = nil - } else { - if out.Port == nil { - out.Port = new(intstr.IntOrString) - } - *out.Port = intstr.IntOrString(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonAf269742EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in TCPSocketAction) { - out.RawByte('{') - first := true - _ = first - if in.Host != "" { - const prefix string = ",\"host\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Host)) - } - { - const prefix string = ",\"port\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Port == nil { - out.RawString("null") - } else { - out.String(string(*in.Port)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v TCPSocketAction) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonAf269742EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v TCPSocketAction) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonAf269742EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *TCPSocketAction) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonAf269742DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *TCPSocketAction) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonAf269742DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/toleration.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/toleration.go index fb9f3fc..0dafdd4 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/toleration.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/toleration.go @@ -11,16 +11,12 @@ package v1 type Toleration struct { // Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - // - // Effect string `json:"effect,omitempty"` // Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Key string `json:"key,omitempty"` // Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. - // - // Operator string `json:"operator,omitempty"` // TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/toleration_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/toleration_easyjson.go deleted file mode 100644 index e04b0e8..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/toleration_easyjson.go +++ /dev/null @@ -1,134 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE60d1ddfDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Toleration) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "effect": - out.Effect = string(in.String()) - case "key": - out.Key = string(in.String()) - case "operator": - out.Operator = string(in.String()) - case "tolerationSeconds": - out.TolerationSeconds = int64(in.Int64()) - case "value": - out.Value = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE60d1ddfEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Toleration) { - out.RawByte('{') - first := true - _ = first - if in.Effect != "" { - const prefix string = ",\"effect\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Effect)) - } - if in.Key != "" { - const prefix string = ",\"key\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Key)) - } - if in.Operator != "" { - const prefix string = ",\"operator\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Operator)) - } - if in.TolerationSeconds != 0 { - const prefix string = ",\"tolerationSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.TolerationSeconds)) - } - if in.Value != "" { - const prefix string = ",\"value\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Value)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Toleration) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE60d1ddfEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Toleration) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE60d1ddfEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Toleration) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE60d1ddfDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Toleration) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE60d1ddfDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/topology_selector_label_requirement_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/topology_selector_label_requirement_easyjson.go deleted file mode 100644 index 1648b21..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/topology_selector_label_requirement_easyjson.go +++ /dev/null @@ -1,136 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonA8a24654DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *TopologySelectorLabelRequirement) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "values": - if in.IsNull() { - in.Skip() - out.Values = nil - } else { - in.Delim('[') - if out.Values == nil { - if !in.IsDelim(']') { - out.Values = make([]string, 0, 4) - } else { - out.Values = []string{} - } - } else { - out.Values = (out.Values)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Values = append(out.Values, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA8a24654EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in TopologySelectorLabelRequirement) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"key\":" - out.RawString(prefix[1:]) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - { - const prefix string = ",\"values\":" - out.RawString(prefix) - if in.Values == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Values { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v TopologySelectorLabelRequirement) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonA8a24654EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v TopologySelectorLabelRequirement) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonA8a24654EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *TopologySelectorLabelRequirement) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonA8a24654DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *TopologySelectorLabelRequirement) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonA8a24654DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/topology_selector_term_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/topology_selector_term_easyjson.go deleted file mode 100644 index 0912f2b..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/topology_selector_term_easyjson.go +++ /dev/null @@ -1,128 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonB66dba6eDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *TopologySelectorTerm) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "matchLabelExpressions": - if in.IsNull() { - in.Skip() - out.MatchLabelExpressions = nil - } else { - in.Delim('[') - if out.MatchLabelExpressions == nil { - if !in.IsDelim(']') { - out.MatchLabelExpressions = make([]*TopologySelectorLabelRequirement, 0, 8) - } else { - out.MatchLabelExpressions = []*TopologySelectorLabelRequirement{} - } - } else { - out.MatchLabelExpressions = (out.MatchLabelExpressions)[:0] - } - for !in.IsDelim(']') { - var v1 *TopologySelectorLabelRequirement - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(TopologySelectorLabelRequirement) - } - (*v1).UnmarshalEasyJSON(in) - } - out.MatchLabelExpressions = append(out.MatchLabelExpressions, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB66dba6eEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in TopologySelectorTerm) { - out.RawByte('{') - first := true - _ = first - if len(in.MatchLabelExpressions) != 0 { - const prefix string = ",\"matchLabelExpressions\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.MatchLabelExpressions { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v TopologySelectorTerm) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonB66dba6eEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v TopologySelectorTerm) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonB66dba6eEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *TopologySelectorTerm) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonB66dba6eDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *TopologySelectorTerm) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonB66dba6eDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/topology_spread_constraint.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/topology_spread_constraint.go index d6df89b..0892b2d 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/topology_spread_constraint.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/topology_spread_constraint.go @@ -17,6 +17,11 @@ type TopologySpreadConstraint struct { // LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain. LabelSelector *apimachinery_pkg_apis_meta_v1.LabelSelector `json:"labelSelector,omitempty"` + // MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. + // + // This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). + MatchLabelKeys []string `json:"matchLabelKeys,omitempty"` + // MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. // Required: true MaxSkew *int32 `json:"maxSkew"` @@ -25,10 +30,20 @@ type TopologySpreadConstraint struct { // // For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. // - // This is an alpha field and requires enabling MinDomainsInPodTopologySpread feature gate. + // This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). MinDomains int32 `json:"minDomains,omitempty"` - // TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes match the node selector. e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. It's a required field. + // NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. + // + // If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + NodeAffinityPolicy string `json:"nodeAffinityPolicy,omitempty"` + + // NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. + // + // If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. + NodeTaintsPolicy string `json:"nodeTaintsPolicy,omitempty"` + + // TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. It's a required field. // Required: true TopologyKey *string `json:"topologyKey"` @@ -36,8 +51,6 @@ type TopologySpreadConstraint struct { // but giving higher precedence to topologies that would help reduce the // skew. // A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. - // - // // Required: true WhenUnsatisfiable *string `json:"whenUnsatisfiable"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/topology_spread_constraint_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/topology_spread_constraint_easyjson.go deleted file mode 100644 index 8a4602d..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/topology_spread_constraint_easyjson.go +++ /dev/null @@ -1,164 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - _v1 "github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson8674d8afDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *TopologySpreadConstraint) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "labelSelector": - if in.IsNull() { - in.Skip() - out.LabelSelector = nil - } else { - if out.LabelSelector == nil { - out.LabelSelector = new(_v1.LabelSelector) - } - (*out.LabelSelector).UnmarshalEasyJSON(in) - } - case "maxSkew": - if in.IsNull() { - in.Skip() - out.MaxSkew = nil - } else { - if out.MaxSkew == nil { - out.MaxSkew = new(int32) - } - *out.MaxSkew = int32(in.Int32()) - } - case "minDomains": - out.MinDomains = int32(in.Int32()) - case "topologyKey": - if in.IsNull() { - in.Skip() - out.TopologyKey = nil - } else { - if out.TopologyKey == nil { - out.TopologyKey = new(string) - } - *out.TopologyKey = string(in.String()) - } - case "whenUnsatisfiable": - if in.IsNull() { - in.Skip() - out.WhenUnsatisfiable = nil - } else { - if out.WhenUnsatisfiable == nil { - out.WhenUnsatisfiable = new(string) - } - *out.WhenUnsatisfiable = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson8674d8afEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in TopologySpreadConstraint) { - out.RawByte('{') - first := true - _ = first - if in.LabelSelector != nil { - const prefix string = ",\"labelSelector\":" - first = false - out.RawString(prefix[1:]) - (*in.LabelSelector).MarshalEasyJSON(out) - } - { - const prefix string = ",\"maxSkew\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.MaxSkew == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.MaxSkew)) - } - } - if in.MinDomains != 0 { - const prefix string = ",\"minDomains\":" - out.RawString(prefix) - out.Int32(int32(in.MinDomains)) - } - { - const prefix string = ",\"topologyKey\":" - out.RawString(prefix) - if in.TopologyKey == nil { - out.RawString("null") - } else { - out.String(string(*in.TopologyKey)) - } - } - { - const prefix string = ",\"whenUnsatisfiable\":" - out.RawString(prefix) - if in.WhenUnsatisfiable == nil { - out.RawString("null") - } else { - out.String(string(*in.WhenUnsatisfiable)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v TopologySpreadConstraint) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson8674d8afEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v TopologySpreadConstraint) MarshalEasyJSON(w *jwriter.Writer) { - easyjson8674d8afEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *TopologySpreadConstraint) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson8674d8afDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *TopologySpreadConstraint) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson8674d8afDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/typed_local_object_reference_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/typed_local_object_reference_easyjson.go deleted file mode 100644 index e3ceb97..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/typed_local_object_reference_easyjson.go +++ /dev/null @@ -1,129 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson3579ba30DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *TypedLocalObjectReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiGroup": - out.APIGroup = string(in.String()) - case "kind": - if in.IsNull() { - in.Skip() - out.Kind = nil - } else { - if out.Kind == nil { - out.Kind = new(string) - } - *out.Kind = string(in.String()) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson3579ba30EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in TypedLocalObjectReference) { - out.RawByte('{') - first := true - _ = first - if in.APIGroup != "" { - const prefix string = ",\"apiGroup\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIGroup)) - } - { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Kind == nil { - out.RawString("null") - } else { - out.String(string(*in.Kind)) - } - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v TypedLocalObjectReference) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson3579ba30EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v TypedLocalObjectReference) MarshalEasyJSON(w *jwriter.Writer) { - easyjson3579ba30EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *TypedLocalObjectReference) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson3579ba30DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *TypedLocalObjectReference) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson3579ba30DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/typed_object_reference.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/typed_object_reference.go new file mode 100644 index 0000000..18dc77c --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/typed_object_reference.go @@ -0,0 +1,26 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package v1 + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +// TypedObjectReference typed object reference +// +// swagger:model TypedObjectReference +type TypedObjectReference struct { + + // 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. + APIGroup string `json:"apiGroup,omitempty"` + + // Kind is the type of resource being referenced + // Required: true + Kind *string `json:"kind"` + + // Name is the name of resource being referenced + // Required: true + Name *string `json:"name"` + + // Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. + Namespace string `json:"namespace,omitempty"` +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_device_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_device_easyjson.go deleted file mode 100644 index b91fbf4..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_device_easyjson.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonA6709105DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *VolumeDevice) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "devicePath": - if in.IsNull() { - in.Skip() - out.DevicePath = nil - } else { - if out.DevicePath == nil { - out.DevicePath = new(string) - } - *out.DevicePath = string(in.String()) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA6709105EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in VolumeDevice) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"devicePath\":" - out.RawString(prefix[1:]) - if in.DevicePath == nil { - out.RawString("null") - } else { - out.String(string(*in.DevicePath)) - } - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v VolumeDevice) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonA6709105EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v VolumeDevice) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonA6709105EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *VolumeDevice) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonA6709105DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *VolumeDevice) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonA6709105DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_easyjson.go deleted file mode 100644 index 64cdd17..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_easyjson.go +++ /dev/null @@ -1,714 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson88542aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *Volume) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "awsElasticBlockStore": - if in.IsNull() { - in.Skip() - out.AWSElasticBlockStore = nil - } else { - if out.AWSElasticBlockStore == nil { - out.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) - } - (*out.AWSElasticBlockStore).UnmarshalEasyJSON(in) - } - case "azureDisk": - if in.IsNull() { - in.Skip() - out.AzureDisk = nil - } else { - if out.AzureDisk == nil { - out.AzureDisk = new(AzureDiskVolumeSource) - } - (*out.AzureDisk).UnmarshalEasyJSON(in) - } - case "azureFile": - if in.IsNull() { - in.Skip() - out.AzureFile = nil - } else { - if out.AzureFile == nil { - out.AzureFile = new(AzureFileVolumeSource) - } - (*out.AzureFile).UnmarshalEasyJSON(in) - } - case "cephfs": - if in.IsNull() { - in.Skip() - out.Cephfs = nil - } else { - if out.Cephfs == nil { - out.Cephfs = new(CephFSVolumeSource) - } - (*out.Cephfs).UnmarshalEasyJSON(in) - } - case "cinder": - if in.IsNull() { - in.Skip() - out.Cinder = nil - } else { - if out.Cinder == nil { - out.Cinder = new(CinderVolumeSource) - } - (*out.Cinder).UnmarshalEasyJSON(in) - } - case "configMap": - if in.IsNull() { - in.Skip() - out.ConfigMap = nil - } else { - if out.ConfigMap == nil { - out.ConfigMap = new(ConfigMapVolumeSource) - } - (*out.ConfigMap).UnmarshalEasyJSON(in) - } - case "csi": - if in.IsNull() { - in.Skip() - out.CSI = nil - } else { - if out.CSI == nil { - out.CSI = new(CSIVolumeSource) - } - (*out.CSI).UnmarshalEasyJSON(in) - } - case "downwardAPI": - if in.IsNull() { - in.Skip() - out.DownwardAPI = nil - } else { - if out.DownwardAPI == nil { - out.DownwardAPI = new(DownwardAPIVolumeSource) - } - (*out.DownwardAPI).UnmarshalEasyJSON(in) - } - case "emptyDir": - if in.IsNull() { - in.Skip() - out.EmptyDir = nil - } else { - if out.EmptyDir == nil { - out.EmptyDir = new(EmptyDirVolumeSource) - } - (*out.EmptyDir).UnmarshalEasyJSON(in) - } - case "ephemeral": - if in.IsNull() { - in.Skip() - out.Ephemeral = nil - } else { - if out.Ephemeral == nil { - out.Ephemeral = new(EphemeralVolumeSource) - } - (*out.Ephemeral).UnmarshalEasyJSON(in) - } - case "fc": - if in.IsNull() { - in.Skip() - out.FC = nil - } else { - if out.FC == nil { - out.FC = new(FCVolumeSource) - } - (*out.FC).UnmarshalEasyJSON(in) - } - case "flexVolume": - if in.IsNull() { - in.Skip() - out.FlexVolume = nil - } else { - if out.FlexVolume == nil { - out.FlexVolume = new(FlexVolumeSource) - } - (*out.FlexVolume).UnmarshalEasyJSON(in) - } - case "flocker": - if in.IsNull() { - in.Skip() - out.Flocker = nil - } else { - if out.Flocker == nil { - out.Flocker = new(FlockerVolumeSource) - } - (*out.Flocker).UnmarshalEasyJSON(in) - } - case "gcePersistentDisk": - if in.IsNull() { - in.Skip() - out.GCEPersistentDisk = nil - } else { - if out.GCEPersistentDisk == nil { - out.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) - } - (*out.GCEPersistentDisk).UnmarshalEasyJSON(in) - } - case "gitRepo": - if in.IsNull() { - in.Skip() - out.GitRepo = nil - } else { - if out.GitRepo == nil { - out.GitRepo = new(GitRepoVolumeSource) - } - (*out.GitRepo).UnmarshalEasyJSON(in) - } - case "glusterfs": - if in.IsNull() { - in.Skip() - out.Glusterfs = nil - } else { - if out.Glusterfs == nil { - out.Glusterfs = new(GlusterfsVolumeSource) - } - (*out.Glusterfs).UnmarshalEasyJSON(in) - } - case "hostPath": - if in.IsNull() { - in.Skip() - out.HostPath = nil - } else { - if out.HostPath == nil { - out.HostPath = new(HostPathVolumeSource) - } - (*out.HostPath).UnmarshalEasyJSON(in) - } - case "iscsi": - if in.IsNull() { - in.Skip() - out.ISCSI = nil - } else { - if out.ISCSI == nil { - out.ISCSI = new(ISCSIVolumeSource) - } - (*out.ISCSI).UnmarshalEasyJSON(in) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "nfs": - if in.IsNull() { - in.Skip() - out.NFS = nil - } else { - if out.NFS == nil { - out.NFS = new(NFSVolumeSource) - } - (*out.NFS).UnmarshalEasyJSON(in) - } - case "persistentVolumeClaim": - if in.IsNull() { - in.Skip() - out.PersistentVolumeClaim = nil - } else { - if out.PersistentVolumeClaim == nil { - out.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) - } - (*out.PersistentVolumeClaim).UnmarshalEasyJSON(in) - } - case "photonPersistentDisk": - if in.IsNull() { - in.Skip() - out.PhotonPersistentDisk = nil - } else { - if out.PhotonPersistentDisk == nil { - out.PhotonPersistentDisk = new(PhotonPersistentDiskVolumeSource) - } - (*out.PhotonPersistentDisk).UnmarshalEasyJSON(in) - } - case "portworxVolume": - if in.IsNull() { - in.Skip() - out.PortworxVolume = nil - } else { - if out.PortworxVolume == nil { - out.PortworxVolume = new(PortworxVolumeSource) - } - (*out.PortworxVolume).UnmarshalEasyJSON(in) - } - case "projected": - if in.IsNull() { - in.Skip() - out.Projected = nil - } else { - if out.Projected == nil { - out.Projected = new(ProjectedVolumeSource) - } - (*out.Projected).UnmarshalEasyJSON(in) - } - case "quobyte": - if in.IsNull() { - in.Skip() - out.Quobyte = nil - } else { - if out.Quobyte == nil { - out.Quobyte = new(QuobyteVolumeSource) - } - (*out.Quobyte).UnmarshalEasyJSON(in) - } - case "rbd": - if in.IsNull() { - in.Skip() - out.RBD = nil - } else { - if out.RBD == nil { - out.RBD = new(RBDVolumeSource) - } - (*out.RBD).UnmarshalEasyJSON(in) - } - case "scaleIO": - if in.IsNull() { - in.Skip() - out.ScaleIO = nil - } else { - if out.ScaleIO == nil { - out.ScaleIO = new(ScaleIOVolumeSource) - } - (*out.ScaleIO).UnmarshalEasyJSON(in) - } - case "secret": - if in.IsNull() { - in.Skip() - out.Secret = nil - } else { - if out.Secret == nil { - out.Secret = new(SecretVolumeSource) - } - (*out.Secret).UnmarshalEasyJSON(in) - } - case "storageos": - if in.IsNull() { - in.Skip() - out.Storageos = nil - } else { - if out.Storageos == nil { - out.Storageos = new(StorageOSVolumeSource) - } - (*out.Storageos).UnmarshalEasyJSON(in) - } - case "vsphereVolume": - if in.IsNull() { - in.Skip() - out.VsphereVolume = nil - } else { - if out.VsphereVolume == nil { - out.VsphereVolume = new(VsphereVirtualDiskVolumeSource) - } - easyjson88542aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.VsphereVolume) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in Volume) { - out.RawByte('{') - first := true - _ = first - if in.AWSElasticBlockStore != nil { - const prefix string = ",\"awsElasticBlockStore\":" - first = false - out.RawString(prefix[1:]) - (*in.AWSElasticBlockStore).MarshalEasyJSON(out) - } - if in.AzureDisk != nil { - const prefix string = ",\"azureDisk\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.AzureDisk).MarshalEasyJSON(out) - } - if in.AzureFile != nil { - const prefix string = ",\"azureFile\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.AzureFile).MarshalEasyJSON(out) - } - if in.Cephfs != nil { - const prefix string = ",\"cephfs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Cephfs).MarshalEasyJSON(out) - } - if in.Cinder != nil { - const prefix string = ",\"cinder\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Cinder).MarshalEasyJSON(out) - } - if in.ConfigMap != nil { - const prefix string = ",\"configMap\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.ConfigMap).MarshalEasyJSON(out) - } - if in.CSI != nil { - const prefix string = ",\"csi\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.CSI).MarshalEasyJSON(out) - } - if in.DownwardAPI != nil { - const prefix string = ",\"downwardAPI\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.DownwardAPI).MarshalEasyJSON(out) - } - if in.EmptyDir != nil { - const prefix string = ",\"emptyDir\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.EmptyDir).MarshalEasyJSON(out) - } - if in.Ephemeral != nil { - const prefix string = ",\"ephemeral\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Ephemeral).MarshalEasyJSON(out) - } - if in.FC != nil { - const prefix string = ",\"fc\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.FC).MarshalEasyJSON(out) - } - if in.FlexVolume != nil { - const prefix string = ",\"flexVolume\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.FlexVolume).MarshalEasyJSON(out) - } - if in.Flocker != nil { - const prefix string = ",\"flocker\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Flocker).MarshalEasyJSON(out) - } - if in.GCEPersistentDisk != nil { - const prefix string = ",\"gcePersistentDisk\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.GCEPersistentDisk).MarshalEasyJSON(out) - } - if in.GitRepo != nil { - const prefix string = ",\"gitRepo\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.GitRepo).MarshalEasyJSON(out) - } - if in.Glusterfs != nil { - const prefix string = ",\"glusterfs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Glusterfs).MarshalEasyJSON(out) - } - if in.HostPath != nil { - const prefix string = ",\"hostPath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.HostPath).MarshalEasyJSON(out) - } - if in.ISCSI != nil { - const prefix string = ",\"iscsi\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.ISCSI).MarshalEasyJSON(out) - } - { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - if in.NFS != nil { - const prefix string = ",\"nfs\":" - out.RawString(prefix) - (*in.NFS).MarshalEasyJSON(out) - } - if in.PersistentVolumeClaim != nil { - const prefix string = ",\"persistentVolumeClaim\":" - out.RawString(prefix) - (*in.PersistentVolumeClaim).MarshalEasyJSON(out) - } - if in.PhotonPersistentDisk != nil { - const prefix string = ",\"photonPersistentDisk\":" - out.RawString(prefix) - (*in.PhotonPersistentDisk).MarshalEasyJSON(out) - } - if in.PortworxVolume != nil { - const prefix string = ",\"portworxVolume\":" - out.RawString(prefix) - (*in.PortworxVolume).MarshalEasyJSON(out) - } - if in.Projected != nil { - const prefix string = ",\"projected\":" - out.RawString(prefix) - (*in.Projected).MarshalEasyJSON(out) - } - if in.Quobyte != nil { - const prefix string = ",\"quobyte\":" - out.RawString(prefix) - (*in.Quobyte).MarshalEasyJSON(out) - } - if in.RBD != nil { - const prefix string = ",\"rbd\":" - out.RawString(prefix) - (*in.RBD).MarshalEasyJSON(out) - } - if in.ScaleIO != nil { - const prefix string = ",\"scaleIO\":" - out.RawString(prefix) - (*in.ScaleIO).MarshalEasyJSON(out) - } - if in.Secret != nil { - const prefix string = ",\"secret\":" - out.RawString(prefix) - (*in.Secret).MarshalEasyJSON(out) - } - if in.Storageos != nil { - const prefix string = ",\"storageos\":" - out.RawString(prefix) - (*in.Storageos).MarshalEasyJSON(out) - } - if in.VsphereVolume != nil { - const prefix string = ",\"vsphereVolume\":" - out.RawString(prefix) - easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.VsphereVolume) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Volume) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Volume) MarshalEasyJSON(w *jwriter.Writer) { - easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Volume) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson88542aDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Volume) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson88542aDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} -func easyjson88542aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *VsphereVirtualDiskVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "storagePolicyID": - out.StoragePolicyID = string(in.String()) - case "storagePolicyName": - out.StoragePolicyName = string(in.String()) - case "volumePath": - if in.IsNull() { - in.Skip() - out.VolumePath = nil - } else { - if out.VolumePath == nil { - out.VolumePath = new(string) - } - *out.VolumePath = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in VsphereVirtualDiskVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.StoragePolicyID != "" { - const prefix string = ",\"storagePolicyID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StoragePolicyID)) - } - if in.StoragePolicyName != "" { - const prefix string = ",\"storagePolicyName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StoragePolicyName)) - } - { - const prefix string = ",\"volumePath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.VolumePath == nil { - out.RawString("null") - } else { - out.String(string(*in.VolumePath)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_mount_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_mount_easyjson.go deleted file mode 100644 index 6af7dc9..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_mount_easyjson.go +++ /dev/null @@ -1,144 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonF5259eccDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *VolumeMount) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "mountPath": - if in.IsNull() { - in.Skip() - out.MountPath = nil - } else { - if out.MountPath == nil { - out.MountPath = new(string) - } - *out.MountPath = string(in.String()) - } - case "mountPropagation": - out.MountPropagation = string(in.String()) - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "readOnly": - out.ReadOnly = bool(in.Bool()) - case "subPath": - out.SubPath = string(in.String()) - case "subPathExpr": - out.SubPathExpr = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF5259eccEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in VolumeMount) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"mountPath\":" - out.RawString(prefix[1:]) - if in.MountPath == nil { - out.RawString("null") - } else { - out.String(string(*in.MountPath)) - } - } - if in.MountPropagation != "" { - const prefix string = ",\"mountPropagation\":" - out.RawString(prefix) - out.String(string(in.MountPropagation)) - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - if in.ReadOnly { - const prefix string = ",\"readOnly\":" - out.RawString(prefix) - out.Bool(bool(in.ReadOnly)) - } - if in.SubPath != "" { - const prefix string = ",\"subPath\":" - out.RawString(prefix) - out.String(string(in.SubPath)) - } - if in.SubPathExpr != "" { - const prefix string = ",\"subPathExpr\":" - out.RawString(prefix) - out.String(string(in.SubPathExpr)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v VolumeMount) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonF5259eccEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v VolumeMount) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonF5259eccEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *VolumeMount) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonF5259eccDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *VolumeMount) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonF5259eccDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_node_affinity_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_node_affinity_easyjson.go deleted file mode 100644 index 9e2509c..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_node_affinity_easyjson.go +++ /dev/null @@ -1,94 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonA87c415cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *VolumeNodeAffinity) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "required": - if in.IsNull() { - in.Skip() - out.Required = nil - } else { - if out.Required == nil { - out.Required = new(NodeSelector) - } - (*out.Required).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA87c415cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in VolumeNodeAffinity) { - out.RawByte('{') - first := true - _ = first - if in.Required != nil { - const prefix string = ",\"required\":" - first = false - out.RawString(prefix[1:]) - (*in.Required).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v VolumeNodeAffinity) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonA87c415cEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v VolumeNodeAffinity) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonA87c415cEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *VolumeNodeAffinity) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonA87c415cDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *VolumeNodeAffinity) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonA87c415cDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_projection_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_projection_easyjson.go deleted file mode 100644 index d86b13c..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume_projection_easyjson.go +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson49067470DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *VolumeProjection) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "configMap": - if in.IsNull() { - in.Skip() - out.ConfigMap = nil - } else { - if out.ConfigMap == nil { - out.ConfigMap = new(ConfigMapProjection) - } - (*out.ConfigMap).UnmarshalEasyJSON(in) - } - case "downwardAPI": - if in.IsNull() { - in.Skip() - out.DownwardAPI = nil - } else { - if out.DownwardAPI == nil { - out.DownwardAPI = new(DownwardAPIProjection) - } - (*out.DownwardAPI).UnmarshalEasyJSON(in) - } - case "secret": - if in.IsNull() { - in.Skip() - out.Secret = nil - } else { - if out.Secret == nil { - out.Secret = new(SecretProjection) - } - (*out.Secret).UnmarshalEasyJSON(in) - } - case "serviceAccountToken": - if in.IsNull() { - in.Skip() - out.ServiceAccountToken = nil - } else { - if out.ServiceAccountToken == nil { - out.ServiceAccountToken = new(ServiceAccountTokenProjection) - } - (*out.ServiceAccountToken).UnmarshalEasyJSON(in) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson49067470EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in VolumeProjection) { - out.RawByte('{') - first := true - _ = first - if in.ConfigMap != nil { - const prefix string = ",\"configMap\":" - first = false - out.RawString(prefix[1:]) - (*in.ConfigMap).MarshalEasyJSON(out) - } - if in.DownwardAPI != nil { - const prefix string = ",\"downwardAPI\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.DownwardAPI).MarshalEasyJSON(out) - } - if in.Secret != nil { - const prefix string = ",\"secret\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Secret).MarshalEasyJSON(out) - } - if in.ServiceAccountToken != nil { - const prefix string = ",\"serviceAccountToken\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.ServiceAccountToken).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v VolumeProjection) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson49067470EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v VolumeProjection) MarshalEasyJSON(w *jwriter.Writer) { - easyjson49067470EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *VolumeProjection) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson49067470DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *VolumeProjection) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson49067470DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/vsphere_virtual_disk_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/vsphere_virtual_disk_volume_source_easyjson.go deleted file mode 100644 index 42f3f98..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/vsphere_virtual_disk_volume_source_easyjson.go +++ /dev/null @@ -1,134 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson83fc1858DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *VsphereVirtualDiskVolumeSource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "fsType": - out.FSType = string(in.String()) - case "storagePolicyID": - out.StoragePolicyID = string(in.String()) - case "storagePolicyName": - out.StoragePolicyName = string(in.String()) - case "volumePath": - if in.IsNull() { - in.Skip() - out.VolumePath = nil - } else { - if out.VolumePath == nil { - out.VolumePath = new(string) - } - *out.VolumePath = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson83fc1858EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in VsphereVirtualDiskVolumeSource) { - out.RawByte('{') - first := true - _ = first - if in.FSType != "" { - const prefix string = ",\"fsType\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.FSType)) - } - if in.StoragePolicyID != "" { - const prefix string = ",\"storagePolicyID\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StoragePolicyID)) - } - if in.StoragePolicyName != "" { - const prefix string = ",\"storagePolicyName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.StoragePolicyName)) - } - { - const prefix string = ",\"volumePath\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.VolumePath == nil { - out.RawString("null") - } else { - out.String(string(*in.VolumePath)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v VsphereVirtualDiskVolumeSource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson83fc1858EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v VsphereVirtualDiskVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson83fc1858EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *VsphereVirtualDiskVolumeSource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson83fc1858DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *VsphereVirtualDiskVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson83fc1858DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/weighted_pod_affinity_term_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/weighted_pod_affinity_term_easyjson.go deleted file mode 100644 index 7019b61..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/weighted_pod_affinity_term_easyjson.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson44744437DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *WeightedPodAffinityTerm) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "podAffinityTerm": - if in.IsNull() { - in.Skip() - out.PodAffinityTerm = nil - } else { - if out.PodAffinityTerm == nil { - out.PodAffinityTerm = new(PodAffinityTerm) - } - (*out.PodAffinityTerm).UnmarshalEasyJSON(in) - } - case "weight": - if in.IsNull() { - in.Skip() - out.Weight = nil - } else { - if out.Weight == nil { - out.Weight = new(int32) - } - *out.Weight = int32(in.Int32()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson44744437EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in WeightedPodAffinityTerm) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"podAffinityTerm\":" - out.RawString(prefix[1:]) - if in.PodAffinityTerm == nil { - out.RawString("null") - } else { - (*in.PodAffinityTerm).MarshalEasyJSON(out) - } - } - { - const prefix string = ",\"weight\":" - out.RawString(prefix) - if in.Weight == nil { - out.RawString("null") - } else { - out.Int32(int32(*in.Weight)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v WeightedPodAffinityTerm) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson44744437EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v WeightedPodAffinityTerm) MarshalEasyJSON(w *jwriter.Writer) { - easyjson44744437EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *WeightedPodAffinityTerm) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson44744437DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *WeightedPodAffinityTerm) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson44744437DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/windows_security_context_options_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/windows_security_context_options_easyjson.go deleted file mode 100644 index 05df10c..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/windows_security_context_options_easyjson.go +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE45bbe0bDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *WindowsSecurityContextOptions) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "gmsaCredentialSpec": - out.GmsaCredentialSpec = string(in.String()) - case "gmsaCredentialSpecName": - out.GmsaCredentialSpecName = string(in.String()) - case "hostProcess": - out.HostProcess = bool(in.Bool()) - case "runAsUserName": - out.RunAsUserName = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE45bbe0bEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in WindowsSecurityContextOptions) { - out.RawByte('{') - first := true - _ = first - if in.GmsaCredentialSpec != "" { - const prefix string = ",\"gmsaCredentialSpec\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.GmsaCredentialSpec)) - } - if in.GmsaCredentialSpecName != "" { - const prefix string = ",\"gmsaCredentialSpecName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.GmsaCredentialSpecName)) - } - if in.HostProcess { - const prefix string = ",\"hostProcess\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.HostProcess)) - } - if in.RunAsUserName != "" { - const prefix string = ",\"runAsUserName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.RunAsUserName)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v WindowsSecurityContextOptions) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE45bbe0bEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v WindowsSecurityContextOptions) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE45bbe0bEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *WindowsSecurityContextOptions) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE45bbe0bDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *WindowsSecurityContextOptions) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE45bbe0bDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource/quantity.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource/quantity.go index 306440b..fb7f592 100644 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource/quantity.go +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource/quantity.go @@ -9,27 +9,33 @@ package resource // // The serialization format is: // -// ::= -// (Note that may be empty, from the "" case in .) +// ``` ::= +// +// (Note that may be empty, from the "" case in .) +// // ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= "+" | "-" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei -// (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) +// +// (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) +// // ::= m | "" | k | M | G | T | P | E -// (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) -// ::= "e" | "E" +// +// (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) +// +// ::= "e" | "E" ``` // // No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. // // When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. // // Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: -// a. No precision is lost -// b. No fractional digits will be emitted -// c. The exponent (or suffix) is as large as possible. +// +// - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. +// // The sign will be omitted unless the number is negative. // // Examples: -// 1.5 will be serialized as "1500m" -// 1.5Gi will be serialized as "1536Mi" +// +// - 1.5 will be serialized as "1500m" - 1.5Gi will be serialized as "1536Mi" // // Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. // diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource/quantity_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource/quantity_easyjson.go deleted file mode 100644 index d3c702b..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource/quantity_easyjson.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package resource - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource/swagger.json b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource/swagger.json index 4c47a52..35a02cf 100644 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource/swagger.json +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource/swagger.json @@ -1 +1 @@ -{"swagger":"2.0","info":{"title":"kubernetes","version":"unversioned"},"paths":{},"definitions":{"Quantity":{"description":"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\n (Note that \u003csuffix\u003e may be empty, from the \"\" case in \u003cdecimalSI\u003e.)\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \"+\" | \"-\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\u003cdecimalSI\u003e ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\u003cdecimalExponent\u003e ::= \"e\" \u003csignedNumber\u003e | \"E\" \u003csignedNumber\u003e\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.","type":"string"}}} \ No newline at end of file +{"swagger":"2.0","info":{"title":"kubernetes","version":"unversioned"},"paths":{},"definitions":{"Quantity":{"description":"Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors.\n\nThe serialization format is:\n\n``` \u003cquantity\u003e ::= \u003csignedNumber\u003e\u003csuffix\u003e\n\n\t(Note that \u003csuffix\u003e may be empty, from the \"\" case in \u003cdecimalSI\u003e.)\n\n\u003cdigit\u003e ::= 0 | 1 | ... | 9 \u003cdigits\u003e ::= \u003cdigit\u003e | \u003cdigit\u003e\u003cdigits\u003e \u003cnumber\u003e ::= \u003cdigits\u003e | \u003cdigits\u003e.\u003cdigits\u003e | \u003cdigits\u003e. | .\u003cdigits\u003e \u003csign\u003e ::= \"+\" | \"-\" \u003csignedNumber\u003e ::= \u003cnumber\u003e | \u003csign\u003e\u003cnumber\u003e \u003csuffix\u003e ::= \u003cbinarySI\u003e | \u003cdecimalExponent\u003e | \u003cdecimalSI\u003e \u003cbinarySI\u003e ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t(International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\n\u003cdecimalSI\u003e ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\u003cdecimalExponent\u003e ::= \"e\" \u003csignedNumber\u003e | \"E\" \u003csignedNumber\u003e ```\n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n\n- No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible.\n\nThe sign will be omitted unless the number is negative.\n\nExamples:\n\n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.","type":"string"}}} \ No newline at end of file diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_group_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_group_easyjson.go deleted file mode 100644 index 80ce0c3..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_group_easyjson.go +++ /dev/null @@ -1,383 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonD7481922DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *APIGroup) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "preferredVersion": - if in.IsNull() { - in.Skip() - out.PreferredVersion = nil - } else { - if out.PreferredVersion == nil { - out.PreferredVersion = new(GroupVersionForDiscovery) - } - easyjsonD7481922DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(in, out.PreferredVersion) - } - case "serverAddressByClientCIDRs": - if in.IsNull() { - in.Skip() - out.ServerAddressByClientCIDRs = nil - } else { - in.Delim('[') - if out.ServerAddressByClientCIDRs == nil { - if !in.IsDelim(']') { - out.ServerAddressByClientCIDRs = make([]*ServerAddressByClientCIDR, 0, 8) - } else { - out.ServerAddressByClientCIDRs = []*ServerAddressByClientCIDR{} - } - } else { - out.ServerAddressByClientCIDRs = (out.ServerAddressByClientCIDRs)[:0] - } - for !in.IsDelim(']') { - var v1 *ServerAddressByClientCIDR - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ServerAddressByClientCIDR) - } - easyjsonD7481922DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV12(in, v1) - } - out.ServerAddressByClientCIDRs = append(out.ServerAddressByClientCIDRs, v1) - in.WantComma() - } - in.Delim(']') - } - case "versions": - if in.IsNull() { - in.Skip() - out.Versions = nil - } else { - in.Delim('[') - if out.Versions == nil { - if !in.IsDelim(']') { - out.Versions = make([]*GroupVersionForDiscovery, 0, 8) - } else { - out.Versions = []*GroupVersionForDiscovery{} - } - } else { - out.Versions = (out.Versions)[:0] - } - for !in.IsDelim(']') { - var v2 *GroupVersionForDiscovery - if in.IsNull() { - in.Skip() - v2 = nil - } else { - if v2 == nil { - v2 = new(GroupVersionForDiscovery) - } - easyjsonD7481922DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(in, v2) - } - out.Versions = append(out.Versions, v2) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonD7481922EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in APIGroup) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - if in.PreferredVersion != nil { - const prefix string = ",\"preferredVersion\":" - out.RawString(prefix) - easyjsonD7481922EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(out, *in.PreferredVersion) - } - if len(in.ServerAddressByClientCIDRs) != 0 { - const prefix string = ",\"serverAddressByClientCIDRs\":" - out.RawString(prefix) - { - out.RawByte('[') - for v3, v4 := range in.ServerAddressByClientCIDRs { - if v3 > 0 { - out.RawByte(',') - } - if v4 == nil { - out.RawString("null") - } else { - easyjsonD7481922EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV12(out, *v4) - } - } - out.RawByte(']') - } - } - { - const prefix string = ",\"versions\":" - out.RawString(prefix) - if in.Versions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v5, v6 := range in.Versions { - if v5 > 0 { - out.RawByte(',') - } - if v6 == nil { - out.RawString("null") - } else { - easyjsonD7481922EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(out, *v6) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v APIGroup) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonD7481922EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v APIGroup) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonD7481922EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *APIGroup) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonD7481922DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *APIGroup) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonD7481922DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} -func easyjsonD7481922DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV12(in *jlexer.Lexer, out *ServerAddressByClientCIDR) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "clientCIDR": - if in.IsNull() { - in.Skip() - out.ClientCIDR = nil - } else { - if out.ClientCIDR == nil { - out.ClientCIDR = new(string) - } - *out.ClientCIDR = string(in.String()) - } - case "serverAddress": - if in.IsNull() { - in.Skip() - out.ServerAddress = nil - } else { - if out.ServerAddress == nil { - out.ServerAddress = new(string) - } - *out.ServerAddress = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonD7481922EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV12(out *jwriter.Writer, in ServerAddressByClientCIDR) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"clientCIDR\":" - out.RawString(prefix[1:]) - if in.ClientCIDR == nil { - out.RawString("null") - } else { - out.String(string(*in.ClientCIDR)) - } - } - { - const prefix string = ",\"serverAddress\":" - out.RawString(prefix) - if in.ServerAddress == nil { - out.RawString("null") - } else { - out.String(string(*in.ServerAddress)) - } - } - out.RawByte('}') -} -func easyjsonD7481922DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(in *jlexer.Lexer, out *GroupVersionForDiscovery) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "groupVersion": - if in.IsNull() { - in.Skip() - out.GroupVersion = nil - } else { - if out.GroupVersion == nil { - out.GroupVersion = new(string) - } - *out.GroupVersion = string(in.String()) - } - case "version": - if in.IsNull() { - in.Skip() - out.Version = nil - } else { - if out.Version == nil { - out.Version = new(string) - } - *out.Version = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonD7481922EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(out *jwriter.Writer, in GroupVersionForDiscovery) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"groupVersion\":" - out.RawString(prefix[1:]) - if in.GroupVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.GroupVersion)) - } - } - { - const prefix string = ",\"version\":" - out.RawString(prefix) - if in.Version == nil { - out.RawString("null") - } else { - out.String(string(*in.Version)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_group_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_group_list_easyjson.go deleted file mode 100644 index ebac1ac..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_group_list_easyjson.go +++ /dev/null @@ -1,149 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson45b8d4e7DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *APIGroupList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "groups": - if in.IsNull() { - in.Skip() - out.Groups = nil - } else { - in.Delim('[') - if out.Groups == nil { - if !in.IsDelim(']') { - out.Groups = make([]*APIGroup, 0, 8) - } else { - out.Groups = []*APIGroup{} - } - } else { - out.Groups = (out.Groups)[:0] - } - for !in.IsDelim(']') { - var v1 *APIGroup - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(APIGroup) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Groups = append(out.Groups, v1) - in.WantComma() - } - in.Delim(']') - } - case "kind": - out.Kind = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson45b8d4e7EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in APIGroupList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"groups\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Groups == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Groups { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v APIGroupList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson45b8d4e7EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v APIGroupList) MarshalEasyJSON(w *jwriter.Writer) { - easyjson45b8d4e7EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *APIGroupList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson45b8d4e7DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *APIGroupList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson45b8d4e7DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_resource_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_resource_easyjson.go deleted file mode 100644 index 57ff651..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_resource_easyjson.go +++ /dev/null @@ -1,299 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonEdf567a7DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *APIResource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "categories": - if in.IsNull() { - in.Skip() - out.Categories = nil - } else { - in.Delim('[') - if out.Categories == nil { - if !in.IsDelim(']') { - out.Categories = make([]string, 0, 4) - } else { - out.Categories = []string{} - } - } else { - out.Categories = (out.Categories)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Categories = append(out.Categories, v1) - in.WantComma() - } - in.Delim(']') - } - case "group": - out.Group = string(in.String()) - case "kind": - if in.IsNull() { - in.Skip() - out.Kind = nil - } else { - if out.Kind == nil { - out.Kind = new(string) - } - *out.Kind = string(in.String()) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "namespaced": - if in.IsNull() { - in.Skip() - out.Namespaced = nil - } else { - if out.Namespaced == nil { - out.Namespaced = new(bool) - } - *out.Namespaced = bool(in.Bool()) - } - case "shortNames": - if in.IsNull() { - in.Skip() - out.ShortNames = nil - } else { - in.Delim('[') - if out.ShortNames == nil { - if !in.IsDelim(']') { - out.ShortNames = make([]string, 0, 4) - } else { - out.ShortNames = []string{} - } - } else { - out.ShortNames = (out.ShortNames)[:0] - } - for !in.IsDelim(']') { - var v2 string - v2 = string(in.String()) - out.ShortNames = append(out.ShortNames, v2) - in.WantComma() - } - in.Delim(']') - } - case "singularName": - if in.IsNull() { - in.Skip() - out.SingularName = nil - } else { - if out.SingularName == nil { - out.SingularName = new(string) - } - *out.SingularName = string(in.String()) - } - case "storageVersionHash": - out.StorageVersionHash = string(in.String()) - case "verbs": - if in.IsNull() { - in.Skip() - out.Verbs = nil - } else { - in.Delim('[') - if out.Verbs == nil { - if !in.IsDelim(']') { - out.Verbs = make([]string, 0, 4) - } else { - out.Verbs = []string{} - } - } else { - out.Verbs = (out.Verbs)[:0] - } - for !in.IsDelim(']') { - var v3 string - v3 = string(in.String()) - out.Verbs = append(out.Verbs, v3) - in.WantComma() - } - in.Delim(']') - } - case "version": - out.Version = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonEdf567a7EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in APIResource) { - out.RawByte('{') - first := true - _ = first - if len(in.Categories) != 0 { - const prefix string = ",\"categories\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v4, v5 := range in.Categories { - if v4 > 0 { - out.RawByte(',') - } - out.String(string(v5)) - } - out.RawByte(']') - } - } - if in.Group != "" { - const prefix string = ",\"group\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Group)) - } - { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.Kind == nil { - out.RawString("null") - } else { - out.String(string(*in.Kind)) - } - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - { - const prefix string = ",\"namespaced\":" - out.RawString(prefix) - if in.Namespaced == nil { - out.RawString("null") - } else { - out.Bool(bool(*in.Namespaced)) - } - } - if len(in.ShortNames) != 0 { - const prefix string = ",\"shortNames\":" - out.RawString(prefix) - { - out.RawByte('[') - for v6, v7 := range in.ShortNames { - if v6 > 0 { - out.RawByte(',') - } - out.String(string(v7)) - } - out.RawByte(']') - } - } - { - const prefix string = ",\"singularName\":" - out.RawString(prefix) - if in.SingularName == nil { - out.RawString("null") - } else { - out.String(string(*in.SingularName)) - } - } - if in.StorageVersionHash != "" { - const prefix string = ",\"storageVersionHash\":" - out.RawString(prefix) - out.String(string(in.StorageVersionHash)) - } - { - const prefix string = ",\"verbs\":" - out.RawString(prefix) - if in.Verbs == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v8, v9 := range in.Verbs { - if v8 > 0 { - out.RawByte(',') - } - out.String(string(v9)) - } - out.RawByte(']') - } - } - if in.Version != "" { - const prefix string = ",\"version\":" - out.RawString(prefix) - out.String(string(in.Version)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v APIResource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonEdf567a7EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v APIResource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonEdf567a7EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *APIResource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonEdf567a7DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *APIResource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonEdf567a7DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_resource_list_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_resource_list_easyjson.go deleted file mode 100644 index fe6b9f0..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_resource_list_easyjson.go +++ /dev/null @@ -1,168 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonBd8685ecDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *APIResourceList) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "groupVersion": - if in.IsNull() { - in.Skip() - out.GroupVersion = nil - } else { - if out.GroupVersion == nil { - out.GroupVersion = new(string) - } - *out.GroupVersion = string(in.String()) - } - case "kind": - out.Kind = string(in.String()) - case "resources": - if in.IsNull() { - in.Skip() - out.Resources = nil - } else { - in.Delim('[') - if out.Resources == nil { - if !in.IsDelim(']') { - out.Resources = make([]*APIResource, 0, 8) - } else { - out.Resources = []*APIResource{} - } - } else { - out.Resources = (out.Resources)[:0] - } - for !in.IsDelim(']') { - var v1 *APIResource - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(APIResource) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Resources = append(out.Resources, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonBd8685ecEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in APIResourceList) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - { - const prefix string = ",\"groupVersion\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.GroupVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.GroupVersion)) - } - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - { - const prefix string = ",\"resources\":" - out.RawString(prefix) - if in.Resources == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Resources { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v APIResourceList) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonBd8685ecEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v APIResourceList) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonBd8685ecEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *APIResourceList) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonBd8685ecDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *APIResourceList) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonBd8685ecDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_versions_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_versions_easyjson.go deleted file mode 100644 index fd6b4e0..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_versions_easyjson.go +++ /dev/null @@ -1,266 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonB0f664acDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *APIVersions) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "serverAddressByClientCIDRs": - if in.IsNull() { - in.Skip() - out.ServerAddressByClientCIDRs = nil - } else { - in.Delim('[') - if out.ServerAddressByClientCIDRs == nil { - if !in.IsDelim(']') { - out.ServerAddressByClientCIDRs = make([]*ServerAddressByClientCIDR, 0, 8) - } else { - out.ServerAddressByClientCIDRs = []*ServerAddressByClientCIDR{} - } - } else { - out.ServerAddressByClientCIDRs = (out.ServerAddressByClientCIDRs)[:0] - } - for !in.IsDelim(']') { - var v1 *ServerAddressByClientCIDR - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(ServerAddressByClientCIDR) - } - easyjsonB0f664acDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(in, v1) - } - out.ServerAddressByClientCIDRs = append(out.ServerAddressByClientCIDRs, v1) - in.WantComma() - } - in.Delim(']') - } - case "versions": - if in.IsNull() { - in.Skip() - out.Versions = nil - } else { - in.Delim('[') - if out.Versions == nil { - if !in.IsDelim(']') { - out.Versions = make([]string, 0, 4) - } else { - out.Versions = []string{} - } - } else { - out.Versions = (out.Versions)[:0] - } - for !in.IsDelim(']') { - var v2 string - v2 = string(in.String()) - out.Versions = append(out.Versions, v2) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB0f664acEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in APIVersions) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - { - const prefix string = ",\"serverAddressByClientCIDRs\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - if in.ServerAddressByClientCIDRs == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v3, v4 := range in.ServerAddressByClientCIDRs { - if v3 > 0 { - out.RawByte(',') - } - if v4 == nil { - out.RawString("null") - } else { - easyjsonB0f664acEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(out, *v4) - } - } - out.RawByte(']') - } - } - { - const prefix string = ",\"versions\":" - out.RawString(prefix) - if in.Versions == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v5, v6 := range in.Versions { - if v5 > 0 { - out.RawByte(',') - } - out.String(string(v6)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v APIVersions) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonB0f664acEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v APIVersions) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonB0f664acEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *APIVersions) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonB0f664acDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *APIVersions) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonB0f664acDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} -func easyjsonB0f664acDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(in *jlexer.Lexer, out *ServerAddressByClientCIDR) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "clientCIDR": - if in.IsNull() { - in.Skip() - out.ClientCIDR = nil - } else { - if out.ClientCIDR == nil { - out.ClientCIDR = new(string) - } - *out.ClientCIDR = string(in.String()) - } - case "serverAddress": - if in.IsNull() { - in.Skip() - out.ServerAddress = nil - } else { - if out.ServerAddress == nil { - out.ServerAddress = new(string) - } - *out.ServerAddress = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB0f664acEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(out *jwriter.Writer, in ServerAddressByClientCIDR) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"clientCIDR\":" - out.RawString(prefix[1:]) - if in.ClientCIDR == nil { - out.RawString("null") - } else { - out.String(string(*in.ClientCIDR)) - } - } - { - const prefix string = ",\"serverAddress\":" - out.RawString(prefix) - if in.ServerAddress == nil { - out.RawString("null") - } else { - out.String(string(*in.ServerAddress)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/condition_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/condition_easyjson.go deleted file mode 100644 index a3e9445..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/condition_easyjson.go +++ /dev/null @@ -1,182 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson821597a9DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *Condition) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "lastTransitionTime": - if in.IsNull() { - in.Skip() - out.LastTransitionTime = nil - } else { - if out.LastTransitionTime == nil { - out.LastTransitionTime = new(Time) - } - if data := in.Raw(); in.Ok() { - in.AddError((*out.LastTransitionTime).UnmarshalJSON(data)) - } - } - case "message": - if in.IsNull() { - in.Skip() - out.Message = nil - } else { - if out.Message == nil { - out.Message = new(string) - } - *out.Message = string(in.String()) - } - case "observedGeneration": - out.ObservedGeneration = int64(in.Int64()) - case "reason": - if in.IsNull() { - in.Skip() - out.Reason = nil - } else { - if out.Reason == nil { - out.Reason = new(string) - } - *out.Reason = string(in.String()) - } - case "status": - if in.IsNull() { - in.Skip() - out.Status = nil - } else { - if out.Status == nil { - out.Status = new(string) - } - *out.Status = string(in.String()) - } - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson821597a9EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in Condition) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"lastTransitionTime\":" - out.RawString(prefix[1:]) - if in.LastTransitionTime == nil { - out.RawString("null") - } else { - out.Raw((*in.LastTransitionTime).MarshalJSON()) - } - } - { - const prefix string = ",\"message\":" - out.RawString(prefix) - if in.Message == nil { - out.RawString("null") - } else { - out.String(string(*in.Message)) - } - } - if in.ObservedGeneration != 0 { - const prefix string = ",\"observedGeneration\":" - out.RawString(prefix) - out.Int64(int64(in.ObservedGeneration)) - } - { - const prefix string = ",\"reason\":" - out.RawString(prefix) - if in.Reason == nil { - out.RawString("null") - } else { - out.String(string(*in.Reason)) - } - } - { - const prefix string = ",\"status\":" - out.RawString(prefix) - if in.Status == nil { - out.RawString("null") - } else { - out.String(string(*in.Status)) - } - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Condition) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson821597a9EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Condition) MarshalEasyJSON(w *jwriter.Writer) { - easyjson821597a9EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Condition) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson821597a9DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Condition) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson821597a9DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/delete_options_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/delete_options_easyjson.go deleted file mode 100644 index 61982eb..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/delete_options_easyjson.go +++ /dev/null @@ -1,251 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson1226db32DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *DeleteOptions) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "dryRun": - if in.IsNull() { - in.Skip() - out.DryRun = nil - } else { - in.Delim('[') - if out.DryRun == nil { - if !in.IsDelim(']') { - out.DryRun = make([]string, 0, 4) - } else { - out.DryRun = []string{} - } - } else { - out.DryRun = (out.DryRun)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.DryRun = append(out.DryRun, v1) - in.WantComma() - } - in.Delim(']') - } - case "gracePeriodSeconds": - out.GracePeriodSeconds = int64(in.Int64()) - case "kind": - out.Kind = string(in.String()) - case "orphanDependents": - out.OrphanDependents = bool(in.Bool()) - case "preconditions": - if in.IsNull() { - in.Skip() - out.Preconditions = nil - } else { - if out.Preconditions == nil { - out.Preconditions = new(Preconditions) - } - easyjson1226db32DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(in, out.Preconditions) - } - case "propagationPolicy": - out.PropagationPolicy = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1226db32EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in DeleteOptions) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if len(in.DryRun) != 0 { - const prefix string = ",\"dryRun\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v2, v3 := range in.DryRun { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - if in.GracePeriodSeconds != 0 { - const prefix string = ",\"gracePeriodSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.GracePeriodSeconds)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.OrphanDependents { - const prefix string = ",\"orphanDependents\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Bool(bool(in.OrphanDependents)) - } - if in.Preconditions != nil { - const prefix string = ",\"preconditions\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson1226db32EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(out, *in.Preconditions) - } - if in.PropagationPolicy != "" { - const prefix string = ",\"propagationPolicy\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.PropagationPolicy)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v DeleteOptions) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson1226db32EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v DeleteOptions) MarshalEasyJSON(w *jwriter.Writer) { - easyjson1226db32EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *DeleteOptions) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson1226db32DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *DeleteOptions) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson1226db32DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} -func easyjson1226db32DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(in *jlexer.Lexer, out *Preconditions) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "resourceVersion": - out.ResourceVersion = string(in.String()) - case "uid": - out.UID = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson1226db32EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(out *jwriter.Writer, in Preconditions) { - out.RawByte('{') - first := true - _ = first - if in.ResourceVersion != "" { - const prefix string = ",\"resourceVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.ResourceVersion)) - } - if in.UID != "" { - const prefix string = ",\"uid\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.UID)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/group_version_for_discovery_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/group_version_for_discovery_easyjson.go deleted file mode 100644 index 25b387f..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/group_version_for_discovery_easyjson.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonE71ed79DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *GroupVersionForDiscovery) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "groupVersion": - if in.IsNull() { - in.Skip() - out.GroupVersion = nil - } else { - if out.GroupVersion == nil { - out.GroupVersion = new(string) - } - *out.GroupVersion = string(in.String()) - } - case "version": - if in.IsNull() { - in.Skip() - out.Version = nil - } else { - if out.Version == nil { - out.Version = new(string) - } - *out.Version = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonE71ed79EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in GroupVersionForDiscovery) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"groupVersion\":" - out.RawString(prefix[1:]) - if in.GroupVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.GroupVersion)) - } - } - { - const prefix string = ",\"version\":" - out.RawString(prefix) - if in.Version == nil { - out.RawString("null") - } else { - out.String(string(*in.Version)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GroupVersionForDiscovery) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonE71ed79EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GroupVersionForDiscovery) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE71ed79EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GroupVersionForDiscovery) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonE71ed79DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GroupVersionForDiscovery) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE71ed79DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/label_selector_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/label_selector_easyjson.go deleted file mode 100644 index d160a9b..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/label_selector_easyjson.go +++ /dev/null @@ -1,282 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson8586501eDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *LabelSelector) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "matchExpressions": - if in.IsNull() { - in.Skip() - out.MatchExpressions = nil - } else { - in.Delim('[') - if out.MatchExpressions == nil { - if !in.IsDelim(']') { - out.MatchExpressions = make([]*LabelSelectorRequirement, 0, 8) - } else { - out.MatchExpressions = []*LabelSelectorRequirement{} - } - } else { - out.MatchExpressions = (out.MatchExpressions)[:0] - } - for !in.IsDelim(']') { - var v1 *LabelSelectorRequirement - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(LabelSelectorRequirement) - } - easyjson8586501eDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(in, v1) - } - out.MatchExpressions = append(out.MatchExpressions, v1) - in.WantComma() - } - in.Delim(']') - } - case "matchLabels": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.MatchLabels = make(map[string]string) - } else { - out.MatchLabels = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v2 string - v2 = string(in.String()) - (out.MatchLabels)[key] = v2 - in.WantComma() - } - in.Delim('}') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson8586501eEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in LabelSelector) { - out.RawByte('{') - first := true - _ = first - if len(in.MatchExpressions) != 0 { - const prefix string = ",\"matchExpressions\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v3, v4 := range in.MatchExpressions { - if v3 > 0 { - out.RawByte(',') - } - if v4 == nil { - out.RawString("null") - } else { - easyjson8586501eEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(out, *v4) - } - } - out.RawByte(']') - } - } - if len(in.MatchLabels) != 0 { - const prefix string = ",\"matchLabels\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v5First := true - for v5Name, v5Value := range in.MatchLabels { - if v5First { - v5First = false - } else { - out.RawByte(',') - } - out.String(string(v5Name)) - out.RawByte(':') - out.String(string(v5Value)) - } - out.RawByte('}') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v LabelSelector) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson8586501eEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v LabelSelector) MarshalEasyJSON(w *jwriter.Writer) { - easyjson8586501eEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *LabelSelector) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson8586501eDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *LabelSelector) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson8586501eDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} -func easyjson8586501eDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(in *jlexer.Lexer, out *LabelSelectorRequirement) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "operator": - if in.IsNull() { - in.Skip() - out.Operator = nil - } else { - if out.Operator == nil { - out.Operator = new(string) - } - *out.Operator = string(in.String()) - } - case "values": - if in.IsNull() { - in.Skip() - out.Values = nil - } else { - in.Delim('[') - if out.Values == nil { - if !in.IsDelim(']') { - out.Values = make([]string, 0, 4) - } else { - out.Values = []string{} - } - } else { - out.Values = (out.Values)[:0] - } - for !in.IsDelim(']') { - var v6 string - v6 = string(in.String()) - out.Values = append(out.Values, v6) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson8586501eEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(out *jwriter.Writer, in LabelSelectorRequirement) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"key\":" - out.RawString(prefix[1:]) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - { - const prefix string = ",\"operator\":" - out.RawString(prefix) - if in.Operator == nil { - out.RawString("null") - } else { - out.String(string(*in.Operator)) - } - } - if len(in.Values) != 0 { - const prefix string = ",\"values\":" - out.RawString(prefix) - { - out.RawByte('[') - for v7, v8 := range in.Values { - if v7 > 0 { - out.RawByte(',') - } - out.String(string(v8)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/label_selector_requirement_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/label_selector_requirement_easyjson.go deleted file mode 100644 index da0a710..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/label_selector_requirement_easyjson.go +++ /dev/null @@ -1,153 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson227226eaDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *LabelSelectorRequirement) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "key": - if in.IsNull() { - in.Skip() - out.Key = nil - } else { - if out.Key == nil { - out.Key = new(string) - } - *out.Key = string(in.String()) - } - case "operator": - if in.IsNull() { - in.Skip() - out.Operator = nil - } else { - if out.Operator == nil { - out.Operator = new(string) - } - *out.Operator = string(in.String()) - } - case "values": - if in.IsNull() { - in.Skip() - out.Values = nil - } else { - in.Delim('[') - if out.Values == nil { - if !in.IsDelim(']') { - out.Values = make([]string, 0, 4) - } else { - out.Values = []string{} - } - } else { - out.Values = (out.Values)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Values = append(out.Values, v1) - in.WantComma() - } - in.Delim(']') - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson227226eaEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in LabelSelectorRequirement) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"key\":" - out.RawString(prefix[1:]) - if in.Key == nil { - out.RawString("null") - } else { - out.String(string(*in.Key)) - } - } - { - const prefix string = ",\"operator\":" - out.RawString(prefix) - if in.Operator == nil { - out.RawString("null") - } else { - out.String(string(*in.Operator)) - } - } - if len(in.Values) != 0 { - const prefix string = ",\"values\":" - out.RawString(prefix) - { - out.RawByte('[') - for v2, v3 := range in.Values { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v LabelSelectorRequirement) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson227226eaEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v LabelSelectorRequirement) MarshalEasyJSON(w *jwriter.Writer) { - easyjson227226eaEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *LabelSelectorRequirement) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson227226eaDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *LabelSelectorRequirement) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson227226eaDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/list_meta_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/list_meta_easyjson.go deleted file mode 100644 index 46bc66c..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/list_meta_easyjson.go +++ /dev/null @@ -1,122 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson6222de7eDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *ListMeta) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "continue": - out.Continue = string(in.String()) - case "remainingItemCount": - out.RemainingItemCount = int64(in.Int64()) - case "resourceVersion": - out.ResourceVersion = string(in.String()) - case "selfLink": - out.SelfLink = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6222de7eEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in ListMeta) { - out.RawByte('{') - first := true - _ = first - if in.Continue != "" { - const prefix string = ",\"continue\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Continue)) - } - if in.RemainingItemCount != 0 { - const prefix string = ",\"remainingItemCount\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.RemainingItemCount)) - } - if in.ResourceVersion != "" { - const prefix string = ",\"resourceVersion\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ResourceVersion)) - } - if in.SelfLink != "" { - const prefix string = ",\"selfLink\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.SelfLink)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ListMeta) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson6222de7eEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ListMeta) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6222de7eEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ListMeta) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson6222de7eDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ListMeta) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6222de7eDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/managed_fields_entry.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/managed_fields_entry.go index c9ef534..d2e314b 100644 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/managed_fields_entry.go +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/managed_fields_entry.go @@ -6,7 +6,7 @@ package v1 // Editing this file might prove futile when you re-run the swagger generate command import ( - "github.com/mailru/easyjson" + jsonext "encoding/json" ) // ManagedFieldsEntry ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. @@ -21,7 +21,7 @@ type ManagedFieldsEntry struct { FieldsType string `json:"fieldsType,omitempty"` // FieldsV1 holds the first JSON version format as described in the "FieldsV1" type. - FieldsV1 easyjson.RawMessage `json:"fieldsV1,omitempty"` + FieldsV1 jsonext.RawMessage `json:"fieldsV1,omitempty"` // Manager is an identifier of the workflow managing these fields. Manager string `json:"manager,omitempty"` diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/managed_fields_entry_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/managed_fields_entry_easyjson.go deleted file mode 100644 index 29d0ca5..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/managed_fields_entry_easyjson.go +++ /dev/null @@ -1,160 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonC7cd7324DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *ManagedFieldsEntry) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "fieldsType": - out.FieldsType = string(in.String()) - case "fieldsV1": - (out.FieldsV1).UnmarshalEasyJSON(in) - case "manager": - out.Manager = string(in.String()) - case "operation": - out.Operation = string(in.String()) - case "subresource": - out.Subresource = string(in.String()) - case "time": - if data := in.Raw(); in.Ok() { - in.AddError((out.Time).UnmarshalJSON(data)) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonC7cd7324EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in ManagedFieldsEntry) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.FieldsType != "" { - const prefix string = ",\"fieldsType\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.FieldsType)) - } - if (in.FieldsV1).IsDefined() { - const prefix string = ",\"fieldsV1\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (in.FieldsV1).MarshalEasyJSON(out) - } - if in.Manager != "" { - const prefix string = ",\"manager\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Manager)) - } - if in.Operation != "" { - const prefix string = ",\"operation\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Operation)) - } - if in.Subresource != "" { - const prefix string = ",\"subresource\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Subresource)) - } - if true { - const prefix string = ",\"time\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((in.Time).MarshalJSON()) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ManagedFieldsEntry) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonC7cd7324EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ManagedFieldsEntry) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC7cd7324EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ManagedFieldsEntry) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonC7cd7324DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ManagedFieldsEntry) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC7cd7324DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/micro_time_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/micro_time_easyjson.go deleted file mode 100644 index bafde36..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/micro_time_easyjson.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/object_meta.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/object_meta.go index ed3280a..cc888a6 100644 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/object_meta.go +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/object_meta.go @@ -10,14 +10,9 @@ package v1 // swagger:model ObjectMeta type ObjectMeta struct { - // Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations + // Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations Annotations map[string]string `json:"annotations,omitempty"` - // Deprecated: ClusterName is a legacy field that was always cleared by the system and never used; it will be removed completely in 1.25. - // - // The name in the go struct is changed to help clients detect accidental use. - ClusterName string `json:"clusterName,omitempty"` - // CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. // // Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata @@ -46,18 +41,18 @@ type ObjectMeta struct { // A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. Generation int64 `json:"generation,omitempty"` - // Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels + // Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels Labels map[string]string `json:"labels,omitempty"` // ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like "ci-cd". The set of fields is always in the version that the workflow used when modifying the object. ManagedFields []*ManagedFieldsEntry `json:"managedFields,omitempty"` - // Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names + // Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names Name string `json:"name,omitempty"` // Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. // - // Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces + // Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces Namespace string `json:"namespace,omitempty"` // List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. @@ -73,6 +68,6 @@ type ObjectMeta struct { // UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. // - // Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + // Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids UID string `json:"uid,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/object_meta_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/object_meta_easyjson.go deleted file mode 100644 index bd9b163..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/object_meta_easyjson.go +++ /dev/null @@ -1,573 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson7cd974a5DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *ObjectMeta) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "annotations": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Annotations = make(map[string]string) - } else { - out.Annotations = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v1 string - v1 = string(in.String()) - (out.Annotations)[key] = v1 - in.WantComma() - } - in.Delim('}') - } - case "clusterName": - out.ClusterName = string(in.String()) - case "creationTimestamp": - if data := in.Raw(); in.Ok() { - in.AddError((out.CreationTimestamp).UnmarshalJSON(data)) - } - case "deletionGracePeriodSeconds": - out.DeletionGracePeriodSeconds = int64(in.Int64()) - case "deletionTimestamp": - if data := in.Raw(); in.Ok() { - in.AddError((out.DeletionTimestamp).UnmarshalJSON(data)) - } - case "finalizers": - if in.IsNull() { - in.Skip() - out.Finalizers = nil - } else { - in.Delim('[') - if out.Finalizers == nil { - if !in.IsDelim(']') { - out.Finalizers = make([]string, 0, 4) - } else { - out.Finalizers = []string{} - } - } else { - out.Finalizers = (out.Finalizers)[:0] - } - for !in.IsDelim(']') { - var v2 string - v2 = string(in.String()) - out.Finalizers = append(out.Finalizers, v2) - in.WantComma() - } - in.Delim(']') - } - case "generateName": - out.GenerateName = string(in.String()) - case "generation": - out.Generation = int64(in.Int64()) - case "labels": - if in.IsNull() { - in.Skip() - } else { - in.Delim('{') - if !in.IsDelim('}') { - out.Labels = make(map[string]string) - } else { - out.Labels = nil - } - for !in.IsDelim('}') { - key := string(in.String()) - in.WantColon() - var v3 string - v3 = string(in.String()) - (out.Labels)[key] = v3 - in.WantComma() - } - in.Delim('}') - } - case "managedFields": - if in.IsNull() { - in.Skip() - out.ManagedFields = nil - } else { - in.Delim('[') - if out.ManagedFields == nil { - if !in.IsDelim(']') { - out.ManagedFields = make([]*ManagedFieldsEntry, 0, 8) - } else { - out.ManagedFields = []*ManagedFieldsEntry{} - } - } else { - out.ManagedFields = (out.ManagedFields)[:0] - } - for !in.IsDelim(']') { - var v4 *ManagedFieldsEntry - if in.IsNull() { - in.Skip() - v4 = nil - } else { - if v4 == nil { - v4 = new(ManagedFieldsEntry) - } - (*v4).UnmarshalEasyJSON(in) - } - out.ManagedFields = append(out.ManagedFields, v4) - in.WantComma() - } - in.Delim(']') - } - case "name": - out.Name = string(in.String()) - case "namespace": - out.Namespace = string(in.String()) - case "ownerReferences": - if in.IsNull() { - in.Skip() - out.OwnerReferences = nil - } else { - in.Delim('[') - if out.OwnerReferences == nil { - if !in.IsDelim(']') { - out.OwnerReferences = make([]*OwnerReference, 0, 8) - } else { - out.OwnerReferences = []*OwnerReference{} - } - } else { - out.OwnerReferences = (out.OwnerReferences)[:0] - } - for !in.IsDelim(']') { - var v5 *OwnerReference - if in.IsNull() { - in.Skip() - v5 = nil - } else { - if v5 == nil { - v5 = new(OwnerReference) - } - easyjson7cd974a5DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(in, v5) - } - out.OwnerReferences = append(out.OwnerReferences, v5) - in.WantComma() - } - in.Delim(']') - } - case "resourceVersion": - out.ResourceVersion = string(in.String()) - case "selfLink": - out.SelfLink = string(in.String()) - case "uid": - out.UID = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7cd974a5EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in ObjectMeta) { - out.RawByte('{') - first := true - _ = first - if len(in.Annotations) != 0 { - const prefix string = ",\"annotations\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('{') - v6First := true - for v6Name, v6Value := range in.Annotations { - if v6First { - v6First = false - } else { - out.RawByte(',') - } - out.String(string(v6Name)) - out.RawByte(':') - out.String(string(v6Value)) - } - out.RawByte('}') - } - } - if in.ClusterName != "" { - const prefix string = ",\"clusterName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ClusterName)) - } - if true { - const prefix string = ",\"creationTimestamp\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((in.CreationTimestamp).MarshalJSON()) - } - if in.DeletionGracePeriodSeconds != 0 { - const prefix string = ",\"deletionGracePeriodSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.DeletionGracePeriodSeconds)) - } - if true { - const prefix string = ",\"deletionTimestamp\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Raw((in.DeletionTimestamp).MarshalJSON()) - } - if len(in.Finalizers) != 0 { - const prefix string = ",\"finalizers\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v7, v8 := range in.Finalizers { - if v7 > 0 { - out.RawByte(',') - } - out.String(string(v8)) - } - out.RawByte(']') - } - } - if in.GenerateName != "" { - const prefix string = ",\"generateName\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.GenerateName)) - } - if in.Generation != 0 { - const prefix string = ",\"generation\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int64(int64(in.Generation)) - } - if len(in.Labels) != 0 { - const prefix string = ",\"labels\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('{') - v9First := true - for v9Name, v9Value := range in.Labels { - if v9First { - v9First = false - } else { - out.RawByte(',') - } - out.String(string(v9Name)) - out.RawByte(':') - out.String(string(v9Value)) - } - out.RawByte('}') - } - } - if len(in.ManagedFields) != 0 { - const prefix string = ",\"managedFields\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v10, v11 := range in.ManagedFields { - if v10 > 0 { - out.RawByte(',') - } - if v11 == nil { - out.RawString("null") - } else { - (*v11).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Name != "" { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Name)) - } - if in.Namespace != "" { - const prefix string = ",\"namespace\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Namespace)) - } - if len(in.OwnerReferences) != 0 { - const prefix string = ",\"ownerReferences\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - { - out.RawByte('[') - for v12, v13 := range in.OwnerReferences { - if v12 > 0 { - out.RawByte(',') - } - if v13 == nil { - out.RawString("null") - } else { - easyjson7cd974a5EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(out, *v13) - } - } - out.RawByte(']') - } - } - if in.ResourceVersion != "" { - const prefix string = ",\"resourceVersion\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.ResourceVersion)) - } - if in.SelfLink != "" { - const prefix string = ",\"selfLink\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.SelfLink)) - } - if in.UID != "" { - const prefix string = ",\"uid\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.UID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ObjectMeta) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson7cd974a5EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ObjectMeta) MarshalEasyJSON(w *jwriter.Writer) { - easyjson7cd974a5EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ObjectMeta) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson7cd974a5DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ObjectMeta) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson7cd974a5DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} -func easyjson7cd974a5DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(in *jlexer.Lexer, out *OwnerReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - if in.IsNull() { - in.Skip() - out.APIVersion = nil - } else { - if out.APIVersion == nil { - out.APIVersion = new(string) - } - *out.APIVersion = string(in.String()) - } - case "blockOwnerDeletion": - out.BlockOwnerDeletion = bool(in.Bool()) - case "controller": - out.Controller = bool(in.Bool()) - case "kind": - if in.IsNull() { - in.Skip() - out.Kind = nil - } else { - if out.Kind == nil { - out.Kind = new(string) - } - *out.Kind = string(in.String()) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "uid": - if in.IsNull() { - in.Skip() - out.UID = nil - } else { - if out.UID == nil { - out.UID = new(string) - } - *out.UID = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7cd974a5EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(out *jwriter.Writer, in OwnerReference) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"apiVersion\":" - out.RawString(prefix[1:]) - if in.APIVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.APIVersion)) - } - } - if in.BlockOwnerDeletion { - const prefix string = ",\"blockOwnerDeletion\":" - out.RawString(prefix) - out.Bool(bool(in.BlockOwnerDeletion)) - } - if in.Controller { - const prefix string = ",\"controller\":" - out.RawString(prefix) - out.Bool(bool(in.Controller)) - } - { - const prefix string = ",\"kind\":" - out.RawString(prefix) - if in.Kind == nil { - out.RawString("null") - } else { - out.String(string(*in.Kind)) - } - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - { - const prefix string = ",\"uid\":" - out.RawString(prefix) - if in.UID == nil { - out.RawString("null") - } else { - out.String(string(*in.UID)) - } - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/owner_reference.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/owner_reference.go index 25cd609..f7963a0 100644 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/owner_reference.go +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/owner_reference.go @@ -24,11 +24,11 @@ type OwnerReference struct { // Required: true Kind *string `json:"kind"` - // Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + // Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names // Required: true Name *string `json:"name"` - // UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + // UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids // Required: true UID *string `json:"uid"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/owner_reference_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/owner_reference_easyjson.go deleted file mode 100644 index 08c38b9..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/owner_reference_easyjson.go +++ /dev/null @@ -1,168 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson2644fe6dDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *OwnerReference) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - if in.IsNull() { - in.Skip() - out.APIVersion = nil - } else { - if out.APIVersion == nil { - out.APIVersion = new(string) - } - *out.APIVersion = string(in.String()) - } - case "blockOwnerDeletion": - out.BlockOwnerDeletion = bool(in.Bool()) - case "controller": - out.Controller = bool(in.Bool()) - case "kind": - if in.IsNull() { - in.Skip() - out.Kind = nil - } else { - if out.Kind == nil { - out.Kind = new(string) - } - *out.Kind = string(in.String()) - } - case "name": - if in.IsNull() { - in.Skip() - out.Name = nil - } else { - if out.Name == nil { - out.Name = new(string) - } - *out.Name = string(in.String()) - } - case "uid": - if in.IsNull() { - in.Skip() - out.UID = nil - } else { - if out.UID == nil { - out.UID = new(string) - } - *out.UID = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson2644fe6dEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in OwnerReference) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"apiVersion\":" - out.RawString(prefix[1:]) - if in.APIVersion == nil { - out.RawString("null") - } else { - out.String(string(*in.APIVersion)) - } - } - if in.BlockOwnerDeletion { - const prefix string = ",\"blockOwnerDeletion\":" - out.RawString(prefix) - out.Bool(bool(in.BlockOwnerDeletion)) - } - if in.Controller { - const prefix string = ",\"controller\":" - out.RawString(prefix) - out.Bool(bool(in.Controller)) - } - { - const prefix string = ",\"kind\":" - out.RawString(prefix) - if in.Kind == nil { - out.RawString("null") - } else { - out.String(string(*in.Kind)) - } - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - if in.Name == nil { - out.RawString("null") - } else { - out.String(string(*in.Name)) - } - } - { - const prefix string = ",\"uid\":" - out.RawString(prefix) - if in.UID == nil { - out.RawString("null") - } else { - out.String(string(*in.UID)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v OwnerReference) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson2644fe6dEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v OwnerReference) MarshalEasyJSON(w *jwriter.Writer) { - easyjson2644fe6dEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *OwnerReference) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson2644fe6dDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *OwnerReference) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson2644fe6dDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/preconditions_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/preconditions_easyjson.go deleted file mode 100644 index 895f23d..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/preconditions_easyjson.go +++ /dev/null @@ -1,98 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonA74debfbDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *Preconditions) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "resourceVersion": - out.ResourceVersion = string(in.String()) - case "uid": - out.UID = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonA74debfbEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in Preconditions) { - out.RawByte('{') - first := true - _ = first - if in.ResourceVersion != "" { - const prefix string = ",\"resourceVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.ResourceVersion)) - } - if in.UID != "" { - const prefix string = ",\"uid\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.UID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Preconditions) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonA74debfbEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Preconditions) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonA74debfbEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Preconditions) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonA74debfbDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Preconditions) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonA74debfbDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/server_address_by_client_cidr_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/server_address_by_client_cidr_easyjson.go deleted file mode 100644 index 9759a88..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/server_address_by_client_cidr_easyjson.go +++ /dev/null @@ -1,116 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonB61c2e89DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *ServerAddressByClientCIDR) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "clientCIDR": - if in.IsNull() { - in.Skip() - out.ClientCIDR = nil - } else { - if out.ClientCIDR == nil { - out.ClientCIDR = new(string) - } - *out.ClientCIDR = string(in.String()) - } - case "serverAddress": - if in.IsNull() { - in.Skip() - out.ServerAddress = nil - } else { - if out.ServerAddress == nil { - out.ServerAddress = new(string) - } - *out.ServerAddress = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonB61c2e89EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in ServerAddressByClientCIDR) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"clientCIDR\":" - out.RawString(prefix[1:]) - if in.ClientCIDR == nil { - out.RawString("null") - } else { - out.String(string(*in.ClientCIDR)) - } - } - { - const prefix string = ",\"serverAddress\":" - out.RawString(prefix) - if in.ServerAddress == nil { - out.RawString("null") - } else { - out.String(string(*in.ServerAddress)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ServerAddressByClientCIDR) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonB61c2e89EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ServerAddressByClientCIDR) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonB61c2e89EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ServerAddressByClientCIDR) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonB61c2e89DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ServerAddressByClientCIDR) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonB61c2e89DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_cause_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_cause_easyjson.go deleted file mode 100644 index 4867911..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_cause_easyjson.go +++ /dev/null @@ -1,110 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonF93df552DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *StatusCause) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "field": - out.Field = string(in.String()) - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonF93df552EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in StatusCause) { - out.RawByte('{') - first := true - _ = first - if in.Field != "" { - const prefix string = ",\"field\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Field)) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StatusCause) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonF93df552EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StatusCause) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonF93df552EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StatusCause) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonF93df552DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StatusCause) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonF93df552DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_details.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_details.go index 0c55377..3abf1e8 100644 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_details.go +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_details.go @@ -25,6 +25,6 @@ type StatusDetails struct { // If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. RetryAfterSeconds int32 `json:"retryAfterSeconds,omitempty"` - // UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids + // UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids UID string `json:"uid,omitempty"` } diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_details_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_details_easyjson.go deleted file mode 100644 index 294f482..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_details_easyjson.go +++ /dev/null @@ -1,188 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjsonFdf086a1DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *StatusDetails) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "causes": - if in.IsNull() { - in.Skip() - out.Causes = nil - } else { - in.Delim('[') - if out.Causes == nil { - if !in.IsDelim(']') { - out.Causes = make([]*StatusCause, 0, 8) - } else { - out.Causes = []*StatusCause{} - } - } else { - out.Causes = (out.Causes)[:0] - } - for !in.IsDelim(']') { - var v1 *StatusCause - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(StatusCause) - } - (*v1).UnmarshalEasyJSON(in) - } - out.Causes = append(out.Causes, v1) - in.WantComma() - } - in.Delim(']') - } - case "group": - out.Group = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "name": - out.Name = string(in.String()) - case "retryAfterSeconds": - out.RetryAfterSeconds = int32(in.Int32()) - case "uid": - out.UID = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjsonFdf086a1EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in StatusDetails) { - out.RawByte('{') - first := true - _ = first - if len(in.Causes) != 0 { - const prefix string = ",\"causes\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.Causes { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - (*v3).MarshalEasyJSON(out) - } - } - out.RawByte(']') - } - } - if in.Group != "" { - const prefix string = ",\"group\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Group)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Name != "" { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Name)) - } - if in.RetryAfterSeconds != 0 { - const prefix string = ",\"retryAfterSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.RetryAfterSeconds)) - } - if in.UID != "" { - const prefix string = ",\"uid\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.UID)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v StatusDetails) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjsonFdf086a1EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v StatusDetails) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonFdf086a1EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *StatusDetails) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjsonFdf086a1DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *StatusDetails) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonFdf086a1DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_easyjson.go deleted file mode 100644 index 4730391..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_easyjson.go +++ /dev/null @@ -1,398 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson727fe99aDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *Status) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "apiVersion": - out.APIVersion = string(in.String()) - case "code": - out.Code = int32(in.Int32()) - case "details": - if in.IsNull() { - in.Skip() - out.Details = nil - } else { - if out.Details == nil { - out.Details = new(StatusDetails) - } - easyjson727fe99aDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(in, out.Details) - } - case "kind": - out.Kind = string(in.String()) - case "message": - out.Message = string(in.String()) - case "metadata": - if in.IsNull() { - in.Skip() - out.Metadata = nil - } else { - if out.Metadata == nil { - out.Metadata = new(ListMeta) - } - (*out.Metadata).UnmarshalEasyJSON(in) - } - case "reason": - out.Reason = string(in.String()) - case "status": - out.Status = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson727fe99aEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in Status) { - out.RawByte('{') - first := true - _ = first - if in.APIVersion != "" { - const prefix string = ",\"apiVersion\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.APIVersion)) - } - if in.Code != 0 { - const prefix string = ",\"code\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.Code)) - } - if in.Details != nil { - const prefix string = ",\"details\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - easyjson727fe99aEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(out, *in.Details) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Metadata != nil { - const prefix string = ",\"metadata\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - (*in.Metadata).MarshalEasyJSON(out) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - if in.Status != "" { - const prefix string = ",\"status\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Status)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v Status) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson727fe99aEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v Status) MarshalEasyJSON(w *jwriter.Writer) { - easyjson727fe99aEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *Status) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson727fe99aDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *Status) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson727fe99aDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} -func easyjson727fe99aDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(in *jlexer.Lexer, out *StatusDetails) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "causes": - if in.IsNull() { - in.Skip() - out.Causes = nil - } else { - in.Delim('[') - if out.Causes == nil { - if !in.IsDelim(']') { - out.Causes = make([]*StatusCause, 0, 8) - } else { - out.Causes = []*StatusCause{} - } - } else { - out.Causes = (out.Causes)[:0] - } - for !in.IsDelim(']') { - var v1 *StatusCause - if in.IsNull() { - in.Skip() - v1 = nil - } else { - if v1 == nil { - v1 = new(StatusCause) - } - easyjson727fe99aDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV12(in, v1) - } - out.Causes = append(out.Causes, v1) - in.WantComma() - } - in.Delim(']') - } - case "group": - out.Group = string(in.String()) - case "kind": - out.Kind = string(in.String()) - case "name": - out.Name = string(in.String()) - case "retryAfterSeconds": - out.RetryAfterSeconds = int32(in.Int32()) - case "uid": - out.UID = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson727fe99aEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV11(out *jwriter.Writer, in StatusDetails) { - out.RawByte('{') - first := true - _ = first - if len(in.Causes) != 0 { - const prefix string = ",\"causes\":" - first = false - out.RawString(prefix[1:]) - { - out.RawByte('[') - for v2, v3 := range in.Causes { - if v2 > 0 { - out.RawByte(',') - } - if v3 == nil { - out.RawString("null") - } else { - easyjson727fe99aEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV12(out, *v3) - } - } - out.RawByte(']') - } - } - if in.Group != "" { - const prefix string = ",\"group\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Group)) - } - if in.Kind != "" { - const prefix string = ",\"kind\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Kind)) - } - if in.Name != "" { - const prefix string = ",\"name\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Name)) - } - if in.RetryAfterSeconds != 0 { - const prefix string = ",\"retryAfterSeconds\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.Int32(int32(in.RetryAfterSeconds)) - } - if in.UID != "" { - const prefix string = ",\"uid\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.UID)) - } - out.RawByte('}') -} -func easyjson727fe99aDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV12(in *jlexer.Lexer, out *StatusCause) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "field": - out.Field = string(in.String()) - case "message": - out.Message = string(in.String()) - case "reason": - out.Reason = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson727fe99aEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV12(out *jwriter.Writer, in StatusCause) { - out.RawByte('{') - first := true - _ = first - if in.Field != "" { - const prefix string = ",\"field\":" - first = false - out.RawString(prefix[1:]) - out.String(string(in.Field)) - } - if in.Message != "" { - const prefix string = ",\"message\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Message)) - } - if in.Reason != "" { - const prefix string = ",\"reason\":" - if first { - first = false - out.RawString(prefix[1:]) - } else { - out.RawString(prefix) - } - out.String(string(in.Reason)) - } - out.RawByte('}') -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_gvk.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_gvk.go deleted file mode 100644 index 428b120..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_gvk.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by GroupVersionResource generator for getting GVK data. DO NOT EDIT. - -package v1 - -import "github.com/kubewarden/k8s-objects/apimachinery/pkg/runtime/schema" - -func (v *Status) GroupVersionKind() schema.GroupVersionKind { - kind := v.Kind - apiVersion := v.APIVersion - if kind == "" { - kind = "Status" - } - if apiVersion == "" { - apiVersion = SchemeGroupVersion.String() - } - - return schema.FromAPIVersionAndKind(apiVersion, kind) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/swagger.json b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/swagger.json index 8e2f0a4..6a2bbbe 100644 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/swagger.json +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/swagger.json @@ -1 +1 @@ -{"swagger":"2.0","info":{"title":"kubernetes","version":"unversioned"},"paths":{},"definitions":{"APIGroup":{"description":"APIGroup contains the name, the supported versions, and the preferred version of a group.","type":"object","required":["name","versions"],"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","x-omitempty":true},"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","x-omitempty":true},"name":{"description":"name is the name of the group.","type":"string"},"preferredVersion":{"description":"preferredVersion is the version preferred by the API server, which probably is the storage version.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/GroupVersionForDiscovery"},"serverAddressByClientCIDRs":{"description":"a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ServerAddressByClientCIDR"},"x-omitempty":true},"versions":{"description":"versions are the versions supported in this group.","type":"array","items":{"$ref":"#/definitions/GroupVersionForDiscovery"}}},"x-kubernetes-group-version-kind":[{"group":"","kind":"APIGroup","version":"v1"}]},"APIGroupList":{"description":"APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.","type":"object","required":["groups"],"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","x-omitempty":true},"groups":{"description":"groups is a list of APIGroup.","type":"array","items":{"$ref":"#/definitions/APIGroup"}},"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","x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"APIGroupList","version":"v1"}]},"APIResource":{"description":"APIResource specifies the name of a resource and whether it is namespaced.","type":"object","required":["name","singularName","namespaced","kind","verbs"],"properties":{"categories":{"description":"categories is a list of the grouped resources this resource belongs to (e.g. 'all')","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"group":{"description":"group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".","type":"string","x-omitempty":true},"kind":{"description":"kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')","type":"string"},"name":{"description":"name is the plural name of the resource.","type":"string"},"namespaced":{"description":"namespaced indicates if a resource is namespaced or not.","type":"boolean"},"shortNames":{"description":"shortNames is a list of suggested short names of the resource.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"singularName":{"description":"singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.","type":"string"},"storageVersionHash":{"description":"The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.","type":"string","x-omitempty":true},"verbs":{"description":"verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)","type":"array","items":{"type":"string"}},"version":{"description":"version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".","type":"string","x-omitempty":true}}},"APIResourceList":{"description":"APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.","type":"object","required":["groupVersion","resources"],"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","x-omitempty":true},"groupVersion":{"description":"groupVersion is the group and version this APIResourceList is for.","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","x-omitempty":true},"resources":{"description":"resources contains the name of the resources and if they are namespaced.","type":"array","items":{"$ref":"#/definitions/APIResource"}}},"x-kubernetes-group-version-kind":[{"group":"","kind":"APIResourceList","version":"v1"}]},"APIVersions":{"description":"APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.","type":"object","required":["versions","serverAddressByClientCIDRs"],"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","x-omitempty":true},"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","x-omitempty":true},"serverAddressByClientCIDRs":{"description":"a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.","type":"array","items":{"$ref":"#/definitions/ServerAddressByClientCIDR"}},"versions":{"description":"versions are the api versions that are available.","type":"array","items":{"type":"string"}}},"x-kubernetes-group-version-kind":[{"group":"","kind":"APIVersions","version":"v1"}]},"Condition":{"description":"Condition contains details for one aspect of the current state of this API Resource.","type":"object","required":["type","status","lastTransitionTime","reason","message"],"properties":{"lastTransitionTime":{"description":"lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.","$ref":"#/definitions/Time"},"message":{"description":"message is a human readable message indicating details about the transition. This may be an empty string.","type":"string"},"observedGeneration":{"description":"observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.","type":"integer","format":"int64","x-omitempty":true},"reason":{"description":"reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.","type":"string"},"status":{"description":"status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"type of condition in CamelCase or in foo.example.com/CamelCase.","type":"string"}}},"DeleteOptions":{"description":"DeleteOptions may be provided when deleting an API object.","type":"object","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","x-omitempty":true},"dryRun":{"description":"When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"gracePeriodSeconds":{"description":"The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.","type":"integer","format":"int64","x-omitempty":true},"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","x-omitempty":true},"orphanDependents":{"description":"Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.","type":"boolean","x-omitempty":true},"preconditions":{"description":"Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Preconditions"},"propagationPolicy":{"description":"Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.","type":"string","x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"DeleteOptions","version":"v1"},{"group":"admission.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"admission.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"admissionregistration.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"admissionregistration.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"apiextensions.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"apiextensions.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"apiregistration.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"apiregistration.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"apps","kind":"DeleteOptions","version":"v1"},{"group":"apps","kind":"DeleteOptions","version":"v1beta1"},{"group":"apps","kind":"DeleteOptions","version":"v1beta2"},{"group":"authentication.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"authentication.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"authorization.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"authorization.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"autoscaling","kind":"DeleteOptions","version":"v1"},{"group":"autoscaling","kind":"DeleteOptions","version":"v2"},{"group":"autoscaling","kind":"DeleteOptions","version":"v2beta1"},{"group":"autoscaling","kind":"DeleteOptions","version":"v2beta2"},{"group":"batch","kind":"DeleteOptions","version":"v1"},{"group":"batch","kind":"DeleteOptions","version":"v1beta1"},{"group":"certificates.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"certificates.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"coordination.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"coordination.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"discovery.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"discovery.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"events.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"events.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"extensions","kind":"DeleteOptions","version":"v1beta1"},{"group":"flowcontrol.apiserver.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"flowcontrol.apiserver.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"flowcontrol.apiserver.k8s.io","kind":"DeleteOptions","version":"v1beta2"},{"group":"imagepolicy.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"internal.apiserver.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"networking.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"networking.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"node.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"node.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"node.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"policy","kind":"DeleteOptions","version":"v1"},{"group":"policy","kind":"DeleteOptions","version":"v1beta1"},{"group":"rbac.authorization.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"rbac.authorization.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"rbac.authorization.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"scheduling.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"scheduling.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"scheduling.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"storage.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"storage.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"storage.k8s.io","kind":"DeleteOptions","version":"v1beta1"}]},"FieldsV1":{"description":"FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:\u003cname\u003e', where \u003cname\u003e is the name of a field in a struct, or key in a map 'v:\u003cvalue\u003e', where \u003cvalue\u003e is the exact json formatted value of a list item 'i:\u003cindex\u003e', where \u003cindex\u003e is position of a item in a list 'k:\u003ckeys\u003e', where \u003ckeys\u003e is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff","type":"object","x-go-type":{"import":{"package":"github.com/mailru/easyjson"},"type":"RawMessage"}},"GroupVersionForDiscovery":{"description":"GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.","type":"object","required":["groupVersion","version"],"properties":{"groupVersion":{"description":"groupVersion specifies the API group and version in the form \"group/version\"","type":"string"},"version":{"description":"version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.","type":"string"}}},"LabelSelector":{"description":"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.","type":"object","properties":{"matchExpressions":{"description":"matchExpressions is a list of label selector requirements. The requirements are ANDed.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LabelSelectorRequirement"},"x-omitempty":true},"matchLabels":{"description":"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"LabelSelectorRequirement":{"description":"A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.","type":"object","required":["key","operator"],"properties":{"key":{"description":"key is the label key that the selector applies to.","type":"string","x-kubernetes-patch-merge-key":"key","x-kubernetes-patch-strategy":"merge"},"operator":{"description":"operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.","type":"string"},"values":{"description":"values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"ListMeta":{"description":"ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.","type":"object","properties":{"continue":{"description":"continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.","type":"string","x-omitempty":true},"remainingItemCount":{"description":"remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.","type":"integer","format":"int64","x-omitempty":true},"resourceVersion":{"description":"String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency","type":"string","x-omitempty":true},"selfLink":{"description":"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.","type":"string","x-omitempty":true}}},"ManagedFieldsEntry":{"description":"ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.","type":"object","properties":{"apiVersion":{"description":"APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.","type":"string","x-omitempty":true},"fieldsType":{"description":"FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"","type":"string","x-omitempty":true},"fieldsV1":{"description":"FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.","x-omitempty":true,"$ref":"#/definitions/FieldsV1"},"manager":{"description":"Manager is an identifier of the workflow managing these fields.","type":"string","x-omitempty":true},"operation":{"description":"Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.","type":"string","x-omitempty":true},"subresource":{"description":"Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.","type":"string","x-omitempty":true},"time":{"description":"Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Time"}}},"MicroTime":{"description":"MicroTime is version of Time with microsecond level precision.","type":"string","format":"date-time"},"ObjectMeta":{"description":"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.","type":"object","properties":{"annotations":{"description":"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true},"clusterName":{"description":"Deprecated: ClusterName is a legacy field that was always cleared by the system and never used; it will be removed completely in 1.25.\n\nThe name in the go struct is changed to help clients detect accidental use.","type":"string","x-omitempty":true},"creationTimestamp":{"description":"CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Time"},"deletionGracePeriodSeconds":{"description":"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.","type":"integer","format":"int64","x-omitempty":true},"deletionTimestamp":{"description":"DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Time"},"finalizers":{"description":"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.","type":"array","items":{"type":"string","x-omitempty":true},"x-kubernetes-patch-strategy":"merge","x-omitempty":true},"generateName":{"description":"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency","type":"string","x-omitempty":true},"generation":{"description":"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.","type":"integer","format":"int64","x-omitempty":true},"labels":{"description":"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true},"managedFields":{"description":"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ManagedFieldsEntry"},"x-omitempty":true},"name":{"description":"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names","type":"string","x-omitempty":true},"namespace":{"description":"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces","type":"string","x-omitempty":true},"ownerReferences":{"description":"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/OwnerReference"},"x-kubernetes-patch-merge-key":"uid","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"resourceVersion":{"description":"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency","type":"string","x-omitempty":true},"selfLink":{"description":"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.","type":"string","x-omitempty":true},"uid":{"description":"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids","type":"string","x-omitempty":true}}},"OwnerReference":{"description":"OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.","type":"object","required":["apiVersion","kind","name","uid"],"properties":{"apiVersion":{"description":"API version of the referent.","type":"string"},"blockOwnerDeletion":{"description":"If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.","type":"boolean","x-omitempty":true},"controller":{"description":"If true, this reference points to the managing controller.","type":"boolean","x-omitempty":true},"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: http://kubernetes.io/docs/user-guide/identifiers#names","type":"string"},"uid":{"description":"UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids","type":"string"}},"x-kubernetes-map-type":"atomic"},"Patch":{"description":"Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.","type":"object","x-go-type":{"import":{"package":"github.com/mailru/easyjson"},"type":"RawMessage"}},"Preconditions":{"description":"Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.","type":"object","properties":{"resourceVersion":{"description":"Specifies the target ResourceVersion","type":"string","x-omitempty":true},"uid":{"description":"Specifies the target UID.","type":"string","x-omitempty":true}}},"ServerAddressByClientCIDR":{"description":"ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.","type":"object","required":["clientCIDR","serverAddress"],"properties":{"clientCIDR":{"description":"The CIDR with which clients can match their IP to figure out the server address that they should use.","type":"string"},"serverAddress":{"description":"Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.","type":"string"}}},"Status":{"description":"Status is a return value for calls that don't return other objects.","type":"object","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","x-omitempty":true},"code":{"description":"Suggested HTTP return code for this status, 0 if not set.","type":"integer","format":"int32","x-omitempty":true},"details":{"description":"Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StatusDetails"},"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","x-omitempty":true},"message":{"description":"A human-readable description of the status of this operation.","type":"string","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ListMeta"},"reason":{"description":"A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.","type":"string","x-omitempty":true},"status":{"description":"Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","type":"string","x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Status","version":"v1"}]},"StatusCause":{"description":"StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.","type":"object","properties":{"field":{"description":"The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"","type":"string","x-omitempty":true},"message":{"description":"A human-readable description of the cause of the error. This field may be presented as-is to a reader.","type":"string","x-omitempty":true},"reason":{"description":"A machine-readable description of the cause of the error. If this value is empty there is no information available.","type":"string","x-omitempty":true}}},"StatusDetails":{"description":"StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.","type":"object","properties":{"causes":{"description":"The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StatusCause"},"x-omitempty":true},"group":{"description":"The group attribute of the resource associated with the status StatusReason.","type":"string","x-omitempty":true},"kind":{"description":"The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","type":"string","x-omitempty":true},"name":{"description":"The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).","type":"string","x-omitempty":true},"retryAfterSeconds":{"description":"If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.","type":"integer","format":"int32","x-omitempty":true},"uid":{"description":"UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids","type":"string","x-omitempty":true}}},"Time":{"description":"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.","type":"string","format":"date-time"},"WatchEvent":{"description":"Event represents a single event to a watched resource.","type":"object","required":["type","object"],"properties":{"object":{"description":"Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.","x-go-type":{"import":{"package":"github.com/mailru/easyjson"},"type":"RawMessage"},"x-nullable":false},"type":{"type":"string"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"WatchEvent","version":"v1"},{"group":"admission.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"admission.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"admissionregistration.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"admissionregistration.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"apiextensions.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"apiextensions.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"apiregistration.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"apiregistration.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"apps","kind":"WatchEvent","version":"v1"},{"group":"apps","kind":"WatchEvent","version":"v1beta1"},{"group":"apps","kind":"WatchEvent","version":"v1beta2"},{"group":"authentication.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"authentication.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"authorization.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"authorization.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"autoscaling","kind":"WatchEvent","version":"v1"},{"group":"autoscaling","kind":"WatchEvent","version":"v2"},{"group":"autoscaling","kind":"WatchEvent","version":"v2beta1"},{"group":"autoscaling","kind":"WatchEvent","version":"v2beta2"},{"group":"batch","kind":"WatchEvent","version":"v1"},{"group":"batch","kind":"WatchEvent","version":"v1beta1"},{"group":"certificates.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"certificates.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"coordination.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"coordination.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"discovery.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"discovery.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"events.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"events.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"extensions","kind":"WatchEvent","version":"v1beta1"},{"group":"flowcontrol.apiserver.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"flowcontrol.apiserver.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"flowcontrol.apiserver.k8s.io","kind":"WatchEvent","version":"v1beta2"},{"group":"imagepolicy.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"internal.apiserver.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"networking.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"networking.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"node.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"node.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"node.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"policy","kind":"WatchEvent","version":"v1"},{"group":"policy","kind":"WatchEvent","version":"v1beta1"},{"group":"rbac.authorization.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"rbac.authorization.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"rbac.authorization.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"scheduling.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"scheduling.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"scheduling.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"storage.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"storage.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"storage.k8s.io","kind":"WatchEvent","version":"v1beta1"}]}}} \ No newline at end of file +{"swagger":"2.0","info":{"title":"kubernetes","version":"unversioned"},"paths":{},"definitions":{"APIGroup":{"description":"APIGroup contains the name, the supported versions, and the preferred version of a group.","type":"object","required":["name","versions"],"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","x-omitempty":true},"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","x-omitempty":true},"name":{"description":"name is the name of the group.","type":"string"},"preferredVersion":{"description":"preferredVersion is the version preferred by the API server, which probably is the storage version.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/GroupVersionForDiscovery"},"serverAddressByClientCIDRs":{"description":"a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ServerAddressByClientCIDR"},"x-omitempty":true},"versions":{"description":"versions are the versions supported in this group.","type":"array","items":{"$ref":"#/definitions/GroupVersionForDiscovery"}}},"x-kubernetes-group-version-kind":[{"group":"","kind":"APIGroup","version":"v1"}]},"APIGroupList":{"description":"APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.","type":"object","required":["groups"],"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","x-omitempty":true},"groups":{"description":"groups is a list of APIGroup.","type":"array","items":{"$ref":"#/definitions/APIGroup"}},"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","x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"APIGroupList","version":"v1"}]},"APIResource":{"description":"APIResource specifies the name of a resource and whether it is namespaced.","type":"object","required":["name","singularName","namespaced","kind","verbs"],"properties":{"categories":{"description":"categories is a list of the grouped resources this resource belongs to (e.g. 'all')","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"group":{"description":"group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".","type":"string","x-omitempty":true},"kind":{"description":"kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')","type":"string"},"name":{"description":"name is the plural name of the resource.","type":"string"},"namespaced":{"description":"namespaced indicates if a resource is namespaced or not.","type":"boolean"},"shortNames":{"description":"shortNames is a list of suggested short names of the resource.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"singularName":{"description":"singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.","type":"string"},"storageVersionHash":{"description":"The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.","type":"string","x-omitempty":true},"verbs":{"description":"verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)","type":"array","items":{"type":"string"}},"version":{"description":"version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".","type":"string","x-omitempty":true}}},"APIResourceList":{"description":"APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.","type":"object","required":["groupVersion","resources"],"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","x-omitempty":true},"groupVersion":{"description":"groupVersion is the group and version this APIResourceList is for.","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","x-omitempty":true},"resources":{"description":"resources contains the name of the resources and if they are namespaced.","type":"array","items":{"$ref":"#/definitions/APIResource"}}},"x-kubernetes-group-version-kind":[{"group":"","kind":"APIResourceList","version":"v1"}]},"APIVersions":{"description":"APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.","type":"object","required":["versions","serverAddressByClientCIDRs"],"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","x-omitempty":true},"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","x-omitempty":true},"serverAddressByClientCIDRs":{"description":"a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.","type":"array","items":{"$ref":"#/definitions/ServerAddressByClientCIDR"}},"versions":{"description":"versions are the api versions that are available.","type":"array","items":{"type":"string"}}},"x-kubernetes-group-version-kind":[{"group":"","kind":"APIVersions","version":"v1"}]},"Condition":{"description":"Condition contains details for one aspect of the current state of this API Resource.","type":"object","required":["type","status","lastTransitionTime","reason","message"],"properties":{"lastTransitionTime":{"description":"lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.","$ref":"#/definitions/Time"},"message":{"description":"message is a human readable message indicating details about the transition. This may be an empty string.","type":"string"},"observedGeneration":{"description":"observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.","type":"integer","format":"int64","x-omitempty":true},"reason":{"description":"reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.","type":"string"},"status":{"description":"status of the condition, one of True, False, Unknown.","type":"string"},"type":{"description":"type of condition in CamelCase or in foo.example.com/CamelCase.","type":"string"}}},"DeleteOptions":{"description":"DeleteOptions may be provided when deleting an API object.","type":"object","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","x-omitempty":true},"dryRun":{"description":"When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true},"gracePeriodSeconds":{"description":"The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.","type":"integer","format":"int64","x-omitempty":true},"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","x-omitempty":true},"orphanDependents":{"description":"Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.","type":"boolean","x-omitempty":true},"preconditions":{"description":"Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Preconditions"},"propagationPolicy":{"description":"Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.","type":"string","x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"DeleteOptions","version":"v1"},{"group":"admission.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"admission.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"admissionregistration.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"admissionregistration.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"admissionregistration.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"apiextensions.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"apiextensions.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"apiregistration.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"apiregistration.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"apps","kind":"DeleteOptions","version":"v1"},{"group":"apps","kind":"DeleteOptions","version":"v1beta1"},{"group":"apps","kind":"DeleteOptions","version":"v1beta2"},{"group":"authentication.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"authentication.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"authentication.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"authorization.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"authorization.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"autoscaling","kind":"DeleteOptions","version":"v1"},{"group":"autoscaling","kind":"DeleteOptions","version":"v2"},{"group":"autoscaling","kind":"DeleteOptions","version":"v2beta1"},{"group":"autoscaling","kind":"DeleteOptions","version":"v2beta2"},{"group":"batch","kind":"DeleteOptions","version":"v1"},{"group":"batch","kind":"DeleteOptions","version":"v1beta1"},{"group":"certificates.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"certificates.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"certificates.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"coordination.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"coordination.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"discovery.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"discovery.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"events.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"events.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"extensions","kind":"DeleteOptions","version":"v1beta1"},{"group":"flowcontrol.apiserver.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"flowcontrol.apiserver.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"flowcontrol.apiserver.k8s.io","kind":"DeleteOptions","version":"v1beta2"},{"group":"flowcontrol.apiserver.k8s.io","kind":"DeleteOptions","version":"v1beta3"},{"group":"imagepolicy.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"internal.apiserver.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"networking.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"networking.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"networking.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"node.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"node.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"node.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"policy","kind":"DeleteOptions","version":"v1"},{"group":"policy","kind":"DeleteOptions","version":"v1beta1"},{"group":"rbac.authorization.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"rbac.authorization.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"rbac.authorization.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"resource.k8s.io","kind":"DeleteOptions","version":"v1alpha2"},{"group":"scheduling.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"scheduling.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"scheduling.k8s.io","kind":"DeleteOptions","version":"v1beta1"},{"group":"storage.k8s.io","kind":"DeleteOptions","version":"v1"},{"group":"storage.k8s.io","kind":"DeleteOptions","version":"v1alpha1"},{"group":"storage.k8s.io","kind":"DeleteOptions","version":"v1beta1"}]},"FieldsV1":{"description":"FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.\n\nEach key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:\u003cname\u003e', where \u003cname\u003e is the name of a field in a struct, or key in a map 'v:\u003cvalue\u003e', where \u003cvalue\u003e is the exact json formatted value of a list item 'i:\u003cindex\u003e', where \u003cindex\u003e is position of a item in a list 'k:\u003ckeys\u003e', where \u003ckeys\u003e is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.\n\nThe exact format is defined in sigs.k8s.io/structured-merge-diff","type":"object","x-go-type":{"import":{"package":"encoding/json"},"type":"RawMessage"}},"GroupVersionForDiscovery":{"description":"GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.","type":"object","required":["groupVersion","version"],"properties":{"groupVersion":{"description":"groupVersion specifies the API group and version in the form \"group/version\"","type":"string"},"version":{"description":"version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.","type":"string"}}},"LabelSelector":{"description":"A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.","type":"object","properties":{"matchExpressions":{"description":"matchExpressions is a list of label selector requirements. The requirements are ANDed.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/LabelSelectorRequirement"},"x-omitempty":true},"matchLabels":{"description":"matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true}},"x-kubernetes-map-type":"atomic"},"LabelSelectorRequirement":{"description":"A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.","type":"object","required":["key","operator"],"properties":{"key":{"description":"key is the label key that the selector applies to.","type":"string","x-kubernetes-patch-merge-key":"key","x-kubernetes-patch-strategy":"merge"},"operator":{"description":"operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.","type":"string"},"values":{"description":"values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.","type":"array","items":{"type":"string","x-omitempty":true},"x-omitempty":true}}},"ListMeta":{"description":"ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.","type":"object","properties":{"continue":{"description":"continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.","type":"string","x-omitempty":true},"remainingItemCount":{"description":"remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.","type":"integer","format":"int64","x-omitempty":true},"resourceVersion":{"description":"String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency","type":"string","x-omitempty":true},"selfLink":{"description":"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.","type":"string","x-omitempty":true}}},"ManagedFieldsEntry":{"description":"ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.","type":"object","properties":{"apiVersion":{"description":"APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.","type":"string","x-omitempty":true},"fieldsType":{"description":"FieldsType is the discriminator for the different fields format and version. There is currently only one possible value: \"FieldsV1\"","type":"string","x-omitempty":true},"fieldsV1":{"description":"FieldsV1 holds the first JSON version format as described in the \"FieldsV1\" type.","x-omitempty":true,"$ref":"#/definitions/FieldsV1"},"manager":{"description":"Manager is an identifier of the workflow managing these fields.","type":"string","x-omitempty":true},"operation":{"description":"Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.","type":"string","x-omitempty":true},"subresource":{"description":"Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource.","type":"string","x-omitempty":true},"time":{"description":"Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Time"}}},"MicroTime":{"description":"MicroTime is version of Time with microsecond level precision.","type":"string","format":"date-time"},"ObjectMeta":{"description":"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.","type":"object","properties":{"annotations":{"description":"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true},"creationTimestamp":{"description":"CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.\n\nPopulated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Time"},"deletionGracePeriodSeconds":{"description":"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.","type":"integer","format":"int64","x-omitempty":true},"deletionTimestamp":{"description":"DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested.\n\nPopulated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/Time"},"finalizers":{"description":"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list.","type":"array","items":{"type":"string","x-omitempty":true},"x-kubernetes-patch-strategy":"merge","x-omitempty":true},"generateName":{"description":"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will return a 409.\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency","type":"string","x-omitempty":true},"generation":{"description":"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.","type":"integer","format":"int64","x-omitempty":true},"labels":{"description":"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels","type":"object","additionalProperties":{"type":"string","x-omitempty":true},"x-omitempty":true},"managedFields":{"description":"ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ManagedFieldsEntry"},"x-omitempty":true},"name":{"description":"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names","type":"string","x-omitempty":true},"namespace":{"description":"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces","type":"string","x-omitempty":true},"ownerReferences":{"description":"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/OwnerReference"},"x-kubernetes-patch-merge-key":"uid","x-kubernetes-patch-strategy":"merge","x-omitempty":true},"resourceVersion":{"description":"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency","type":"string","x-omitempty":true},"selfLink":{"description":"Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.","type":"string","x-omitempty":true},"uid":{"description":"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids","type":"string","x-omitempty":true}}},"OwnerReference":{"description":"OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.","type":"object","required":["apiVersion","kind","name","uid"],"properties":{"apiVersion":{"description":"API version of the referent.","type":"string"},"blockOwnerDeletion":{"description":"If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.","type":"boolean","x-omitempty":true},"controller":{"description":"If true, this reference points to the managing controller.","type":"boolean","x-omitempty":true},"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"},"uid":{"description":"UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids","type":"string"}},"x-kubernetes-map-type":"atomic"},"Patch":{"description":"Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.","type":"object","x-go-type":{"import":{"package":"encoding/json"},"type":"RawMessage"}},"Preconditions":{"description":"Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.","type":"object","properties":{"resourceVersion":{"description":"Specifies the target ResourceVersion","type":"string","x-omitempty":true},"uid":{"description":"Specifies the target UID.","type":"string","x-omitempty":true}}},"ServerAddressByClientCIDR":{"description":"ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.","type":"object","required":["clientCIDR","serverAddress"],"properties":{"clientCIDR":{"description":"The CIDR with which clients can match their IP to figure out the server address that they should use.","type":"string"},"serverAddress":{"description":"Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.","type":"string"}}},"Status":{"description":"Status is a return value for calls that don't return other objects.","type":"object","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","x-omitempty":true},"code":{"description":"Suggested HTTP return code for this status, 0 if not set.","type":"integer","format":"int32","x-omitempty":true},"details":{"description":"Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StatusDetails"},"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","x-omitempty":true},"message":{"description":"A human-readable description of the status of this operation.","type":"string","x-omitempty":true},"metadata":{"description":"Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/ListMeta"},"reason":{"description":"A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.","type":"string","x-omitempty":true},"status":{"description":"Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status","type":"string","x-omitempty":true}},"x-kubernetes-group-version-kind":[{"group":"","kind":"Status","version":"v1"},{"group":"resource.k8s.io","kind":"Status","version":"v1alpha2"}]},"StatusCause":{"description":"StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.","type":"object","properties":{"field":{"description":"The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional.\n\nExamples:\n \"name\" - the field \"name\" on the current resource\n \"items[0].name\" - the field \"name\" on the first array entry in \"items\"","type":"string","x-omitempty":true},"message":{"description":"A human-readable description of the cause of the error. This field may be presented as-is to a reader.","type":"string","x-omitempty":true},"reason":{"description":"A machine-readable description of the cause of the error. If this value is empty there is no information available.","type":"string","x-omitempty":true}}},"StatusDetails":{"description":"StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.","type":"object","properties":{"causes":{"description":"The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.","type":"array","items":{"x-nullable":true,"x-omitempty":true,"$ref":"#/definitions/StatusCause"},"x-omitempty":true},"group":{"description":"The group attribute of the resource associated with the status StatusReason.","type":"string","x-omitempty":true},"kind":{"description":"The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","type":"string","x-omitempty":true},"name":{"description":"The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).","type":"string","x-omitempty":true},"retryAfterSeconds":{"description":"If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.","type":"integer","format":"int32","x-omitempty":true},"uid":{"description":"UID of the resource. (when there is a single resource which can be described). More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids","type":"string","x-omitempty":true}}},"Time":{"description":"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers.","type":"string","format":"date-time"},"WatchEvent":{"description":"Event represents a single event to a watched resource.","type":"object","required":["type","object"],"properties":{"object":{"description":"Object is:\n * If Type is Added or Modified: the new state of the object.\n * If Type is Deleted: the state of the object immediately before deletion.\n * If Type is Error: *Status is recommended; other types may make sense\n depending on context.","x-go-type":{"import":{"package":"encoding/json"},"type":"RawMessage"},"x-nullable":false},"type":{"type":"string"}},"x-kubernetes-group-version-kind":[{"group":"","kind":"WatchEvent","version":"v1"},{"group":"admission.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"admission.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"admissionregistration.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"admissionregistration.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"admissionregistration.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"apiextensions.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"apiextensions.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"apiregistration.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"apiregistration.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"apps","kind":"WatchEvent","version":"v1"},{"group":"apps","kind":"WatchEvent","version":"v1beta1"},{"group":"apps","kind":"WatchEvent","version":"v1beta2"},{"group":"authentication.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"authentication.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"authentication.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"authorization.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"authorization.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"autoscaling","kind":"WatchEvent","version":"v1"},{"group":"autoscaling","kind":"WatchEvent","version":"v2"},{"group":"autoscaling","kind":"WatchEvent","version":"v2beta1"},{"group":"autoscaling","kind":"WatchEvent","version":"v2beta2"},{"group":"batch","kind":"WatchEvent","version":"v1"},{"group":"batch","kind":"WatchEvent","version":"v1beta1"},{"group":"certificates.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"certificates.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"certificates.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"coordination.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"coordination.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"discovery.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"discovery.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"events.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"events.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"extensions","kind":"WatchEvent","version":"v1beta1"},{"group":"flowcontrol.apiserver.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"flowcontrol.apiserver.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"flowcontrol.apiserver.k8s.io","kind":"WatchEvent","version":"v1beta2"},{"group":"flowcontrol.apiserver.k8s.io","kind":"WatchEvent","version":"v1beta3"},{"group":"imagepolicy.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"internal.apiserver.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"networking.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"networking.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"networking.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"node.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"node.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"node.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"policy","kind":"WatchEvent","version":"v1"},{"group":"policy","kind":"WatchEvent","version":"v1beta1"},{"group":"rbac.authorization.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"rbac.authorization.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"rbac.authorization.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"resource.k8s.io","kind":"WatchEvent","version":"v1alpha2"},{"group":"scheduling.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"scheduling.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"scheduling.k8s.io","kind":"WatchEvent","version":"v1beta1"},{"group":"storage.k8s.io","kind":"WatchEvent","version":"v1"},{"group":"storage.k8s.io","kind":"WatchEvent","version":"v1alpha1"},{"group":"storage.k8s.io","kind":"WatchEvent","version":"v1beta1"}]}}} \ No newline at end of file diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/time_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/time_easyjson.go deleted file mode 100644 index bafde36..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/time_easyjson.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/watch_event.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/watch_event.go index 6e3e676..71d7921 100644 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/watch_event.go +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/watch_event.go @@ -6,7 +6,7 @@ package v1 // Editing this file might prove futile when you re-run the swagger generate command import ( - "github.com/mailru/easyjson" + jsonext "encoding/json" ) // WatchEvent Event represents a single event to a watched resource. @@ -20,7 +20,7 @@ type WatchEvent struct { // * If Type is Error: *Status is recommended; other types may make sense // depending on context. // Required: true - Object easyjson.RawMessage `json:"object"` + Object jsonext.RawMessage `json:"object"` // type // Required: true diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/watch_event_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/watch_event_easyjson.go deleted file mode 100644 index 7a1e534..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/watch_event_easyjson.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package v1 - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson7275304aDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *WatchEvent) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "object": - (out.Object).UnmarshalEasyJSON(in) - case "type": - if in.IsNull() { - in.Skip() - out.Type = nil - } else { - if out.Type == nil { - out.Type = new(string) - } - *out.Type = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson7275304aEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in WatchEvent) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"object\":" - out.RawString(prefix[1:]) - (in.Object).MarshalEasyJSON(out) - } - { - const prefix string = ",\"type\":" - out.RawString(prefix) - if in.Type == nil { - out.RawString("null") - } else { - out.String(string(*in.Type)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v WatchEvent) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson7275304aEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v WatchEvent) MarshalEasyJSON(w *jwriter.Writer) { - easyjson7275304aEncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *WatchEvent) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson7275304aDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *WatchEvent) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson7275304aDecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) -} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr/int_or_string_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr/int_or_string_easyjson.go deleted file mode 100644 index 2e51eff..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr/int_or_string_easyjson.go +++ /dev/null @@ -1,18 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package intstr - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) diff --git a/vendor/github.com/kubewarden/policy-sdk-go/Makefile b/vendor/github.com/kubewarden/policy-sdk-go/Makefile index 6fab091..5ee74d2 100644 --- a/vendor/github.com/kubewarden/policy-sdk-go/Makefile +++ b/vendor/github.com/kubewarden/policy-sdk-go/Makefile @@ -16,8 +16,5 @@ lint: deps: go get github.com/golangci/golangci-lint/cmd/golangci-lint -generate-easyjson: - docker run --rm -v ${PWD}:/src -w /src golang:1.20-alpine ./hack/generate-easyjson.sh - generate-mocks: docker run --rm -v ${PWD}:/src -w /src golang:1.20-alpine ./hack/generate-mocks.sh diff --git a/vendor/github.com/kubewarden/policy-sdk-go/README.md b/vendor/github.com/kubewarden/policy-sdk-go/README.md index 144161e..1a1f930 100644 --- a/vendor/github.com/kubewarden/policy-sdk-go/README.md +++ b/vendor/github.com/kubewarden/policy-sdk-go/README.md @@ -17,11 +17,6 @@ using [TinyGo](https://github.com/tinygo-org/tinygo). TinyGo doesn't have full support of the Go Standard Library. However, this shouldn't pose a limit to policy authors. -The biggest drawback of TinyGo is the limited (as of TinyGo v0.23) support -of Go Reflection. Because of that the `encoding/json` package from the Standard -Library is **not usable**. The code will compile just fine, but at **runtime** -a panic will be occur. - # Validation This SDK provides helper methods to accept and reject validation requests. @@ -66,33 +61,40 @@ data.ForEach(func(key, value gjson.Result) bool { }) ``` -This *"jq-like"* approach can be pretty handy when the policy has to look +This _"jq-like"_ approach can be pretty handy when the policy has to look deep inside of a Kubernetes object. This is especially helpful when dealing with inner objects that are optional. -### Use native Go types +## Use native Go types The majority of policies target a specific type of Kubernetes resource, like Pod, Ingress, Service and similar. Because of that, another possible approach is to unmarshal the incoming object into a native Go type. -Because of the current TinyGo limitations, both the usage of the `encoding/json` -package and the usage of the official Kubernetes Go types defined -under the `k8s.io` pacakges (e.g. `k8s.io/api/core/v1`) is not possible. +TinyGo doesn't yet support the full Go Standard Library, plus it has limited +support of Go reflection. +Because of that, it is not possible to import the official Kubernetes Go library +from upstream (e.g.: `k8s.io/api/core/v1`). +Importing these official Kubernetes types will result in a compilation failure. -To circumvent these issues, Kubewarden relies on [easyjson](https://github.com/mailru/easyjson/) -to marshal and unmarshal Kubernetes (and Kubewarden) types. Moreover, Kubewarden provides TinyGo friendly Go types for all the Kubernetes types inside of the [`github.com/kubewarden/k8s-objects`](https://github.com/kubewarden/k8s-objects) package. +Using this SDK requires **TinyGo 0.28.1 or later.** + +> **Warning** +> Using an older version of TinyGo will result in runtime errors due to the limited support for Go reflection. + +### Example + This snippet shows how to implement a `validation` function that uses the "native Go types" approach: ```go // Create a ValidationRequest instance from the incoming payload validationRequest := kubewarden_protocol.ValidationRequest{} -err := easyjson.Unmarshal(payload, &validationRequest) +err := json.Unmarshal(payload, &validationRequest) if err != nil { return kubewarden.RejectRequest( kubewarden.Message(err.Error()), @@ -107,7 +109,7 @@ ingressJSON := validationRequest.Request.Object // This policy works only against Ingress objects, if the creation fails // we reject the request and provide a meaningful error. ingress := &networkingv1.Ingress{} -if err := easyjson.Unmarshal([]byte(ingressJSON), ingress); err != nil { +if err := json.Unmarshal([]byte(ingressJSON), ingress); err != nil { return kubewarden.RejectRequest( kubewarden.Message( fmt.Sprintf("Cannot decode Ingress object: %s", err.Error())), @@ -133,19 +135,20 @@ the helper methods provided by this SDK. The following example defines a mutating policy that always changes the name of Ingress objects: -```go +```go import ( + "encoding/json" "fmt" networkingv1 "github.com/kubewarden/k8s-objects/api/networking/v1" kubewarden "github.com/kubewarden/policy-sdk-go" - "github.com/mailru/easyjson" + ) func validate(payload []byte) ([]byte, error) { // Create a ValidationRequest instance from the incoming payload validationRequest := kubewarden_protocol.ValidationRequest{} - err := easyjson.Unmarshal(payload, &validationRequest) + err := json.Unmarshal(payload, &validationRequest) if err != nil { return kubewarden.RejectRequest( kubewarden.Message(err.Error()), @@ -160,7 +163,7 @@ func validate(payload []byte) ([]byte, error) { // This policy works only against Ingress objects, if the creation fails // we reject the request and provide a meaningful error. ingress := &networkingv1.Ingress{} - if err := easyjson.Unmarshal([]byte(ingressJSON), ingress); err != nil { + if err := json.Unmarshal([]byte(ingressJSON), ingress); err != nil { return kubewarden.RejectRequest( kubewarden.Message( fmt.Sprintf("Cannot decode Ingress object: %s", err.Error())), @@ -184,10 +187,10 @@ This Go module provides logging capabilities that integrate with the This logging solution has been chosen because: - * It works also with WebAssembly binaries. Other popular logging solutions - cannot even be built to WebAssembly. - * It provides [good performance](https://github.com/francoispqt/onelog#benchmarks) - * It supports structured logging. +- It works also with WebAssembly binaries. Other popular logging solutions + cannot even be built to WebAssembly. +- It provides [good performance](https://github.com/francoispqt/onelog#benchmarks) +- It supports structured logging. ## Usage @@ -273,14 +276,14 @@ useful to write ad-hoc tests that can handle different kind of responses coming from the host. The `Host` type described above relies on an internal `waPC` client that -interacts with the host. At test time, the client is an instance of +interacts with the host. At test time, the client is an instance of `MockWapcClient`. Developers can create `MockWapcClient` instances using these two helper methods: -* `NewSuccessfulMockWapcClient`: the client never fails, and always return the +- `NewSuccessfulMockWapcClient`: the client never fails, and always return the response payload provided by the user. -* `NewFailingMockWapcClient`: the client always fails with the error +- `NewFailingMockWapcClient`: the client always fails with the error provided by the user. # Project template diff --git a/vendor/github.com/kubewarden/policy-sdk-go/kubewarden.go b/vendor/github.com/kubewarden/policy-sdk-go/kubewarden.go index 0521436..0207547 100644 --- a/vendor/github.com/kubewarden/policy-sdk-go/kubewarden.go +++ b/vendor/github.com/kubewarden/policy-sdk-go/kubewarden.go @@ -4,13 +4,13 @@ package sdk import ( + "encoding/json" "errors" appsv1 "github.com/kubewarden/k8s-objects/api/apps/v1" batchv1 "github.com/kubewarden/k8s-objects/api/batch/v1" corev1 "github.com/kubewarden/k8s-objects/api/core/v1" "github.com/kubewarden/policy-sdk-go/protocol" - "github.com/mailru/easyjson" ) // Message is the optional string used to build validation responses @@ -36,7 +36,7 @@ func AcceptRequest() ([]byte, error) { Accepted: true, } - return easyjson.Marshal(response) + return json.Marshal(response) } // RejectRequest can be used inside of the `validate` function to reject the @@ -56,18 +56,18 @@ func RejectRequest(message Message, code Code) ([]byte, error) { response.Code = &c } - return easyjson.Marshal(response) + return json.Marshal(response) } // Accept the request and mutate the final object to match the // one provided via the `newObject` param -func MutateRequest(newObject easyjson.Marshaler) ([]byte, error) { +func MutateRequest(newObject interface{}) ([]byte, error) { response := protocol.ValidationResponse{ Accepted: true, MutatedObject: newObject, } - return easyjson.Marshal(response) + return json.Marshal(response) } // Update the pod spec from the resource defined in the original object and @@ -78,56 +78,56 @@ func MutatePodSpecFromRequest(validationRequest protocol.ValidationRequest, podS switch validationRequest.Request.Kind.Kind { case "apps.v1.Deployment": deployment := appsv1.Deployment{} - if err := easyjson.Unmarshal(validationRequest.Request.Object, &deployment); err != nil { + if err := json.Unmarshal(validationRequest.Request.Object, &deployment); err != nil { return nil, err } deployment.Spec.Template.Spec = &podSepc return MutateRequest(deployment) case "apps.v1.ReplicaSet": replicaset := appsv1.ReplicaSet{} - if err := easyjson.Unmarshal(validationRequest.Request.Object, &replicaset); err != nil { + if err := json.Unmarshal(validationRequest.Request.Object, &replicaset); err != nil { return nil, err } replicaset.Spec.Template.Spec = &podSepc return MutateRequest(replicaset) case "apps.v1.StatefulSet": statefulset := appsv1.StatefulSet{} - if err := easyjson.Unmarshal(validationRequest.Request.Object, &statefulset); err != nil { + if err := json.Unmarshal(validationRequest.Request.Object, &statefulset); err != nil { return nil, err } statefulset.Spec.Template.Spec = &podSepc return MutateRequest(statefulset) case "apps.v1.DaemonSet": daemonset := appsv1.DaemonSet{} - if err := easyjson.Unmarshal(validationRequest.Request.Object, &daemonset); err != nil { + if err := json.Unmarshal(validationRequest.Request.Object, &daemonset); err != nil { return nil, err } daemonset.Spec.Template.Spec = &podSepc return MutateRequest(daemonset) case "v1.ReplicationController": replicationController := corev1.ReplicationController{} - if err := easyjson.Unmarshal(validationRequest.Request.Object, &replicationController); err != nil { + if err := json.Unmarshal(validationRequest.Request.Object, &replicationController); err != nil { return nil, err } replicationController.Spec.Template.Spec = &podSepc return MutateRequest(replicationController) case "batch.v1.CronJob": cronjob := batchv1.CronJob{} - if err := easyjson.Unmarshal(validationRequest.Request.Object, &cronjob); err != nil { + if err := json.Unmarshal(validationRequest.Request.Object, &cronjob); err != nil { return nil, err } cronjob.Spec.JobTemplate.Spec.Template.Spec = &podSepc return MutateRequest(cronjob) case "batch.v1.Job": job := batchv1.Job{} - if err := easyjson.Unmarshal(validationRequest.Request.Object, &job); err != nil { + if err := json.Unmarshal(validationRequest.Request.Object, &job); err != nil { return nil, err } job.Spec.Template.Spec = &podSepc return MutateRequest(job) case "v1.Pod": pod := corev1.Pod{} - if err := easyjson.Unmarshal(validationRequest.Request.Object, &pod); err != nil { + if err := json.Unmarshal(validationRequest.Request.Object, &pod); err != nil { return nil, err } pod.Spec = &podSepc @@ -143,7 +143,7 @@ func AcceptSettings() ([]byte, error) { response := protocol.SettingsValidationResponse{ Valid: true, } - return easyjson.Marshal(response) + return json.Marshal(response) } // RejectSettings can be used inside of the `validate_settings` function to @@ -158,7 +158,7 @@ func RejectSettings(message Message) ([]byte, error) { msg := string(message) response.Message = &msg } - return easyjson.Marshal(response) + return json.Marshal(response) } // Extract PodSpec from high level objects. This method can be used to evaluate @@ -173,49 +173,49 @@ func ExtractPodSpecFromObject(object protocol.ValidationRequest) (corev1.PodSpec switch object.Request.Kind.Kind { case "apps.v1.Deployment": deployment := appsv1.Deployment{} - if err := easyjson.Unmarshal(object.Request.Object, &deployment); err != nil { + if err := json.Unmarshal(object.Request.Object, &deployment); err != nil { return corev1.PodSpec{}, err } return *deployment.Spec.Template.Spec, nil case "apps.v1.ReplicaSet": replicaset := appsv1.ReplicaSet{} - if err := easyjson.Unmarshal(object.Request.Object, &replicaset); err != nil { + if err := json.Unmarshal(object.Request.Object, &replicaset); err != nil { return corev1.PodSpec{}, err } return *replicaset.Spec.Template.Spec, nil case "apps.v1.StatefulSet": statefulset := appsv1.StatefulSet{} - if err := easyjson.Unmarshal(object.Request.Object, &statefulset); err != nil { + if err := json.Unmarshal(object.Request.Object, &statefulset); err != nil { return corev1.PodSpec{}, err } return *statefulset.Spec.Template.Spec, nil case "apps.v1.DaemonSet": daemonset := appsv1.DaemonSet{} - if err := easyjson.Unmarshal(object.Request.Object, &daemonset); err != nil { + if err := json.Unmarshal(object.Request.Object, &daemonset); err != nil { return corev1.PodSpec{}, err } return *daemonset.Spec.Template.Spec, nil case "v1.ReplicationController": replicationController := corev1.ReplicationController{} - if err := easyjson.Unmarshal(object.Request.Object, &replicationController); err != nil { + if err := json.Unmarshal(object.Request.Object, &replicationController); err != nil { return corev1.PodSpec{}, err } return *replicationController.Spec.Template.Spec, nil case "batch.v1.CronJob": cronjob := batchv1.CronJob{} - if err := easyjson.Unmarshal(object.Request.Object, &cronjob); err != nil { + if err := json.Unmarshal(object.Request.Object, &cronjob); err != nil { return corev1.PodSpec{}, err } return *cronjob.Spec.JobTemplate.Spec.Template.Spec, nil case "batch.v1.Job": job := batchv1.Job{} - if err := easyjson.Unmarshal(object.Request.Object, &job); err != nil { + if err := json.Unmarshal(object.Request.Object, &job); err != nil { return corev1.PodSpec{}, err } return *job.Spec.Template.Spec, nil case "v1.Pod": pod := corev1.Pod{} - if err := easyjson.Unmarshal(object.Request.Object, &pod); err != nil { + if err := json.Unmarshal(object.Request.Object, &pod); err != nil { return corev1.PodSpec{}, err } return *pod.Spec, nil diff --git a/vendor/github.com/kubewarden/policy-sdk-go/protocol/types.go b/vendor/github.com/kubewarden/policy-sdk-go/protocol/types.go index dff41e5..0315222 100644 --- a/vendor/github.com/kubewarden/policy-sdk-go/protocol/types.go +++ b/vendor/github.com/kubewarden/policy-sdk-go/protocol/types.go @@ -1,12 +1,9 @@ package protocol import ( - "github.com/mailru/easyjson" + "encoding/json" ) -// Note: all the types defined inside of this file will get the easyjson -// interface contract be generated by `make generate-easyjson` - // Structure defining the response given when validating a request type ValidationResponse struct { Accepted bool `json:"accepted"` @@ -33,9 +30,9 @@ type ValidationRequest struct { // // Note, the attributes holds the unmarshalled []bytes as found inside of // original JSON object. - // This can then be parsed using `easyjson.Unmarshal()` into a proper - // type that implements the easyjson interfaces. - Settings easyjson.RawMessage `json:"settings"` + // This can then be parsed using `json.Unmarshal()` into a proper + // type that implements the json interfaces. + Settings json.RawMessage `json:"settings"` } // Kubernetes' [AdmissionReview](https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/) @@ -103,17 +100,17 @@ type KubernetesAdmissionRequest struct { // // Note, the attributes holds the unmarshalled []bytes as found inside of // original JSON object. - // This can then be parsed using `easyjson.Unmarshal()` into a proper - // type that implements the easyjson interfaces. - Object easyjson.RawMessage `json:"object"` + // This can then be parsed using `json.Unmarshal()` into a proper + // type that implements the json interfaces. + Object json.RawMessage `json:"object"` // OldObject is the existing object. Only populated for DELETE and UPDATE requests. // // Note, the attributes holds the unmarshalled []bytes as found inside of // original JSON object. - // This can then be parsed using `easyjson.Unmarshal()` into a proper - // type that implements the easyjson interfaces. - OldObject easyjson.RawMessage `json:"oldObject"` + // This can then be parsed using `json.Unmarshal()` into a proper + // type that implements the json interfaces. + OldObject json.RawMessage `json:"oldObject"` // DryRun indicates that modifications will definitely not be persisted for this request. // Defaults to false. @@ -127,9 +124,9 @@ type KubernetesAdmissionRequest struct { // // Note, the attributes holds the unmarshalled []bytes as found inside of // original JSON object. - // This can then be parsed using `easyjson.Unmarshal()` into a proper - // type that implements the easyjson interfaces. - Options easyjson.RawMessage `json:"options"` + // This can then be parsed using `json.Unmarshal()` into a proper + // type that implements the json interfaces. + Options json.RawMessage `json:"options"` } // GroupVersionKind unambiguously identifies a kind @@ -152,7 +149,7 @@ type UserInfo struct { Groups []string `json:"groups"` // Note, the attributes holds the unmarshalled []bytes as found inside of // original JSON object. - // This can then be parsed using `easyjson.Unmarshal()` into a proper - // type that implements the easyjson interfaces. - Extra easyjson.RawMessage `json:"extra,omitempty"` + // This can then be parsed using `json.Unmarshal()` into a proper + // type that implements the json interfaces. + Extra json.RawMessage `json:"extra,omitempty"` } diff --git a/vendor/github.com/kubewarden/policy-sdk-go/protocol/types_easyjson.go b/vendor/github.com/kubewarden/policy-sdk-go/protocol/types_easyjson.go deleted file mode 100644 index 35d7203..0000000 --- a/vendor/github.com/kubewarden/policy-sdk-go/protocol/types_easyjson.go +++ /dev/null @@ -1,724 +0,0 @@ -// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. - -package protocol - -import ( - json "encoding/json" - easyjson "github.com/mailru/easyjson" - jlexer "github.com/mailru/easyjson/jlexer" - jwriter "github.com/mailru/easyjson/jwriter" -) - -// suppress unused package warning -var ( - _ *json.RawMessage - _ *jlexer.Lexer - _ *jwriter.Writer - _ easyjson.Marshaler -) - -func easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol(in *jlexer.Lexer, out *ValidationResponse) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "accepted": - out.Accepted = bool(in.Bool()) - case "message": - if in.IsNull() { - in.Skip() - out.Message = nil - } else { - if out.Message == nil { - out.Message = new(string) - } - *out.Message = string(in.String()) - } - case "code": - if in.IsNull() { - in.Skip() - out.Code = nil - } else { - if out.Code == nil { - out.Code = new(uint16) - } - *out.Code = uint16(in.Uint16()) - } - case "mutated_object": - if m, ok := out.MutatedObject.(easyjson.Unmarshaler); ok { - m.UnmarshalEasyJSON(in) - } else if m, ok := out.MutatedObject.(json.Unmarshaler); ok { - _ = m.UnmarshalJSON(in.Raw()) - } else { - out.MutatedObject = in.Interface() - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol(out *jwriter.Writer, in ValidationResponse) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"accepted\":" - out.RawString(prefix[1:]) - out.Bool(bool(in.Accepted)) - } - if in.Message != nil { - const prefix string = ",\"message\":" - out.RawString(prefix) - out.String(string(*in.Message)) - } - if in.Code != nil { - const prefix string = ",\"code\":" - out.RawString(prefix) - out.Uint16(uint16(*in.Code)) - } - if in.MutatedObject != nil { - const prefix string = ",\"mutated_object\":" - out.RawString(prefix) - if m, ok := in.MutatedObject.(easyjson.Marshaler); ok { - m.MarshalEasyJSON(out) - } else if m, ok := in.MutatedObject.(json.Marshaler); ok { - out.Raw(m.MarshalJSON()) - } else { - out.Raw(json.Marshal(in.MutatedObject)) - } - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ValidationResponse) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ValidationResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ValidationResponse) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ValidationResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol(l, v) -} -func easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol1(in *jlexer.Lexer, out *ValidationRequest) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "request": - (out.Request).UnmarshalEasyJSON(in) - case "settings": - (out.Settings).UnmarshalEasyJSON(in) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol1(out *jwriter.Writer, in ValidationRequest) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"request\":" - out.RawString(prefix[1:]) - (in.Request).MarshalEasyJSON(out) - } - { - const prefix string = ",\"settings\":" - out.RawString(prefix) - (in.Settings).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v ValidationRequest) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol1(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v ValidationRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol1(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *ValidationRequest) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol1(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *ValidationRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol1(l, v) -} -func easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol2(in *jlexer.Lexer, out *UserInfo) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "username": - out.Username = string(in.String()) - case "groups": - if in.IsNull() { - in.Skip() - out.Groups = nil - } else { - in.Delim('[') - if out.Groups == nil { - if !in.IsDelim(']') { - out.Groups = make([]string, 0, 4) - } else { - out.Groups = []string{} - } - } else { - out.Groups = (out.Groups)[:0] - } - for !in.IsDelim(']') { - var v1 string - v1 = string(in.String()) - out.Groups = append(out.Groups, v1) - in.WantComma() - } - in.Delim(']') - } - case "extra": - (out.Extra).UnmarshalEasyJSON(in) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol2(out *jwriter.Writer, in UserInfo) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"username\":" - out.RawString(prefix[1:]) - out.String(string(in.Username)) - } - { - const prefix string = ",\"groups\":" - out.RawString(prefix) - if in.Groups == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { - out.RawString("null") - } else { - out.RawByte('[') - for v2, v3 := range in.Groups { - if v2 > 0 { - out.RawByte(',') - } - out.String(string(v3)) - } - out.RawByte(']') - } - } - if (in.Extra).IsDefined() { - const prefix string = ",\"extra\":" - out.RawString(prefix) - (in.Extra).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v UserInfo) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol2(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v UserInfo) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol2(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *UserInfo) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol2(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *UserInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol2(l, v) -} -func easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol3(in *jlexer.Lexer, out *SettingsValidationResponse) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "valid": - out.Valid = bool(in.Bool()) - case "message": - if in.IsNull() { - in.Skip() - out.Message = nil - } else { - if out.Message == nil { - out.Message = new(string) - } - *out.Message = string(in.String()) - } - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol3(out *jwriter.Writer, in SettingsValidationResponse) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"valid\":" - out.RawString(prefix[1:]) - out.Bool(bool(in.Valid)) - } - if in.Message != nil { - const prefix string = ",\"message\":" - out.RawString(prefix) - out.String(string(*in.Message)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v SettingsValidationResponse) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol3(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v SettingsValidationResponse) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol3(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *SettingsValidationResponse) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol3(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *SettingsValidationResponse) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol3(l, v) -} -func easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol4(in *jlexer.Lexer, out *KubernetesAdmissionRequest) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "uid": - out.Uid = string(in.String()) - case "kind": - (out.Kind).UnmarshalEasyJSON(in) - case "resource": - (out.Resource).UnmarshalEasyJSON(in) - case "subResource": - out.SubResource = string(in.String()) - case "requestKind": - (out.RequestKind).UnmarshalEasyJSON(in) - case "requestResource": - (out.RequestResource).UnmarshalEasyJSON(in) - case "requestSubResource": - out.RequestSubResource = string(in.String()) - case "name": - out.Name = string(in.String()) - case "namespace": - out.Namespace = string(in.String()) - case "operation": - out.Operation = string(in.String()) - case "userInfo": - (out.UserInfo).UnmarshalEasyJSON(in) - case "object": - (out.Object).UnmarshalEasyJSON(in) - case "oldObject": - (out.OldObject).UnmarshalEasyJSON(in) - case "dryRun": - out.DryRun = bool(in.Bool()) - case "options": - (out.Options).UnmarshalEasyJSON(in) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol4(out *jwriter.Writer, in KubernetesAdmissionRequest) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"uid\":" - out.RawString(prefix[1:]) - out.String(string(in.Uid)) - } - { - const prefix string = ",\"kind\":" - out.RawString(prefix) - (in.Kind).MarshalEasyJSON(out) - } - { - const prefix string = ",\"resource\":" - out.RawString(prefix) - (in.Resource).MarshalEasyJSON(out) - } - { - const prefix string = ",\"subResource\":" - out.RawString(prefix) - out.String(string(in.SubResource)) - } - { - const prefix string = ",\"requestKind\":" - out.RawString(prefix) - (in.RequestKind).MarshalEasyJSON(out) - } - { - const prefix string = ",\"requestResource\":" - out.RawString(prefix) - (in.RequestResource).MarshalEasyJSON(out) - } - { - const prefix string = ",\"requestSubResource\":" - out.RawString(prefix) - out.String(string(in.RequestSubResource)) - } - { - const prefix string = ",\"name\":" - out.RawString(prefix) - out.String(string(in.Name)) - } - { - const prefix string = ",\"namespace\":" - out.RawString(prefix) - out.String(string(in.Namespace)) - } - { - const prefix string = ",\"operation\":" - out.RawString(prefix) - out.String(string(in.Operation)) - } - { - const prefix string = ",\"userInfo\":" - out.RawString(prefix) - (in.UserInfo).MarshalEasyJSON(out) - } - { - const prefix string = ",\"object\":" - out.RawString(prefix) - (in.Object).MarshalEasyJSON(out) - } - { - const prefix string = ",\"oldObject\":" - out.RawString(prefix) - (in.OldObject).MarshalEasyJSON(out) - } - { - const prefix string = ",\"dryRun\":" - out.RawString(prefix) - out.Bool(bool(in.DryRun)) - } - { - const prefix string = ",\"options\":" - out.RawString(prefix) - (in.Options).MarshalEasyJSON(out) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v KubernetesAdmissionRequest) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol4(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v KubernetesAdmissionRequest) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol4(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *KubernetesAdmissionRequest) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol4(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *KubernetesAdmissionRequest) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol4(l, v) -} -func easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol5(in *jlexer.Lexer, out *GroupVersionResource) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "group": - out.Group = string(in.String()) - case "version": - out.Version = string(in.String()) - case "kind": - out.Kind = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol5(out *jwriter.Writer, in GroupVersionResource) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"group\":" - out.RawString(prefix[1:]) - out.String(string(in.Group)) - } - { - const prefix string = ",\"version\":" - out.RawString(prefix) - out.String(string(in.Version)) - } - { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GroupVersionResource) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol5(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GroupVersionResource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol5(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GroupVersionResource) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol5(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GroupVersionResource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol5(l, v) -} -func easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol6(in *jlexer.Lexer, out *GroupVersionKind) { - isTopLevel := in.IsStart() - if in.IsNull() { - if isTopLevel { - in.Consumed() - } - in.Skip() - return - } - in.Delim('{') - for !in.IsDelim('}') { - key := in.UnsafeFieldName(false) - in.WantColon() - if in.IsNull() { - in.Skip() - in.WantComma() - continue - } - switch key { - case "group": - out.Group = string(in.String()) - case "version": - out.Version = string(in.String()) - case "kind": - out.Kind = string(in.String()) - default: - in.SkipRecursive() - } - in.WantComma() - } - in.Delim('}') - if isTopLevel { - in.Consumed() - } -} -func easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol6(out *jwriter.Writer, in GroupVersionKind) { - out.RawByte('{') - first := true - _ = first - { - const prefix string = ",\"group\":" - out.RawString(prefix[1:]) - out.String(string(in.Group)) - } - { - const prefix string = ",\"version\":" - out.RawString(prefix) - out.String(string(in.Version)) - } - { - const prefix string = ",\"kind\":" - out.RawString(prefix) - out.String(string(in.Kind)) - } - out.RawByte('}') -} - -// MarshalJSON supports json.Marshaler interface -func (v GroupVersionKind) MarshalJSON() ([]byte, error) { - w := jwriter.Writer{} - easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol6(&w, v) - return w.Buffer.BuildBytes(), w.Error -} - -// MarshalEasyJSON supports easyjson.Marshaler interface -func (v GroupVersionKind) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6601e8cdEncodeGithubComKubewardenPolicySdkGoProtocol6(w, v) -} - -// UnmarshalJSON supports json.Unmarshaler interface -func (v *GroupVersionKind) UnmarshalJSON(data []byte) error { - r := jlexer.Lexer{Data: data} - easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol6(&r, v) - return r.Error() -} - -// UnmarshalEasyJSON supports easyjson.Unmarshaler interface -func (v *GroupVersionKind) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6601e8cdDecodeGithubComKubewardenPolicySdkGoProtocol6(l, v) -} diff --git a/vendor/github.com/kubewarden/policy-sdk-go/testing/helpers.go b/vendor/github.com/kubewarden/policy-sdk-go/testing/helpers.go index ae830f2..c1133b4 100644 --- a/vendor/github.com/kubewarden/policy-sdk-go/testing/helpers.go +++ b/vendor/github.com/kubewarden/policy-sdk-go/testing/helpers.go @@ -3,26 +3,27 @@ package testing import ( "os" + "encoding/json" + kubewarden_protocol "github.com/kubewarden/policy-sdk-go/protocol" - "github.com/mailru/easyjson" ) // BuildValidationRequestFromFixture creates the payload for the invocation of the `validate` // function. // * `req_fixture`: path to the json file with a recorded requst to evaluate -// * `settings`: instance of policy settings. Must be serializable to JSON using easyjson -func BuildValidationRequestFromFixture(req_fixture string, settings easyjson.Marshaler) ([]byte, error) { +// * `settings`: instance of policy settings. Must be serializable to JSON using json +func BuildValidationRequestFromFixture(req_fixture string, settings interface{}) ([]byte, error) { kubeAdmissionReqRaw, err := os.ReadFile(req_fixture) if err != nil { return nil, err } kubeAdmissionReq := kubewarden_protocol.KubernetesAdmissionRequest{} - if err := easyjson.Unmarshal(kubeAdmissionReqRaw, &kubeAdmissionReq); err != nil { + if err := json.Unmarshal(kubeAdmissionReqRaw, &kubeAdmissionReq); err != nil { return nil, err } - settingsRaw, err := easyjson.Marshal(settings) + settingsRaw, err := json.Marshal(settings) if err != nil { return nil, err } @@ -32,15 +33,15 @@ func BuildValidationRequestFromFixture(req_fixture string, settings easyjson.Mar Settings: settingsRaw, } - return easyjson.Marshal(validationRequest) + return json.Marshal(validationRequest) } // BuildValidationRequest creates the payload for the invocation of the `validate` // function. -// * `object`: instance of the object. Must be serializable to JSON using easyjson -// * `settings`: instance of policy settings. Must be serializable to JSON using easyjson -func BuildValidationRequest(object, settings easyjson.Marshaler) ([]byte, error) { - objectRaw, err := easyjson.Marshal(object) +// * `object`: instance of the object. Must be serializable to JSON using json +// * `settings`: instance of policy settings. Must be serializable to JSON using json +func BuildValidationRequest(object, settings interface{}) ([]byte, error) { + objectRaw, err := json.Marshal(object) if err != nil { return nil, err } @@ -49,7 +50,7 @@ func BuildValidationRequest(object, settings easyjson.Marshaler) ([]byte, error) Object: objectRaw, } - settingsRaw, err := easyjson.Marshal(settings) + settingsRaw, err := json.Marshal(settings) if err != nil { return nil, err } @@ -59,5 +60,5 @@ func BuildValidationRequest(object, settings easyjson.Marshaler) ([]byte, error) Settings: settingsRaw, } - return easyjson.Marshal(validationRequest) + return json.Marshal(validationRequest) } diff --git a/vendor/modules.txt b/vendor/modules.txt index a18e4b8..1515b53 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -7,8 +7,8 @@ github.com/francoispqt/gojay # github.com/francoispqt/onelog v0.0.0-20190306043706-8c2bb31b10a4 ## explicit github.com/francoispqt/onelog -# github.com/go-openapi/strfmt v0.21.3 => github.com/kubewarden/strfmt v0.1.2 -## explicit; go 1.17 +# github.com/go-openapi/strfmt v0.21.3 => github.com/kubewarden/strfmt v0.1.3 +## explicit; go 1.20 github.com/go-openapi/strfmt # github.com/josharian/intern v1.0.0 ## explicit; go 1.5 @@ -16,7 +16,7 @@ github.com/josharian/intern # github.com/kubewarden/gjson v1.7.2 ## explicit; go 1.12 github.com/kubewarden/gjson -# github.com/kubewarden/k8s-objects v1.24.0-kw7 +# github.com/kubewarden/k8s-objects v1.27.0-kw2 ## explicit; go 1.17 github.com/kubewarden/k8s-objects/api/apps/v1 github.com/kubewarden/k8s-objects/api/batch/v1 @@ -25,7 +25,7 @@ github.com/kubewarden/k8s-objects/apimachinery/pkg/api/resource github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1 github.com/kubewarden/k8s-objects/apimachinery/pkg/runtime/schema github.com/kubewarden/k8s-objects/apimachinery/pkg/util/intstr -# github.com/kubewarden/policy-sdk-go v0.4.1 +# github.com/kubewarden/policy-sdk-go v0.5.0 ## explicit; go 1.20 github.com/kubewarden/policy-sdk-go github.com/kubewarden/policy-sdk-go/constants @@ -46,4 +46,4 @@ github.com/tidwall/pretty # github.com/wapc/wapc-guest-tinygo v0.3.3 ## explicit; go 1.16 github.com/wapc/wapc-guest-tinygo -# github.com/go-openapi/strfmt => github.com/kubewarden/strfmt v0.1.2 +# github.com/go-openapi/strfmt => github.com/kubewarden/strfmt v0.1.3