Skip to content

Commit

Permalink
Added properties to PersistentVolumeClaimVolumeSource (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredoconnell authored Oct 23, 2024
1 parent 9252bff commit 18a6bc5
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -2193,7 +2193,39 @@ var Schema = schema.NewTypedScopeSchema[*Config](
// region PersistentVolumeClaimVolumeSource
schema.NewStructMappedObjectSchema[v1.PersistentVolumeClaimVolumeSource](
"PersistentVolumeClaimVolumeSource",
map[string]*schema.PropertySchema{},
map[string]*schema.PropertySchema{
"claimName": schema.NewPropertySchema(
dnsSubdomainName,
schema.NewDisplayValue(
schema.PointerTo("claimName"),
schema.PointerTo(
"claimName is the name of a PersistentVolumeClaim in the same namespace "+
"as the pod using this volume.",
),
nil,
),
true,
nil,
nil,
nil,
nil,
nil,
),
"readOnly": schema.NewPropertySchema(
schema.NewBoolSchema(),
schema.NewDisplayValue(
schema.PointerTo("readOnly"),
schema.PointerTo("readOnly Will force the ReadOnly setting in VolumeMounts."),
nil,
),
false,
nil,
nil,
nil,
nil,
nil,
),
},
),
// endregion
// region RBDVolumeSource
Expand Down

0 comments on commit 18a6bc5

Please sign in to comment.