Documentation ¶
Index ¶
- func CSVToMap(reader io.Reader) (map[string]string, error)
- func GetResourceVersion(c client.Client, o client.Object, name, namespace string, ...) string
- func LoadRedisDataset(ctx context.Context, srv *redis.Server, file string) error
- func MinioClient(ctx context.Context, cfg *rest.Config, podKey types.NamespacedName, ...) (*s3.Client, chan struct{}, error)
- func MustParseRFC3339(in string) time.Time
- func NewTestPortForwarder(cfg *rest.Config, key types.NamespacedName, localPort, podPort uint32, ...) (*portforward.PortForwarder, error)
- func PortForward(cfg *rest.Config, key types.NamespacedName, podPort uint32) (uint32, chan struct{}, error)
- func RecordToKeyValues(headers []string, record []string) map[string]string
- func RedisClient(cfg *rest.Config, podKey types.NamespacedName) (*redis.Server, chan struct{}, error)
- func SentinelClient(cfg *rest.Config, podKey types.NamespacedName) (*redis.Server, chan struct{}, error)
- type ExpectedResource
- type ExpectedWorkload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourceVersion ¶
func GetResourceVersion(c client.Client, o client.Object, name, namespace string, timeout, poll time.Duration) string
getResourceVersion fetches the current resource version for an object, returns an empty string if the object doesn't exists
func LoadRedisDataset ¶
func MinioClient ¶
func MustParseRFC3339 ¶
func NewTestPortForwarder ¶
func NewTestPortForwarder(cfg *rest.Config, key types.NamespacedName, localPort, podPort uint32, out io.Writer, stopCh chan struct{}, readyCh chan struct{}) (*portforward.PortForwarder, error)
func PortForward ¶
func RecordToKeyValues ¶
func RedisClient ¶
func SentinelClient ¶
Types ¶
type ExpectedResource ¶
type ExpectedWorkload ¶
type ExpectedWorkload struct { Namespace string Name string Replicas int32 ContainerName string ContainerImage string ContainterCmd []string ContainterArgs []string HPA bool PDB bool PodMonitor bool EnvoyConfig bool LastVersion string }
func (*ExpectedWorkload) Assert ¶
func (ew *ExpectedWorkload) Assert(c client.Client, dep *appsv1.Deployment, timeout, poll time.Duration) func()
checkWorkloadResources checks if all the k8s resource generated by a workload exists and matches the expectedWorkload specification
Click to show internal directories.
Click to hide internal directories.