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
62edd098
Unverified
Commit
62edd098
authored
6 years ago
by
Matthew Fisher
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #5606 from xichengliudui/update-go-const
Using const() defines constants together (part:1)
parents
274d8da4
5edb79df
release-2.17
dev-v2
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
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pkg/kube/resource_policy.go
+11
-9
pkg/kube/resource_policy.go
pkg/tiller/environment/environment.go
+6
-4
pkg/tiller/environment/environment.go
pkg/tiller/release_server.go
+14
-12
pkg/tiller/release_server.go
with
31 additions
and
25 deletions
+31
-25
pkg/kube/resource_policy.go
+
11
−
9
View file @
62edd098
...
...
@@ -16,16 +16,18 @@ limitations under the License.
package
kube
// ResourcePolicyAnno is the annotation name for a resource policy
const
ResourcePolicyAnno
=
"helm.sh/resource-policy"
const
(
// ResourcePolicyAnno is the annotation name for a resource policy
ResourcePolicyAnno
=
"helm.sh/resource-policy"
// deletePolicy is the resource policy type for delete
//
// This resource policy type allows explicitly opting in to the default
// resource deletion behavior, for example when overriding a chart's
// default annotations. Any other value allows resources to skip being
// deleted during an uninstallRelease action.
const
deletePolicy
=
"delete"
// deletePolicy is the resource policy type for delete
//
// This resource policy type allows explicitly opting in to the default
// resource deletion behavior, for example when overriding a chart's
// default annotations. Any other value allows resources to skip being
// deleted during an uninstallRelease action.
deletePolicy
=
"delete"
)
// ResourcePolicyIsKeep accepts a map of Kubernetes resource annotations and
// returns true if the resource should be kept, otherwise false if it is safe
...
...
This diff is collapsed.
Click to expand it.
pkg/tiller/environment/environment.go
+
6
−
4
View file @
62edd098
...
...
@@ -37,11 +37,13 @@ import (
"k8s.io/helm/pkg/storage/driver"
)
// DefaultTillerNamespace is the default namespace for Tiller.
const
DefaultTillerNamespace
=
"kube-system"
const
(
// DefaultTillerNamespace is the default namespace for Tiller.
DefaultTillerNamespace
=
"kube-system"
// GoTplEngine is the name of the Go template engine, as registered in the EngineYard.
const
GoTplEngine
=
"gotpl"
// GoTplEngine is the name of the Go template engine, as registered in the EngineYard.
GoTplEngine
=
"gotpl"
)
// DefaultEngine points to the engine that the EngineYard should treat as the
// default. A chart that does not specify an engine may be run through the
...
...
This diff is collapsed.
Click to expand it.
pkg/tiller/release_server.go
+
14
−
12
View file @
62edd098
...
...
@@ -41,18 +41,20 @@ import (
"k8s.io/helm/pkg/version"
)
// releaseNameMaxLen is the maximum length of a release name.
//
// As of Kubernetes 1.4, the max limit on a name is 63 chars. We reserve 10 for
// charts to add data. Effectively, that gives us 53 chars.
// See https://github.com/kubernetes/helm/issues/1528
const
releaseNameMaxLen
=
53
// NOTESFILE_SUFFIX that we want to treat special. It goes through the templating engine
// but it's not a yaml file (resource) hence can't have hooks, etc. And the user actually
// wants to see this file after rendering in the status command. However, it must be a suffix
// since there can be filepath in front of it.
const
notesFileSuffix
=
"NOTES.txt"
const
(
// releaseNameMaxLen is the maximum length of a release name.
//
// As of Kubernetes 1.4, the max limit on a name is 63 chars. We reserve 10 for
// charts to add data. Effectively, that gives us 53 chars.
// See https://github.com/kubernetes/helm/issues/1528
releaseNameMaxLen
=
53
// NOTESFILE_SUFFIX that we want to treat special. It goes through the templating engine
// but it's not a yaml file (resource) hence can't have hooks, etc. And the user actually
// wants to see this file after rendering in the status command. However, it must be a suffix
// since there can be filepath in front of it.
notesFileSuffix
=
"NOTES.txt"
)
var
(
// errMissingChart indicates that a chart was not provided.
...
...
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