diff --git a/api/swagger-spec/v1.json b/api/swagger-spec/v1.json index 0e68abf377a..a5bf9f9a21a 100644 --- a/api/swagger-spec/v1.json +++ b/api/swagger-spec/v1.json @@ -13251,8 +13251,7 @@ "id": "v1.GitRepoVolumeSource", "description": "GitRepoVolumeSource represents a volume that is pulled from git when the pod is created.", "required": [ - "repository", - "revision" + "repository" ], "properties": { "repository": { @@ -13262,6 +13261,10 @@ "revision": { "type": "string", "description": "Commit hash for the specified revision." + }, + "directory": { + "type": "string", + "description": "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name." } } }, diff --git a/api/swagger-spec/v1beta1.json b/api/swagger-spec/v1beta1.json index 82f3fb5eb39..d11efee40a4 100644 --- a/api/swagger-spec/v1beta1.json +++ b/api/swagger-spec/v1beta1.json @@ -3244,8 +3244,7 @@ "id": "v1.GitRepoVolumeSource", "description": "GitRepoVolumeSource represents a volume that is pulled from git when the pod is created.", "required": [ - "repository", - "revision" + "repository" ], "properties": { "repository": { @@ -3255,6 +3254,10 @@ "revision": { "type": "string", "description": "Commit hash for the specified revision." + }, + "directory": { + "type": "string", + "description": "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name." } } }, diff --git a/docs/api-reference/extensions/v1beta1/definitions.html b/docs/api-reference/extensions/v1beta1/definitions.html index dc27ce0cea7..0a41869c99d 100755 --- a/docs/api-reference/extensions/v1beta1/definitions.html +++ b/docs/api-reference/extensions/v1beta1/definitions.html @@ -1436,7 +1436,14 @@ Both these may change in the future. Incoming requests are matched against the h
revision
Commit hash for the specified revision.
true
false
string
directory
Target directory name. Must not contain or start with ... If . is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.
false
string