mirror of
https://github.com/helm/helm.git
synced 2026-08-09 17:39:28 +00:00
Pre-Go-modules import path comments (e.g. `// import "helm.sh/helm/v4/..."`) are obsolete since Go 1.11 where go.mod is the authoritative module path. These stale comments cause issues with downstream tooling such as Kythe. Removes the legacy import comments from 64 files across 20 packages: - cmd/helm - internal/chart/v3/lint and sub-packages - internal/plugin and sub-packages - internal/release/v2/util - pkg/chart/v2/lint and sub-packages - pkg/cmd, pkg/engine, pkg/ignore, pkg/provenance - pkg/registry - pkg/release/v1/util - pkg/repo/v1 - pkg/storage and pkg/storage/driver Follows up on #31931 and #31932 which addressed pkg/kube. Fixes #31846 Signed-off-by: abhay1999 <abhay.chaurasiya@example.com> Signed-off-by: abhay1999 <abhaychaurasiya19@gmail.com>
33 lines
1.0 KiB
Go
33 lines
1.0 KiB
Go
/*
|
|
Copyright The Helm Authors.
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
package plugin
|
|
|
|
// Types of hooks
|
|
const (
|
|
// Install is executed after the plugin is added.
|
|
Install = "install"
|
|
// Delete is executed after the plugin is removed.
|
|
Delete = "delete"
|
|
// Update is executed after the plugin is updated.
|
|
Update = "update"
|
|
)
|
|
|
|
// PlatformHooks is a map of events to a command for a particular operating system and architecture.
|
|
type PlatformHooks map[string][]PlatformCommand
|
|
|
|
// Hooks is a map of events to commands.
|
|
type Hooks map[string]string
|