mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	DRA: Fix ResourceClaimTemplateSpec comment
ObjectMeta for the ResourceClaimTemplateSpec are copied into ResourceClaim not PVC. Signed-off-by: Lionel Jouin <lionel.jouin@est.tech>
This commit is contained in:
		
							
								
								
									
										2
									
								
								api/openapi-spec/swagger.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								api/openapi-spec/swagger.json
									
									
									
										generated
									
									
									
								
							@@ -15961,7 +15961,7 @@
 | 
				
			|||||||
      "properties": {
 | 
					      "properties": {
 | 
				
			||||||
        "metadata": {
 | 
					        "metadata": {
 | 
				
			||||||
          "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
 | 
					          "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta",
 | 
				
			||||||
          "description": "ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation."
 | 
					          "description": "ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim when creating it. No other fields are allowed and will be rejected during validation."
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        "spec": {
 | 
					        "spec": {
 | 
				
			||||||
          "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourceClaimSpec",
 | 
					          "$ref": "#/definitions/io.k8s.api.resource.v1alpha3.ResourceClaimSpec",
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1042,7 +1042,7 @@
 | 
				
			|||||||
              }
 | 
					              }
 | 
				
			||||||
            ],
 | 
					            ],
 | 
				
			||||||
            "default": {},
 | 
					            "default": {},
 | 
				
			||||||
            "description": "ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation."
 | 
					            "description": "ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim when creating it. No other fields are allowed and will be rejected during validation."
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
          "spec": {
 | 
					          "spec": {
 | 
				
			||||||
            "allOf": [
 | 
					            "allOf": [
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1005,7 +1005,7 @@ type ResourceClaimTemplate struct {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
 | 
					// ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
 | 
				
			||||||
type ResourceClaimTemplateSpec struct {
 | 
					type ResourceClaimTemplateSpec struct {
 | 
				
			||||||
	// ObjectMeta may contain labels and annotations that will be copied into the PVC
 | 
						// ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
 | 
				
			||||||
	// when creating it. No other fields are allowed and will be rejected during
 | 
						// when creating it. No other fields are allowed and will be rejected during
 | 
				
			||||||
	// validation.
 | 
						// validation.
 | 
				
			||||||
	// +optional
 | 
						// +optional
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								pkg/generated/openapi/zz_generated.openapi.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								pkg/generated/openapi/zz_generated.openapi.go
									
									
									
										generated
									
									
									
								
							@@ -47187,7 +47187,7 @@ func schema_k8sio_api_resource_v1alpha3_ResourceClaimTemplateSpec(ref common.Ref
 | 
				
			|||||||
				Properties: map[string]spec.Schema{
 | 
									Properties: map[string]spec.Schema{
 | 
				
			||||||
					"metadata": {
 | 
										"metadata": {
 | 
				
			||||||
						SchemaProps: spec.SchemaProps{
 | 
											SchemaProps: spec.SchemaProps{
 | 
				
			||||||
							Description: "ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.",
 | 
												Description: "ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim when creating it. No other fields are allowed and will be rejected during validation.",
 | 
				
			||||||
							Default:     map[string]interface{}{},
 | 
												Default:     map[string]interface{}{},
 | 
				
			||||||
							Ref:         ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
 | 
												Ref:         ref("k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta"),
 | 
				
			||||||
						},
 | 
											},
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -755,7 +755,7 @@ message ResourceClaimTemplateList {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
 | 
					// ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
 | 
				
			||||||
message ResourceClaimTemplateSpec {
 | 
					message ResourceClaimTemplateSpec {
 | 
				
			||||||
  // ObjectMeta may contain labels and annotations that will be copied into the PVC
 | 
					  // ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
 | 
				
			||||||
  // when creating it. No other fields are allowed and will be rejected during
 | 
					  // when creating it. No other fields are allowed and will be rejected during
 | 
				
			||||||
  // validation.
 | 
					  // validation.
 | 
				
			||||||
  // +optional
 | 
					  // +optional
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1021,7 +1021,7 @@ type ResourceClaimTemplate struct {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
 | 
					// ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
 | 
				
			||||||
type ResourceClaimTemplateSpec struct {
 | 
					type ResourceClaimTemplateSpec struct {
 | 
				
			||||||
	// ObjectMeta may contain labels and annotations that will be copied into the PVC
 | 
						// ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
 | 
				
			||||||
	// when creating it. No other fields are allowed and will be rejected during
 | 
						// when creating it. No other fields are allowed and will be rejected during
 | 
				
			||||||
	// validation.
 | 
						// validation.
 | 
				
			||||||
	// +optional
 | 
						// +optional
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -348,7 +348,7 @@ func (ResourceClaimTemplateList) SwaggerDoc() map[string]string {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
var map_ResourceClaimTemplateSpec = map[string]string{
 | 
					var map_ResourceClaimTemplateSpec = map[string]string{
 | 
				
			||||||
	"":         "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.",
 | 
						"":         "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.",
 | 
				
			||||||
	"metadata": "ObjectMeta may contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.",
 | 
						"metadata": "ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim when creating it. No other fields are allowed and will be rejected during validation.",
 | 
				
			||||||
	"spec":     "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.",
 | 
						"spec":     "Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.",
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user