Merge pull request #49946 from vinayakankugoyal/gitRepo

KEP-5040: Disable git_repo volume driver.
pull/50018/head
Kubernetes Prow Robot 2025-03-04 11:33:44 -08:00 committed by GitHub
commit 3b63b36b26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -352,7 +352,7 @@ third party storage driver instead.
### gitRepo (deprecated) {#gitrepo}
{{< warning >}}
The `gitRepo` volume type is deprecated.
The `gitRepo` volume plugin is deprecated and is disabled by default.
To provision a Pod that has a Git repository mounted, you can mount an
[`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:
{{< /warning >}}
You can use this deprecated storage plugin in your cluster if you explicitly
enable the `GitRepoVolumeDriver`
[feature gate](/docs/reference/command-line-tools-reference/feature-gates/).
A `gitRepo` volume is an example of a volume plugin. This plugin
mounts an empty directory and clones a git repository into this directory
for your Pod to use.