Documentation ¶
Index ¶
- Constants
- func EventuallyLogLevel(port int, logLevel zapcore.Level)
- func EventuallyMetricsBecomeConsistent(offset int, metricsPort int)
- func EventuallyReachesConsistentState(installNamespace string)
- func ExpectEqualProtoMessages(g Gomega, a, b proto.Message, optionalDescription ...interface{})
- func GetHelmValuesOverrideFile() (filename string, cleanup func())
- func GetHttpEchoImage() string
- func GetSimpleTestRunnerHttpResponse() string
- func GetTestHelper(ctx context.Context, namespace string) (*helper.SoloTestHelper, error)
- func GetTestReleasedVersion(ctx context.Context, repoName string) string
- func GlooctlCheckEventuallyHealthy(offset int, testHelper *helper.SoloTestHelper, timeoutInterval string)
- func MustKubeClient() kubernetes.Interface
- func PatchResource(ctx context.Context, resourceRef *core.ResourceRef, ...) error
- func ToFile(content string) string
- func UpdateAlwaysAcceptSetting(ctx context.Context, alwaysAccept bool, installNamespace string)
- func UpdateDisableTransformationValidationSetting(ctx context.Context, shouldDisable bool, installNamespace string)
- func UpdateReplaceInvalidRoutes(ctx context.Context, replaceInvalidRoutes bool, installNamespace string)
- func UpdateRestEdsSetting(ctx context.Context, enableRestEds bool, installNamespace string)
- func UpdateSettings(ctx context.Context, updateSettings func(settings *v1.Settings), ...)
- func UpdateSettingsWithPropagationDelay(updateSettings func(settings *v1.Settings), waitForSettingsToPropagate func(), ...)
- type KubeResourceClientSet
- func (k KubeResourceClientSet) ArtifactClient() gloov1.ArtifactClient
- func (k KubeResourceClientSet) GatewayClient() gatewayv1.GatewayClient
- func (k KubeResourceClientSet) HttpGatewayClient() gatewayv1.MatchableHttpGatewayClient
- func (k KubeResourceClientSet) KubeClients() *kubernetes.Clientset
- func (k KubeResourceClientSet) ProxyClient() gloov1.ProxyClient
- func (k KubeResourceClientSet) RateLimitConfigClient() externalrl.RateLimitConfigClient
- func (k KubeResourceClientSet) RouteOptionClient() gatewayv1.RouteOptionClient
- func (k KubeResourceClientSet) RouteTableClient() gatewayv1.RouteTableClient
- func (k KubeResourceClientSet) SecretClient() gloov1.SecretClient
- func (k KubeResourceClientSet) ServiceClient() skkube.ServiceClient
- func (k KubeResourceClientSet) SettingsClient() gloov1.SettingsClient
- func (k KubeResourceClientSet) UpstreamClient() gloov1.UpstreamClient
- func (k KubeResourceClientSet) UpstreamGroupClient() gloov1.UpstreamGroupClient
- func (k KubeResourceClientSet) VirtualHostOptionClient() gatewayv1.VirtualHostOptionClient
- func (k KubeResourceClientSet) VirtualServiceClient() gatewayv1.VirtualServiceClient
Constants ¶
const SimpleTestRunnerHttpResponse = `` /* 851-byte string literal not displayed */
const SimpleTestRunnerHttpResponseArm = `` /* 807-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func EventuallyLogLevel ¶ added in v1.9.21
EventuallyLogLevel ensures that we can query the endpoint responsible for getting the current log level of a gloo component, and updating the log level dynamically
func EventuallyMetricsBecomeConsistent ¶ added in v1.9.25
func EventuallyReachesConsistentState ¶ added in v1.5.0
func EventuallyReachesConsistentState(installNamespace string)
func ExpectEqualProtoMessages ¶ added in v1.9.13
Copied from: https://github.com/solo-io/go-utils/blob/176c4c008b4d7cde836269c7a817f657b6981236/testutils/assertions.go#L20
func GetHelmValuesOverrideFile ¶ added in v1.3.16
func GetHelmValuesOverrideFile() (filename string, cleanup func())
func GetHttpEchoImage ¶ added in v1.9.25
func GetHttpEchoImage() string
func GetSimpleTestRunnerHttpResponse ¶ added in v1.9.25
func GetSimpleTestRunnerHttpResponse() string
https://github.com/solo-io/gloo/issues/4043#issuecomment-772706604 We should move tests away from using the testrunner, and instead depend on EphemeralContainers. The default response changed in later kube versions, which caused this value to change. Ideally the test utilities used by Gloo are maintained in the Gloo repo, so I opted to move this constant here. This response is given by the testrunner when the SimpleServer is started
func GetTestHelper ¶ added in v1.12.48
func GetTestReleasedVersion ¶ added in v1.12.48
For nightly runs, we want to install a released version rather than using a locally built chart To do this, set the environment variable RELEASED_VERSION with either a version name or "LATEST" to get the last release
func GlooctlCheckEventuallyHealthy ¶ added in v1.3.16
func GlooctlCheckEventuallyHealthy(offset int, testHelper *helper.SoloTestHelper, timeoutInterval string)
GlooctlCheckEventuallyHealthy will run up until proved timeoutInterval or until gloo is reported as healthy
func MustKubeClient ¶ added in v0.11.2
func MustKubeClient() kubernetes.Interface
func PatchResource ¶ added in v1.12.21
func PatchResource(ctx context.Context, resourceRef *core.ResourceRef, mutator func(resource resources.Resource), client clients.ResourceClient) error
PatchResource mutates an existing resource, retrying if a resourceVersionError is encountered Deprecated: Prefer the helpers.PatchResource, which is not a Kubernetes specific package
func UpdateAlwaysAcceptSetting ¶ added in v1.5.0
enable/disable strict validation
func UpdateDisableTransformationValidationSetting ¶ added in v1.8.3
func UpdateReplaceInvalidRoutes ¶ added in v1.8.3
func UpdateRestEdsSetting ¶ added in v1.7.0
func UpdateSettings ¶ added in v1.5.0
Types ¶
type KubeResourceClientSet ¶ added in v1.12.21
type KubeResourceClientSet struct {
// contains filtered or unexported fields
}
KubeResourceClientSet is a set of ResourceClients
func NewKubeResourceClientSet ¶ added in v1.9.25
func (KubeResourceClientSet) ArtifactClient ¶ added in v1.12.21
func (k KubeResourceClientSet) ArtifactClient() gloov1.ArtifactClient
func (KubeResourceClientSet) GatewayClient ¶ added in v1.12.21
func (k KubeResourceClientSet) GatewayClient() gatewayv1.GatewayClient
func (KubeResourceClientSet) HttpGatewayClient ¶ added in v1.12.21
func (k KubeResourceClientSet) HttpGatewayClient() gatewayv1.MatchableHttpGatewayClient
func (KubeResourceClientSet) KubeClients ¶ added in v1.12.21
func (k KubeResourceClientSet) KubeClients() *kubernetes.Clientset
func (KubeResourceClientSet) ProxyClient ¶ added in v1.12.21
func (k KubeResourceClientSet) ProxyClient() gloov1.ProxyClient
func (KubeResourceClientSet) RateLimitConfigClient ¶ added in v1.12.21
func (k KubeResourceClientSet) RateLimitConfigClient() externalrl.RateLimitConfigClient
func (KubeResourceClientSet) RouteOptionClient ¶ added in v1.12.21
func (k KubeResourceClientSet) RouteOptionClient() gatewayv1.RouteOptionClient
func (KubeResourceClientSet) RouteTableClient ¶ added in v1.12.21
func (k KubeResourceClientSet) RouteTableClient() gatewayv1.RouteTableClient
func (KubeResourceClientSet) SecretClient ¶ added in v1.12.21
func (k KubeResourceClientSet) SecretClient() gloov1.SecretClient
func (KubeResourceClientSet) ServiceClient ¶ added in v1.12.21
func (k KubeResourceClientSet) ServiceClient() skkube.ServiceClient
func (KubeResourceClientSet) SettingsClient ¶ added in v1.12.21
func (k KubeResourceClientSet) SettingsClient() gloov1.SettingsClient
func (KubeResourceClientSet) UpstreamClient ¶ added in v1.12.21
func (k KubeResourceClientSet) UpstreamClient() gloov1.UpstreamClient
func (KubeResourceClientSet) UpstreamGroupClient ¶ added in v1.12.21
func (k KubeResourceClientSet) UpstreamGroupClient() gloov1.UpstreamGroupClient
func (KubeResourceClientSet) VirtualHostOptionClient ¶ added in v1.12.21
func (k KubeResourceClientSet) VirtualHostOptionClient() gatewayv1.VirtualHostOptionClient
func (KubeResourceClientSet) VirtualServiceClient ¶ added in v1.12.21
func (k KubeResourceClientSet) VirtualServiceClient() gatewayv1.VirtualServiceClient