Skip to content

Commit 3b63b36

Browse files
authored
Merge pull request #49946 from vinayakankugoyal/gitRepo
KEP-5040: Disable git_repo volume driver.
2 parents ca29828 + 941773d commit 3b63b36

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

content/en/docs/concepts/storage/volumes.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ third party storage driver instead.
352352
### gitRepo (deprecated) {#gitrepo}
353353

354354
{{< warning >}}
355-
The `gitRepo` volume type is deprecated.
355+
The `gitRepo` volume plugin is deprecated and is disabled by default.
356356

357357
To provision a Pod that has a Git repository mounted, you can mount an
358358
[`emptyDir`](#emptydir) volume into an [init container](/docs/concepts/workloads/pods/init-containers/)
@@ -372,6 +372,10 @@ part of a policy to reject use of `gitRepo` volumes:
372372

373373
{{< /warning >}}
374374

375+
You can use this deprecated storage plugin in your cluster if you explicitly
376+
enable the `GitRepoVolumeDriver`
377+
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/).
378+
375379
A `gitRepo` volume is an example of a volume plugin. This plugin
376380
mounts an empty directory and clones a git repository into this directory
377381
for your Pod to use.

0 commit comments

Comments
 (0)