Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
a27e2399
Commit
a27e2399
authored
May 17, 2016
by
vaikas-google
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
offset all the directories and files to $HELM_HOME/repository from $HELM_HOME
parent
5e1ef0ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
init.go
cmd/helm/init.go
+1
-1
structure.go
cmd/helm/structure.go
+9
-3
No files found.
cmd/helm/init.go
View file @
a27e2399
...
...
@@ -74,7 +74,7 @@ func installTiller() error {
//
// If $HELM_HOME does not exist, this function will create it.
func
ensureHome
()
error
{
configDirectories
:=
[]
string
{
homePath
(),
cacheDirectory
(),
localRepoDirectory
()}
configDirectories
:=
[]
string
{
homePath
(),
repositoryDirectory
(),
cacheDirectory
(),
localRepoDirectory
()}
for
_
,
p
:=
range
configDirectories
{
if
fi
,
err
:=
os
.
Stat
(
p
);
err
!=
nil
{
...
...
cmd/helm/structure.go
View file @
a27e2399
...
...
@@ -6,6 +6,7 @@ import (
)
const
(
repositoryDir
string
=
"repository"
repositoriesFilePath
string
=
"repositories.yaml"
cachePath
string
=
"cache"
localRepoPath
string
=
"local"
...
...
@@ -16,16 +17,21 @@ func homePath() string {
return
os
.
ExpandEnv
(
helmHome
)
}
// All other directories go under the $HELM_HOME/repository.
func
repositoryDirectory
()
string
{
return
homePath
()
+
"/"
+
repositoryDir
}
func
cacheDirectory
(
paths
...
string
)
string
{
fragments
:=
append
([]
string
{
homePath
(),
cachePath
},
paths
...
)
fragments
:=
append
([]
string
{
repositoryDirectory
(),
cachePath
},
paths
...
)
return
filepath
.
Join
(
fragments
...
)
}
func
localRepoDirectory
(
paths
...
string
)
string
{
fragments
:=
append
([]
string
{
homePath
(),
localRepoPath
},
paths
...
)
fragments
:=
append
([]
string
{
repositoryDirectory
(),
localRepoPath
},
paths
...
)
return
filepath
.
Join
(
fragments
...
)
}
func
repositoriesFile
()
string
{
return
filepath
.
Join
(
homePath
(),
repositoriesFilePath
)
return
filepath
.
Join
(
repositoryDirectory
(),
repositoriesFilePath
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment