Documentation ¶
Index ¶
- Variables
- type K8sHubble
- func (k *K8sHubble) Disable(ctx context.Context, uninstall bool) error
- func (k *K8sHubble) Enable(ctx context.Context) error
- func (k *K8sHubble) Log(format string, a ...interface{})
- func (k *K8sHubble) NewClusterRole(name string) *rbacv1.ClusterRole
- func (k *K8sHubble) NewClusterRoleBinding(crbName string) *rbacv1.ClusterRoleBinding
- func (k *K8sHubble) NewServiceAccount(name string) *corev1.ServiceAccount
- func (k *K8sHubble) Validate(ctx context.Context) error
- type Parameters
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // FlagsToHelmOpts maps the deprecated install flags to the helm // options FlagsToHelmOpts = map[string][]string{ "relay-image": {"hubble.relay.image.override"}, "relay-version": {"hubble.relay.image.tag"}, "ui-image": {"hubble.ui.frontend.image.override"}, "ui-backend-image": {"hubble.ui.backend.image.override"}, "ui-version": {"hubble.ui.frontend.image.tag", "hubble.ui.backend.image.tag"}, } // FlagValues maps all FlagsToHelmOpts keys to their values FlagValues = map[string]pflag.Value{} )
Functions ¶
This section is empty.
Types ¶
type K8sHubble ¶
type K8sHubble struct {
// contains filtered or unexported fields
}
func NewK8sHubble ¶
func NewK8sHubble(ctx context.Context, client k8sHubbleImplementation, p Parameters) (*K8sHubble, error)
func (*K8sHubble) NewClusterRole ¶ added in v0.11.0
func (k *K8sHubble) NewClusterRole(name string) *rbacv1.ClusterRole
func (*K8sHubble) NewClusterRoleBinding ¶ added in v0.11.0
func (k *K8sHubble) NewClusterRoleBinding(crbName string) *rbacv1.ClusterRoleBinding
func (*K8sHubble) NewServiceAccount ¶ added in v0.11.0
func (k *K8sHubble) NewServiceAccount(name string) *corev1.ServiceAccount
type Parameters ¶
type Parameters struct { Namespace string Relay bool RelayImage string RelayVersion string RelayServiceType string PortForward int CreateCA bool UI bool UIImage string UIBackendImage string UIVersion string UIPortForward int Writer io.Writer Context string // Only for 'kubectl' pass-through commands Wait bool WaitDuration time.Duration // K8sVersion is the Kubernetes version that will be used to generate the // kubernetes manifests. If the auto-detection fails, this flag can be used // as a workaround. K8sVersion string // HelmChartDirectory points to the location of a helm chart directory. // Useful to test from upstream where a helm release is not available yet. HelmChartDirectory string // HelmOpts are all the options the user used to pass into the Cilium cli // template. HelmOpts values.Options // HelmGenValuesFile points to the file that will store the generated helm // options. HelmGenValuesFile string // HelmValuesSecretName is the name of the secret where helm values will be // stored. HelmValuesSecretName string // RedactHelmCertKeys does not print helm certificate keys into the terminal. RedactHelmCertKeys bool }
func (*Parameters) Log ¶
func (p *Parameters) Log(format string, a ...interface{})
func (*Parameters) RelayPortForwardCommand ¶ added in v0.12.0
func (p *Parameters) RelayPortForwardCommand(ctx context.Context, client k8sHubbleImplementation) error
func (*Parameters) UIPortForwardCommand ¶
func (p *Parameters) UIPortForwardCommand(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.