mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
Use +default for now deprecated RBD volume
THis leaves us less hand-written code and a better schema.
This commit is contained in:
parent
1e66d66d7c
commit
03f0110b95
@ -6206,6 +6206,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"keyring": {
|
||||
"default": "/etc/ceph/keyring",
|
||||
"description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
"type": "string"
|
||||
},
|
||||
@ -6219,6 +6220,7 @@
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"pool": {
|
||||
"default": "rbd",
|
||||
"description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
"type": "string"
|
||||
},
|
||||
@ -6235,6 +6237,7 @@
|
||||
"description": "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
|
||||
},
|
||||
"user": {
|
||||
"default": "admin",
|
||||
"description": "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
"type": "string"
|
||||
}
|
||||
@ -6258,6 +6261,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"keyring": {
|
||||
"default": "/etc/ceph/keyring",
|
||||
"description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
"type": "string"
|
||||
},
|
||||
@ -6271,6 +6275,7 @@
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"pool": {
|
||||
"default": "rbd",
|
||||
"description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
"type": "string"
|
||||
},
|
||||
@ -6287,6 +6292,7 @@
|
||||
"description": "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
|
||||
},
|
||||
"user": {
|
||||
"default": "admin",
|
||||
"description": "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
"type": "string"
|
||||
}
|
||||
|
@ -4247,6 +4247,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"keyring": {
|
||||
"default": "/etc/ceph/keyring",
|
||||
"description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
"type": "string"
|
||||
},
|
||||
@ -4260,6 +4261,7 @@
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"pool": {
|
||||
"default": "rbd",
|
||||
"description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
"type": "string"
|
||||
},
|
||||
@ -4276,6 +4278,7 @@
|
||||
"description": "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
|
||||
},
|
||||
"user": {
|
||||
"default": "admin",
|
||||
"description": "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
"type": "string"
|
||||
}
|
||||
|
@ -3451,6 +3451,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"keyring": {
|
||||
"default": "/etc/ceph/keyring",
|
||||
"description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
"type": "string"
|
||||
},
|
||||
@ -3464,6 +3465,7 @@
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"pool": {
|
||||
"default": "rbd",
|
||||
"description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
"type": "string"
|
||||
},
|
||||
@ -3480,6 +3482,7 @@
|
||||
"description": "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
|
||||
},
|
||||
"user": {
|
||||
"default": "admin",
|
||||
"description": "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
"type": "string"
|
||||
}
|
||||
|
@ -961,6 +961,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"keyring": {
|
||||
"default": "/etc/ceph/keyring",
|
||||
"description": "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
"type": "string"
|
||||
},
|
||||
@ -974,6 +975,7 @@
|
||||
"x-kubernetes-list-type": "atomic"
|
||||
},
|
||||
"pool": {
|
||||
"default": "rbd",
|
||||
"description": "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
"type": "string"
|
||||
},
|
||||
@ -990,6 +992,7 @@
|
||||
"description": "secretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it"
|
||||
},
|
||||
"user": {
|
||||
"default": "admin",
|
||||
"description": "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
"type": "string"
|
||||
}
|
||||
|
40
pkg/apis/apps/v1/zz_generated.defaults.go
generated
40
pkg/apis/apps/v1/zz_generated.defaults.go
generated
@ -58,7 +58,15 @@ func SetObjectDefaults_DaemonSet(in *v1.DaemonSet) {
|
||||
corev1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
corev1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
corev1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
@ -333,7 +341,15 @@ func SetObjectDefaults_Deployment(in *v1.Deployment) {
|
||||
corev1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
corev1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
corev1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
@ -608,7 +624,15 @@ func SetObjectDefaults_ReplicaSet(in *v1.ReplicaSet) {
|
||||
corev1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
corev1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
corev1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
@ -883,7 +907,15 @@ func SetObjectDefaults_StatefulSet(in *v1.StatefulSet) {
|
||||
corev1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
corev1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
corev1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
|
20
pkg/apis/apps/v1beta1/zz_generated.defaults.go
generated
20
pkg/apis/apps/v1beta1/zz_generated.defaults.go
generated
@ -54,7 +54,15 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
|
||||
v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
@ -329,7 +337,15 @@ func SetObjectDefaults_StatefulSet(in *v1beta1.StatefulSet) {
|
||||
v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
|
40
pkg/apis/apps/v1beta2/zz_generated.defaults.go
generated
40
pkg/apis/apps/v1beta2/zz_generated.defaults.go
generated
@ -58,7 +58,15 @@ func SetObjectDefaults_DaemonSet(in *v1beta2.DaemonSet) {
|
||||
v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
@ -333,7 +341,15 @@ func SetObjectDefaults_Deployment(in *v1beta2.Deployment) {
|
||||
v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
@ -608,7 +624,15 @@ func SetObjectDefaults_ReplicaSet(in *v1beta2.ReplicaSet) {
|
||||
v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
@ -883,7 +907,15 @@ func SetObjectDefaults_StatefulSet(in *v1beta2.StatefulSet) {
|
||||
v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
|
20
pkg/apis/batch/v1/zz_generated.defaults.go
generated
20
pkg/apis/batch/v1/zz_generated.defaults.go
generated
@ -54,7 +54,15 @@ func SetObjectDefaults_CronJob(in *v1.CronJob) {
|
||||
corev1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
corev1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
corev1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
@ -329,7 +337,15 @@ func SetObjectDefaults_Job(in *v1.Job) {
|
||||
corev1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
corev1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
corev1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
|
10
pkg/apis/batch/v1beta1/zz_generated.defaults.go
generated
10
pkg/apis/batch/v1beta1/zz_generated.defaults.go
generated
@ -52,7 +52,15 @@ func SetObjectDefaults_CronJob(in *v1beta1.CronJob) {
|
||||
v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
|
@ -442,30 +442,6 @@ func defaultHostNetworkPorts(containers *[]v1.Container) {
|
||||
}
|
||||
}
|
||||
|
||||
func SetDefaults_RBDVolumeSource(obj *v1.RBDVolumeSource) {
|
||||
if obj.RBDPool == "" {
|
||||
obj.RBDPool = "rbd"
|
||||
}
|
||||
if obj.RadosUser == "" {
|
||||
obj.RadosUser = "admin"
|
||||
}
|
||||
if obj.Keyring == "" {
|
||||
obj.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
|
||||
func SetDefaults_RBDPersistentVolumeSource(obj *v1.RBDPersistentVolumeSource) {
|
||||
if obj.RBDPool == "" {
|
||||
obj.RBDPool = "rbd"
|
||||
}
|
||||
if obj.RadosUser == "" {
|
||||
obj.RadosUser = "admin"
|
||||
}
|
||||
if obj.Keyring == "" {
|
||||
obj.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
|
||||
func SetDefaults_ScaleIOVolumeSource(obj *v1.ScaleIOVolumeSource) {
|
||||
if obj.StorageMode == "" {
|
||||
obj.StorageMode = "ThinProvisioned"
|
||||
|
40
pkg/apis/core/v1/zz_generated.defaults.go
generated
40
pkg/apis/core/v1/zz_generated.defaults.go
generated
@ -137,7 +137,15 @@ func SetObjectDefaults_PersistentVolume(in *v1.PersistentVolume) {
|
||||
SetDefaults_HostPathVolumeSource(in.Spec.PersistentVolumeSource.HostPath)
|
||||
}
|
||||
if in.Spec.PersistentVolumeSource.RBD != nil {
|
||||
SetDefaults_RBDPersistentVolumeSource(in.Spec.PersistentVolumeSource.RBD)
|
||||
if in.Spec.PersistentVolumeSource.RBD.RBDPool == "" {
|
||||
in.Spec.PersistentVolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if in.Spec.PersistentVolumeSource.RBD.RadosUser == "" {
|
||||
in.Spec.PersistentVolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if in.Spec.PersistentVolumeSource.RBD.Keyring == "" {
|
||||
in.Spec.PersistentVolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if in.Spec.PersistentVolumeSource.ISCSI != nil {
|
||||
SetDefaults_ISCSIPersistentVolumeSource(in.Spec.PersistentVolumeSource.ISCSI)
|
||||
@ -189,7 +197,15 @@ func SetObjectDefaults_Pod(in *v1.Pod) {
|
||||
SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
@ -514,7 +530,15 @@ func SetObjectDefaults_PodTemplate(in *v1.PodTemplate) {
|
||||
SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
@ -790,7 +814,15 @@ func SetObjectDefaults_ReplicationController(in *v1.ReplicationController) {
|
||||
SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
|
30
pkg/apis/extensions/v1beta1/zz_generated.defaults.go
generated
30
pkg/apis/extensions/v1beta1/zz_generated.defaults.go
generated
@ -60,7 +60,15 @@ func SetObjectDefaults_DaemonSet(in *v1beta1.DaemonSet) {
|
||||
v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
@ -335,7 +343,15 @@ func SetObjectDefaults_Deployment(in *v1beta1.Deployment) {
|
||||
v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
@ -640,7 +656,15 @@ func SetObjectDefaults_ReplicaSet(in *v1beta1.ReplicaSet) {
|
||||
v1.SetDefaults_ISCSIVolumeSource(a.VolumeSource.ISCSI)
|
||||
}
|
||||
if a.VolumeSource.RBD != nil {
|
||||
v1.SetDefaults_RBDVolumeSource(a.VolumeSource.RBD)
|
||||
if a.VolumeSource.RBD.RBDPool == "" {
|
||||
a.VolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if a.VolumeSource.RBD.RadosUser == "" {
|
||||
a.VolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if a.VolumeSource.RBD.Keyring == "" {
|
||||
a.VolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if a.VolumeSource.DownwardAPI != nil {
|
||||
v1.SetDefaults_DownwardAPIVolumeSource(a.VolumeSource.DownwardAPI)
|
||||
|
10
pkg/apis/storage/v1/zz_generated.defaults.go
generated
10
pkg/apis/storage/v1/zz_generated.defaults.go
generated
@ -69,7 +69,15 @@ func SetObjectDefaults_VolumeAttachment(in *v1.VolumeAttachment) {
|
||||
corev1.SetDefaults_HostPathVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.HostPath)
|
||||
}
|
||||
if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD != nil {
|
||||
corev1.SetDefaults_RBDPersistentVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD)
|
||||
if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.RBDPool == "" {
|
||||
in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.RadosUser == "" {
|
||||
in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.Keyring == "" {
|
||||
in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.ISCSI != nil {
|
||||
corev1.SetDefaults_ISCSIPersistentVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.ISCSI)
|
||||
|
10
pkg/apis/storage/v1alpha1/zz_generated.defaults.go
generated
10
pkg/apis/storage/v1alpha1/zz_generated.defaults.go
generated
@ -43,7 +43,15 @@ func SetObjectDefaults_VolumeAttachment(in *v1alpha1.VolumeAttachment) {
|
||||
v1.SetDefaults_HostPathVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.HostPath)
|
||||
}
|
||||
if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD != nil {
|
||||
v1.SetDefaults_RBDPersistentVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD)
|
||||
if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.RBDPool == "" {
|
||||
in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.RadosUser == "" {
|
||||
in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.Keyring == "" {
|
||||
in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.ISCSI != nil {
|
||||
v1.SetDefaults_ISCSIPersistentVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.ISCSI)
|
||||
|
10
pkg/apis/storage/v1beta1/zz_generated.defaults.go
generated
10
pkg/apis/storage/v1beta1/zz_generated.defaults.go
generated
@ -69,7 +69,15 @@ func SetObjectDefaults_VolumeAttachment(in *v1beta1.VolumeAttachment) {
|
||||
v1.SetDefaults_HostPathVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.HostPath)
|
||||
}
|
||||
if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD != nil {
|
||||
v1.SetDefaults_RBDPersistentVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD)
|
||||
if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.RBDPool == "" {
|
||||
in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.RBDPool = "rbd"
|
||||
}
|
||||
if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.RadosUser == "" {
|
||||
in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.RadosUser = "admin"
|
||||
}
|
||||
if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.Keyring == "" {
|
||||
in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.RBD.Keyring = "/etc/ceph/keyring"
|
||||
}
|
||||
}
|
||||
if in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.ISCSI != nil {
|
||||
v1.SetDefaults_ISCSIPersistentVolumeSource(in.Spec.Source.InlineVolumeSpec.PersistentVolumeSource.ISCSI)
|
||||
|
6
pkg/generated/openapi/zz_generated.openapi.go
generated
6
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -28552,6 +28552,7 @@ func schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref common.ReferenceCall
|
||||
"pool": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
Default: "rbd",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
@ -28559,6 +28560,7 @@ func schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref common.ReferenceCall
|
||||
"user": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
Default: "admin",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
@ -28566,6 +28568,7 @@ func schema_k8sio_api_core_v1_RBDPersistentVolumeSource(ref common.ReferenceCall
|
||||
"keyring": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
Default: "/etc/ceph/keyring",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
@ -28637,6 +28640,7 @@ func schema_k8sio_api_core_v1_RBDVolumeSource(ref common.ReferenceCallback) comm
|
||||
"pool": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
Default: "rbd",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
@ -28644,6 +28648,7 @@ func schema_k8sio_api_core_v1_RBDVolumeSource(ref common.ReferenceCallback) comm
|
||||
"user": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
Default: "admin",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
@ -28651,6 +28656,7 @@ func schema_k8sio_api_core_v1_RBDVolumeSource(ref common.ReferenceCallback) comm
|
||||
"keyring": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it",
|
||||
Default: "/etc/ceph/keyring",
|
||||
Type: []string{"string"},
|
||||
Format: "",
|
||||
},
|
||||
|
@ -4729,18 +4729,21 @@ message RBDPersistentVolumeSource {
|
||||
// Default is rbd.
|
||||
// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
|
||||
// +optional
|
||||
// +default="rbd"
|
||||
optional string pool = 4;
|
||||
|
||||
// user is the rados user name.
|
||||
// Default is admin.
|
||||
// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
|
||||
// +optional
|
||||
// +default="admin"
|
||||
optional string user = 5;
|
||||
|
||||
// keyring is the path to key ring for RBDUser.
|
||||
// Default is /etc/ceph/keyring.
|
||||
// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
|
||||
// +optional
|
||||
// +default="/etc/ceph/keyring"
|
||||
optional string keyring = 6;
|
||||
|
||||
// secretRef is name of the authentication secret for RBDUser. If provided
|
||||
@ -4781,18 +4784,21 @@ message RBDVolumeSource {
|
||||
// Default is rbd.
|
||||
// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
|
||||
// +optional
|
||||
// +default="rbd"
|
||||
optional string pool = 4;
|
||||
|
||||
// user is the rados user name.
|
||||
// Default is admin.
|
||||
// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
|
||||
// +optional
|
||||
// +default="admin"
|
||||
optional string user = 5;
|
||||
|
||||
// keyring is the path to key ring for RBDUser.
|
||||
// Default is /etc/ceph/keyring.
|
||||
// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
|
||||
// +optional
|
||||
// +default="/etc/ceph/keyring"
|
||||
optional string keyring = 6;
|
||||
|
||||
// secretRef is name of the authentication secret for RBDUser. If provided
|
||||
|
@ -947,16 +947,19 @@ type RBDVolumeSource struct {
|
||||
// Default is rbd.
|
||||
// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
|
||||
// +optional
|
||||
// +default="rbd"
|
||||
RBDPool string `json:"pool,omitempty" protobuf:"bytes,4,opt,name=pool"`
|
||||
// user is the rados user name.
|
||||
// Default is admin.
|
||||
// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
|
||||
// +optional
|
||||
// +default="admin"
|
||||
RadosUser string `json:"user,omitempty" protobuf:"bytes,5,opt,name=user"`
|
||||
// keyring is the path to key ring for RBDUser.
|
||||
// Default is /etc/ceph/keyring.
|
||||
// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
|
||||
// +optional
|
||||
// +default="/etc/ceph/keyring"
|
||||
Keyring string `json:"keyring,omitempty" protobuf:"bytes,6,opt,name=keyring"`
|
||||
// secretRef is name of the authentication secret for RBDUser. If provided
|
||||
// overrides keyring.
|
||||
@ -992,16 +995,19 @@ type RBDPersistentVolumeSource struct {
|
||||
// Default is rbd.
|
||||
// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
|
||||
// +optional
|
||||
// +default="rbd"
|
||||
RBDPool string `json:"pool,omitempty" protobuf:"bytes,4,opt,name=pool"`
|
||||
// user is the rados user name.
|
||||
// Default is admin.
|
||||
// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
|
||||
// +optional
|
||||
// +default="admin"
|
||||
RadosUser string `json:"user,omitempty" protobuf:"bytes,5,opt,name=user"`
|
||||
// keyring is the path to key ring for RBDUser.
|
||||
// Default is /etc/ceph/keyring.
|
||||
// More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it
|
||||
// +optional
|
||||
// +default="/etc/ceph/keyring"
|
||||
Keyring string `json:"keyring,omitempty" protobuf:"bytes,6,opt,name=keyring"`
|
||||
// secretRef is name of the authentication secret for RBDUser. If provided
|
||||
// overrides keyring.
|
||||
|
@ -7262,6 +7262,7 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: keyring
|
||||
type:
|
||||
scalar: string
|
||||
default: /etc/ceph/keyring
|
||||
- name: monitors
|
||||
type:
|
||||
list:
|
||||
@ -7271,6 +7272,7 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: pool
|
||||
type:
|
||||
scalar: string
|
||||
default: rbd
|
||||
- name: readOnly
|
||||
type:
|
||||
scalar: boolean
|
||||
@ -7280,6 +7282,7 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: user
|
||||
type:
|
||||
scalar: string
|
||||
default: admin
|
||||
- name: io.k8s.api.core.v1.RBDVolumeSource
|
||||
map:
|
||||
fields:
|
||||
@ -7293,6 +7296,7 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: keyring
|
||||
type:
|
||||
scalar: string
|
||||
default: /etc/ceph/keyring
|
||||
- name: monitors
|
||||
type:
|
||||
list:
|
||||
@ -7302,6 +7306,7 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: pool
|
||||
type:
|
||||
scalar: string
|
||||
default: rbd
|
||||
- name: readOnly
|
||||
type:
|
||||
scalar: boolean
|
||||
@ -7311,6 +7316,7 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
- name: user
|
||||
type:
|
||||
scalar: string
|
||||
default: admin
|
||||
- name: io.k8s.api.core.v1.ReplicationController
|
||||
map:
|
||||
fields:
|
||||
|
Loading…
Reference in New Issue
Block a user