Documentation
¶
Index ¶
- Constants
- func NewPodLogChan(ctx context.Context, cs kubernetes.Interface, labelSelector, ns string, ...) (<-chan string, error)
- func PodExec(config *rest.Config, ns, podName string, cmd ...string) (stdout, stderr []byte, err error)
- func RunningPods(ctx context.Context, cs kubernetes.Interface, labelSelector, ns string) ([]string, error)
- type AESTestSuite
- type AgentCom
- type BasicTestSuite
- type CleanupFunc
- type CloudTokenTestSuite
- type InstallationConfig
- type Suite
- func (s *Suite) Cleanup(f func(context.Context) error)
- func (s *Suite) Config() *rest.Config
- func (s *Suite) Context() context.Context
- func (s *Suite) CreateNamespace(ctx context.Context, ns string) error
- func (s *Suite) DeleteNamespace(ctx context.Context, ns string) error
- func (s *Suite) Init()
- func (s *Suite) K8sIf() kubernetes.Interface
- func (s *Suite) Name() string
- func (s *Suite) Namespace() string
- func (s *Suite) TearDownSuite()
Constants ¶
View Source
const AgentLabelSelector = "app.kubernetes.io/name=ambassador-agent"
Variables ¶
This section is empty.
Functions ¶
func NewPodLogChan ¶
func NewPodLogChan(ctx context.Context, cs kubernetes.Interface, labelSelector, ns string, follow bool) (<-chan string, error)
NewPodLogChan returns a chan with the specified pods logs entry-by-entry.
func PodExec ¶
func PodExec(config *rest.Config, ns, podName string, cmd ...string) (stdout, stderr []byte, err error)
PodExec provides the functionality of `kubectl exec -n ns podName -- cmd...`.
func RunningPods ¶ added in v1.0.5
func RunningPods(ctx context.Context, cs kubernetes.Interface, labelSelector, ns string) ([]string, error)
RunningPods return the names of running pods with the given label selector in the form label=value. Running here means that at least one container is still running. I.e. the pod might well be terminating but still considered running.
Types ¶
type AESTestSuite ¶ added in v1.0.22
type AESTestSuite struct { Suite // contains filtered or unexported fields }
func (*AESTestSuite) SetupSuite ¶ added in v1.0.22
func (s *AESTestSuite) SetupSuite()
type AgentCom ¶
type AgentCom struct {
// contains filtered or unexported fields
}
func (*AgentCom) GetSnapshot ¶
func (*AgentCom) RPCAddress ¶
func (*AgentCom) SetKATServerImage ¶
type BasicTestSuite ¶ added in v1.0.22
type BasicTestSuite struct { Suite // contains filtered or unexported fields }
func (*BasicTestSuite) SetupSuite ¶ added in v1.0.22
func (s *BasicTestSuite) SetupSuite()
type CleanupFunc ¶
func InstallHelmChart ¶
func InstallHelmChart(ctx context.Context, config InstallationConfig) (CleanupFunc, error)
type CloudTokenTestSuite ¶ added in v1.0.22
type CloudTokenTestSuite struct {
Suite
}
func (*CloudTokenTestSuite) SetupSuite ¶ added in v1.0.22
func (s *CloudTokenTestSuite) SetupSuite()
type InstallationConfig ¶
type Suite ¶ added in v1.0.5
func (*Suite) CreateNamespace ¶ added in v1.0.5
func (*Suite) DeleteNamespace ¶ added in v1.0.5
func (*Suite) K8sIf ¶ added in v1.0.5
func (s *Suite) K8sIf() kubernetes.Interface
func (*Suite) TearDownSuite ¶ added in v1.0.22
func (s *Suite) TearDownSuite()
Click to show internal directories.
Click to hide internal directories.