Documentation ¶
Index ¶
- Constants
- func EventuallyLogLevel(port int, logLevel zapcore.Level)
- 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 GlooctlCheckEventuallyHealthy(offset int, testHelper *helper.SoloTestHelper, timeoutInterval string)
- func MustKubeClient() kubernetes.Interface
- 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 ResourceClientSet
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 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 GlooctlCheckEventuallyHealthy ¶ added in v1.3.16
func GlooctlCheckEventuallyHealthy(offset int, testHelper *helper.SoloTestHelper, timeoutInterval string)
Check that everything is OK by running `glooctl check`
func MustKubeClient ¶ added in v0.11.2
func MustKubeClient() kubernetes.Interface
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 ResourceClientSet ¶ added in v1.9.25
type ResourceClientSet struct { GatewayClient gatewayv1.GatewayClient HttpGatewayClient gatewayv1.MatchableHttpGatewayClient VirtualServiceClient gatewayv1.VirtualServiceClient RouteTableClient gatewayv1.RouteTableClient VirtualHostOptionClient gatewayv1.VirtualHostOptionClient RouteOptionClient gatewayv1.RouteOptionClient UpstreamGroupClient gloov1.UpstreamGroupClient UpstreamClient gloov1.UpstreamClient ProxyClient gloov1.ProxyClient ServiceClient skkube.ServiceClient }
ResourceClientSet is a set of ResourceClients
func NewKubeResourceClientSet ¶ added in v1.9.25
func (ResourceClientSet) DeleteSnapshot ¶ added in v1.9.25
func (r ResourceClientSet) DeleteSnapshot(ctx context.Context, snapshot *gloosnapshot.ApiSnapshot) error
func (ResourceClientSet) WriteSnapshot ¶ added in v1.9.25
func (r ResourceClientSet) WriteSnapshot(ctx context.Context, snapshot *gloosnapshot.ApiSnapshot) error