From 1501b4e5e6dd5697777f86d313e3d6c8b28e7d61 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Mon, 19 Mar 2018 15:07:19 -0700 Subject: [PATCH] Update generated code --- .../v3/zz_generated_persistent_volume.go | 4 +- .../v3/zz_generated_persistent_volume_spec.go | 4 +- ...ted_azure_file_persistent_volume_source.go | 16 +++++ ...nerated_ceph_fspersistent_volume_source.go | 20 ++++++ .../zz_generated_host_path_volume_source.go | 4 +- .../v3/zz_generated_local_volume_source.go | 10 +++ .../v3/zz_generated_persistent_volume_spec.go | 62 +++++++++++++++++++ .../v3/zz_generated_secret_reference.go | 12 ++++ ...ated_storage_ospersistent_volume_source.go | 18 ++++++ 9 files changed, 144 insertions(+), 6 deletions(-) create mode 100644 client/project/v3/zz_generated_azure_file_persistent_volume_source.go create mode 100644 client/project/v3/zz_generated_ceph_fspersistent_volume_source.go create mode 100644 client/project/v3/zz_generated_local_volume_source.go create mode 100644 client/project/v3/zz_generated_persistent_volume_spec.go create mode 100644 client/project/v3/zz_generated_secret_reference.go create mode 100644 client/project/v3/zz_generated_storage_ospersistent_volume_source.go diff --git a/client/cluster/v3/zz_generated_persistent_volume.go b/client/cluster/v3/zz_generated_persistent_volume.go index 1f88919b..488b9483 100644 --- a/client/cluster/v3/zz_generated_persistent_volume.go +++ b/client/cluster/v3/zz_generated_persistent_volume.go @@ -39,7 +39,7 @@ const ( PersistentVolumeFieldScaleIO = "scaleIO" PersistentVolumeFieldState = "state" PersistentVolumeFieldStatus = "status" - PersistentVolumeFieldStorageClassName = "storageClassName" + PersistentVolumeFieldStorageClassId = "storageClassId" PersistentVolumeFieldStorageOS = "storageos" PersistentVolumeFieldTransitioning = "transitioning" PersistentVolumeFieldTransitioningMessage = "transitioningMessage" @@ -82,7 +82,7 @@ type PersistentVolume struct { ScaleIO *ScaleIOVolumeSource `json:"scaleIO,omitempty" yaml:"scaleIO,omitempty"` State string `json:"state,omitempty" yaml:"state,omitempty"` Status *PersistentVolumeStatus `json:"status,omitempty" yaml:"status,omitempty"` - StorageClassName string `json:"storageClassName,omitempty" yaml:"storageClassName,omitempty"` + StorageClassId string `json:"storageClassId,omitempty" yaml:"storageClassId,omitempty"` StorageOS *StorageOSPersistentVolumeSource `json:"storageos,omitempty" yaml:"storageos,omitempty"` Transitioning string `json:"transitioning,omitempty" yaml:"transitioning,omitempty"` TransitioningMessage string `json:"transitioningMessage,omitempty" yaml:"transitioningMessage,omitempty"` diff --git a/client/cluster/v3/zz_generated_persistent_volume_spec.go b/client/cluster/v3/zz_generated_persistent_volume_spec.go index e624d7e7..1b5ded6d 100644 --- a/client/cluster/v3/zz_generated_persistent_volume_spec.go +++ b/client/cluster/v3/zz_generated_persistent_volume_spec.go @@ -26,7 +26,7 @@ const ( PersistentVolumeSpecFieldQuobyte = "quobyte" PersistentVolumeSpecFieldRBD = "rbd" PersistentVolumeSpecFieldScaleIO = "scaleIO" - PersistentVolumeSpecFieldStorageClassName = "storageClassName" + PersistentVolumeSpecFieldStorageClassId = "storageClassId" PersistentVolumeSpecFieldStorageOS = "storageos" PersistentVolumeSpecFieldVsphereVolume = "vsphereVolume" ) @@ -56,7 +56,7 @@ type PersistentVolumeSpec struct { Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty" yaml:"quobyte,omitempty"` RBD *RBDVolumeSource `json:"rbd,omitempty" yaml:"rbd,omitempty"` ScaleIO *ScaleIOVolumeSource `json:"scaleIO,omitempty" yaml:"scaleIO,omitempty"` - StorageClassName string `json:"storageClassName,omitempty" yaml:"storageClassName,omitempty"` + StorageClassId string `json:"storageClassId,omitempty" yaml:"storageClassId,omitempty"` StorageOS *StorageOSPersistentVolumeSource `json:"storageos,omitempty" yaml:"storageos,omitempty"` VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty" yaml:"vsphereVolume,omitempty"` } diff --git a/client/project/v3/zz_generated_azure_file_persistent_volume_source.go b/client/project/v3/zz_generated_azure_file_persistent_volume_source.go new file mode 100644 index 00000000..4fe943fe --- /dev/null +++ b/client/project/v3/zz_generated_azure_file_persistent_volume_source.go @@ -0,0 +1,16 @@ +package client + +const ( + AzureFilePersistentVolumeSourceType = "azureFilePersistentVolumeSource" + AzureFilePersistentVolumeSourceFieldReadOnly = "readOnly" + AzureFilePersistentVolumeSourceFieldSecretName = "secretName" + AzureFilePersistentVolumeSourceFieldSecretNamespace = "secretNamespace" + AzureFilePersistentVolumeSourceFieldShareName = "shareName" +) + +type AzureFilePersistentVolumeSource struct { + ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"` + SecretName string `json:"secretName,omitempty" yaml:"secretName,omitempty"` + SecretNamespace string `json:"secretNamespace,omitempty" yaml:"secretNamespace,omitempty"` + ShareName string `json:"shareName,omitempty" yaml:"shareName,omitempty"` +} diff --git a/client/project/v3/zz_generated_ceph_fspersistent_volume_source.go b/client/project/v3/zz_generated_ceph_fspersistent_volume_source.go new file mode 100644 index 00000000..cdff2758 --- /dev/null +++ b/client/project/v3/zz_generated_ceph_fspersistent_volume_source.go @@ -0,0 +1,20 @@ +package client + +const ( + CephFSPersistentVolumeSourceType = "cephFSPersistentVolumeSource" + CephFSPersistentVolumeSourceFieldMonitors = "monitors" + CephFSPersistentVolumeSourceFieldPath = "path" + CephFSPersistentVolumeSourceFieldReadOnly = "readOnly" + CephFSPersistentVolumeSourceFieldSecretFile = "secretFile" + CephFSPersistentVolumeSourceFieldSecretRef = "secretRef" + CephFSPersistentVolumeSourceFieldUser = "user" +) + +type CephFSPersistentVolumeSource struct { + Monitors []string `json:"monitors,omitempty" yaml:"monitors,omitempty"` + Path string `json:"path,omitempty" yaml:"path,omitempty"` + ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"` + SecretFile string `json:"secretFile,omitempty" yaml:"secretFile,omitempty"` + SecretRef *SecretReference `json:"secretRef,omitempty" yaml:"secretRef,omitempty"` + User string `json:"user,omitempty" yaml:"user,omitempty"` +} diff --git a/client/project/v3/zz_generated_host_path_volume_source.go b/client/project/v3/zz_generated_host_path_volume_source.go index cbeffd33..a7471bff 100644 --- a/client/project/v3/zz_generated_host_path_volume_source.go +++ b/client/project/v3/zz_generated_host_path_volume_source.go @@ -2,11 +2,11 @@ package client const ( HostPathVolumeSourceType = "hostPathVolumeSource" + HostPathVolumeSourceFieldKind = "kind" HostPathVolumeSourceFieldPath = "path" - HostPathVolumeSourceFieldType = "type" ) type HostPathVolumeSource struct { + Kind string `json:"kind,omitempty" yaml:"kind,omitempty"` Path string `json:"path,omitempty" yaml:"path,omitempty"` - Type string `json:"type,omitempty" yaml:"type,omitempty"` } diff --git a/client/project/v3/zz_generated_local_volume_source.go b/client/project/v3/zz_generated_local_volume_source.go new file mode 100644 index 00000000..83eaec3b --- /dev/null +++ b/client/project/v3/zz_generated_local_volume_source.go @@ -0,0 +1,10 @@ +package client + +const ( + LocalVolumeSourceType = "localVolumeSource" + LocalVolumeSourceFieldPath = "path" +) + +type LocalVolumeSource struct { + Path string `json:"path,omitempty" yaml:"path,omitempty"` +} diff --git a/client/project/v3/zz_generated_persistent_volume_spec.go b/client/project/v3/zz_generated_persistent_volume_spec.go new file mode 100644 index 00000000..1b5ded6d --- /dev/null +++ b/client/project/v3/zz_generated_persistent_volume_spec.go @@ -0,0 +1,62 @@ +package client + +const ( + PersistentVolumeSpecType = "persistentVolumeSpec" + PersistentVolumeSpecFieldAWSElasticBlockStore = "awsElasticBlockStore" + PersistentVolumeSpecFieldAccessModes = "accessModes" + PersistentVolumeSpecFieldAzureDisk = "azureDisk" + PersistentVolumeSpecFieldAzureFile = "azureFile" + PersistentVolumeSpecFieldCapacity = "capacity" + PersistentVolumeSpecFieldCephFS = "cephfs" + PersistentVolumeSpecFieldCinder = "cinder" + PersistentVolumeSpecFieldClaimRef = "claimRef" + PersistentVolumeSpecFieldFC = "fc" + PersistentVolumeSpecFieldFlexVolume = "flexVolume" + PersistentVolumeSpecFieldFlocker = "flocker" + PersistentVolumeSpecFieldGCEPersistentDisk = "gcePersistentDisk" + PersistentVolumeSpecFieldGlusterfs = "glusterfs" + PersistentVolumeSpecFieldHostPath = "hostPath" + PersistentVolumeSpecFieldISCSI = "iscsi" + PersistentVolumeSpecFieldLocal = "local" + PersistentVolumeSpecFieldMountOptions = "mountOptions" + PersistentVolumeSpecFieldNFS = "nfs" + PersistentVolumeSpecFieldPersistentVolumeReclaimPolicy = "persistentVolumeReclaimPolicy" + PersistentVolumeSpecFieldPhotonPersistentDisk = "photonPersistentDisk" + PersistentVolumeSpecFieldPortworxVolume = "portworxVolume" + PersistentVolumeSpecFieldQuobyte = "quobyte" + PersistentVolumeSpecFieldRBD = "rbd" + PersistentVolumeSpecFieldScaleIO = "scaleIO" + PersistentVolumeSpecFieldStorageClassId = "storageClassId" + PersistentVolumeSpecFieldStorageOS = "storageos" + PersistentVolumeSpecFieldVsphereVolume = "vsphereVolume" +) + +type PersistentVolumeSpec struct { + AWSElasticBlockStore *AWSElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty" yaml:"awsElasticBlockStore,omitempty"` + AccessModes []string `json:"accessModes,omitempty" yaml:"accessModes,omitempty"` + AzureDisk *AzureDiskVolumeSource `json:"azureDisk,omitempty" yaml:"azureDisk,omitempty"` + AzureFile *AzureFilePersistentVolumeSource `json:"azureFile,omitempty" yaml:"azureFile,omitempty"` + Capacity map[string]string `json:"capacity,omitempty" yaml:"capacity,omitempty"` + CephFS *CephFSPersistentVolumeSource `json:"cephfs,omitempty" yaml:"cephfs,omitempty"` + Cinder *CinderVolumeSource `json:"cinder,omitempty" yaml:"cinder,omitempty"` + ClaimRef *ObjectReference `json:"claimRef,omitempty" yaml:"claimRef,omitempty"` + FC *FCVolumeSource `json:"fc,omitempty" yaml:"fc,omitempty"` + FlexVolume *FlexVolumeSource `json:"flexVolume,omitempty" yaml:"flexVolume,omitempty"` + Flocker *FlockerVolumeSource `json:"flocker,omitempty" yaml:"flocker,omitempty"` + GCEPersistentDisk *GCEPersistentDiskVolumeSource `json:"gcePersistentDisk,omitempty" yaml:"gcePersistentDisk,omitempty"` + Glusterfs *GlusterfsVolumeSource `json:"glusterfs,omitempty" yaml:"glusterfs,omitempty"` + HostPath *HostPathVolumeSource `json:"hostPath,omitempty" yaml:"hostPath,omitempty"` + ISCSI *ISCSIVolumeSource `json:"iscsi,omitempty" yaml:"iscsi,omitempty"` + Local *LocalVolumeSource `json:"local,omitempty" yaml:"local,omitempty"` + MountOptions []string `json:"mountOptions,omitempty" yaml:"mountOptions,omitempty"` + NFS *NFSVolumeSource `json:"nfs,omitempty" yaml:"nfs,omitempty"` + PersistentVolumeReclaimPolicy string `json:"persistentVolumeReclaimPolicy,omitempty" yaml:"persistentVolumeReclaimPolicy,omitempty"` + PhotonPersistentDisk *PhotonPersistentDiskVolumeSource `json:"photonPersistentDisk,omitempty" yaml:"photonPersistentDisk,omitempty"` + PortworxVolume *PortworxVolumeSource `json:"portworxVolume,omitempty" yaml:"portworxVolume,omitempty"` + Quobyte *QuobyteVolumeSource `json:"quobyte,omitempty" yaml:"quobyte,omitempty"` + RBD *RBDVolumeSource `json:"rbd,omitempty" yaml:"rbd,omitempty"` + ScaleIO *ScaleIOVolumeSource `json:"scaleIO,omitempty" yaml:"scaleIO,omitempty"` + StorageClassId string `json:"storageClassId,omitempty" yaml:"storageClassId,omitempty"` + StorageOS *StorageOSPersistentVolumeSource `json:"storageos,omitempty" yaml:"storageos,omitempty"` + VsphereVolume *VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty" yaml:"vsphereVolume,omitempty"` +} diff --git a/client/project/v3/zz_generated_secret_reference.go b/client/project/v3/zz_generated_secret_reference.go new file mode 100644 index 00000000..331f9a65 --- /dev/null +++ b/client/project/v3/zz_generated_secret_reference.go @@ -0,0 +1,12 @@ +package client + +const ( + SecretReferenceType = "secretReference" + SecretReferenceFieldName = "name" + SecretReferenceFieldNamespace = "namespace" +) + +type SecretReference struct { + Name string `json:"name,omitempty" yaml:"name,omitempty"` + Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"` +} diff --git a/client/project/v3/zz_generated_storage_ospersistent_volume_source.go b/client/project/v3/zz_generated_storage_ospersistent_volume_source.go new file mode 100644 index 00000000..c1f741d1 --- /dev/null +++ b/client/project/v3/zz_generated_storage_ospersistent_volume_source.go @@ -0,0 +1,18 @@ +package client + +const ( + StorageOSPersistentVolumeSourceType = "storageOSPersistentVolumeSource" + StorageOSPersistentVolumeSourceFieldFSType = "fsType" + StorageOSPersistentVolumeSourceFieldReadOnly = "readOnly" + StorageOSPersistentVolumeSourceFieldSecretRef = "secretRef" + StorageOSPersistentVolumeSourceFieldVolumeName = "volumeName" + StorageOSPersistentVolumeSourceFieldVolumeNamespace = "volumeNamespace" +) + +type StorageOSPersistentVolumeSource struct { + FSType string `json:"fsType,omitempty" yaml:"fsType,omitempty"` + ReadOnly bool `json:"readOnly,omitempty" yaml:"readOnly,omitempty"` + SecretRef *ObjectReference `json:"secretRef,omitempty" yaml:"secretRef,omitempty"` + VolumeName string `json:"volumeName,omitempty" yaml:"volumeName,omitempty"` + VolumeNamespace string `json:"volumeNamespace,omitempty" yaml:"volumeNamespace,omitempty"` +}