Skip to content

Commit

Permalink
Should skip install update (#10568)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheidkamp authored Jan 13, 2025
1 parent 898a84f commit 7d09cd7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions changelog/v1.19.0-beta3/ShouldSkipInstall-update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
changelog:
- type: FIX
issueLink: https://github.com/solo-io/solo-projects/issues/7432
resolvesIssue: false
description: >-
Export IsGatewayInstalled for use in other packages
4 changes: 2 additions & 2 deletions test/kubernetes/e2e/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,13 @@ func (i *TestInstallation) InstallGlooGatewayWithTestHelper(ctx context.Context,
i.InstallGlooGateway(ctx, installFn)
}

func (i *TestInstallation) isGatewayInstalled(ctx context.Context) bool {
func (i *TestInstallation) IsGatewayInstalled(ctx context.Context) bool {
return i.Assertions.CheckResourcesOk(ctx) == nil
}

func (i *TestInstallation) InstallGlooGateway(ctx context.Context, installFn func(ctx context.Context) error) {

if !testutils.ShouldSkipInstall(i.isGatewayInstalled(ctx)) {
if !testutils.ShouldSkipInstall(i.IsGatewayInstalled(ctx)) {
err := installFn(ctx)
i.Assertions.Require.NoError(err)
i.Assertions.EventuallyInstallationSucceeded(ctx)
Expand Down

0 comments on commit 7d09cd7

Please sign in to comment.