-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commands,pkg/scaffold,hack,pkg/helm: run and migrate command support …
…for helm (#897) * [travis deploy] commands,pkg/scaffold,hack,pkg/helm: run and migrate command support for helm * CHANGELOG.md,doc,commands/.../run/helm.go: document helm support for run and migrate commands * doc/dev/testing/travis-build.md: ansible/helm e2e doc update * doc/dev/release.md: documenting new release steps for ansible/helm gopkgtoml.go
- Loading branch information
1 parent
3c2fee5
commit 419cfd3
Showing
26 changed files
with
569 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Copyright 2019 The Operator-SDK 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 run | ||
|
||
import ( | ||
"github.com/operator-framework/operator-sdk/pkg/helm" | ||
hoflags "github.com/operator-framework/operator-sdk/pkg/helm/flags" | ||
|
||
"github.com/spf13/cobra" | ||
) | ||
|
||
// NewHelmCmd returns a command that will run a helm operator | ||
func NewHelmCmd() *cobra.Command { | ||
var flags *hoflags.HelmOperatorFlags | ||
newCmd := &cobra.Command{ | ||
Use: "helm", | ||
Short: "Runs as a helm operator", | ||
Long: `Runs as a helm operator. This is intended to be used when running | ||
in a Pod inside a cluster. Developers wanting to run their operator locally | ||
should use "up local" instead.`, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
helm.Run(flags) | ||
}, | ||
} | ||
flags = hoflags.AddTo(newCmd.Flags()) | ||
|
||
return newCmd | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.