From bc32d7bd03d10b0d0c7d6aedf5153b911f79f8ef Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 15 May 2023 00:33:45 +0000 Subject: [PATCH] fix(deps): update all non-major dependencies --- .github/workflows/release.yml | 4 +- .github/workflows/test.yml | 2 +- go.mod | 4 +- go.sum | 4 + .../api/apps/v1/controller_revision_gvk.go | 18 ++ .../apps/v1/controller_revision_list_gvk.go | 18 ++ .../k8s-objects/api/apps/v1/daemon_set_gvk.go | 18 ++ .../api/apps/v1/daemon_set_list_gvk.go | 18 ++ .../k8s-objects/api/apps/v1/deployment_gvk.go | 18 ++ .../api/apps/v1/deployment_list_gvk.go | 18 ++ .../k8s-objects/api/apps/v1/group_info.go | 16 + .../api/apps/v1/replica_set_gvk.go | 18 ++ .../api/apps/v1/replica_set_list_gvk.go | 18 ++ .../api/apps/v1/stateful_set_gvk.go | 18 ++ .../api/apps/v1/stateful_set_list_gvk.go | 18 ++ .../k8s-objects/api/batch/v1/cron_job_gvk.go | 18 ++ .../api/batch/v1/cron_job_list_gvk.go | 18 ++ .../k8s-objects/api/batch/v1/group_info.go | 16 + .../k8s-objects/api/batch/v1/job_gvk.go | 18 ++ .../k8s-objects/api/batch/v1/job_list_gvk.go | 18 ++ ... aws_elastic_block_store_volume_source.go} | 2 +- ...tic_block_store_volume_source_easyjson.go} | 18 +- .../api/core/v1/azure_disk_volume_source.go | 2 +- .../v1/azure_disk_volume_source_easyjson.go | 6 +- .../k8s-objects/api/core/v1/binding_gvk.go | 18 ++ ...go => ceph_fs_persistent_volume_source.go} | 0 ...h_fs_persistent_volume_source_easyjson.go} | 20 +- ...ume_source.go => ceph_fs_volume_source.go} | 0 ...n.go => ceph_fs_volume_source_easyjson.go} | 20 +- .../v1/cinder_persistent_volume_source.go | 2 +- ...inder_persistent_volume_source_easyjson.go | 6 +- .../api/core/v1/cinder_volume_source.go | 2 +- .../core/v1/cinder_volume_source_easyjson.go | 6 +- .../api/core/v1/component_status_gvk.go | 18 ++ .../api/core/v1/component_status_list_gvk.go | 18 ++ .../k8s-objects/api/core/v1/config_map_gvk.go | 18 ++ .../api/core/v1/config_map_list_gvk.go | 18 ++ .../api/core/v1/container_easyjson.go | 24 +- ...rce.go => csi_persistent_volume_source.go} | 2 +- ... csi_persistent_volume_source_easyjson.go} | 38 +-- ..._volume_source.go => csi_volume_source.go} | 2 +- ...yjson.go => csi_volume_source_easyjson.go} | 26 +- .../k8s-objects/api/core/v1/endpoints_gvk.go | 18 ++ .../api/core/v1/endpoints_list_gvk.go | 18 ++ .../core/v1/ephemeral_container_easyjson.go | 24 +- .../k8s-objects/api/core/v1/event_gvk.go | 18 ++ .../k8s-objects/api/core/v1/event_list_gvk.go | 18 ++ ...c_volume_source.go => fc_volume_source.go} | 2 +- ...syjson.go => fc_volume_source_easyjson.go} | 18 +- .../core/v1/flex_persistent_volume_source.go | 2 +- .../flex_persistent_volume_source_easyjson.go | 6 +- .../api/core/v1/flex_volume_source.go | 2 +- .../core/v1/flex_volume_source_easyjson.go | 6 +- ...o => gce_persistent_disk_volume_source.go} | 2 +- ...persistent_disk_volume_source_easyjson.go} | 18 +- .../k8s-objects/api/core/v1/group_info.go | 16 + .../v1/{g_rpc_action.go => grpc_action.go} | 2 +- ...on_easyjson.go => grpc_action_easyjson.go} | 12 +- ...e.go => iscsi_persistent_volume_source.go} | 4 +- ...scsi_persistent_volume_source_easyjson.go} | 32 +- ...olume_source.go => iscsi_volume_source.go} | 4 +- ...son.go => iscsi_volume_source_easyjson.go} | 32 +- .../api/core/v1/limit_range_gvk.go | 18 ++ .../api/core/v1/limit_range_list_gvk.go | 18 ++ .../api/core/v1/local_volume_source.go | 2 +- .../core/v1/local_volume_source_easyjson.go | 6 +- .../k8s-objects/api/core/v1/namespace_gvk.go | 18 ++ .../api/core/v1/namespace_list_gvk.go | 18 ++ ..._volume_source.go => nfs_volume_source.go} | 0 ...yjson.go => nfs_volume_source_easyjson.go} | 12 +- .../k8s-objects/api/core/v1/node_easyjson.go | 12 +- .../k8s-objects/api/core/v1/node_gvk.go | 18 ++ .../k8s-objects/api/core/v1/node_list_gvk.go | 18 ++ .../api/core/v1/node_status_easyjson.go | 12 +- .../api/core/v1/node_system_info.go | 2 +- .../api/core/v1/node_system_info_easyjson.go | 12 +- .../core/v1/persistent_volume_claim_gvk.go | 18 ++ .../v1/persistent_volume_claim_list_gvk.go | 18 ++ .../api/core/v1/persistent_volume_easyjson.go | 120 +++---- .../api/core/v1/persistent_volume_gvk.go | 18 ++ .../api/core/v1/persistent_volume_list_gvk.go | 18 ++ .../api/core/v1/persistent_volume_spec.go | 14 +- .../v1/persistent_volume_spec_easyjson.go | 120 +++---- .../photon_persistent_disk_volume_source.go | 2 +- ..._persistent_disk_volume_source_easyjson.go | 6 +- .../k8s-objects/api/core/v1/pod_easyjson.go | 150 ++++----- .../k8s-objects/api/core/v1/pod_gvk.go | 18 ++ .../k8s-objects/api/core/v1/pod_list_gvk.go | 18 ++ .../api/core/v1/{pod_o_s.go => pod_os.go} | 0 ...pod_o_s_easyjson.go => pod_os_easyjson.go} | 12 +- .../api/core/v1/pod_security_context.go | 6 +- .../core/v1/pod_security_context_easyjson.go | 24 +- .../k8s-objects/api/core/v1/pod_spec.go | 2 +- .../api/core/v1/pod_spec_easyjson.go | 126 ++++---- .../api/core/v1/pod_template_gvk.go | 18 ++ .../api/core/v1/pod_template_list_gvk.go | 18 ++ .../api/core/v1/portworx_volume_source.go | 2 +- .../v1/portworx_volume_source_easyjson.go | 6 +- .../k8s-objects/api/core/v1/probe.go | 2 +- .../k8s-objects/api/core/v1/probe_easyjson.go | 12 +- ...rce.go => rbd_persistent_volume_source.go} | 2 +- ... rbd_persistent_volume_source_easyjson.go} | 26 +- ..._volume_source.go => rbd_volume_source.go} | 2 +- ...yjson.go => rbd_volume_source_easyjson.go} | 18 +- .../api/core/v1/replication_controller_gvk.go | 18 ++ .../v1/replication_controller_list_gvk.go | 18 ++ .../api/core/v1/resource_quota_gvk.go | 18 ++ .../api/core/v1/resource_quota_list_gvk.go | 18 ++ ...o => scale_io_persistent_volume_source.go} | 2 +- ...e_io_persistent_volume_source_easyjson.go} | 26 +- ...me_source.go => scale_io_volume_source.go} | 2 +- ....go => scale_io_volume_source_easyjson.go} | 18 +- ...e_linux_options.go => se_linux_options.go} | 0 ...syjson.go => se_linux_options_easyjson.go} | 12 +- .../k8s-objects/api/core/v1/secret_gvk.go | 18 ++ .../api/core/v1/secret_list_gvk.go | 18 ++ .../api/core/v1/security_context.go | 2 +- .../api/core/v1/security_context_easyjson.go | 12 +- .../api/core/v1/service_account_gvk.go | 18 ++ .../api/core/v1/service_account_list_gvk.go | 18 ++ .../k8s-objects/api/core/v1/service_gvk.go | 18 ++ .../api/core/v1/service_list_gvk.go | 18 ++ ...=> storage_os_persistent_volume_source.go} | 2 +- ...e_os_persistent_volume_source_easyjson.go} | 18 +- ..._source.go => storage_os_volume_source.go} | 2 +- ...o => storage_os_volume_source_easyjson.go} | 18 +- .../k8s-objects/api/core/v1/volume.go | 14 +- .../api/core/v1/volume_easyjson.go | 90 +++--- .../v1/vsphere_virtual_disk_volume_source.go | 2 +- ...ere_virtual_disk_volume_source_easyjson.go | 6 +- .../pkg/apis/meta/v1/api_group_gvk.go | 18 ++ .../pkg/apis/meta/v1/api_group_list_gvk.go | 18 ++ .../pkg/apis/meta/v1/api_resource_list_gvk.go | 18 ++ .../pkg/apis/meta/v1/api_versions_gvk.go | 18 ++ .../pkg/apis/meta/v1/fields_v1.go | 15 - .../pkg/apis/meta/v1/fields_v1_easyjson.go | 18 -- .../pkg/apis/meta/v1/group_info.go | 16 + .../apimachinery/pkg/apis/meta/v1/patch.go | 11 - .../pkg/apis/meta/v1/patch_easyjson.go | 18 -- ..._r.go => server_address_by_client_cidr.go} | 0 ...server_address_by_client_cidr_easyjson.go} | 12 +- .../pkg/apis/meta/v1/status_gvk.go | 18 ++ .../pkg/runtime/schema/group_version.go | 306 ++++++++++++++++++ .../pkg/runtime/schema/interfaces.go | 24 ++ .../kubewarden/policy-sdk-go/Makefile | 7 +- vendor/modules.txt | 5 +- 146 files changed, 1992 insertions(+), 716 deletions(-) create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/group_info.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/group_info.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_list_gvk.go rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{a_w_s_elastic_block_store_volume_source.go => aws_elastic_block_store_volume_source.go} (97%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{a_w_s_elastic_block_store_volume_source_easyjson.go => aws_elastic_block_store_volume_source_easyjson.go} (84%) create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/binding_gvk.go rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{ceph_f_s_persistent_volume_source.go => ceph_fs_persistent_volume_source.go} (100%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{ceph_f_s_persistent_volume_source_easyjson.go => ceph_fs_persistent_volume_source_easyjson.go} (87%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{ceph_f_s_volume_source.go => ceph_fs_volume_source.go} (100%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{ceph_f_s_volume_source_easyjson.go => ceph_fs_volume_source_easyjson.go} (86%) create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_status_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_status_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_list_gvk.go rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{c_s_i_persistent_volume_source.go => csi_persistent_volume_source.go} (98%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{c_s_i_persistent_volume_source_easyjson.go => csi_persistent_volume_source_easyjson.go} (84%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{c_s_i_volume_source.go => csi_volume_source.go} (97%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{c_s_i_volume_source_easyjson.go => csi_volume_source_easyjson.go} (84%) create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_list_gvk.go rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{f_c_volume_source.go => fc_volume_source.go} (96%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{f_c_volume_source_easyjson.go => fc_volume_source_easyjson.go} (86%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{g_c_e_persistent_disk_volume_source.go => gce_persistent_disk_volume_source.go} (97%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{g_c_e_persistent_disk_volume_source_easyjson.go => gce_persistent_disk_volume_source_easyjson.go} (84%) create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/group_info.go rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{g_rpc_action.go => grpc_action.go} (95%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{g_rpc_action_easyjson.go => grpc_action_easyjson.go} (80%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{i_s_c_s_i_persistent_volume_source.go => iscsi_persistent_volume_source.go} (95%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{i_s_c_s_i_persistent_volume_source_easyjson.go => iscsi_persistent_volume_source_easyjson.go} (87%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{i_s_c_s_i_volume_source.go => iscsi_volume_source.go} (95%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{i_s_c_s_i_volume_source_easyjson.go => iscsi_volume_source_easyjson.go} (87%) create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_list_gvk.go rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{n_f_s_volume_source.go => nfs_volume_source.go} (100%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{n_f_s_volume_source_easyjson.go => nfs_volume_source_easyjson.go} (86%) create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_list_gvk.go rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{pod_o_s.go => pod_os.go} (100%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{pod_o_s_easyjson.go => pod_os_easyjson.go} (82%) create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_list_gvk.go rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{r_b_d_persistent_volume_source.go => rbd_persistent_volume_source.go} (98%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{r_b_d_persistent_volume_source_easyjson.go => rbd_persistent_volume_source_easyjson.go} (87%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{r_b_d_volume_source.go => rbd_volume_source.go} (97%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{r_b_d_volume_source_easyjson.go => rbd_volume_source_easyjson.go} (89%) create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_list_gvk.go rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{scale_i_o_persistent_volume_source.go => scale_io_persistent_volume_source.go} (97%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{scale_i_o_persistent_volume_source_easyjson.go => scale_io_persistent_volume_source_easyjson.go} (87%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{scale_i_o_volume_source.go => scale_io_volume_source.go} (97%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{scale_i_o_volume_source_easyjson.go => scale_io_volume_source_easyjson.go} (89%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{s_e_linux_options.go => se_linux_options.go} (100%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{s_e_linux_options_easyjson.go => se_linux_options_easyjson.go} (86%) create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_list_gvk.go rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{storage_o_s_persistent_volume_source.go => storage_os_persistent_volume_source.go} (97%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{storage_o_s_persistent_volume_source_easyjson.go => storage_os_persistent_volume_source_easyjson.go} (82%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{storage_o_s_volume_source.go => storage_os_volume_source.go} (97%) rename vendor/github.com/kubewarden/k8s-objects/api/core/v1/{storage_o_s_volume_source_easyjson.go => storage_os_volume_source_easyjson.go} (82%) create mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_group_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_group_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_resource_list_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_versions_gvk.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/fields_v1.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/fields_v1_easyjson.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/group_info.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/patch.go delete mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/patch_easyjson.go rename vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/{server_address_by_client_c_id_r.go => server_address_by_client_cidr.go} (100%) rename vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/{server_address_by_client_c_id_r_easyjson.go => server_address_by_client_cidr_easyjson.go} (86%) create mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_gvk.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/runtime/schema/group_version.go create mode 100644 vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/runtime/schema/interfaces.go diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0ce07f8..680948a 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.3 + uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.1.4 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.3 + uses: kubewarden/github-actions/.github/workflows/reusable-release-policy-go.yml@v3.1.4 with: oci-target: ghcr.io/${{ github.repository_owner }}/policies/sysctl-psp diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 18eaed2..a4d4ddc 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.3 + uses: kubewarden/github-actions/.github/workflows/reusable-test-policy-go.yml@v3.1.4 diff --git a/go.mod b/go.mod index 2ee588b..643c04d 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.3.0 + github.com/kubewarden/policy-sdk-go v0.4.0 github.com/mailru/easyjson v0.7.7 github.com/wapc/wapc-guest-tinygo v0.3.3 ) @@ -15,7 +15,7 @@ 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-kw4 // indirect + github.com/kubewarden/k8s-objects v1.24.0-kw7 // indirect github.com/tidwall/match v1.0.3 // indirect github.com/tidwall/pretty v1.0.2 // indirect ) diff --git a/go.sum b/go.sum index ab232ea..0e65b8e 100644 --- a/go.sum +++ b/go.sum @@ -12,8 +12,12 @@ github.com/kubewarden/gjson v1.7.2 h1:+cLRfPqyvjwrkgE68cGdNfUy1Z6L45DjvuFH9/ofwQ github.com/kubewarden/gjson v1.7.2/go.mod h1:jSlxpubGqBG5HHe4v8kwcc8z1JF2reJ7AJAUojw66AY= github.com/kubewarden/k8s-objects v1.24.0-kw4 h1:/XAEdK8uHUz+asM/PgUs1T4vgCN7d+tiDDb5azMOimo= 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/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/strfmt v0.1.2 h1:S0YUVkPeyUMikz8QssbMzfd1MC5K8ZqxLI2zfF8euMs= github.com/kubewarden/strfmt v0.1.2/go.mod h1:sqLlis8qlm4A4pnZsRyRjNxyH86fiM+7Ee7bO+uJk94= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision_gvk.go new file mode 100644 index 0000000..1c3967b --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision_gvk.go @@ -0,0 +1,18 @@ +// 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 *ControllerRevision) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "ControllerRevision" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision_list_gvk.go new file mode 100644 index 0000000..48dec85 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/controller_revision_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *ControllerRevisionList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "ControllerRevisionList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_gvk.go new file mode 100644 index 0000000..7da18fb --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_gvk.go @@ -0,0 +1,18 @@ +// 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 *DaemonSet) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "DaemonSet" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_list_gvk.go new file mode 100644 index 0000000..623002d --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/daemon_set_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *DaemonSetList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "DaemonSetList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_gvk.go new file mode 100644 index 0000000..09e7b9e --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_gvk.go @@ -0,0 +1,18 @@ +// 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 *Deployment) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "Deployment" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_list_gvk.go new file mode 100644 index 0000000..8dd58d6 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/deployment_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *DeploymentList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "DeploymentList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/group_info.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/group_info.go new file mode 100644 index 0000000..a4fb3c4 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/group_info.go @@ -0,0 +1,16 @@ +// Code generated by GroupVersionResource generator for getting GVK data. DO NOT EDIT. + +package v1 + +import "github.com/kubewarden/k8s-objects/apimachinery/pkg/runtime/schema" + +// GroupName is the group name use in this package +const GroupName = "apps" + +// SchemeGroupVersion is group version used to register these objects +var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} + +// Resource takes an unqualified resource and returns a Group qualified GroupResource +func Resource(resource string) schema.GroupResource { + return SchemeGroupVersion.WithResource(resource).GroupResource() +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_gvk.go new file mode 100644 index 0000000..49ffa35 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_gvk.go @@ -0,0 +1,18 @@ +// 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 *ReplicaSet) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "ReplicaSet" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_list_gvk.go new file mode 100644 index 0000000..036c559 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/replica_set_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *ReplicaSetList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "ReplicaSetList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_gvk.go new file mode 100644 index 0000000..fadc2b5 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_gvk.go @@ -0,0 +1,18 @@ +// 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 *StatefulSet) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "StatefulSet" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_list_gvk.go new file mode 100644 index 0000000..a9b20a5 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/apps/v1/stateful_set_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *StatefulSetList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "StatefulSetList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_gvk.go new file mode 100644 index 0000000..c14ad9b --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_gvk.go @@ -0,0 +1,18 @@ +// 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 *CronJob) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "CronJob" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_list_gvk.go new file mode 100644 index 0000000..6e2076c --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/cron_job_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *CronJobList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "CronJobList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/group_info.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/group_info.go new file mode 100644 index 0000000..f672a2d --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/group_info.go @@ -0,0 +1,16 @@ +// Code generated by GroupVersionResource generator for getting GVK data. DO NOT EDIT. + +package v1 + +import "github.com/kubewarden/k8s-objects/apimachinery/pkg/runtime/schema" + +// GroupName is the group name use in this package +const GroupName = "batch" + +// SchemeGroupVersion is group version used to register these objects +var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} + +// Resource takes an unqualified resource and returns a Group qualified GroupResource +func Resource(resource string) schema.GroupResource { + return SchemeGroupVersion.WithResource(resource).GroupResource() +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_gvk.go new file mode 100644 index 0000000..7b100da --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_gvk.go @@ -0,0 +1,18 @@ +// 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 *Job) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "Job" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_list_gvk.go new file mode 100644 index 0000000..4c8bc83 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/batch/v1/job_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *JobList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "JobList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/a_w_s_elastic_block_store_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/aws_elastic_block_store_volume_source.go similarity index 97% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/a_w_s_elastic_block_store_volume_source.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/aws_elastic_block_store_volume_source.go index 37096df..30d3075 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/a_w_s_elastic_block_store_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/aws_elastic_block_store_volume_source.go @@ -13,7 +13,7 @@ package v1 type AWSElasticBlockStoreVolumeSource struct { // 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 - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // 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). Partition int32 `json:"partition,omitempty"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/a_w_s_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 similarity index 84% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/a_w_s_elastic_block_store_volume_source_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/aws_elastic_block_store_volume_source_easyjson.go index 8134356..de55884 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/a_w_s_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 @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjson5a6ab3b0DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *AWSElasticBlockStoreVolumeSource) { +func easyjson65604c32DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *AWSElasticBlockStoreVolumeSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -37,7 +37,7 @@ func easyjson5a6ab3b0DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "partition": out.Partition = int32(in.Int32()) case "readOnly": @@ -62,15 +62,15 @@ func easyjson5a6ab3b0DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjson5a6ab3b0EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in AWSElasticBlockStoreVolumeSource) { +func easyjson65604c32EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in AWSElasticBlockStoreVolumeSource) { out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.Partition != 0 { const prefix string = ",\"partition\":" @@ -112,23 +112,23 @@ func easyjson5a6ab3b0EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v AWSElasticBlockStoreVolumeSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson5a6ab3b0EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjson65604c32EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v AWSElasticBlockStoreVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson5a6ab3b0EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjson65604c32EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *AWSElasticBlockStoreVolumeSource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson5a6ab3b0DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjson65604c32DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *AWSElasticBlockStoreVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson5a6ab3b0DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjson65604c32DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/azure_disk_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/azure_disk_volume_source.go index d50c25b..2d09ea0 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/azure_disk_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/azure_disk_volume_source.go @@ -22,7 +22,7 @@ type AzureDiskVolumeSource struct { DiskURI *string `json:"diskURI"` // 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. - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // 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 Kind string `json:"kind,omitempty"` 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 index c47811c..02cff83 100644 --- 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 @@ -59,7 +59,7 @@ func easyjsonC4f0b390DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex *out.DiskURI = string(in.String()) } case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "kind": out.Kind = string(in.String()) case "readOnly": @@ -107,10 +107,10 @@ func easyjsonC4f0b390EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W out.String(string(*in.DiskURI)) } } - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" out.RawString(prefix) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.Kind != "" { const prefix string = ",\"kind\":" diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/binding_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/binding_gvk.go new file mode 100644 index 0000000..f6c5110 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/binding_gvk.go @@ -0,0 +1,18 @@ +// 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 *Binding) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "Binding" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_f_s_persistent_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_persistent_volume_source.go similarity index 100% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_f_s_persistent_volume_source.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_persistent_volume_source.go diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_f_s_persistent_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_persistent_volume_source_easyjson.go similarity index 87% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_f_s_persistent_volume_source_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_persistent_volume_source_easyjson.go index 1dae4fa..01afaa6 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_f_s_persistent_volume_source_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_persistent_volume_source_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjson3fbfe1beDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *CephFSPersistentVolumeSource) { +func easyjsonB1662561DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *CephFSPersistentVolumeSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -73,7 +73,7 @@ func easyjson3fbfe1beDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex if out.SecretRef == nil { out.SecretRef = new(SecretReference) } - easyjson3fbfe1beDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) + easyjsonB1662561DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) } case "user": out.User = string(in.String()) @@ -87,7 +87,7 @@ func easyjson3fbfe1beDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjson3fbfe1beEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in CephFSPersistentVolumeSource) { +func easyjsonB1662561EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in CephFSPersistentVolumeSource) { out.RawByte('{') first := true _ = first @@ -125,7 +125,7 @@ func easyjson3fbfe1beEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W if in.SecretRef != nil { const prefix string = ",\"secretRef\":" out.RawString(prefix) - easyjson3fbfe1beEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) + easyjsonB1662561EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) } if in.User != "" { const prefix string = ",\"user\":" @@ -138,27 +138,27 @@ func easyjson3fbfe1beEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v CephFSPersistentVolumeSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson3fbfe1beEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjsonB1662561EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CephFSPersistentVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson3fbfe1beEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjsonB1662561EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CephFSPersistentVolumeSource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson3fbfe1beDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjsonB1662561DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CephFSPersistentVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson3fbfe1beDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjsonB1662561DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } -func easyjson3fbfe1beDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { +func easyjsonB1662561DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -191,7 +191,7 @@ func easyjson3fbfe1beDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Le in.Consumed() } } -func easyjson3fbfe1beEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { +func easyjsonB1662561EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { out.RawByte('{') first := true _ = first diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_f_s_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_volume_source.go similarity index 100% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_f_s_volume_source.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_volume_source.go diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_f_s_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_volume_source_easyjson.go similarity index 86% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_f_s_volume_source_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_volume_source_easyjson.go index 7b364d9..da4b361 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_f_s_volume_source_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/ceph_fs_volume_source_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonEbd22c56DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *CephFSVolumeSource) { +func easyjsonC3243cf3DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *CephFSVolumeSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -73,7 +73,7 @@ func easyjsonEbd22c56DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex if out.SecretRef == nil { out.SecretRef = new(LocalObjectReference) } - easyjsonEbd22c56DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) + easyjsonC3243cf3DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) } case "user": out.User = string(in.String()) @@ -87,7 +87,7 @@ func easyjsonEbd22c56DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjsonEbd22c56EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in CephFSVolumeSource) { +func easyjsonC3243cf3EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in CephFSVolumeSource) { out.RawByte('{') first := true _ = first @@ -125,7 +125,7 @@ func easyjsonEbd22c56EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W if in.SecretRef != nil { const prefix string = ",\"secretRef\":" out.RawString(prefix) - easyjsonEbd22c56EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) + easyjsonC3243cf3EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) } if in.User != "" { const prefix string = ",\"user\":" @@ -138,27 +138,27 @@ func easyjsonEbd22c56EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v CephFSVolumeSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonEbd22c56EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjsonC3243cf3EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CephFSVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonEbd22c56EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjsonC3243cf3EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CephFSVolumeSource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonEbd22c56DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjsonC3243cf3DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CephFSVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonEbd22c56DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjsonC3243cf3DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } -func easyjsonEbd22c56DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *LocalObjectReference) { +func easyjsonC3243cf3DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *LocalObjectReference) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -189,7 +189,7 @@ func easyjsonEbd22c56DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Le in.Consumed() } } -func easyjsonEbd22c56EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in LocalObjectReference) { +func easyjsonC3243cf3EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in LocalObjectReference) { out.RawByte('{') first := true _ = first diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/cinder_persistent_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/cinder_persistent_volume_source.go index 0f8e458..5b7d1d8 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/cinder_persistent_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/cinder_persistent_volume_source.go @@ -11,7 +11,7 @@ package v1 type CinderPersistentVolumeSource struct { // 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 - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // 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 ReadOnly bool `json:"readOnly,omitempty"` 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 index affccd3..afa746e 100644 --- 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 @@ -37,7 +37,7 @@ func easyjsonE02afdb4DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "readOnly": out.ReadOnly = bool(in.Bool()) case "secretRef": @@ -74,11 +74,11 @@ func easyjsonE02afdb4EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.ReadOnly { const prefix string = ",\"readOnly\":" diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/cinder_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/cinder_volume_source.go index e88c80b..49757b1 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/cinder_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/cinder_volume_source.go @@ -11,7 +11,7 @@ package v1 type CinderVolumeSource struct { // 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 - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // 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 ReadOnly bool `json:"readOnly,omitempty"` 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 index 1bbae36..4261e60 100644 --- 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 @@ -37,7 +37,7 @@ func easyjsonAdd05e34DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "readOnly": out.ReadOnly = bool(in.Bool()) case "secretRef": @@ -74,11 +74,11 @@ func easyjsonAdd05e34EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.ReadOnly { const prefix string = ",\"readOnly\":" diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_status_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_status_gvk.go new file mode 100644 index 0000000..b56a2a0 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_status_gvk.go @@ -0,0 +1,18 @@ +// 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 *ComponentStatus) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "ComponentStatus" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_status_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_status_list_gvk.go new file mode 100644 index 0000000..c4396f9 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/component_status_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *ComponentStatusList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "ComponentStatusList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_gvk.go new file mode 100644 index 0000000..1b85c18 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_gvk.go @@ -0,0 +1,18 @@ +// 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 *ConfigMap) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "ConfigMap" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_list_gvk.go new file mode 100644 index 0000000..9911f89 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/config_map_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *ConfigMapList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "ConfigMapList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} 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 index d9d4c66..d813817 100644 --- 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 @@ -823,12 +823,12 @@ func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV17(in *jlexer.Le case "seLinuxOptions": if in.IsNull() { in.Skip() - out.SeLinuxOptions = nil + out.SELinuxOptions = nil } else { - if out.SeLinuxOptions == nil { - out.SeLinuxOptions = new(SELinuxOptions) + if out.SELinuxOptions == nil { + out.SELinuxOptions = new(SELinuxOptions) } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV110(in, out.SeLinuxOptions) + easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV110(in, out.SELinuxOptions) } case "seccompProfile": if in.IsNull() { @@ -940,7 +940,7 @@ func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV17(out *jwriter. } out.Int64(int64(in.RunAsUser)) } - if in.SeLinuxOptions != nil { + if in.SELinuxOptions != nil { const prefix string = ",\"seLinuxOptions\":" if first { first = false @@ -948,7 +948,7 @@ func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV17(out *jwriter. } else { out.RawString(prefix) } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV110(out, *in.SeLinuxOptions) + easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV110(out, *in.SELinuxOptions) } if in.SeccompProfile != nil { const prefix string = ",\"seccompProfile\":" @@ -1456,12 +1456,12 @@ func easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Le case "grpc": if in.IsNull() { in.Skip() - out.Grpc = nil + out.GRPC = nil } else { - if out.Grpc == nil { - out.Grpc = new(GRPCAction) + if out.GRPC == nil { + out.GRPC = new(GRPCAction) } - easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV114(in, out.Grpc) + easyjson1dbef17bDecodeGithubComKubewardenK8sObjectsApiCoreV114(in, out.GRPC) } case "httpGet": if in.IsNull() { @@ -1523,7 +1523,7 @@ func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter. } out.Int32(int32(in.FailureThreshold)) } - if in.Grpc != nil { + if in.GRPC != nil { const prefix string = ",\"grpc\":" if first { first = false @@ -1531,7 +1531,7 @@ func easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter. } else { out.RawString(prefix) } - easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV114(out, *in.Grpc) + easyjson1dbef17bEncodeGithubComKubewardenK8sObjectsApiCoreV114(out, *in.GRPC) } if in.HTTPGet != nil { const prefix string = ",\"httpGet\":" diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/c_s_i_persistent_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_persistent_volume_source.go similarity index 98% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/c_s_i_persistent_volume_source.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_persistent_volume_source.go index 20cfdc6..23f01cf 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/c_s_i_persistent_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_persistent_volume_source.go @@ -21,7 +21,7 @@ type CSIPersistentVolumeSource struct { Driver *string `json:"driver"` // fsType to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,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/c_s_i_persistent_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_persistent_volume_source_easyjson.go similarity index 84% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/c_s_i_persistent_volume_source_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_persistent_volume_source_easyjson.go index 2a6a6c5..c02f4c8 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/c_s_i_persistent_volume_source_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_persistent_volume_source_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjson92d5e37cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *CSIPersistentVolumeSource) { +func easyjson9787651aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *CSIPersistentVolumeSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -44,7 +44,7 @@ func easyjson92d5e37cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex if out.ControllerExpandSecretRef == nil { out.ControllerExpandSecretRef = new(SecretReference) } - easyjson92d5e37cDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.ControllerExpandSecretRef) + easyjson9787651aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.ControllerExpandSecretRef) } case "controllerPublishSecretRef": if in.IsNull() { @@ -54,7 +54,7 @@ func easyjson92d5e37cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex if out.ControllerPublishSecretRef == nil { out.ControllerPublishSecretRef = new(SecretReference) } - easyjson92d5e37cDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.ControllerPublishSecretRef) + easyjson9787651aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.ControllerPublishSecretRef) } case "driver": if in.IsNull() { @@ -67,7 +67,7 @@ func easyjson92d5e37cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex *out.Driver = string(in.String()) } case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "nodePublishSecretRef": if in.IsNull() { in.Skip() @@ -76,7 +76,7 @@ func easyjson92d5e37cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex if out.NodePublishSecretRef == nil { out.NodePublishSecretRef = new(SecretReference) } - easyjson92d5e37cDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.NodePublishSecretRef) + easyjson9787651aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.NodePublishSecretRef) } case "nodeStageSecretRef": if in.IsNull() { @@ -86,7 +86,7 @@ func easyjson92d5e37cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex if out.NodeStageSecretRef == nil { out.NodeStageSecretRef = new(SecretReference) } - easyjson92d5e37cDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.NodeStageSecretRef) + easyjson9787651aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.NodeStageSecretRef) } case "readOnly": out.ReadOnly = bool(in.Bool()) @@ -130,7 +130,7 @@ func easyjson92d5e37cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjson92d5e37cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in CSIPersistentVolumeSource) { +func easyjson9787651aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in CSIPersistentVolumeSource) { out.RawByte('{') first := true _ = first @@ -138,7 +138,7 @@ func easyjson92d5e37cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W const prefix string = ",\"controllerExpandSecretRef\":" first = false out.RawString(prefix[1:]) - easyjson92d5e37cEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.ControllerExpandSecretRef) + easyjson9787651aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.ControllerExpandSecretRef) } if in.ControllerPublishSecretRef != nil { const prefix string = ",\"controllerPublishSecretRef\":" @@ -148,7 +148,7 @@ func easyjson92d5e37cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W } else { out.RawString(prefix) } - easyjson92d5e37cEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.ControllerPublishSecretRef) + easyjson9787651aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.ControllerPublishSecretRef) } { const prefix string = ",\"driver\":" @@ -164,20 +164,20 @@ func easyjson92d5e37cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W out.String(string(*in.Driver)) } } - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" out.RawString(prefix) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.NodePublishSecretRef != nil { const prefix string = ",\"nodePublishSecretRef\":" out.RawString(prefix) - easyjson92d5e37cEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.NodePublishSecretRef) + easyjson9787651aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.NodePublishSecretRef) } if in.NodeStageSecretRef != nil { const prefix string = ",\"nodeStageSecretRef\":" out.RawString(prefix) - easyjson92d5e37cEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.NodeStageSecretRef) + easyjson9787651aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.NodeStageSecretRef) } if in.ReadOnly { const prefix string = ",\"readOnly\":" @@ -218,27 +218,27 @@ func easyjson92d5e37cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v CSIPersistentVolumeSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson92d5e37cEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjson9787651aEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CSIPersistentVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson92d5e37cEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjson9787651aEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CSIPersistentVolumeSource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson92d5e37cDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjson9787651aDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CSIPersistentVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson92d5e37cDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjson9787651aDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } -func easyjson92d5e37cDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { +func easyjson9787651aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -271,7 +271,7 @@ func easyjson92d5e37cDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Le in.Consumed() } } -func easyjson92d5e37cEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { +func easyjson9787651aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { out.RawByte('{') first := true _ = first diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/c_s_i_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_volume_source.go similarity index 97% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/c_s_i_volume_source.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_volume_source.go index 3428151..d5fcbe8 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/c_s_i_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_volume_source.go @@ -15,7 +15,7 @@ type CSIVolumeSource struct { Driver *string `json:"driver"` // 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. - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,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 secret references are passed. NodePublishSecretRef *LocalObjectReference `json:"nodePublishSecretRef,omitempty"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/c_s_i_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_volume_source_easyjson.go similarity index 84% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/c_s_i_volume_source_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_volume_source_easyjson.go index 3cf1240..f7dfa91 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/c_s_i_volume_source_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/csi_volume_source_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjson105e4b9cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *CSIVolumeSource) { +func easyjsonCabfbb9aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *CSIVolumeSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -47,7 +47,7 @@ func easyjson105e4b9cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex *out.Driver = string(in.String()) } case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "nodePublishSecretRef": if in.IsNull() { in.Skip() @@ -56,7 +56,7 @@ func easyjson105e4b9cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex if out.NodePublishSecretRef == nil { out.NodePublishSecretRef = new(LocalObjectReference) } - easyjson105e4b9cDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.NodePublishSecretRef) + easyjsonCabfbb9aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.NodePublishSecretRef) } case "readOnly": out.ReadOnly = bool(in.Bool()) @@ -90,7 +90,7 @@ func easyjson105e4b9cDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjson105e4b9cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in CSIVolumeSource) { +func easyjsonCabfbb9aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in CSIVolumeSource) { out.RawByte('{') first := true _ = first @@ -103,15 +103,15 @@ func easyjson105e4b9cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W out.String(string(*in.Driver)) } } - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" out.RawString(prefix) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.NodePublishSecretRef != nil { const prefix string = ",\"nodePublishSecretRef\":" out.RawString(prefix) - easyjson105e4b9cEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.NodePublishSecretRef) + easyjsonCabfbb9aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.NodePublishSecretRef) } if in.ReadOnly { const prefix string = ",\"readOnly\":" @@ -143,27 +143,27 @@ func easyjson105e4b9cEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v CSIVolumeSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson105e4b9cEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjsonCabfbb9aEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CSIVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson105e4b9cEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjsonCabfbb9aEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CSIVolumeSource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson105e4b9cDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjsonCabfbb9aDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CSIVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson105e4b9cDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjsonCabfbb9aDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } -func easyjson105e4b9cDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *LocalObjectReference) { +func easyjsonCabfbb9aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *LocalObjectReference) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -194,7 +194,7 @@ func easyjson105e4b9cDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Le in.Consumed() } } -func easyjson105e4b9cEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in LocalObjectReference) { +func easyjsonCabfbb9aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in LocalObjectReference) { out.RawByte('{') first := true _ = first diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints_gvk.go new file mode 100644 index 0000000..7325df7 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints_gvk.go @@ -0,0 +1,18 @@ +// 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 *Endpoints) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "Endpoints" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints_list_gvk.go new file mode 100644 index 0000000..12a55b0 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/endpoints_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *EndpointsList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "EndpointsList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} 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 index 0af8fac..61b02bc 100644 --- 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 @@ -830,12 +830,12 @@ func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Le case "seLinuxOptions": if in.IsNull() { in.Skip() - out.SeLinuxOptions = nil + out.SELinuxOptions = nil } else { - if out.SeLinuxOptions == nil { - out.SeLinuxOptions = new(SELinuxOptions) + if out.SELinuxOptions == nil { + out.SELinuxOptions = new(SELinuxOptions) } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV17(in, out.SeLinuxOptions) + easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV17(in, out.SELinuxOptions) } case "seccompProfile": if in.IsNull() { @@ -947,7 +947,7 @@ func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter. } out.Int64(int64(in.RunAsUser)) } - if in.SeLinuxOptions != nil { + if in.SELinuxOptions != nil { const prefix string = ",\"seLinuxOptions\":" if first { first = false @@ -955,7 +955,7 @@ func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter. } else { out.RawString(prefix) } - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV17(out, *in.SeLinuxOptions) + easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV17(out, *in.SELinuxOptions) } if in.SeccompProfile != nil { const prefix string = ",\"seccompProfile\":" @@ -1381,12 +1381,12 @@ func easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Le case "grpc": if in.IsNull() { in.Skip() - out.Grpc = nil + out.GRPC = nil } else { - if out.Grpc == nil { - out.Grpc = new(GRPCAction) + if out.GRPC == nil { + out.GRPC = new(GRPCAction) } - easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV111(in, out.Grpc) + easyjson853a9577DecodeGithubComKubewardenK8sObjectsApiCoreV111(in, out.GRPC) } case "httpGet": if in.IsNull() { @@ -1448,7 +1448,7 @@ func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter. } out.Int32(int32(in.FailureThreshold)) } - if in.Grpc != nil { + if in.GRPC != nil { const prefix string = ",\"grpc\":" if first { first = false @@ -1456,7 +1456,7 @@ func easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter. } else { out.RawString(prefix) } - easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV111(out, *in.Grpc) + easyjson853a9577EncodeGithubComKubewardenK8sObjectsApiCoreV111(out, *in.GRPC) } if in.HTTPGet != nil { const prefix string = ",\"httpGet\":" diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_gvk.go new file mode 100644 index 0000000..32786b6 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_gvk.go @@ -0,0 +1,18 @@ +// 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 *Event) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "Event" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_list_gvk.go new file mode 100644 index 0000000..e6a5f95 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/event_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *EventList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "EventList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/f_c_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/fc_volume_source.go similarity index 96% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/f_c_volume_source.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/fc_volume_source.go index ba38a18..a721d6d 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/f_c_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/fc_volume_source.go @@ -11,7 +11,7 @@ package v1 type FCVolumeSource struct { // 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. - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // lun is Optional: FC target lun number Lun int32 `json:"lun,omitempty"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/f_c_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/fc_volume_source_easyjson.go similarity index 86% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/f_c_volume_source_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/fc_volume_source_easyjson.go index bdb6f6d..26bda70 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/f_c_volume_source_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/fc_volume_source_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonEeadeb9DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *FCVolumeSource) { +func easyjson31c58ca6DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *FCVolumeSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -37,7 +37,7 @@ func easyjsonEeadeb9DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexe } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "lun": out.Lun = int32(in.Int32()) case "readOnly": @@ -98,15 +98,15 @@ func easyjsonEeadeb9DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexe in.Consumed() } } -func easyjsonEeadeb9EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in FCVolumeSource) { +func easyjson31c58ca6EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in FCVolumeSource) { out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.Lun != 0 { const prefix string = ",\"lun\":" @@ -172,23 +172,23 @@ func easyjsonEeadeb9EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v FCVolumeSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonEeadeb9EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjson31c58ca6EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v FCVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonEeadeb9EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjson31c58ca6EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *FCVolumeSource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonEeadeb9DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjson31c58ca6DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *FCVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonEeadeb9DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjson31c58ca6DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flex_persistent_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flex_persistent_volume_source.go index fc670d5..852d59e 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flex_persistent_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flex_persistent_volume_source.go @@ -15,7 +15,7 @@ type FlexPersistentVolumeSource struct { Driver *string `json:"driver"` // 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. - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // options is Optional: this field holds extra command options if any. Options map[string]string `json:"options,omitempty"` 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 index 316597e..ef1729a 100644 --- 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 @@ -47,7 +47,7 @@ func easyjson2ffb899eDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex *out.Driver = string(in.String()) } case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "options": if in.IsNull() { in.Skip() @@ -103,10 +103,10 @@ func easyjson2ffb899eEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W out.String(string(*in.Driver)) } } - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" out.RawString(prefix) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if len(in.Options) != 0 { const prefix string = ",\"options\":" diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flex_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flex_volume_source.go index 80dfc5c..b195a26 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flex_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/flex_volume_source.go @@ -15,7 +15,7 @@ type FlexVolumeSource struct { Driver *string `json:"driver"` // 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. - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // options is Optional: this field holds extra command options if any. Options map[string]string `json:"options,omitempty"` 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 index 8b68c91..78ffe68 100644 --- 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 @@ -47,7 +47,7 @@ func easyjson82d633f6DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex *out.Driver = string(in.String()) } case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "options": if in.IsNull() { in.Skip() @@ -103,10 +103,10 @@ func easyjson82d633f6EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W out.String(string(*in.Driver)) } } - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" out.RawString(prefix) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if len(in.Options) != 0 { const prefix string = ",\"options\":" diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/g_c_e_persistent_disk_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/gce_persistent_disk_volume_source.go similarity index 97% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/g_c_e_persistent_disk_volume_source.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/gce_persistent_disk_volume_source.go index 40c56e1..7eb3966 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/g_c_e_persistent_disk_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/gce_persistent_disk_volume_source.go @@ -13,7 +13,7 @@ package v1 type GCEPersistentDiskVolumeSource struct { // 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 - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // 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 Partition int32 `json:"partition,omitempty"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/g_c_e_persistent_disk_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/gce_persistent_disk_volume_source_easyjson.go similarity index 84% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/g_c_e_persistent_disk_volume_source_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/gce_persistent_disk_volume_source_easyjson.go index c6adc40..146920b 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/g_c_e_persistent_disk_volume_source_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/gce_persistent_disk_volume_source_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjson302faf50DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *GCEPersistentDiskVolumeSource) { +func easyjson2cae620eDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *GCEPersistentDiskVolumeSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -37,7 +37,7 @@ func easyjson302faf50DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "partition": out.Partition = int32(in.Int32()) case "pdName": @@ -62,15 +62,15 @@ func easyjson302faf50DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjson302faf50EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in GCEPersistentDiskVolumeSource) { +func easyjson2cae620eEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in GCEPersistentDiskVolumeSource) { out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.Partition != 0 { const prefix string = ",\"partition\":" @@ -107,23 +107,23 @@ func easyjson302faf50EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v GCEPersistentDiskVolumeSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson302faf50EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjson2cae620eEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GCEPersistentDiskVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson302faf50EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjson2cae620eEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GCEPersistentDiskVolumeSource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson302faf50DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjson2cae620eDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GCEPersistentDiskVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson302faf50DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjson2cae620eDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/group_info.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/group_info.go new file mode 100644 index 0000000..e18304e --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/group_info.go @@ -0,0 +1,16 @@ +// Code generated by GroupVersionResource generator for getting GVK data. DO NOT EDIT. + +package v1 + +import "github.com/kubewarden/k8s-objects/apimachinery/pkg/runtime/schema" + +// GroupName is the group name use in this package +const GroupName = "" + +// SchemeGroupVersion is group version used to register these objects +var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} + +// Resource takes an unqualified resource and returns a Group qualified GroupResource +func Resource(resource string) schema.GroupResource { + return SchemeGroupVersion.WithResource(resource).GroupResource() +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/g_rpc_action.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/grpc_action.go similarity index 95% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/g_rpc_action.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/grpc_action.go index 18c57dc..904cdf2 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/g_rpc_action.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/grpc_action.go @@ -5,7 +5,7 @@ package v1 // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command -// GRPCAction g RPC action +// GRPCAction GRPC action // // swagger:model GRPCAction type GRPCAction struct { diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/g_rpc_action_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/grpc_action_easyjson.go similarity index 80% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/g_rpc_action_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/grpc_action_easyjson.go index f74c166..b795176 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/g_rpc_action_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/grpc_action_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjson99a04cbcDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *GRPCAction) { +func easyjsonE7b301fDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *GRPCAction) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -58,7 +58,7 @@ func easyjson99a04cbcDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjson99a04cbcEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in GRPCAction) { +func easyjsonE7b301fEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in GRPCAction) { out.RawByte('{') first := true _ = first @@ -82,23 +82,23 @@ func easyjson99a04cbcEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v GRPCAction) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson99a04cbcEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjsonE7b301fEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GRPCAction) MarshalEasyJSON(w *jwriter.Writer) { - easyjson99a04cbcEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjsonE7b301fEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GRPCAction) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson99a04cbcDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjsonE7b301fDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GRPCAction) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson99a04cbcDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjsonE7b301fDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/i_s_c_s_i_persistent_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_persistent_volume_source.go similarity index 95% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/i_s_c_s_i_persistent_volume_source.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_persistent_volume_source.go index 9786337..e903c07 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/i_s_c_s_i_persistent_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_persistent_volume_source.go @@ -17,7 +17,7 @@ type ISCSIPersistentVolumeSource struct { ChapAuthSession bool `json:"chapAuthSession,omitempty"` // 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 - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. InitiatorName string `json:"initiatorName,omitempty"` @@ -27,7 +27,7 @@ type ISCSIPersistentVolumeSource struct { Iqn *string `json:"iqn"` // iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - IscsiInterface string `json:"iscsiInterface,omitempty"` + ISCSIInterface string `json:"iscsiInterface,omitempty"` // lun is iSCSI Target Lun number. // Required: true diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/i_s_c_s_i_persistent_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_persistent_volume_source_easyjson.go similarity index 87% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/i_s_c_s_i_persistent_volume_source_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_persistent_volume_source_easyjson.go index f16bf06..e8abae1 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/i_s_c_s_i_persistent_volume_source_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_persistent_volume_source_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjson6b61f212DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ISCSIPersistentVolumeSource) { +func easyjsonB9635d66DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ISCSIPersistentVolumeSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -41,7 +41,7 @@ func easyjson6b61f212DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex case "chapAuthSession": out.ChapAuthSession = bool(in.Bool()) case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "initiatorName": out.InitiatorName = string(in.String()) case "iqn": @@ -55,7 +55,7 @@ func easyjson6b61f212DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex *out.Iqn = string(in.String()) } case "iscsiInterface": - out.IscsiInterface = string(in.String()) + out.ISCSIInterface = string(in.String()) case "lun": if in.IsNull() { in.Skip() @@ -99,7 +99,7 @@ func easyjson6b61f212DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex if out.SecretRef == nil { out.SecretRef = new(SecretReference) } - easyjson6b61f212DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) + easyjsonB9635d66DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) } case "targetPortal": if in.IsNull() { @@ -121,7 +121,7 @@ func easyjson6b61f212DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjson6b61f212EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ISCSIPersistentVolumeSource) { +func easyjsonB9635d66EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ISCSIPersistentVolumeSource) { out.RawByte('{') first := true _ = first @@ -141,7 +141,7 @@ func easyjson6b61f212EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W } out.Bool(bool(in.ChapAuthSession)) } - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" if first { first = false @@ -149,7 +149,7 @@ func easyjson6b61f212EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W } else { out.RawString(prefix) } - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.InitiatorName != "" { const prefix string = ",\"initiatorName\":" @@ -175,10 +175,10 @@ func easyjson6b61f212EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W out.String(string(*in.Iqn)) } } - if in.IscsiInterface != "" { + if in.ISCSIInterface != "" { const prefix string = ",\"iscsiInterface\":" out.RawString(prefix) - out.String(string(in.IscsiInterface)) + out.String(string(in.ISCSIInterface)) } { const prefix string = ",\"lun\":" @@ -211,7 +211,7 @@ func easyjson6b61f212EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W if in.SecretRef != nil { const prefix string = ",\"secretRef\":" out.RawString(prefix) - easyjson6b61f212EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) + easyjsonB9635d66EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) } { const prefix string = ",\"targetPortal\":" @@ -228,27 +228,27 @@ func easyjson6b61f212EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v ISCSIPersistentVolumeSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6b61f212EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjsonB9635d66EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ISCSIPersistentVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6b61f212EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjsonB9635d66EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ISCSIPersistentVolumeSource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6b61f212DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjsonB9635d66DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ISCSIPersistentVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6b61f212DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjsonB9635d66DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } -func easyjson6b61f212DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { +func easyjsonB9635d66DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -281,7 +281,7 @@ func easyjson6b61f212DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Le in.Consumed() } } -func easyjson6b61f212EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { +func easyjsonB9635d66EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { out.RawByte('{') first := true _ = first diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/i_s_c_s_i_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_volume_source.go similarity index 95% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/i_s_c_s_i_volume_source.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_volume_source.go index b246bf6..909d6d2 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/i_s_c_s_i_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_volume_source.go @@ -17,7 +17,7 @@ type ISCSIVolumeSource struct { ChapAuthSession bool `json:"chapAuthSession,omitempty"` // 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 - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. InitiatorName string `json:"initiatorName,omitempty"` @@ -27,7 +27,7 @@ type ISCSIVolumeSource struct { Iqn *string `json:"iqn"` // iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). - IscsiInterface string `json:"iscsiInterface,omitempty"` + ISCSIInterface string `json:"iscsiInterface,omitempty"` // lun represents iSCSI Target Lun number. // Required: true diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/i_s_c_s_i_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_volume_source_easyjson.go similarity index 87% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/i_s_c_s_i_volume_source_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_volume_source_easyjson.go index 349d169..bfbee96 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/i_s_c_s_i_volume_source_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/iscsi_volume_source_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjson6f489b52DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ISCSIVolumeSource) { +func easyjson223df03eDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ISCSIVolumeSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -41,7 +41,7 @@ func easyjson6f489b52DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex case "chapAuthSession": out.ChapAuthSession = bool(in.Bool()) case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "initiatorName": out.InitiatorName = string(in.String()) case "iqn": @@ -55,7 +55,7 @@ func easyjson6f489b52DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex *out.Iqn = string(in.String()) } case "iscsiInterface": - out.IscsiInterface = string(in.String()) + out.ISCSIInterface = string(in.String()) case "lun": if in.IsNull() { in.Skip() @@ -99,7 +99,7 @@ func easyjson6f489b52DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex if out.SecretRef == nil { out.SecretRef = new(LocalObjectReference) } - easyjson6f489b52DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) + easyjson223df03eDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) } case "targetPortal": if in.IsNull() { @@ -121,7 +121,7 @@ func easyjson6f489b52DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjson6f489b52EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ISCSIVolumeSource) { +func easyjson223df03eEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ISCSIVolumeSource) { out.RawByte('{') first := true _ = first @@ -141,7 +141,7 @@ func easyjson6f489b52EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W } out.Bool(bool(in.ChapAuthSession)) } - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" if first { first = false @@ -149,7 +149,7 @@ func easyjson6f489b52EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W } else { out.RawString(prefix) } - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.InitiatorName != "" { const prefix string = ",\"initiatorName\":" @@ -175,10 +175,10 @@ func easyjson6f489b52EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W out.String(string(*in.Iqn)) } } - if in.IscsiInterface != "" { + if in.ISCSIInterface != "" { const prefix string = ",\"iscsiInterface\":" out.RawString(prefix) - out.String(string(in.IscsiInterface)) + out.String(string(in.ISCSIInterface)) } { const prefix string = ",\"lun\":" @@ -211,7 +211,7 @@ func easyjson6f489b52EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W if in.SecretRef != nil { const prefix string = ",\"secretRef\":" out.RawString(prefix) - easyjson6f489b52EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) + easyjson223df03eEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) } { const prefix string = ",\"targetPortal\":" @@ -228,27 +228,27 @@ func easyjson6f489b52EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v ISCSIVolumeSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson6f489b52EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjson223df03eEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ISCSIVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson6f489b52EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjson223df03eEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ISCSIVolumeSource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson6f489b52DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjson223df03eDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ISCSIVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson6f489b52DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjson223df03eDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } -func easyjson6f489b52DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *LocalObjectReference) { +func easyjson223df03eDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *LocalObjectReference) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -279,7 +279,7 @@ func easyjson6f489b52DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Le in.Consumed() } } -func easyjson6f489b52EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in LocalObjectReference) { +func easyjson223df03eEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in LocalObjectReference) { out.RawByte('{') first := true _ = first diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_gvk.go new file mode 100644 index 0000000..0d9ceee --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_gvk.go @@ -0,0 +1,18 @@ +// 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 *LimitRange) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "LimitRange" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_list_gvk.go new file mode 100644 index 0000000..7e8c2a2 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/limit_range_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *LimitRangeList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "LimitRangeList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/local_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/local_volume_source.go index 02a6be6..92b7e01 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/local_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/local_volume_source.go @@ -11,7 +11,7 @@ package v1 type LocalVolumeSource struct { // 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. - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // path of the full path to the volume on the node. It can be either a directory or block device (disk, partition, ...). // Required: true 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 index 6b6d6cf..df6f5ed 100644 --- 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 @@ -37,7 +37,7 @@ func easyjson17697e04DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "path": if in.IsNull() { in.Skip() @@ -62,11 +62,11 @@ func easyjson17697e04EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } { const prefix string = ",\"path\":" diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_gvk.go new file mode 100644 index 0000000..208bcec --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_gvk.go @@ -0,0 +1,18 @@ +// 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 *Namespace) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "Namespace" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_list_gvk.go new file mode 100644 index 0000000..4bae3b4 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/namespace_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *NamespaceList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "NamespaceList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/n_f_s_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/nfs_volume_source.go similarity index 100% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/n_f_s_volume_source.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/nfs_volume_source.go diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/n_f_s_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/nfs_volume_source_easyjson.go similarity index 86% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/n_f_s_volume_source_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/nfs_volume_source_easyjson.go index 73972e0..998f6d4 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/n_f_s_volume_source_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/nfs_volume_source_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjson45f220e6DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NFSVolumeSource) { +func easyjson6b2bc31aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *NFSVolumeSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -68,7 +68,7 @@ func easyjson45f220e6DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjson45f220e6EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NFSVolumeSource) { +func easyjson6b2bc31aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in NFSVolumeSource) { out.RawByte('{') first := true _ = first @@ -101,23 +101,23 @@ func easyjson45f220e6EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v NFSVolumeSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson45f220e6EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjson6b2bc31aEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v NFSVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson45f220e6EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjson6b2bc31aEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *NFSVolumeSource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson45f220e6DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjson6b2bc31aDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *NFSVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson45f220e6DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjson6b2bc31aDecodeGithubComKubewardenK8sObjectsApiCoreV1(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 index 053ccbd..8646472 100644 --- 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 @@ -733,12 +733,12 @@ func easyjsonCdfae1c8DecodeGithubComKubewardenK8sObjectsApiCoreV17(in *jlexer.Le case "osImage": if in.IsNull() { in.Skip() - out.OsImage = nil + out.OSImage = nil } else { - if out.OsImage == nil { - out.OsImage = new(string) + if out.OSImage == nil { + out.OSImage = new(string) } - *out.OsImage = string(in.String()) + *out.OSImage = string(in.String()) } case "systemUUID": if in.IsNull() { @@ -839,10 +839,10 @@ func easyjsonCdfae1c8EncodeGithubComKubewardenK8sObjectsApiCoreV17(out *jwriter. { const prefix string = ",\"osImage\":" out.RawString(prefix) - if in.OsImage == nil { + if in.OSImage == nil { out.RawString("null") } else { - out.String(string(*in.OsImage)) + out.String(string(*in.OSImage)) } } { diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_gvk.go new file mode 100644 index 0000000..1a2d284 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_gvk.go @@ -0,0 +1,18 @@ +// 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 *Node) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "Node" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_list_gvk.go new file mode 100644 index 0000000..4e1dd69 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *NodeList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "NodeList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} 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 index e210862..c697af7 100644 --- 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 @@ -617,12 +617,12 @@ func easyjson94b78b83DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Le case "osImage": if in.IsNull() { in.Skip() - out.OsImage = nil + out.OSImage = nil } else { - if out.OsImage == nil { - out.OsImage = new(string) + if out.OSImage == nil { + out.OSImage = new(string) } - *out.OsImage = string(in.String()) + *out.OSImage = string(in.String()) } case "systemUUID": if in.IsNull() { @@ -723,10 +723,10 @@ func easyjson94b78b83EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter. { const prefix string = ",\"osImage\":" out.RawString(prefix) - if in.OsImage == nil { + if in.OSImage == nil { out.RawString("null") } else { - out.String(string(*in.OsImage)) + out.String(string(*in.OSImage)) } } { diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_system_info.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_system_info.go index ee63af8..bde6e1f 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_system_info.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/node_system_info.go @@ -44,7 +44,7 @@ type NodeSystemInfo struct { // OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)). // Required: true - OsImage *string `json:"osImage"` + OSImage *string `json:"osImage"` // 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 // Required: true 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 index ede0d65..f7cfab5 100644 --- 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 @@ -119,12 +119,12 @@ func easyjson56ebc1a3DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex case "osImage": if in.IsNull() { in.Skip() - out.OsImage = nil + out.OSImage = nil } else { - if out.OsImage == nil { - out.OsImage = new(string) + if out.OSImage == nil { + out.OSImage = new(string) } - *out.OsImage = string(in.String()) + *out.OSImage = string(in.String()) } case "systemUUID": if in.IsNull() { @@ -225,10 +225,10 @@ func easyjson56ebc1a3EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W { const prefix string = ",\"osImage\":" out.RawString(prefix) - if in.OsImage == nil { + if in.OSImage == nil { out.RawString("null") } else { - out.String(string(*in.OsImage)) + out.String(string(*in.OSImage)) } } { diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_gvk.go new file mode 100644 index 0000000..e79ab39 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_gvk.go @@ -0,0 +1,18 @@ +// 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 *PersistentVolumeClaim) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "PersistentVolumeClaim" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_list_gvk.go new file mode 100644 index 0000000..1962893 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_claim_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *PersistentVolumeClaimList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "PersistentVolumeClaimList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} 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 index dc58bdd..3c70a04 100644 --- 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 @@ -270,12 +270,12 @@ func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Le case "awsElasticBlockStore": if in.IsNull() { in.Skip() - out.AwsElasticBlockStore = nil + out.AWSElasticBlockStore = nil } else { - if out.AwsElasticBlockStore == nil { - out.AwsElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + if out.AWSElasticBlockStore == nil { + out.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } - (*out.AwsElasticBlockStore).UnmarshalEasyJSON(in) + (*out.AWSElasticBlockStore).UnmarshalEasyJSON(in) } case "azureDisk": if in.IsNull() { @@ -358,22 +358,22 @@ func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Le case "csi": if in.IsNull() { in.Skip() - out.Csi = nil + out.CSI = nil } else { - if out.Csi == nil { - out.Csi = new(CSIPersistentVolumeSource) + if out.CSI == nil { + out.CSI = new(CSIPersistentVolumeSource) } - (*out.Csi).UnmarshalEasyJSON(in) + (*out.CSI).UnmarshalEasyJSON(in) } case "fc": if in.IsNull() { in.Skip() - out.Fc = nil + out.FC = nil } else { - if out.Fc == nil { - out.Fc = new(FCVolumeSource) + if out.FC == nil { + out.FC = new(FCVolumeSource) } - (*out.Fc).UnmarshalEasyJSON(in) + (*out.FC).UnmarshalEasyJSON(in) } case "flexVolume": if in.IsNull() { @@ -398,12 +398,12 @@ func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Le case "gcePersistentDisk": if in.IsNull() { in.Skip() - out.GcePersistentDisk = nil + out.GCEPersistentDisk = nil } else { - if out.GcePersistentDisk == nil { - out.GcePersistentDisk = new(GCEPersistentDiskVolumeSource) + if out.GCEPersistentDisk == nil { + out.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } - (*out.GcePersistentDisk).UnmarshalEasyJSON(in) + (*out.GCEPersistentDisk).UnmarshalEasyJSON(in) } case "glusterfs": if in.IsNull() { @@ -428,12 +428,12 @@ func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Le case "iscsi": if in.IsNull() { in.Skip() - out.Iscsi = nil + out.ISCSI = nil } else { - if out.Iscsi == nil { - out.Iscsi = new(ISCSIPersistentVolumeSource) + if out.ISCSI == nil { + out.ISCSI = new(ISCSIPersistentVolumeSource) } - (*out.Iscsi).UnmarshalEasyJSON(in) + (*out.ISCSI).UnmarshalEasyJSON(in) } case "local": if in.IsNull() { @@ -471,12 +471,12 @@ func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Le case "nfs": if in.IsNull() { in.Skip() - out.Nfs = nil + out.NFS = nil } else { - if out.Nfs == nil { - out.Nfs = new(NFSVolumeSource) + if out.NFS == nil { + out.NFS = new(NFSVolumeSource) } - (*out.Nfs).UnmarshalEasyJSON(in) + (*out.NFS).UnmarshalEasyJSON(in) } case "nodeAffinity": if in.IsNull() { @@ -523,12 +523,12 @@ func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Le case "rbd": if in.IsNull() { in.Skip() - out.Rbd = nil + out.RBD = nil } else { - if out.Rbd == nil { - out.Rbd = new(RBDPersistentVolumeSource) + if out.RBD == nil { + out.RBD = new(RBDPersistentVolumeSource) } - easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV17(in, out.Rbd) + easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV17(in, out.RBD) } case "scaleIO": if in.IsNull() { @@ -593,7 +593,7 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter. out.RawByte(']') } } - if in.AwsElasticBlockStore != nil { + if in.AWSElasticBlockStore != nil { const prefix string = ",\"awsElasticBlockStore\":" if first { first = false @@ -601,7 +601,7 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter. } else { out.RawString(prefix) } - (*in.AwsElasticBlockStore).MarshalEasyJSON(out) + (*in.AWSElasticBlockStore).MarshalEasyJSON(out) } if in.AzureDisk != nil { const prefix string = ",\"azureDisk\":" @@ -681,7 +681,7 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter. } (*in.ClaimRef).MarshalEasyJSON(out) } - if in.Csi != nil { + if in.CSI != nil { const prefix string = ",\"csi\":" if first { first = false @@ -689,9 +689,9 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter. } else { out.RawString(prefix) } - (*in.Csi).MarshalEasyJSON(out) + (*in.CSI).MarshalEasyJSON(out) } - if in.Fc != nil { + if in.FC != nil { const prefix string = ",\"fc\":" if first { first = false @@ -699,7 +699,7 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter. } else { out.RawString(prefix) } - (*in.Fc).MarshalEasyJSON(out) + (*in.FC).MarshalEasyJSON(out) } if in.FlexVolume != nil { const prefix string = ",\"flexVolume\":" @@ -721,7 +721,7 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter. } (*in.Flocker).MarshalEasyJSON(out) } - if in.GcePersistentDisk != nil { + if in.GCEPersistentDisk != nil { const prefix string = ",\"gcePersistentDisk\":" if first { first = false @@ -729,7 +729,7 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter. } else { out.RawString(prefix) } - (*in.GcePersistentDisk).MarshalEasyJSON(out) + (*in.GCEPersistentDisk).MarshalEasyJSON(out) } if in.Glusterfs != nil { const prefix string = ",\"glusterfs\":" @@ -751,7 +751,7 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter. } (*in.HostPath).MarshalEasyJSON(out) } - if in.Iscsi != nil { + if in.ISCSI != nil { const prefix string = ",\"iscsi\":" if first { first = false @@ -759,7 +759,7 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter. } else { out.RawString(prefix) } - (*in.Iscsi).MarshalEasyJSON(out) + (*in.ISCSI).MarshalEasyJSON(out) } if in.Local != nil { const prefix string = ",\"local\":" @@ -790,7 +790,7 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter. out.RawByte(']') } } - if in.Nfs != nil { + if in.NFS != nil { const prefix string = ",\"nfs\":" if first { first = false @@ -798,7 +798,7 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter. } else { out.RawString(prefix) } - (*in.Nfs).MarshalEasyJSON(out) + (*in.NFS).MarshalEasyJSON(out) } if in.NodeAffinity != nil { const prefix string = ",\"nodeAffinity\":" @@ -850,7 +850,7 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter. } easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV16(out, *in.Quobyte) } - if in.Rbd != nil { + if in.RBD != nil { const prefix string = ",\"rbd\":" if first { first = false @@ -858,7 +858,7 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter. } else { out.RawString(prefix) } - easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV17(out, *in.Rbd) + easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV17(out, *in.RBD) } if in.ScaleIO != nil { const prefix string = ",\"scaleIO\":" @@ -932,7 +932,7 @@ func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV110(in *jlexer.L } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "storagePolicyID": out.StoragePolicyID = string(in.String()) case "storagePolicyName": @@ -961,11 +961,11 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV110(out *jwriter out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.StoragePolicyID != "" { const prefix string = ",\"storagePolicyID\":" @@ -1023,7 +1023,7 @@ func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV19(in *jlexer.Le } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "readOnly": out.ReadOnly = bool(in.Bool()) case "secretRef": @@ -1054,11 +1054,11 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV19(out *jwriter. out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.ReadOnly { const prefix string = ",\"readOnly\":" @@ -1122,7 +1122,7 @@ func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV18(in *jlexer.Le } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "gateway": if in.IsNull() { in.Skip() @@ -1179,11 +1179,11 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV18(out *jwriter. out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } { const prefix string = ",\"gateway\":" @@ -1324,7 +1324,7 @@ func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV17(in *jlexer.Le } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "image": if in.IsNull() { in.Skip() @@ -1390,11 +1390,11 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV17(out *jwriter. out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } { const prefix string = ",\"image\":" @@ -1585,7 +1585,7 @@ func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV15(in *jlexer.Le } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "readOnly": out.ReadOnly = bool(in.Bool()) case "volumeID": @@ -1612,11 +1612,11 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV15(out *jwriter. out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.ReadOnly { const prefix string = ",\"readOnly\":" @@ -1664,7 +1664,7 @@ func easyjson88c26c72DecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Le } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "pdID": if in.IsNull() { in.Skip() @@ -1689,11 +1689,11 @@ func easyjson88c26c72EncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter. out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } { const prefix string = ",\"pdID\":" diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_gvk.go new file mode 100644 index 0000000..10b4b00 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_gvk.go @@ -0,0 +1,18 @@ +// 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 *PersistentVolume) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "PersistentVolume" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_list_gvk.go new file mode 100644 index 0000000..9375958 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/persistent_volume_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *PersistentVolumeList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "PersistentVolumeList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} 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 44f07c7..ed771ab 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 @@ -18,7 +18,7 @@ type PersistentVolumeSpec struct { AccessModes []string `json:"accessModes,omitempty"` // 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 - AwsElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty"` + AWSElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty"` // azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty"` @@ -39,10 +39,10 @@ type PersistentVolumeSpec struct { ClaimRef *ObjectReference `json:"claimRef,omitempty"` // csi represents storage that is handled by an external CSI driver (Beta feature). - Csi *CSIPersistentVolumeSource `json:"csi,omitempty"` + CSI *CSIPersistentVolumeSource `json:"csi,omitempty"` // fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - Fc *FCVolumeSource `json:"fc,omitempty"` + FC *FCVolumeSource `json:"fc,omitempty"` // flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. FlexVolume *FlexPersistentVolumeSource `json:"flexVolume,omitempty"` @@ -51,7 +51,7 @@ type PersistentVolumeSpec struct { Flocker *FlockerVolumeSource `json:"flocker,omitempty"` // 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 - GcePersistentDisk *GCEPersistentDiskVolumeSource `json:"gcePersistentDisk,omitempty"` + GCEPersistentDisk *GCEPersistentDiskVolumeSource `json:"gcePersistentDisk,omitempty"` // 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 Glusterfs *GlusterfsPersistentVolumeSource `json:"glusterfs,omitempty"` @@ -60,7 +60,7 @@ type PersistentVolumeSpec struct { HostPath *HostPathVolumeSource `json:"hostPath,omitempty"` // 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. - Iscsi *ISCSIPersistentVolumeSource `json:"iscsi,omitempty"` + ISCSI *ISCSIPersistentVolumeSource `json:"iscsi,omitempty"` // local represents directly-attached storage with node affinity Local *LocalVolumeSource `json:"local,omitempty"` @@ -69,7 +69,7 @@ type PersistentVolumeSpec struct { MountOptions []string `json:"mountOptions,omitempty"` // nfs represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - Nfs *NFSVolumeSource `json:"nfs,omitempty"` + NFS *NFSVolumeSource `json:"nfs,omitempty"` // nodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. NodeAffinity *VolumeNodeAffinity `json:"nodeAffinity,omitempty"` @@ -89,7 +89,7 @@ type PersistentVolumeSpec struct { Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty"` // 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 - Rbd *RBDPersistentVolumeSource `json:"rbd,omitempty"` + RBD *RBDPersistentVolumeSource `json:"rbd,omitempty"` // scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. ScaleIO *ScaleIOPersistentVolumeSource `json:"scaleIO,omitempty"` 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 index d277404..fa1f90d 100644 --- 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 @@ -63,12 +63,12 @@ func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexe case "awsElasticBlockStore": if in.IsNull() { in.Skip() - out.AwsElasticBlockStore = nil + out.AWSElasticBlockStore = nil } else { - if out.AwsElasticBlockStore == nil { - out.AwsElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + if out.AWSElasticBlockStore == nil { + out.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } - (*out.AwsElasticBlockStore).UnmarshalEasyJSON(in) + (*out.AWSElasticBlockStore).UnmarshalEasyJSON(in) } case "azureDisk": if in.IsNull() { @@ -151,22 +151,22 @@ func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexe case "csi": if in.IsNull() { in.Skip() - out.Csi = nil + out.CSI = nil } else { - if out.Csi == nil { - out.Csi = new(CSIPersistentVolumeSource) + if out.CSI == nil { + out.CSI = new(CSIPersistentVolumeSource) } - (*out.Csi).UnmarshalEasyJSON(in) + (*out.CSI).UnmarshalEasyJSON(in) } case "fc": if in.IsNull() { in.Skip() - out.Fc = nil + out.FC = nil } else { - if out.Fc == nil { - out.Fc = new(FCVolumeSource) + if out.FC == nil { + out.FC = new(FCVolumeSource) } - (*out.Fc).UnmarshalEasyJSON(in) + (*out.FC).UnmarshalEasyJSON(in) } case "flexVolume": if in.IsNull() { @@ -191,12 +191,12 @@ func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexe case "gcePersistentDisk": if in.IsNull() { in.Skip() - out.GcePersistentDisk = nil + out.GCEPersistentDisk = nil } else { - if out.GcePersistentDisk == nil { - out.GcePersistentDisk = new(GCEPersistentDiskVolumeSource) + if out.GCEPersistentDisk == nil { + out.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } - (*out.GcePersistentDisk).UnmarshalEasyJSON(in) + (*out.GCEPersistentDisk).UnmarshalEasyJSON(in) } case "glusterfs": if in.IsNull() { @@ -221,12 +221,12 @@ func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexe case "iscsi": if in.IsNull() { in.Skip() - out.Iscsi = nil + out.ISCSI = nil } else { - if out.Iscsi == nil { - out.Iscsi = new(ISCSIPersistentVolumeSource) + if out.ISCSI == nil { + out.ISCSI = new(ISCSIPersistentVolumeSource) } - (*out.Iscsi).UnmarshalEasyJSON(in) + (*out.ISCSI).UnmarshalEasyJSON(in) } case "local": if in.IsNull() { @@ -264,12 +264,12 @@ func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexe case "nfs": if in.IsNull() { in.Skip() - out.Nfs = nil + out.NFS = nil } else { - if out.Nfs == nil { - out.Nfs = new(NFSVolumeSource) + if out.NFS == nil { + out.NFS = new(NFSVolumeSource) } - (*out.Nfs).UnmarshalEasyJSON(in) + (*out.NFS).UnmarshalEasyJSON(in) } case "nodeAffinity": if in.IsNull() { @@ -316,12 +316,12 @@ func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexe case "rbd": if in.IsNull() { in.Skip() - out.Rbd = nil + out.RBD = nil } else { - if out.Rbd == nil { - out.Rbd = new(RBDPersistentVolumeSource) + if out.RBD == nil { + out.RBD = new(RBDPersistentVolumeSource) } - easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV15(in, out.Rbd) + easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV15(in, out.RBD) } case "scaleIO": if in.IsNull() { @@ -386,7 +386,7 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr out.RawByte(']') } } - if in.AwsElasticBlockStore != nil { + if in.AWSElasticBlockStore != nil { const prefix string = ",\"awsElasticBlockStore\":" if first { first = false @@ -394,7 +394,7 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr } else { out.RawString(prefix) } - (*in.AwsElasticBlockStore).MarshalEasyJSON(out) + (*in.AWSElasticBlockStore).MarshalEasyJSON(out) } if in.AzureDisk != nil { const prefix string = ",\"azureDisk\":" @@ -474,7 +474,7 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr } (*in.ClaimRef).MarshalEasyJSON(out) } - if in.Csi != nil { + if in.CSI != nil { const prefix string = ",\"csi\":" if first { first = false @@ -482,9 +482,9 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr } else { out.RawString(prefix) } - (*in.Csi).MarshalEasyJSON(out) + (*in.CSI).MarshalEasyJSON(out) } - if in.Fc != nil { + if in.FC != nil { const prefix string = ",\"fc\":" if first { first = false @@ -492,7 +492,7 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr } else { out.RawString(prefix) } - (*in.Fc).MarshalEasyJSON(out) + (*in.FC).MarshalEasyJSON(out) } if in.FlexVolume != nil { const prefix string = ",\"flexVolume\":" @@ -514,7 +514,7 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr } (*in.Flocker).MarshalEasyJSON(out) } - if in.GcePersistentDisk != nil { + if in.GCEPersistentDisk != nil { const prefix string = ",\"gcePersistentDisk\":" if first { first = false @@ -522,7 +522,7 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr } else { out.RawString(prefix) } - (*in.GcePersistentDisk).MarshalEasyJSON(out) + (*in.GCEPersistentDisk).MarshalEasyJSON(out) } if in.Glusterfs != nil { const prefix string = ",\"glusterfs\":" @@ -544,7 +544,7 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr } (*in.HostPath).MarshalEasyJSON(out) } - if in.Iscsi != nil { + if in.ISCSI != nil { const prefix string = ",\"iscsi\":" if first { first = false @@ -552,7 +552,7 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr } else { out.RawString(prefix) } - (*in.Iscsi).MarshalEasyJSON(out) + (*in.ISCSI).MarshalEasyJSON(out) } if in.Local != nil { const prefix string = ",\"local\":" @@ -583,7 +583,7 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr out.RawByte(']') } } - if in.Nfs != nil { + if in.NFS != nil { const prefix string = ",\"nfs\":" if first { first = false @@ -591,7 +591,7 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr } else { out.RawString(prefix) } - (*in.Nfs).MarshalEasyJSON(out) + (*in.NFS).MarshalEasyJSON(out) } if in.NodeAffinity != nil { const prefix string = ",\"nodeAffinity\":" @@ -643,7 +643,7 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr } easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV14(out, *in.Quobyte) } - if in.Rbd != nil { + if in.RBD != nil { const prefix string = ",\"rbd\":" if first { first = false @@ -651,7 +651,7 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr } else { out.RawString(prefix) } - easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV15(out, *in.Rbd) + easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV15(out, *in.RBD) } if in.ScaleIO != nil { const prefix string = ",\"scaleIO\":" @@ -749,7 +749,7 @@ func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV18(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "storagePolicyID": out.StoragePolicyID = string(in.String()) case "storagePolicyName": @@ -778,11 +778,11 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV18(out *jwriter.W out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.StoragePolicyID != "" { const prefix string = ",\"storagePolicyID\":" @@ -840,7 +840,7 @@ func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV17(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "readOnly": out.ReadOnly = bool(in.Bool()) case "secretRef": @@ -871,11 +871,11 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV17(out *jwriter.W out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.ReadOnly { const prefix string = ",\"readOnly\":" @@ -939,7 +939,7 @@ func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV16(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "gateway": if in.IsNull() { in.Skip() @@ -996,11 +996,11 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV16(out *jwriter.W out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } { const prefix string = ",\"gateway\":" @@ -1141,7 +1141,7 @@ func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV15(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "image": if in.IsNull() { in.Skip() @@ -1207,11 +1207,11 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV15(out *jwriter.W out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } { const prefix string = ",\"image\":" @@ -1402,7 +1402,7 @@ func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "readOnly": out.ReadOnly = bool(in.Bool()) case "volumeID": @@ -1429,11 +1429,11 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter.W out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.ReadOnly { const prefix string = ",\"readOnly\":" @@ -1481,7 +1481,7 @@ func easyjsonC7169feDecodeGithubComKubewardenK8sObjectsApiCoreV12(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "pdID": if in.IsNull() { in.Skip() @@ -1506,11 +1506,11 @@ func easyjsonC7169feEncodeGithubComKubewardenK8sObjectsApiCoreV12(out *jwriter.W out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } { const prefix string = ",\"pdID\":" diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/photon_persistent_disk_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/photon_persistent_disk_volume_source.go index 5e76988..ee86d31 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/photon_persistent_disk_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/photon_persistent_disk_volume_source.go @@ -11,7 +11,7 @@ package v1 type PhotonPersistentDiskVolumeSource struct { // 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. - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // pdID is the ID that identifies Photon Controller persistent disk // Required: true 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 index 8ad83e3..72ba4dc 100644 --- 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 @@ -37,7 +37,7 @@ func easyjsonF03812a5DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "pdID": if in.IsNull() { in.Skip() @@ -62,11 +62,11 @@ func easyjsonF03812a5EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } { const prefix string = ",\"pdID\":" 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 index 8cf933b..8452092 100644 --- 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 @@ -985,12 +985,12 @@ func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Le case "os": if in.IsNull() { in.Skip() - out.Os = nil + out.OS = nil } else { - if out.Os == nil { - out.Os = new(PodOS) + if out.OS == nil { + out.OS = new(PodOS) } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV16(in, out.Os) + easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV16(in, out.OS) } case "overhead": if in.IsNull() { @@ -1374,10 +1374,10 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter. out.RawByte('}') } } - if in.Os != nil { + if in.OS != nil { const prefix string = ",\"os\":" out.RawString(prefix) - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV16(out, *in.Os) + easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV16(out, *in.OS) } if len(in.Overhead) != 0 { const prefix string = ",\"overhead\":" @@ -1563,12 +1563,12 @@ func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV111(in *jlexer.L case "awsElasticBlockStore": if in.IsNull() { in.Skip() - out.AwsElasticBlockStore = nil + out.AWSElasticBlockStore = nil } else { - if out.AwsElasticBlockStore == nil { - out.AwsElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + if out.AWSElasticBlockStore == nil { + out.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } - (*out.AwsElasticBlockStore).UnmarshalEasyJSON(in) + (*out.AWSElasticBlockStore).UnmarshalEasyJSON(in) } case "azureDisk": if in.IsNull() { @@ -1623,12 +1623,12 @@ func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV111(in *jlexer.L case "csi": if in.IsNull() { in.Skip() - out.Csi = nil + out.CSI = nil } else { - if out.Csi == nil { - out.Csi = new(CSIVolumeSource) + if out.CSI == nil { + out.CSI = new(CSIVolumeSource) } - (*out.Csi).UnmarshalEasyJSON(in) + (*out.CSI).UnmarshalEasyJSON(in) } case "downwardAPI": if in.IsNull() { @@ -1663,12 +1663,12 @@ func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV111(in *jlexer.L case "fc": if in.IsNull() { in.Skip() - out.Fc = nil + out.FC = nil } else { - if out.Fc == nil { - out.Fc = new(FCVolumeSource) + if out.FC == nil { + out.FC = new(FCVolumeSource) } - (*out.Fc).UnmarshalEasyJSON(in) + (*out.FC).UnmarshalEasyJSON(in) } case "flexVolume": if in.IsNull() { @@ -1693,12 +1693,12 @@ func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV111(in *jlexer.L case "gcePersistentDisk": if in.IsNull() { in.Skip() - out.GcePersistentDisk = nil + out.GCEPersistentDisk = nil } else { - if out.GcePersistentDisk == nil { - out.GcePersistentDisk = new(GCEPersistentDiskVolumeSource) + if out.GCEPersistentDisk == nil { + out.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } - (*out.GcePersistentDisk).UnmarshalEasyJSON(in) + (*out.GCEPersistentDisk).UnmarshalEasyJSON(in) } case "gitRepo": if in.IsNull() { @@ -1733,12 +1733,12 @@ func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV111(in *jlexer.L case "iscsi": if in.IsNull() { in.Skip() - out.Iscsi = nil + out.ISCSI = nil } else { - if out.Iscsi == nil { - out.Iscsi = new(ISCSIVolumeSource) + if out.ISCSI == nil { + out.ISCSI = new(ISCSIVolumeSource) } - (*out.Iscsi).UnmarshalEasyJSON(in) + (*out.ISCSI).UnmarshalEasyJSON(in) } case "name": if in.IsNull() { @@ -1753,12 +1753,12 @@ func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV111(in *jlexer.L case "nfs": if in.IsNull() { in.Skip() - out.Nfs = nil + out.NFS = nil } else { - if out.Nfs == nil { - out.Nfs = new(NFSVolumeSource) + if out.NFS == nil { + out.NFS = new(NFSVolumeSource) } - (*out.Nfs).UnmarshalEasyJSON(in) + (*out.NFS).UnmarshalEasyJSON(in) } case "persistentVolumeClaim": if in.IsNull() { @@ -1813,12 +1813,12 @@ func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV111(in *jlexer.L case "rbd": if in.IsNull() { in.Skip() - out.Rbd = nil + out.RBD = nil } else { - if out.Rbd == nil { - out.Rbd = new(RBDVolumeSource) + if out.RBD == nil { + out.RBD = new(RBDVolumeSource) } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV115(in, out.Rbd) + easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV115(in, out.RBD) } case "scaleIO": if in.IsNull() { @@ -1874,11 +1874,11 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter out.RawByte('{') first := true _ = first - if in.AwsElasticBlockStore != nil { + if in.AWSElasticBlockStore != nil { const prefix string = ",\"awsElasticBlockStore\":" first = false out.RawString(prefix[1:]) - (*in.AwsElasticBlockStore).MarshalEasyJSON(out) + (*in.AWSElasticBlockStore).MarshalEasyJSON(out) } if in.AzureDisk != nil { const prefix string = ",\"azureDisk\":" @@ -1930,7 +1930,7 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter } (*in.ConfigMap).MarshalEasyJSON(out) } - if in.Csi != nil { + if in.CSI != nil { const prefix string = ",\"csi\":" if first { first = false @@ -1938,7 +1938,7 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter } else { out.RawString(prefix) } - (*in.Csi).MarshalEasyJSON(out) + (*in.CSI).MarshalEasyJSON(out) } if in.DownwardAPI != nil { const prefix string = ",\"downwardAPI\":" @@ -1970,7 +1970,7 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter } (*in.Ephemeral).MarshalEasyJSON(out) } - if in.Fc != nil { + if in.FC != nil { const prefix string = ",\"fc\":" if first { first = false @@ -1978,7 +1978,7 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter } else { out.RawString(prefix) } - (*in.Fc).MarshalEasyJSON(out) + (*in.FC).MarshalEasyJSON(out) } if in.FlexVolume != nil { const prefix string = ",\"flexVolume\":" @@ -2000,7 +2000,7 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter } (*in.Flocker).MarshalEasyJSON(out) } - if in.GcePersistentDisk != nil { + if in.GCEPersistentDisk != nil { const prefix string = ",\"gcePersistentDisk\":" if first { first = false @@ -2008,7 +2008,7 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter } else { out.RawString(prefix) } - (*in.GcePersistentDisk).MarshalEasyJSON(out) + (*in.GCEPersistentDisk).MarshalEasyJSON(out) } if in.GitRepo != nil { const prefix string = ",\"gitRepo\":" @@ -2040,7 +2040,7 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter } (*in.HostPath).MarshalEasyJSON(out) } - if in.Iscsi != nil { + if in.ISCSI != nil { const prefix string = ",\"iscsi\":" if first { first = false @@ -2048,7 +2048,7 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter } else { out.RawString(prefix) } - (*in.Iscsi).MarshalEasyJSON(out) + (*in.ISCSI).MarshalEasyJSON(out) } { const prefix string = ",\"name\":" @@ -2064,10 +2064,10 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter out.String(string(*in.Name)) } } - if in.Nfs != nil { + if in.NFS != nil { const prefix string = ",\"nfs\":" out.RawString(prefix) - (*in.Nfs).MarshalEasyJSON(out) + (*in.NFS).MarshalEasyJSON(out) } if in.PersistentVolumeClaim != nil { const prefix string = ",\"persistentVolumeClaim\":" @@ -2094,10 +2094,10 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter out.RawString(prefix) easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV114(out, *in.Quobyte) } - if in.Rbd != nil { + if in.RBD != nil { const prefix string = ",\"rbd\":" out.RawString(prefix) - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV115(out, *in.Rbd) + easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV115(out, *in.RBD) } if in.ScaleIO != nil { const prefix string = ",\"scaleIO\":" @@ -2141,7 +2141,7 @@ func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV119(in *jlexer.L } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "storagePolicyID": out.StoragePolicyID = string(in.String()) case "storagePolicyName": @@ -2170,11 +2170,11 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV119(out *jwriter out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.StoragePolicyID != "" { const prefix string = ",\"storagePolicyID\":" @@ -2232,7 +2232,7 @@ func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV118(in *jlexer.L } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "readOnly": out.ReadOnly = bool(in.Bool()) case "secretRef": @@ -2263,11 +2263,11 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV118(out *jwriter out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.ReadOnly { const prefix string = ",\"readOnly\":" @@ -2452,7 +2452,7 @@ func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV116(in *jlexer.L } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "gateway": if in.IsNull() { in.Skip() @@ -2509,11 +2509,11 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV116(out *jwriter out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } { const prefix string = ",\"gateway\":" @@ -2599,7 +2599,7 @@ func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV115(in *jlexer.L } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "image": if in.IsNull() { in.Skip() @@ -2665,11 +2665,11 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV115(out *jwriter out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } { const prefix string = ",\"image\":" @@ -3256,7 +3256,7 @@ func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV112(in *jlexer.L } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "readOnly": out.ReadOnly = bool(in.Bool()) case "volumeID": @@ -3283,11 +3283,11 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV112(out *jwriter out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.ReadOnly { const prefix string = ",\"readOnly\":" @@ -3546,9 +3546,9 @@ func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV18(in *jlexer.Le } switch key { case "fsGroup": - out.FsGroup = int64(in.Int64()) + out.FSGroup = int64(in.Int64()) case "fsGroupChangePolicy": - out.FsGroupChangePolicy = string(in.String()) + out.FSGroupChangePolicy = string(in.String()) case "runAsGroup": out.RunAsGroup = int64(in.Int64()) case "runAsNonRoot": @@ -3558,12 +3558,12 @@ func easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV18(in *jlexer.Le case "seLinuxOptions": if in.IsNull() { in.Skip() - out.SeLinuxOptions = nil + out.SELinuxOptions = nil } else { - if out.SeLinuxOptions == nil { - out.SeLinuxOptions = new(SELinuxOptions) + if out.SELinuxOptions == nil { + out.SELinuxOptions = new(SELinuxOptions) } - easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV123(in, out.SeLinuxOptions) + easyjsonBe091417DecodeGithubComKubewardenK8sObjectsApiCoreV123(in, out.SELinuxOptions) } case "seccompProfile": if in.IsNull() { @@ -3653,13 +3653,13 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV18(out *jwriter. out.RawByte('{') first := true _ = first - if in.FsGroup != 0 { + if in.FSGroup != 0 { const prefix string = ",\"fsGroup\":" first = false out.RawString(prefix[1:]) - out.Int64(int64(in.FsGroup)) + out.Int64(int64(in.FSGroup)) } - if in.FsGroupChangePolicy != "" { + if in.FSGroupChangePolicy != "" { const prefix string = ",\"fsGroupChangePolicy\":" if first { first = false @@ -3667,7 +3667,7 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV18(out *jwriter. } else { out.RawString(prefix) } - out.String(string(in.FsGroupChangePolicy)) + out.String(string(in.FSGroupChangePolicy)) } if in.RunAsGroup != 0 { const prefix string = ",\"runAsGroup\":" @@ -3699,7 +3699,7 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV18(out *jwriter. } out.Int64(int64(in.RunAsUser)) } - if in.SeLinuxOptions != nil { + if in.SELinuxOptions != nil { const prefix string = ",\"seLinuxOptions\":" if first { first = false @@ -3707,7 +3707,7 @@ func easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV18(out *jwriter. } else { out.RawString(prefix) } - easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV123(out, *in.SeLinuxOptions) + easyjsonBe091417EncodeGithubComKubewardenK8sObjectsApiCoreV123(out, *in.SELinuxOptions) } if in.SeccompProfile != nil { const prefix string = ",\"seccompProfile\":" diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_gvk.go new file mode 100644 index 0000000..10f19e7 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_gvk.go @@ -0,0 +1,18 @@ +// 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 *Pod) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "Pod" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_list_gvk.go new file mode 100644 index 0000000..9adcc7b --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *PodList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "PodList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_o_s.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_os.go similarity index 100% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_o_s.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_os.go diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_o_s_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_os_easyjson.go similarity index 82% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_o_s_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_os_easyjson.go index f3d2af0..a1073f1 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_o_s_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_os_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjson1b47336fDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodOS) { +func easyjson903630eeDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *PodOS) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -56,7 +56,7 @@ func easyjson1b47336fDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjson1b47336fEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodOS) { +func easyjson903630eeEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in PodOS) { out.RawByte('{') first := true _ = first @@ -75,23 +75,23 @@ func easyjson1b47336fEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v PodOS) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson1b47336fEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjson903630eeEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v PodOS) MarshalEasyJSON(w *jwriter.Writer) { - easyjson1b47336fEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjson903630eeEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *PodOS) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson1b47336fDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjson903630eeDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *PodOS) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson1b47336fDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjson903630eeDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } 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 51cbe64..84822fa 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 @@ -15,10 +15,10 @@ type PodSecurityContext struct { // 1. 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---- // // If 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. - FsGroup int64 `json:"fsGroup,omitempty"` + FSGroup int64 `json:"fsGroup,omitempty"` // 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. - FsGroupChangePolicy string `json:"fsGroupChangePolicy,omitempty"` + FSGroupChangePolicy string `json:"fsGroupChangePolicy,omitempty"` // 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. RunAsGroup int64 `json:"runAsGroup,omitempty"` @@ -30,7 +30,7 @@ type PodSecurityContext struct { RunAsUser int64 `json:"runAsUser,omitempty"` // 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. - SeLinuxOptions *SELinuxOptions `json:"seLinuxOptions,omitempty"` + SELinuxOptions *SELinuxOptions `json:"seLinuxOptions,omitempty"` // 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"` 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 index e2692b6..d699586 100644 --- 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 @@ -37,9 +37,9 @@ func easyjson6769e492DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex } switch key { case "fsGroup": - out.FsGroup = int64(in.Int64()) + out.FSGroup = int64(in.Int64()) case "fsGroupChangePolicy": - out.FsGroupChangePolicy = string(in.String()) + out.FSGroupChangePolicy = string(in.String()) case "runAsGroup": out.RunAsGroup = int64(in.Int64()) case "runAsNonRoot": @@ -49,12 +49,12 @@ func easyjson6769e492DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex case "seLinuxOptions": if in.IsNull() { in.Skip() - out.SeLinuxOptions = nil + out.SELinuxOptions = nil } else { - if out.SeLinuxOptions == nil { - out.SeLinuxOptions = new(SELinuxOptions) + if out.SELinuxOptions == nil { + out.SELinuxOptions = new(SELinuxOptions) } - easyjson6769e492DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SeLinuxOptions) + easyjson6769e492DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SELinuxOptions) } case "seccompProfile": if in.IsNull() { @@ -144,13 +144,13 @@ func easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W out.RawByte('{') first := true _ = first - if in.FsGroup != 0 { + if in.FSGroup != 0 { const prefix string = ",\"fsGroup\":" first = false out.RawString(prefix[1:]) - out.Int64(int64(in.FsGroup)) + out.Int64(int64(in.FSGroup)) } - if in.FsGroupChangePolicy != "" { + if in.FSGroupChangePolicy != "" { const prefix string = ",\"fsGroupChangePolicy\":" if first { first = false @@ -158,7 +158,7 @@ func easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W } else { out.RawString(prefix) } - out.String(string(in.FsGroupChangePolicy)) + out.String(string(in.FSGroupChangePolicy)) } if in.RunAsGroup != 0 { const prefix string = ",\"runAsGroup\":" @@ -190,7 +190,7 @@ func easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W } out.Int64(int64(in.RunAsUser)) } - if in.SeLinuxOptions != nil { + if in.SELinuxOptions != nil { const prefix string = ",\"seLinuxOptions\":" if first { first = false @@ -198,7 +198,7 @@ func easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W } else { out.RawString(prefix) } - easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SeLinuxOptions) + easyjson6769e492EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SELinuxOptions) } if in.SeccompProfile != nil { const prefix string = ",\"seccompProfile\":" 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 22240cf..56c6f3c 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 @@ -73,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 - Os *PodOS `json:"os,omitempty"` + 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 Overhead map[string]*apimachinery_pkg_api_resource.Quantity `json:"overhead,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 index 99532cd..c00e033 100644 --- 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 @@ -254,12 +254,12 @@ func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex case "os": if in.IsNull() { in.Skip() - out.Os = nil + out.OS = nil } else { - if out.Os == nil { - out.Os = new(PodOS) + if out.OS == nil { + out.OS = new(PodOS) } - (*out.Os).UnmarshalEasyJSON(in) + (*out.OS).UnmarshalEasyJSON(in) } case "overhead": if in.IsNull() { @@ -643,10 +643,10 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W out.RawByte('}') } } - if in.Os != nil { + if in.OS != nil { const prefix string = ",\"os\":" out.RawString(prefix) - (*in.Os).MarshalEasyJSON(out) + (*in.OS).MarshalEasyJSON(out) } if len(in.Overhead) != 0 { const prefix string = ",\"overhead\":" @@ -856,12 +856,12 @@ func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Le case "awsElasticBlockStore": if in.IsNull() { in.Skip() - out.AwsElasticBlockStore = nil + out.AWSElasticBlockStore = nil } else { - if out.AwsElasticBlockStore == nil { - out.AwsElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + if out.AWSElasticBlockStore == nil { + out.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } - (*out.AwsElasticBlockStore).UnmarshalEasyJSON(in) + (*out.AWSElasticBlockStore).UnmarshalEasyJSON(in) } case "azureDisk": if in.IsNull() { @@ -916,12 +916,12 @@ func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Le case "csi": if in.IsNull() { in.Skip() - out.Csi = nil + out.CSI = nil } else { - if out.Csi == nil { - out.Csi = new(CSIVolumeSource) + if out.CSI == nil { + out.CSI = new(CSIVolumeSource) } - (*out.Csi).UnmarshalEasyJSON(in) + (*out.CSI).UnmarshalEasyJSON(in) } case "downwardAPI": if in.IsNull() { @@ -956,12 +956,12 @@ func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Le case "fc": if in.IsNull() { in.Skip() - out.Fc = nil + out.FC = nil } else { - if out.Fc == nil { - out.Fc = new(FCVolumeSource) + if out.FC == nil { + out.FC = new(FCVolumeSource) } - (*out.Fc).UnmarshalEasyJSON(in) + (*out.FC).UnmarshalEasyJSON(in) } case "flexVolume": if in.IsNull() { @@ -986,12 +986,12 @@ func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Le case "gcePersistentDisk": if in.IsNull() { in.Skip() - out.GcePersistentDisk = nil + out.GCEPersistentDisk = nil } else { - if out.GcePersistentDisk == nil { - out.GcePersistentDisk = new(GCEPersistentDiskVolumeSource) + if out.GCEPersistentDisk == nil { + out.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } - (*out.GcePersistentDisk).UnmarshalEasyJSON(in) + (*out.GCEPersistentDisk).UnmarshalEasyJSON(in) } case "gitRepo": if in.IsNull() { @@ -1026,12 +1026,12 @@ func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Le case "iscsi": if in.IsNull() { in.Skip() - out.Iscsi = nil + out.ISCSI = nil } else { - if out.Iscsi == nil { - out.Iscsi = new(ISCSIVolumeSource) + if out.ISCSI == nil { + out.ISCSI = new(ISCSIVolumeSource) } - (*out.Iscsi).UnmarshalEasyJSON(in) + (*out.ISCSI).UnmarshalEasyJSON(in) } case "name": if in.IsNull() { @@ -1046,12 +1046,12 @@ func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Le case "nfs": if in.IsNull() { in.Skip() - out.Nfs = nil + out.NFS = nil } else { - if out.Nfs == nil { - out.Nfs = new(NFSVolumeSource) + if out.NFS == nil { + out.NFS = new(NFSVolumeSource) } - (*out.Nfs).UnmarshalEasyJSON(in) + (*out.NFS).UnmarshalEasyJSON(in) } case "persistentVolumeClaim": if in.IsNull() { @@ -1106,12 +1106,12 @@ func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV13(in *jlexer.Le case "rbd": if in.IsNull() { in.Skip() - out.Rbd = nil + out.RBD = nil } else { - if out.Rbd == nil { - out.Rbd = new(RBDVolumeSource) + if out.RBD == nil { + out.RBD = new(RBDVolumeSource) } - easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV17(in, out.Rbd) + easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV17(in, out.RBD) } case "scaleIO": if in.IsNull() { @@ -1167,11 +1167,11 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter. out.RawByte('{') first := true _ = first - if in.AwsElasticBlockStore != nil { + if in.AWSElasticBlockStore != nil { const prefix string = ",\"awsElasticBlockStore\":" first = false out.RawString(prefix[1:]) - (*in.AwsElasticBlockStore).MarshalEasyJSON(out) + (*in.AWSElasticBlockStore).MarshalEasyJSON(out) } if in.AzureDisk != nil { const prefix string = ",\"azureDisk\":" @@ -1223,7 +1223,7 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter. } (*in.ConfigMap).MarshalEasyJSON(out) } - if in.Csi != nil { + if in.CSI != nil { const prefix string = ",\"csi\":" if first { first = false @@ -1231,7 +1231,7 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter. } else { out.RawString(prefix) } - (*in.Csi).MarshalEasyJSON(out) + (*in.CSI).MarshalEasyJSON(out) } if in.DownwardAPI != nil { const prefix string = ",\"downwardAPI\":" @@ -1263,7 +1263,7 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter. } (*in.Ephemeral).MarshalEasyJSON(out) } - if in.Fc != nil { + if in.FC != nil { const prefix string = ",\"fc\":" if first { first = false @@ -1271,7 +1271,7 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter. } else { out.RawString(prefix) } - (*in.Fc).MarshalEasyJSON(out) + (*in.FC).MarshalEasyJSON(out) } if in.FlexVolume != nil { const prefix string = ",\"flexVolume\":" @@ -1293,7 +1293,7 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter. } (*in.Flocker).MarshalEasyJSON(out) } - if in.GcePersistentDisk != nil { + if in.GCEPersistentDisk != nil { const prefix string = ",\"gcePersistentDisk\":" if first { first = false @@ -1301,7 +1301,7 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter. } else { out.RawString(prefix) } - (*in.GcePersistentDisk).MarshalEasyJSON(out) + (*in.GCEPersistentDisk).MarshalEasyJSON(out) } if in.GitRepo != nil { const prefix string = ",\"gitRepo\":" @@ -1333,7 +1333,7 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter. } (*in.HostPath).MarshalEasyJSON(out) } - if in.Iscsi != nil { + if in.ISCSI != nil { const prefix string = ",\"iscsi\":" if first { first = false @@ -1341,7 +1341,7 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter. } else { out.RawString(prefix) } - (*in.Iscsi).MarshalEasyJSON(out) + (*in.ISCSI).MarshalEasyJSON(out) } { const prefix string = ",\"name\":" @@ -1357,10 +1357,10 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter. out.String(string(*in.Name)) } } - if in.Nfs != nil { + if in.NFS != nil { const prefix string = ",\"nfs\":" out.RawString(prefix) - (*in.Nfs).MarshalEasyJSON(out) + (*in.NFS).MarshalEasyJSON(out) } if in.PersistentVolumeClaim != nil { const prefix string = ",\"persistentVolumeClaim\":" @@ -1387,10 +1387,10 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV13(out *jwriter. out.RawString(prefix) easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV16(out, *in.Quobyte) } - if in.Rbd != nil { + if in.RBD != nil { const prefix string = ",\"rbd\":" out.RawString(prefix) - easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV17(out, *in.Rbd) + easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV17(out, *in.RBD) } if in.ScaleIO != nil { const prefix string = ",\"scaleIO\":" @@ -1434,7 +1434,7 @@ func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV111(in *jlexer.L } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "storagePolicyID": out.StoragePolicyID = string(in.String()) case "storagePolicyName": @@ -1463,11 +1463,11 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV111(out *jwriter out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.StoragePolicyID != "" { const prefix string = ",\"storagePolicyID\":" @@ -1525,7 +1525,7 @@ func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV110(in *jlexer.L } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "readOnly": out.ReadOnly = bool(in.Bool()) case "secretRef": @@ -1556,11 +1556,11 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV110(out *jwriter out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.ReadOnly { const prefix string = ",\"readOnly\":" @@ -1745,7 +1745,7 @@ func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV18(in *jlexer.Le } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "gateway": if in.IsNull() { in.Skip() @@ -1802,11 +1802,11 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV18(out *jwriter. out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } { const prefix string = ",\"gateway\":" @@ -1892,7 +1892,7 @@ func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV17(in *jlexer.Le } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "image": if in.IsNull() { in.Skip() @@ -1958,11 +1958,11 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV17(out *jwriter. out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } { const prefix string = ",\"image\":" @@ -2549,7 +2549,7 @@ func easyjsonA34d1d2dDecodeGithubComKubewardenK8sObjectsApiCoreV14(in *jlexer.Le } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "readOnly": out.ReadOnly = bool(in.Bool()) case "volumeID": @@ -2576,11 +2576,11 @@ func easyjsonA34d1d2dEncodeGithubComKubewardenK8sObjectsApiCoreV14(out *jwriter. out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.ReadOnly { const prefix string = ",\"readOnly\":" diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_gvk.go new file mode 100644 index 0000000..eb0baac --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_gvk.go @@ -0,0 +1,18 @@ +// 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 *PodTemplate) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "PodTemplate" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_list_gvk.go new file mode 100644 index 0000000..6678941 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/pod_template_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *PodTemplateList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "PodTemplateList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/portworx_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/portworx_volume_source.go index 03b8b8a..ce3bf1b 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/portworx_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/portworx_volume_source.go @@ -11,7 +11,7 @@ package v1 type PortworxVolumeSource struct { // 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. - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. ReadOnly bool `json:"readOnly,omitempty"` 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 index 203f2d2..2c691f2 100644 --- 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 @@ -37,7 +37,7 @@ func easyjson6549b042DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "readOnly": out.ReadOnly = bool(in.Bool()) case "volumeID": @@ -64,11 +64,11 @@ func easyjson6549b042EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.ReadOnly { const prefix string = ",\"readOnly\":" 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 e18de50..e76e8b4 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 @@ -17,7 +17,7 @@ type Probe struct { 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 *GRPCAction `json:"grpc,omitempty"` + GRPC *GRPCAction `json:"grpc,omitempty"` // HTTPGet specifies the http request to perform. HTTPGet *HTTPGetAction `json:"httpGet,omitempty"` 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 index a73b00b..27a9347 100644 --- 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 @@ -52,12 +52,12 @@ func easyjsonDe232084DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex case "grpc": if in.IsNull() { in.Skip() - out.Grpc = nil + out.GRPC = nil } else { - if out.Grpc == nil { - out.Grpc = new(GRPCAction) + if out.GRPC == nil { + out.GRPC = new(GRPCAction) } - (*out.Grpc).UnmarshalEasyJSON(in) + (*out.GRPC).UnmarshalEasyJSON(in) } case "httpGet": if in.IsNull() { @@ -119,7 +119,7 @@ func easyjsonDe232084EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W } out.Int32(int32(in.FailureThreshold)) } - if in.Grpc != nil { + if in.GRPC != nil { const prefix string = ",\"grpc\":" if first { first = false @@ -127,7 +127,7 @@ func easyjsonDe232084EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W } else { out.RawString(prefix) } - (*in.Grpc).MarshalEasyJSON(out) + (*in.GRPC).MarshalEasyJSON(out) } if in.HTTPGet != nil { const prefix string = ",\"httpGet\":" diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/r_b_d_persistent_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_persistent_volume_source.go similarity index 98% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/r_b_d_persistent_volume_source.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_persistent_volume_source.go index 6bdebad..3a604df 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/r_b_d_persistent_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_persistent_volume_source.go @@ -11,7 +11,7 @@ package v1 type RBDPersistentVolumeSource struct { // 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 - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it // Required: true diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/r_b_d_persistent_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_persistent_volume_source_easyjson.go similarity index 87% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/r_b_d_persistent_volume_source_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_persistent_volume_source_easyjson.go index 83558d6..35262d2 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/r_b_d_persistent_volume_source_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_persistent_volume_source_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonCc7366f7DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *RBDPersistentVolumeSource) { +func easyjsonCe763073DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *RBDPersistentVolumeSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -37,7 +37,7 @@ func easyjsonCc7366f7DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "image": if in.IsNull() { in.Skip() @@ -85,7 +85,7 @@ func easyjsonCc7366f7DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex if out.SecretRef == nil { out.SecretRef = new(SecretReference) } - easyjsonCc7366f7DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) + easyjsonCe763073DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) } case "user": out.User = string(in.String()) @@ -99,15 +99,15 @@ func easyjsonCc7366f7DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjsonCc7366f7EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in RBDPersistentVolumeSource) { +func easyjsonCe763073EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in RBDPersistentVolumeSource) { out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } { const prefix string = ",\"image\":" @@ -157,7 +157,7 @@ func easyjsonCc7366f7EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W if in.SecretRef != nil { const prefix string = ",\"secretRef\":" out.RawString(prefix) - easyjsonCc7366f7EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) + easyjsonCe763073EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) } if in.User != "" { const prefix string = ",\"user\":" @@ -170,27 +170,27 @@ func easyjsonCc7366f7EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v RBDPersistentVolumeSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonCc7366f7EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjsonCe763073EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RBDPersistentVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonCc7366f7EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjsonCe763073EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RBDPersistentVolumeSource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonCc7366f7DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjsonCe763073DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RBDPersistentVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonCc7366f7DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjsonCe763073DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } -func easyjsonCc7366f7DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { +func easyjsonCe763073DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -223,7 +223,7 @@ func easyjsonCc7366f7DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Le in.Consumed() } } -func easyjsonCc7366f7EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { +func easyjsonCe763073EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { out.RawByte('{') first := true _ = first diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/r_b_d_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_volume_source.go similarity index 97% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/r_b_d_volume_source.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_volume_source.go index c4a7df9..f4ce712 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/r_b_d_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_volume_source.go @@ -11,7 +11,7 @@ package v1 type RBDVolumeSource struct { // 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 - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it // Required: true diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/r_b_d_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_volume_source_easyjson.go similarity index 89% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/r_b_d_volume_source_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_volume_source_easyjson.go index 19e3368..c864a7e 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/r_b_d_volume_source_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/rbd_volume_source_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjson91454de1DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *RBDVolumeSource) { +func easyjson345099d5DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *RBDVolumeSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -37,7 +37,7 @@ func easyjson91454de1DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "image": if in.IsNull() { in.Skip() @@ -99,15 +99,15 @@ func easyjson91454de1DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjson91454de1EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in RBDVolumeSource) { +func easyjson345099d5EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in RBDVolumeSource) { out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } { const prefix string = ",\"image\":" @@ -170,23 +170,23 @@ func easyjson91454de1EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v RBDVolumeSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson91454de1EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjson345099d5EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v RBDVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson91454de1EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjson345099d5EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *RBDVolumeSource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson91454de1DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjson345099d5DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *RBDVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson91454de1DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjson345099d5DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_gvk.go new file mode 100644 index 0000000..23590b4 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_gvk.go @@ -0,0 +1,18 @@ +// 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 *ReplicationController) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "ReplicationController" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_list_gvk.go new file mode 100644 index 0000000..13576c2 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/replication_controller_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *ReplicationControllerList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "ReplicationControllerList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_gvk.go new file mode 100644 index 0000000..2d7c66b --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_gvk.go @@ -0,0 +1,18 @@ +// 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 *ResourceQuota) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "ResourceQuota" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_list_gvk.go new file mode 100644 index 0000000..a71474d --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/resource_quota_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *ResourceQuotaList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "ResourceQuotaList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_i_o_persistent_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_persistent_volume_source.go similarity index 97% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_i_o_persistent_volume_source.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_persistent_volume_source.go index 77bf443..d2a5843 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_i_o_persistent_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_persistent_volume_source.go @@ -11,7 +11,7 @@ package v1 type ScaleIOPersistentVolumeSource struct { // 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" - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // gateway is the host address of the ScaleIO API Gateway. // Required: true diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_i_o_persistent_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_persistent_volume_source_easyjson.go similarity index 87% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_i_o_persistent_volume_source_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_persistent_volume_source_easyjson.go index 5ed9e66..3e8e008 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_i_o_persistent_volume_source_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_persistent_volume_source_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjson88a248ebDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ScaleIOPersistentVolumeSource) { +func easyjsonB4d2e762DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ScaleIOPersistentVolumeSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -37,7 +37,7 @@ func easyjson88a248ebDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "gateway": if in.IsNull() { in.Skip() @@ -60,7 +60,7 @@ func easyjson88a248ebDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex if out.SecretRef == nil { out.SecretRef = new(SecretReference) } - easyjson88a248ebDecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) + easyjsonB4d2e762DecodeGithubComKubewardenK8sObjectsApiCoreV11(in, out.SecretRef) } case "sslEnabled": out.SslEnabled = bool(in.Bool()) @@ -90,15 +90,15 @@ func easyjson88a248ebDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjson88a248ebEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ScaleIOPersistentVolumeSource) { +func easyjsonB4d2e762EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ScaleIOPersistentVolumeSource) { out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } { const prefix string = ",\"gateway\":" @@ -130,7 +130,7 @@ func easyjson88a248ebEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W if in.SecretRef == nil { out.RawString("null") } else { - easyjson88a248ebEncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) + easyjsonB4d2e762EncodeGithubComKubewardenK8sObjectsApiCoreV11(out, *in.SecretRef) } } if in.SslEnabled { @@ -168,27 +168,27 @@ func easyjson88a248ebEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v ScaleIOPersistentVolumeSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson88a248ebEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjsonB4d2e762EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ScaleIOPersistentVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjson88a248ebEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjsonB4d2e762EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ScaleIOPersistentVolumeSource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson88a248ebDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjsonB4d2e762DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ScaleIOPersistentVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson88a248ebDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjsonB4d2e762DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } -func easyjson88a248ebDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { +func easyjsonB4d2e762DecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexer, out *SecretReference) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -221,7 +221,7 @@ func easyjson88a248ebDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Le in.Consumed() } } -func easyjson88a248ebEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { +func easyjsonB4d2e762EncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Writer, in SecretReference) { out.RawByte('{') first := true _ = first diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_i_o_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_volume_source.go similarity index 97% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_i_o_volume_source.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_volume_source.go index e5831bf..7f6c069 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_i_o_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_volume_source.go @@ -11,7 +11,7 @@ package v1 type ScaleIOVolumeSource struct { // 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". - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // gateway is the host address of the ScaleIO API Gateway. // Required: true diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_i_o_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_volume_source_easyjson.go similarity index 89% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_i_o_volume_source_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_volume_source_easyjson.go index 7f9c466..ff1bc50 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_i_o_volume_source_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/scale_io_volume_source_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonB379b9edDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ScaleIOVolumeSource) { +func easyjson101c4fe2DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *ScaleIOVolumeSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -37,7 +37,7 @@ func easyjsonB379b9edDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "gateway": if in.IsNull() { in.Skip() @@ -90,15 +90,15 @@ func easyjsonB379b9edDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjsonB379b9edEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ScaleIOVolumeSource) { +func easyjson101c4fe2EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in ScaleIOVolumeSource) { out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } { const prefix string = ",\"gateway\":" @@ -168,23 +168,23 @@ func easyjsonB379b9edEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v ScaleIOVolumeSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonB379b9edEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjson101c4fe2EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ScaleIOVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonB379b9edEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjson101c4fe2EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ScaleIOVolumeSource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonB379b9edDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjson101c4fe2DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ScaleIOVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonB379b9edDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjson101c4fe2DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/s_e_linux_options.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/se_linux_options.go similarity index 100% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/s_e_linux_options.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/se_linux_options.go diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/s_e_linux_options_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/se_linux_options_easyjson.go similarity index 86% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/s_e_linux_options_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/se_linux_options_easyjson.go index 8556350..f7449a0 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/s_e_linux_options_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/se_linux_options_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjson18107e85DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *SELinuxOptions) { +func easyjsonA0bebc24DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *SELinuxOptions) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -54,7 +54,7 @@ func easyjson18107e85DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjson18107e85EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in SELinuxOptions) { +func easyjsonA0bebc24EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in SELinuxOptions) { out.RawByte('{') first := true _ = first @@ -100,23 +100,23 @@ func easyjson18107e85EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v SELinuxOptions) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjson18107e85EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjsonA0bebc24EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v SELinuxOptions) MarshalEasyJSON(w *jwriter.Writer) { - easyjson18107e85EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjsonA0bebc24EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *SELinuxOptions) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjson18107e85DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjsonA0bebc24DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *SELinuxOptions) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjson18107e85DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjsonA0bebc24DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_gvk.go new file mode 100644 index 0000000..dc8da19 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_gvk.go @@ -0,0 +1,18 @@ +// 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 *Secret) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "Secret" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_list_gvk.go new file mode 100644 index 0000000..bdc7dea --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/secret_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *SecretList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "SecretList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/security_context.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/security_context.go index f5e994c..eb732b7 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/security_context.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/security_context.go @@ -35,7 +35,7 @@ type SecurityContext struct { RunAsUser int64 `json:"runAsUser,omitempty"` // 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. - SeLinuxOptions *SELinuxOptions `json:"seLinuxOptions,omitempty"` + SELinuxOptions *SELinuxOptions `json:"seLinuxOptions,omitempty"` // The seccomp options to use by this container. If seccomp options are provided at both the pod & container level, the container options override the pod options. Note that this field cannot be set when spec.os.name is windows. SeccompProfile *SeccompProfile `json:"seccompProfile,omitempty"` 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 index 199d38a..a0d6e19 100644 --- 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 @@ -63,12 +63,12 @@ func easyjson2dce4aeDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexe case "seLinuxOptions": if in.IsNull() { in.Skip() - out.SeLinuxOptions = nil + out.SELinuxOptions = nil } else { - if out.SeLinuxOptions == nil { - out.SeLinuxOptions = new(SELinuxOptions) + if out.SELinuxOptions == nil { + out.SELinuxOptions = new(SELinuxOptions) } - (*out.SeLinuxOptions).UnmarshalEasyJSON(in) + (*out.SELinuxOptions).UnmarshalEasyJSON(in) } case "seccompProfile": if in.IsNull() { @@ -180,7 +180,7 @@ func easyjson2dce4aeEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr } out.Int64(int64(in.RunAsUser)) } - if in.SeLinuxOptions != nil { + if in.SELinuxOptions != nil { const prefix string = ",\"seLinuxOptions\":" if first { first = false @@ -188,7 +188,7 @@ func easyjson2dce4aeEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr } else { out.RawString(prefix) } - (*in.SeLinuxOptions).MarshalEasyJSON(out) + (*in.SELinuxOptions).MarshalEasyJSON(out) } if in.SeccompProfile != nil { const prefix string = ",\"seccompProfile\":" diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_gvk.go new file mode 100644 index 0000000..b226aea --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_gvk.go @@ -0,0 +1,18 @@ +// 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 *ServiceAccount) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "ServiceAccount" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_list_gvk.go new file mode 100644 index 0000000..4502db5 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_account_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *ServiceAccountList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "ServiceAccountList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_gvk.go new file mode 100644 index 0000000..cc05119 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_gvk.go @@ -0,0 +1,18 @@ +// 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 *Service) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "Service" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_list_gvk.go new file mode 100644 index 0000000..7cee05c --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/service_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *ServiceList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "ServiceList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_o_s_persistent_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_persistent_volume_source.go similarity index 97% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_o_s_persistent_volume_source.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_persistent_volume_source.go index 50158db..1813998 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_o_s_persistent_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_persistent_volume_source.go @@ -11,7 +11,7 @@ package v1 type StorageOSPersistentVolumeSource struct { // 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. - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. ReadOnly bool `json:"readOnly,omitempty"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_o_s_persistent_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_persistent_volume_source_easyjson.go similarity index 82% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_o_s_persistent_volume_source_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_persistent_volume_source_easyjson.go index 5e8dc9b..00f9520 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_o_s_persistent_volume_source_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_persistent_volume_source_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonC176eebaDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *StorageOSPersistentVolumeSource) { +func easyjsonAe7aa5dDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *StorageOSPersistentVolumeSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -37,7 +37,7 @@ func easyjsonC176eebaDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "readOnly": out.ReadOnly = bool(in.Bool()) case "secretRef": @@ -64,15 +64,15 @@ func easyjsonC176eebaDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex in.Consumed() } } -func easyjsonC176eebaEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in StorageOSPersistentVolumeSource) { +func easyjsonAe7aa5dEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in StorageOSPersistentVolumeSource) { out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.ReadOnly { const prefix string = ",\"readOnly\":" @@ -120,23 +120,23 @@ func easyjsonC176eebaEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W // MarshalJSON supports json.Marshaler interface func (v StorageOSPersistentVolumeSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonC176eebaEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjsonAe7aa5dEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v StorageOSPersistentVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonC176eebaEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjsonAe7aa5dEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *StorageOSPersistentVolumeSource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonC176eebaDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjsonAe7aa5dDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *StorageOSPersistentVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonC176eebaDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjsonAe7aa5dDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_o_s_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_volume_source.go similarity index 97% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_o_s_volume_source.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_volume_source.go index 043ddbc..7ab04ef 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_o_s_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_volume_source.go @@ -11,7 +11,7 @@ package v1 type StorageOSVolumeSource struct { // 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. - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. ReadOnly bool `json:"readOnly,omitempty"` diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_o_s_volume_source_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_volume_source_easyjson.go similarity index 82% rename from vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_o_s_volume_source_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_volume_source_easyjson.go index 5c4e8ca..4950a26 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_o_s_volume_source_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/storage_os_volume_source_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonAb95dfaDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *StorageOSVolumeSource) { +func easyjsonE2bfc1e7DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer, out *StorageOSVolumeSource) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -37,7 +37,7 @@ func easyjsonAb95dfaDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexe } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "readOnly": out.ReadOnly = bool(in.Bool()) case "secretRef": @@ -64,15 +64,15 @@ func easyjsonAb95dfaDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexe in.Consumed() } } -func easyjsonAb95dfaEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in StorageOSVolumeSource) { +func easyjsonE2bfc1e7EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Writer, in StorageOSVolumeSource) { out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.ReadOnly { const prefix string = ",\"readOnly\":" @@ -120,23 +120,23 @@ func easyjsonAb95dfaEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wr // MarshalJSON supports json.Marshaler interface func (v StorageOSVolumeSource) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonAb95dfaEncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) + easyjsonE2bfc1e7EncodeGithubComKubewardenK8sObjectsApiCoreV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v StorageOSVolumeSource) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonAb95dfaEncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) + easyjsonE2bfc1e7EncodeGithubComKubewardenK8sObjectsApiCoreV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *StorageOSVolumeSource) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonAb95dfaDecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) + easyjsonE2bfc1e7DecodeGithubComKubewardenK8sObjectsApiCoreV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *StorageOSVolumeSource) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonAb95dfaDecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) + easyjsonE2bfc1e7DecodeGithubComKubewardenK8sObjectsApiCoreV1(l, v) } diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume.go index 3fb1e65..100390c 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/volume.go @@ -11,7 +11,7 @@ package v1 type Volume struct { // 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 - AwsElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty"` + AWSElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty"` // azureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty"` @@ -29,7 +29,7 @@ type Volume struct { ConfigMap *ConfigMapVolumeSource `json:"configMap,omitempty"` // csi (Container Storage Interface) represents ephemeral storage that is handled by certain external CSI drivers (Beta feature). - Csi *CSIVolumeSource `json:"csi,omitempty"` + CSI *CSIVolumeSource `json:"csi,omitempty"` // downwardAPI represents downward API about the pod that should populate this volume DownwardAPI *DownwardAPIVolumeSource `json:"downwardAPI,omitempty"` @@ -54,7 +54,7 @@ type Volume struct { Ephemeral *EphemeralVolumeSource `json:"ephemeral,omitempty"` // fc represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. - Fc *FCVolumeSource `json:"fc,omitempty"` + FC *FCVolumeSource `json:"fc,omitempty"` // flexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. FlexVolume *FlexVolumeSource `json:"flexVolume,omitempty"` @@ -63,7 +63,7 @@ type Volume struct { Flocker *FlockerVolumeSource `json:"flocker,omitempty"` // 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 - GcePersistentDisk *GCEPersistentDiskVolumeSource `json:"gcePersistentDisk,omitempty"` + GCEPersistentDisk *GCEPersistentDiskVolumeSource `json:"gcePersistentDisk,omitempty"` // 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. GitRepo *GitRepoVolumeSource `json:"gitRepo,omitempty"` @@ -75,14 +75,14 @@ type Volume struct { HostPath *HostPathVolumeSource `json:"hostPath,omitempty"` // 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 - Iscsi *ISCSIVolumeSource `json:"iscsi,omitempty"` + ISCSI *ISCSIVolumeSource `json:"iscsi,omitempty"` // 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 // Required: true Name *string `json:"name"` // nfs represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - Nfs *NFSVolumeSource `json:"nfs,omitempty"` + NFS *NFSVolumeSource `json:"nfs,omitempty"` // persistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims PersistentVolumeClaim *PersistentVolumeClaimVolumeSource `json:"persistentVolumeClaim,omitempty"` @@ -100,7 +100,7 @@ type Volume struct { Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty"` // 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 - Rbd *RBDVolumeSource `json:"rbd,omitempty"` + RBD *RBDVolumeSource `json:"rbd,omitempty"` // scaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. ScaleIO *ScaleIOVolumeSource `json:"scaleIO,omitempty"` 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 index 22d9d69..64cdd17 100644 --- 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 @@ -39,12 +39,12 @@ func easyjson88542aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer case "awsElasticBlockStore": if in.IsNull() { in.Skip() - out.AwsElasticBlockStore = nil + out.AWSElasticBlockStore = nil } else { - if out.AwsElasticBlockStore == nil { - out.AwsElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) + if out.AWSElasticBlockStore == nil { + out.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } - (*out.AwsElasticBlockStore).UnmarshalEasyJSON(in) + (*out.AWSElasticBlockStore).UnmarshalEasyJSON(in) } case "azureDisk": if in.IsNull() { @@ -99,12 +99,12 @@ func easyjson88542aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer case "csi": if in.IsNull() { in.Skip() - out.Csi = nil + out.CSI = nil } else { - if out.Csi == nil { - out.Csi = new(CSIVolumeSource) + if out.CSI == nil { + out.CSI = new(CSIVolumeSource) } - (*out.Csi).UnmarshalEasyJSON(in) + (*out.CSI).UnmarshalEasyJSON(in) } case "downwardAPI": if in.IsNull() { @@ -139,12 +139,12 @@ func easyjson88542aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer case "fc": if in.IsNull() { in.Skip() - out.Fc = nil + out.FC = nil } else { - if out.Fc == nil { - out.Fc = new(FCVolumeSource) + if out.FC == nil { + out.FC = new(FCVolumeSource) } - (*out.Fc).UnmarshalEasyJSON(in) + (*out.FC).UnmarshalEasyJSON(in) } case "flexVolume": if in.IsNull() { @@ -169,12 +169,12 @@ func easyjson88542aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer case "gcePersistentDisk": if in.IsNull() { in.Skip() - out.GcePersistentDisk = nil + out.GCEPersistentDisk = nil } else { - if out.GcePersistentDisk == nil { - out.GcePersistentDisk = new(GCEPersistentDiskVolumeSource) + if out.GCEPersistentDisk == nil { + out.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } - (*out.GcePersistentDisk).UnmarshalEasyJSON(in) + (*out.GCEPersistentDisk).UnmarshalEasyJSON(in) } case "gitRepo": if in.IsNull() { @@ -209,12 +209,12 @@ func easyjson88542aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer case "iscsi": if in.IsNull() { in.Skip() - out.Iscsi = nil + out.ISCSI = nil } else { - if out.Iscsi == nil { - out.Iscsi = new(ISCSIVolumeSource) + if out.ISCSI == nil { + out.ISCSI = new(ISCSIVolumeSource) } - (*out.Iscsi).UnmarshalEasyJSON(in) + (*out.ISCSI).UnmarshalEasyJSON(in) } case "name": if in.IsNull() { @@ -229,12 +229,12 @@ func easyjson88542aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer case "nfs": if in.IsNull() { in.Skip() - out.Nfs = nil + out.NFS = nil } else { - if out.Nfs == nil { - out.Nfs = new(NFSVolumeSource) + if out.NFS == nil { + out.NFS = new(NFSVolumeSource) } - (*out.Nfs).UnmarshalEasyJSON(in) + (*out.NFS).UnmarshalEasyJSON(in) } case "persistentVolumeClaim": if in.IsNull() { @@ -289,12 +289,12 @@ func easyjson88542aDecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lexer case "rbd": if in.IsNull() { in.Skip() - out.Rbd = nil + out.RBD = nil } else { - if out.Rbd == nil { - out.Rbd = new(RBDVolumeSource) + if out.RBD == nil { + out.RBD = new(RBDVolumeSource) } - (*out.Rbd).UnmarshalEasyJSON(in) + (*out.RBD).UnmarshalEasyJSON(in) } case "scaleIO": if in.IsNull() { @@ -350,11 +350,11 @@ func easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wri out.RawByte('{') first := true _ = first - if in.AwsElasticBlockStore != nil { + if in.AWSElasticBlockStore != nil { const prefix string = ",\"awsElasticBlockStore\":" first = false out.RawString(prefix[1:]) - (*in.AwsElasticBlockStore).MarshalEasyJSON(out) + (*in.AWSElasticBlockStore).MarshalEasyJSON(out) } if in.AzureDisk != nil { const prefix string = ",\"azureDisk\":" @@ -406,7 +406,7 @@ func easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wri } (*in.ConfigMap).MarshalEasyJSON(out) } - if in.Csi != nil { + if in.CSI != nil { const prefix string = ",\"csi\":" if first { first = false @@ -414,7 +414,7 @@ func easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wri } else { out.RawString(prefix) } - (*in.Csi).MarshalEasyJSON(out) + (*in.CSI).MarshalEasyJSON(out) } if in.DownwardAPI != nil { const prefix string = ",\"downwardAPI\":" @@ -446,7 +446,7 @@ func easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wri } (*in.Ephemeral).MarshalEasyJSON(out) } - if in.Fc != nil { + if in.FC != nil { const prefix string = ",\"fc\":" if first { first = false @@ -454,7 +454,7 @@ func easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wri } else { out.RawString(prefix) } - (*in.Fc).MarshalEasyJSON(out) + (*in.FC).MarshalEasyJSON(out) } if in.FlexVolume != nil { const prefix string = ",\"flexVolume\":" @@ -476,7 +476,7 @@ func easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wri } (*in.Flocker).MarshalEasyJSON(out) } - if in.GcePersistentDisk != nil { + if in.GCEPersistentDisk != nil { const prefix string = ",\"gcePersistentDisk\":" if first { first = false @@ -484,7 +484,7 @@ func easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wri } else { out.RawString(prefix) } - (*in.GcePersistentDisk).MarshalEasyJSON(out) + (*in.GCEPersistentDisk).MarshalEasyJSON(out) } if in.GitRepo != nil { const prefix string = ",\"gitRepo\":" @@ -516,7 +516,7 @@ func easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wri } (*in.HostPath).MarshalEasyJSON(out) } - if in.Iscsi != nil { + if in.ISCSI != nil { const prefix string = ",\"iscsi\":" if first { first = false @@ -524,7 +524,7 @@ func easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wri } else { out.RawString(prefix) } - (*in.Iscsi).MarshalEasyJSON(out) + (*in.ISCSI).MarshalEasyJSON(out) } { const prefix string = ",\"name\":" @@ -540,10 +540,10 @@ func easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wri out.String(string(*in.Name)) } } - if in.Nfs != nil { + if in.NFS != nil { const prefix string = ",\"nfs\":" out.RawString(prefix) - (*in.Nfs).MarshalEasyJSON(out) + (*in.NFS).MarshalEasyJSON(out) } if in.PersistentVolumeClaim != nil { const prefix string = ",\"persistentVolumeClaim\":" @@ -570,10 +570,10 @@ func easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.Wri out.RawString(prefix) (*in.Quobyte).MarshalEasyJSON(out) } - if in.Rbd != nil { + if in.RBD != nil { const prefix string = ",\"rbd\":" out.RawString(prefix) - (*in.Rbd).MarshalEasyJSON(out) + (*in.RBD).MarshalEasyJSON(out) } if in.ScaleIO != nil { const prefix string = ",\"scaleIO\":" @@ -641,7 +641,7 @@ func easyjson88542aDecodeGithubComKubewardenK8sObjectsApiCoreV11(in *jlexer.Lexe } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "storagePolicyID": out.StoragePolicyID = string(in.String()) case "storagePolicyName": @@ -670,11 +670,11 @@ func easyjson88542aEncodeGithubComKubewardenK8sObjectsApiCoreV11(out *jwriter.Wr out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.StoragePolicyID != "" { const prefix string = ",\"storagePolicyID\":" diff --git a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/vsphere_virtual_disk_volume_source.go b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/vsphere_virtual_disk_volume_source.go index 80b0ee4..e1fc733 100644 --- a/vendor/github.com/kubewarden/k8s-objects/api/core/v1/vsphere_virtual_disk_volume_source.go +++ b/vendor/github.com/kubewarden/k8s-objects/api/core/v1/vsphere_virtual_disk_volume_source.go @@ -11,7 +11,7 @@ package v1 type VsphereVirtualDiskVolumeSource struct { // 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. - FsType string `json:"fsType,omitempty"` + FSType string `json:"fsType,omitempty"` // storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. StoragePolicyID string `json:"storagePolicyID,omitempty"` 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 index f95fd46..42f3f98 100644 --- 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 @@ -37,7 +37,7 @@ func easyjson83fc1858DecodeGithubComKubewardenK8sObjectsApiCoreV1(in *jlexer.Lex } switch key { case "fsType": - out.FsType = string(in.String()) + out.FSType = string(in.String()) case "storagePolicyID": out.StoragePolicyID = string(in.String()) case "storagePolicyName": @@ -66,11 +66,11 @@ func easyjson83fc1858EncodeGithubComKubewardenK8sObjectsApiCoreV1(out *jwriter.W out.RawByte('{') first := true _ = first - if in.FsType != "" { + if in.FSType != "" { const prefix string = ",\"fsType\":" first = false out.RawString(prefix[1:]) - out.String(string(in.FsType)) + out.String(string(in.FSType)) } if in.StoragePolicyID != "" { const prefix string = ",\"storagePolicyID\":" diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_group_gvk.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_group_gvk.go new file mode 100644 index 0000000..ac1ef7e --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_group_gvk.go @@ -0,0 +1,18 @@ +// 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 *APIGroup) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "APIGroup" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_group_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_group_list_gvk.go new file mode 100644 index 0000000..55beac2 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_group_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *APIGroupList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "APIGroupList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_resource_list_gvk.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_resource_list_gvk.go new file mode 100644 index 0000000..33ecc41 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_resource_list_gvk.go @@ -0,0 +1,18 @@ +// 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 *APIResourceList) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "APIResourceList" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_versions_gvk.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_versions_gvk.go new file mode 100644 index 0000000..ee9316c --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/api_versions_gvk.go @@ -0,0 +1,18 @@ +// 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 *APIVersions) GroupVersionKind() schema.GroupVersionKind { + kind := v.Kind + apiVersion := v.APIVersion + if kind == "" { + kind = "APIVersions" + } + if apiVersion == "" { + apiVersion = SchemeGroupVersion.String() + } + + return schema.FromAPIVersionAndKind(apiVersion, kind) +} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/fields_v1.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/fields_v1.go deleted file mode 100644 index 5c603bb..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/fields_v1.go +++ /dev/null @@ -1,15 +0,0 @@ -// 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 - -// FieldsV1 FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format. -// -// Each 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:', where is the name of a field in a struct, or key in a map 'v:', where is the exact json formatted value of a list item 'i:', where is position of a item in a list 'k:', where 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. -// -// The exact format is defined in sigs.k8s.io/structured-merge-diff -// -// swagger:model FieldsV1 -type FieldsV1 interface{} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/fields_v1_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/fields_v1_easyjson.go deleted file mode 100644 index bafde36..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/fields_v1_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/group_info.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/group_info.go new file mode 100644 index 0000000..e18304e --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/group_info.go @@ -0,0 +1,16 @@ +// Code generated by GroupVersionResource generator for getting GVK data. DO NOT EDIT. + +package v1 + +import "github.com/kubewarden/k8s-objects/apimachinery/pkg/runtime/schema" + +// GroupName is the group name use in this package +const GroupName = "" + +// SchemeGroupVersion is group version used to register these objects +var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"} + +// Resource takes an unqualified resource and returns a Group qualified GroupResource +func Resource(resource string) schema.GroupResource { + return SchemeGroupVersion.WithResource(resource).GroupResource() +} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/patch.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/patch.go deleted file mode 100644 index b5f33e7..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/patch.go +++ /dev/null @@ -1,11 +0,0 @@ -// 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 - -// Patch Patch is provided to give a concrete name and type to the Kubernetes PATCH request body. -// -// swagger:model Patch -type Patch interface{} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/patch_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/patch_easyjson.go deleted file mode 100644 index bafde36..0000000 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/patch_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/server_address_by_client_c_id_r.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/server_address_by_client_cidr.go similarity index 100% rename from vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/server_address_by_client_c_id_r.go rename to vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/server_address_by_client_cidr.go diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/server_address_by_client_c_id_r_easyjson.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/server_address_by_client_cidr_easyjson.go similarity index 86% rename from vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/server_address_by_client_c_id_r_easyjson.go rename to vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/server_address_by_client_cidr_easyjson.go index af657aa..9759a88 100644 --- a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/server_address_by_client_c_id_r_easyjson.go +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/server_address_by_client_cidr_easyjson.go @@ -17,7 +17,7 @@ var ( _ easyjson.Marshaler ) -func easyjsonE7272ff5DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *ServerAddressByClientCIDR) { +func easyjsonB61c2e89DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(in *jlexer.Lexer, out *ServerAddressByClientCIDR) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { @@ -66,7 +66,7 @@ func easyjsonE7272ff5DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV in.Consumed() } } -func easyjsonE7272ff5EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in ServerAddressByClientCIDR) { +func easyjsonB61c2e89EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(out *jwriter.Writer, in ServerAddressByClientCIDR) { out.RawByte('{') first := true _ = first @@ -94,23 +94,23 @@ func easyjsonE7272ff5EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV // MarshalJSON supports json.Marshaler interface func (v ServerAddressByClientCIDR) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} - easyjsonE7272ff5EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) + easyjsonB61c2e89EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ServerAddressByClientCIDR) MarshalEasyJSON(w *jwriter.Writer) { - easyjsonE7272ff5EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) + easyjsonB61c2e89EncodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ServerAddressByClientCIDR) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} - easyjsonE7272ff5DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) + easyjsonB61c2e89DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ServerAddressByClientCIDR) UnmarshalEasyJSON(l *jlexer.Lexer) { - easyjsonE7272ff5DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) + easyjsonB61c2e89DecodeGithubComKubewardenK8sObjectsApimachineryPkgApisMetaV1(l, v) } 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 new file mode 100644 index 0000000..428b120 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/apis/meta/v1/status_gvk.go @@ -0,0 +1,18 @@ +// 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/runtime/schema/group_version.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/runtime/schema/group_version.go new file mode 100644 index 0000000..654f69d --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/runtime/schema/group_version.go @@ -0,0 +1,306 @@ +// Original file location https://raw.githubusercontent.com/kubernetes/apimachinery/master/pkg/runtime/schema/group_version.go +/* +Copyright 2015 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package schema + +import ( + "fmt" + "strings" +) + +// ParseResourceArg takes the common style of string which may be either `resource.group.com` or `resource.version.group.com` +// and parses it out into both possibilities. This code takes no responsibility for knowing which representation was intended +// but with a knowledge of all GroupVersions, calling code can take a very good guess. If there are only two segments, then +// `*GroupVersionResource` is nil. +// `resource.group.com` -> `group=com, version=group, resource=resource` and `group=group.com, resource=resource` +func ParseResourceArg(arg string) (*GroupVersionResource, GroupResource) { + var gvr *GroupVersionResource + if strings.Count(arg, ".") >= 2 { + s := strings.SplitN(arg, ".", 3) + gvr = &GroupVersionResource{Group: s[2], Version: s[1], Resource: s[0]} + } + + return gvr, ParseGroupResource(arg) +} + +// ParseKindArg takes the common style of string which may be either `Kind.group.com` or `Kind.version.group.com` +// and parses it out into both possibilities. This code takes no responsibility for knowing which representation was intended +// but with a knowledge of all GroupKinds, calling code can take a very good guess. If there are only two segments, then +// `*GroupVersionResource` is nil. +// `Kind.group.com` -> `group=com, version=group, kind=Kind` and `group=group.com, kind=Kind` +func ParseKindArg(arg string) (*GroupVersionKind, GroupKind) { + var gvk *GroupVersionKind + if strings.Count(arg, ".") >= 2 { + s := strings.SplitN(arg, ".", 3) + gvk = &GroupVersionKind{Group: s[2], Version: s[1], Kind: s[0]} + } + + return gvk, ParseGroupKind(arg) +} + +// GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying +// concepts during lookup stages without having partially valid types +type GroupResource struct { + Group string + Resource string +} + +func (gr GroupResource) WithVersion(version string) GroupVersionResource { + return GroupVersionResource{Group: gr.Group, Version: version, Resource: gr.Resource} +} + +func (gr GroupResource) Empty() bool { + return len(gr.Group) == 0 && len(gr.Resource) == 0 +} + +func (gr GroupResource) String() string { + if len(gr.Group) == 0 { + return gr.Resource + } + return gr.Resource + "." + gr.Group +} + +func ParseGroupKind(gk string) GroupKind { + i := strings.Index(gk, ".") + if i == -1 { + return GroupKind{Kind: gk} + } + + return GroupKind{Group: gk[i+1:], Kind: gk[:i]} +} + +// ParseGroupResource turns "resource.group" string into a GroupResource struct. Empty strings are allowed +// for each field. +func ParseGroupResource(gr string) GroupResource { + if i := strings.Index(gr, "."); i >= 0 { + return GroupResource{Group: gr[i+1:], Resource: gr[:i]} + } + return GroupResource{Resource: gr} +} + +// GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion +// to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling +type GroupVersionResource struct { + Group string + Version string + Resource string +} + +func (gvr GroupVersionResource) Empty() bool { + return len(gvr.Group) == 0 && len(gvr.Version) == 0 && len(gvr.Resource) == 0 +} + +func (gvr GroupVersionResource) GroupResource() GroupResource { + return GroupResource{Group: gvr.Group, Resource: gvr.Resource} +} + +func (gvr GroupVersionResource) GroupVersion() GroupVersion { + return GroupVersion{Group: gvr.Group, Version: gvr.Version} +} + +func (gvr GroupVersionResource) String() string { + return strings.Join([]string{gvr.Group, "/", gvr.Version, ", Resource=", gvr.Resource}, "") +} + +// GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying +// concepts during lookup stages without having partially valid types +type GroupKind struct { + Group string + Kind string +} + +func (gk GroupKind) Empty() bool { + return len(gk.Group) == 0 && len(gk.Kind) == 0 +} + +func (gk GroupKind) WithVersion(version string) GroupVersionKind { + return GroupVersionKind{Group: gk.Group, Version: version, Kind: gk.Kind} +} + +func (gk GroupKind) String() string { + if len(gk.Group) == 0 { + return gk.Kind + } + return gk.Kind + "." + gk.Group +} + +// GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion +// to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling +type GroupVersionKind struct { + Group string + Version string + Kind string +} + +// Empty returns true if group, version, and kind are empty +func (gvk GroupVersionKind) Empty() bool { + return len(gvk.Group) == 0 && len(gvk.Version) == 0 && len(gvk.Kind) == 0 +} + +func (gvk GroupVersionKind) GroupKind() GroupKind { + return GroupKind{Group: gvk.Group, Kind: gvk.Kind} +} + +func (gvk GroupVersionKind) GroupVersion() GroupVersion { + return GroupVersion{Group: gvk.Group, Version: gvk.Version} +} + +func (gvk GroupVersionKind) String() string { + return gvk.Group + "/" + gvk.Version + ", Kind=" + gvk.Kind +} + +// GroupVersion contains the "group" and the "version", which uniquely identifies the API. +type GroupVersion struct { + Group string + Version string +} + +// Empty returns true if group and version are empty +func (gv GroupVersion) Empty() bool { + return len(gv.Group) == 0 && len(gv.Version) == 0 +} + +// String puts "group" and "version" into a single "group/version" string. For the legacy v1 +// it returns "v1". +func (gv GroupVersion) String() string { + if len(gv.Group) > 0 { + return gv.Group + "/" + gv.Version + } + return gv.Version +} + +// Identifier implements runtime.GroupVersioner interface. +func (gv GroupVersion) Identifier() string { + return gv.String() +} + +// KindForGroupVersionKinds identifies the preferred GroupVersionKind out of a list. It returns ok false +// if none of the options match the group. It prefers a match to group and version over just group. +// TODO: Move GroupVersion to a package under pkg/runtime, since it's used by scheme. +// TODO: Introduce an adapter type between GroupVersion and runtime.GroupVersioner, and use LegacyCodec(GroupVersion) +// in fewer places. +func (gv GroupVersion) KindForGroupVersionKinds(kinds []GroupVersionKind) (target GroupVersionKind, ok bool) { + for _, gvk := range kinds { + if gvk.Group == gv.Group && gvk.Version == gv.Version { + return gvk, true + } + } + for _, gvk := range kinds { + if gvk.Group == gv.Group { + return gv.WithKind(gvk.Kind), true + } + } + return GroupVersionKind{}, false +} + +// ParseGroupVersion turns "group/version" string into a GroupVersion struct. It reports error +// if it cannot parse the string. +func ParseGroupVersion(gv string) (GroupVersion, error) { + // this can be the internal version for the legacy kube types + // TODO once we've cleared the last uses as strings, this special case should be removed. + if (len(gv) == 0) || (gv == "/") { + return GroupVersion{}, nil + } + + switch strings.Count(gv, "/") { + case 0: + return GroupVersion{"", gv}, nil + case 1: + i := strings.Index(gv, "/") + return GroupVersion{gv[:i], gv[i+1:]}, nil + default: + return GroupVersion{}, fmt.Errorf("unexpected GroupVersion string: %v", gv) + } +} + +// WithKind creates a GroupVersionKind based on the method receiver's GroupVersion and the passed Kind. +func (gv GroupVersion) WithKind(kind string) GroupVersionKind { + return GroupVersionKind{Group: gv.Group, Version: gv.Version, Kind: kind} +} + +// WithResource creates a GroupVersionResource based on the method receiver's GroupVersion and the passed Resource. +func (gv GroupVersion) WithResource(resource string) GroupVersionResource { + return GroupVersionResource{Group: gv.Group, Version: gv.Version, Resource: resource} +} + +// GroupVersions can be used to represent a set of desired group versions. +// TODO: Move GroupVersions to a package under pkg/runtime, since it's used by scheme. +// TODO: Introduce an adapter type between GroupVersions and runtime.GroupVersioner, and use LegacyCodec(GroupVersion) +// in fewer places. +type GroupVersions []GroupVersion + +// Identifier implements runtime.GroupVersioner interface. +func (gvs GroupVersions) Identifier() string { + groupVersions := make([]string, 0, len(gvs)) + for i := range gvs { + groupVersions = append(groupVersions, gvs[i].String()) + } + return fmt.Sprintf("[%s]", strings.Join(groupVersions, ",")) +} + +// KindForGroupVersionKinds identifies the preferred GroupVersionKind out of a list. It returns ok false +// if none of the options match the group. +func (gvs GroupVersions) KindForGroupVersionKinds(kinds []GroupVersionKind) (GroupVersionKind, bool) { + var targets []GroupVersionKind + for _, gv := range gvs { + target, ok := gv.KindForGroupVersionKinds(kinds) + if !ok { + continue + } + targets = append(targets, target) + } + if len(targets) == 1 { + return targets[0], true + } + if len(targets) > 1 { + return bestMatch(kinds, targets), true + } + return GroupVersionKind{}, false +} + +// bestMatch tries to pick best matching GroupVersionKind and falls back to the first +// found if no exact match exists. +func bestMatch(kinds []GroupVersionKind, targets []GroupVersionKind) GroupVersionKind { + for _, gvk := range targets { + for _, k := range kinds { + if k == gvk { + return k + } + } + } + return targets[0] +} + +// ToAPIVersionAndKind is a convenience method for satisfying runtime.Object on types that +// do not use TypeMeta. +func (gvk GroupVersionKind) ToAPIVersionAndKind() (string, string) { + if gvk.Empty() { + return "", "" + } + return gvk.GroupVersion().String(), gvk.Kind +} + +// FromAPIVersionAndKind returns a GVK representing the provided fields for types that +// do not use TypeMeta. This method exists to support test types and legacy serializations +// that have a distinct group and kind. +// TODO: further reduce usage of this method. +func FromAPIVersionAndKind(apiVersion, kind string) GroupVersionKind { + if gv, err := ParseGroupVersion(apiVersion); err == nil { + return GroupVersionKind{Group: gv.Group, Version: gv.Version, Kind: kind} + } + return GroupVersionKind{Kind: kind} +} diff --git a/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/runtime/schema/interfaces.go b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/runtime/schema/interfaces.go new file mode 100644 index 0000000..c408ff1 --- /dev/null +++ b/vendor/github.com/kubewarden/k8s-objects/apimachinery/pkg/runtime/schema/interfaces.go @@ -0,0 +1,24 @@ +// Original file location https://raw.githubusercontent.com/kubernetes/apimachinery/master/pkg/runtime/schema/interfaces.go +/* +Copyright 2016 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package schema + +type ObjectKind interface { + // GroupVersionKind returns the stored group, version, and kind of object, or an empty struct + // if the object does not expose or provide these fields. + GroupVersionKind() GroupVersionKind +} diff --git a/vendor/github.com/kubewarden/policy-sdk-go/Makefile b/vendor/github.com/kubewarden/policy-sdk-go/Makefile index 5f8ed24..6fab091 100644 --- a/vendor/github.com/kubewarden/policy-sdk-go/Makefile +++ b/vendor/github.com/kubewarden/policy-sdk-go/Makefile @@ -1,5 +1,5 @@ # Run tests -test: fmt vet +test: fmt vet generate-mocks go test ./... -coverprofile cover.out # Run go fmt against code @@ -17,4 +17,7 @@ deps: go get github.com/golangci/golangci-lint/cmd/golangci-lint generate-easyjson: - docker run --rm -v ${PWD}:/src -w /src golang:1.17-alpine ./hack/generate-easyjson.sh + 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/modules.txt b/vendor/modules.txt index 06570a9..74b0787 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -16,15 +16,16 @@ 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-kw4 +# github.com/kubewarden/k8s-objects v1.24.0-kw7 ## explicit; go 1.17 github.com/kubewarden/k8s-objects/api/apps/v1 github.com/kubewarden/k8s-objects/api/batch/v1 github.com/kubewarden/k8s-objects/api/core/v1 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.3.0 +# github.com/kubewarden/policy-sdk-go v0.4.0 ## explicit; go 1.20 github.com/kubewarden/policy-sdk-go github.com/kubewarden/policy-sdk-go/constants