Add directory in GitRepo and updated tests.
Update validate and gitRepo Update generated code
This commit is contained in:
@@ -502,7 +502,12 @@ type GitRepoVolumeSource struct {
|
||||
// Repository URL
|
||||
Repository string `json:"repository"`
|
||||
// Commit hash, this is optional
|
||||
Revision string `json:"revision"`
|
||||
Revision string `json:"revision,omitempty"`
|
||||
// Clone target, this is optional
|
||||
// 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.
|
||||
Directory string `json:"directory,omitempty"`
|
||||
// TODO: Consider credentials here.
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user