Merge pull request #117505 from SergeyKanzhelev/localhostOnWord
change the seccompProfile field description to match the imlpementation
This commit is contained in:
		
							
								
								
									
										2
									
								
								api/openapi-spec/swagger.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								api/openapi-spec/swagger.json
									
									
									
										generated
									
									
									
								
							@@ -9219,7 +9219,7 @@
 | 
				
			|||||||
      "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.",
 | 
					      "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.",
 | 
				
			||||||
      "properties": {
 | 
					      "properties": {
 | 
				
			||||||
        "localhostProfile": {
 | 
					        "localhostProfile": {
 | 
				
			||||||
          "description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\".",
 | 
					          "description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.",
 | 
				
			||||||
          "type": "string"
 | 
					          "type": "string"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        "type": {
 | 
					        "type": {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6538,7 +6538,7 @@
 | 
				
			|||||||
        "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.",
 | 
					        "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.",
 | 
				
			||||||
        "properties": {
 | 
					        "properties": {
 | 
				
			||||||
          "localhostProfile": {
 | 
					          "localhostProfile": {
 | 
				
			||||||
            "description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\".",
 | 
					            "description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.",
 | 
				
			||||||
            "type": "string"
 | 
					            "type": "string"
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
          "type": {
 | 
					          "type": {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4218,7 +4218,7 @@
 | 
				
			|||||||
        "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.",
 | 
					        "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.",
 | 
				
			||||||
        "properties": {
 | 
					        "properties": {
 | 
				
			||||||
          "localhostProfile": {
 | 
					          "localhostProfile": {
 | 
				
			||||||
            "description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\".",
 | 
					            "description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.",
 | 
				
			||||||
            "type": "string"
 | 
					            "type": "string"
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
          "type": {
 | 
					          "type": {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3392,7 +3392,7 @@
 | 
				
			|||||||
        "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.",
 | 
					        "description": "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.",
 | 
				
			||||||
        "properties": {
 | 
					        "properties": {
 | 
				
			||||||
          "localhostProfile": {
 | 
					          "localhostProfile": {
 | 
				
			||||||
            "description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\".",
 | 
					            "description": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.",
 | 
				
			||||||
            "type": "string"
 | 
					            "type": "string"
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
          "type": {
 | 
					          "type": {
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								pkg/generated/openapi/zz_generated.openapi.go
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								pkg/generated/openapi/zz_generated.openapi.go
									
									
									
										generated
									
									
									
								
							@@ -26156,7 +26156,7 @@ func schema_k8sio_api_core_v1_SeccompProfile(ref common.ReferenceCallback) commo
 | 
				
			|||||||
					},
 | 
										},
 | 
				
			||||||
					"localhostProfile": {
 | 
										"localhostProfile": {
 | 
				
			||||||
						SchemaProps: spec.SchemaProps{
 | 
											SchemaProps: spec.SchemaProps{
 | 
				
			||||||
							Description: "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\".",
 | 
												Description: "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.",
 | 
				
			||||||
							Type:        []string{"string"},
 | 
												Type:        []string{"string"},
 | 
				
			||||||
							Format:      "",
 | 
												Format:      "",
 | 
				
			||||||
						},
 | 
											},
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4753,7 +4753,7 @@ message SeccompProfile {
 | 
				
			|||||||
  // localhostProfile indicates a profile defined in a file on the node should be used.
 | 
					  // localhostProfile indicates a profile defined in a file on the node should be used.
 | 
				
			||||||
  // The profile must be preconfigured on the node to work.
 | 
					  // The profile must be preconfigured on the node to work.
 | 
				
			||||||
  // Must be a descending path, relative to the kubelet's configured seccomp profile location.
 | 
					  // Must be a descending path, relative to the kubelet's configured seccomp profile location.
 | 
				
			||||||
  // Must only be set if type is "Localhost".
 | 
					  // Must be set if type is "Localhost". Must NOT be set for any other type.
 | 
				
			||||||
  // +optional
 | 
					  // +optional
 | 
				
			||||||
  optional string localhostProfile = 2;
 | 
					  optional string localhostProfile = 2;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3838,7 +3838,7 @@ type SeccompProfile struct {
 | 
				
			|||||||
	// localhostProfile indicates a profile defined in a file on the node should be used.
 | 
						// localhostProfile indicates a profile defined in a file on the node should be used.
 | 
				
			||||||
	// The profile must be preconfigured on the node to work.
 | 
						// The profile must be preconfigured on the node to work.
 | 
				
			||||||
	// Must be a descending path, relative to the kubelet's configured seccomp profile location.
 | 
						// Must be a descending path, relative to the kubelet's configured seccomp profile location.
 | 
				
			||||||
	// Must only be set if type is "Localhost".
 | 
						// Must be set if type is "Localhost". Must NOT be set for any other type.
 | 
				
			||||||
	// +optional
 | 
						// +optional
 | 
				
			||||||
	LocalhostProfile *string `json:"localhostProfile,omitempty" protobuf:"bytes,2,opt,name=localhostProfile"`
 | 
						LocalhostProfile *string `json:"localhostProfile,omitempty" protobuf:"bytes,2,opt,name=localhostProfile"`
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2134,7 +2134,7 @@ func (ScopedResourceSelectorRequirement) SwaggerDoc() map[string]string {
 | 
				
			|||||||
var map_SeccompProfile = map[string]string{
 | 
					var map_SeccompProfile = map[string]string{
 | 
				
			||||||
	"":                 "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.",
 | 
						"":                 "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.",
 | 
				
			||||||
	"type":             "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.",
 | 
						"type":             "type indicates which kind of seccomp profile will be applied. Valid options are:\n\nLocalhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.",
 | 
				
			||||||
	"localhostProfile": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\".",
 | 
						"localhostProfile": "localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type.",
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (SeccompProfile) SwaggerDoc() map[string]string {
 | 
					func (SeccompProfile) SwaggerDoc() map[string]string {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user