Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1105 Внедрение механизмов обеспечения безопасности цепочки поставки программных проектов
Legacy
scanned-projects
helm
Commits
5767f13a
Commit
5767f13a
authored
6 years ago
by
xichengliudui
Browse files
Options
Download
Patches
Plain Diff
Fix function comment to consistent with its name
Signed-off-by:
xichengliudui
<
1693291525@qq.com
>
parent
bed4054c
release-2.17
dev-v2
release-2.13
release-2.14
release-2.15
release-2.16
v2.17.0
v2.17.0-rc.1
v2.16.12
v2.16.11
v2.16.10
v2.16.9
v2.16.8
v2.16.7
v2.16.6
v2.16.5
v2.16.4
v2.16.3
v2.16.2
v2.16.1
v2.16.0
v2.16.0-rc.2
v2.16.0-rc.1
v2.15.2
v2.15.1
v2.15.0
v2.15.0-rc.2
v2.15.0-rc.1
v2.14.3
v2.14.2
v2.14.1
v2.14.0
v2.14.0-rc.2
v2.14.0-rc.1
v2.13.1
v2.13.1-rc.1
v2.13.0
v2.13.0-rc.2
v2.13.0-rc.1
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pkg/chartutil/capabilities.go
+1
-1
pkg/chartutil/capabilities.go
pkg/chartutil/requirements.go
+1
-1
pkg/chartutil/requirements.go
pkg/downloader/chart_downloader.go
+5
-5
pkg/downloader/chart_downloader.go
with
7 additions
and
7 deletions
+7
-7
pkg/chartutil/capabilities.go
+
1
−
1
View file @
5767f13a
...
...
@@ -40,7 +40,7 @@ var (
// Capabilities describes the capabilities of the Kubernetes cluster that Tiller is attached to.
type
Capabilities
struct
{
//
L
ist of all supported API versions
//
APIVersions l
ist of all supported API versions
APIVersions
VersionSet
// KubeVersion is the Kubernetes version
KubeVersion
*
version
.
Info
...
...
This diff is collapsed.
Click to expand it.
pkg/chartutil/requirements.go
+
1
−
1
View file @
5767f13a
...
...
@@ -85,7 +85,7 @@ type Requirements struct {
//
// It represents the state that the dependencies should be in.
type
RequirementsLock
struct
{
// Gen
d
erated is the date the lock file was last generated.
// Generated is the date the lock file was last generated.
Generated
time
.
Time
`json:"generated"`
// Digest is a hash of the requirements file used to generate it.
Digest
string
`json:"digest"`
...
...
This diff is collapsed.
Click to expand it.
pkg/downloader/chart_downloader.go
+
5
−
5
View file @
5767f13a
...
...
@@ -65,11 +65,11 @@ type ChartDownloader struct {
Keyring
string
// HelmHome is the $HELM_HOME.
HelmHome
helmpath
.
Home
// Getter collection for the operation
// Getter
s
collection for the operation
Getters
getter
.
Providers
//
C
hart repository username
//
Username c
hart repository username
Username
string
//
C
hart repository password
//
Password c
hart repository password
Password
string
}
...
...
@@ -243,14 +243,14 @@ func (c *ChartDownloader) ResolveChartVersion(ref, version string) (*url.URL, ge
return
u
,
r
.
Client
,
nil
}
//
I
f HttpGetter is used, this method sets the configured repository credentials on the HttpGetter.
//
setCredentials i
f HttpGetter is used, this method sets the configured repository credentials on the HttpGetter.
func
(
c
*
ChartDownloader
)
setCredentials
(
r
*
repo
.
ChartRepository
)
{
if
t
,
ok
:=
r
.
Client
.
(
*
getter
.
HttpGetter
);
ok
{
t
.
SetCredentials
(
c
.
getRepoCredentials
(
r
))
}
}
//
I
f this ChartDownloader is not configured to use credentials, and the chart repository sent as an argument is,
//
getRepoCredentials i
f this ChartDownloader is not configured to use credentials, and the chart repository sent as an argument is,
// then the repository's configured credentials are returned.
// Else, this ChartDownloader's credentials are returned.
func
(
c
*
ChartDownloader
)
getRepoCredentials
(
r
*
repo
.
ChartRepository
)
(
username
,
password
string
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets