|
|
@ -22,7 +22,6 @@ import (
|
|
|
|
"net/url"
|
|
|
|
"net/url"
|
|
|
|
"os"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/fluxcd/pkg/apis/meta"
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
corev1 "k8s.io/api/core/v1"
|
|
|
|
corev1 "k8s.io/api/core/v1"
|
|
|
|
"k8s.io/apimachinery/pkg/api/errors"
|
|
|
|
"k8s.io/apimachinery/pkg/api/errors"
|
|
|
@ -32,6 +31,7 @@ import (
|
|
|
|
"sigs.k8s.io/controller-runtime/pkg/client"
|
|
|
|
"sigs.k8s.io/controller-runtime/pkg/client"
|
|
|
|
"sigs.k8s.io/yaml"
|
|
|
|
"sigs.k8s.io/yaml"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/fluxcd/pkg/apis/meta"
|
|
|
|
sourcev1 "github.com/fluxcd/source-controller/api/v1"
|
|
|
|
sourcev1 "github.com/fluxcd/source-controller/api/v1"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/fluxcd/flux2/v2/internal/utils"
|
|
|
|
"github.com/fluxcd/flux2/v2/internal/utils"
|
|
|
@ -41,8 +41,8 @@ import (
|
|
|
|
var createSourceHelmCmd = &cobra.Command{
|
|
|
|
var createSourceHelmCmd = &cobra.Command{
|
|
|
|
Use: "helm [name]",
|
|
|
|
Use: "helm [name]",
|
|
|
|
Short: "Create or update a HelmRepository source",
|
|
|
|
Short: "Create or update a HelmRepository source",
|
|
|
|
Long: withPreviewNote(`The create source helm command generates a HelmRepository resource and waits for it to fetch the index.
|
|
|
|
Long: `The create source helm command generates a HelmRepository resource and waits for it to fetch the index.
|
|
|
|
For private Helm repositories, the basic authentication credentials are stored in a Kubernetes secret.`),
|
|
|
|
For private Helm repositories, the basic authentication credentials are stored in a Kubernetes secret.`,
|
|
|
|
Example: ` # Create a source for an HTTPS public Helm repository
|
|
|
|
Example: ` # Create a source for an HTTPS public Helm repository
|
|
|
|
flux create source helm podinfo \
|
|
|
|
flux create source helm podinfo \
|
|
|
|
--url=https://stefanprodan.github.io/podinfo \
|
|
|
|
--url=https://stefanprodan.github.io/podinfo \
|
|
|
|