Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stabilize e2e test case sandbox-basic #962

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cmd/operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
clientgoscheme "k8s.io/client-go/kubernetes/scheme"
_ "k8s.io/client-go/plugin/pkg/client/auth"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/record"
ctrl "sigs.k8s.io/controller-runtime"
"sigs.k8s.io/controller-runtime/pkg/config/v1alpha1"
"sigs.k8s.io/controller-runtime/pkg/healthz"
Expand Down Expand Up @@ -239,7 +240,7 @@ func main() {
if opcfg.GetLoggingFilePath() != "" {
log.Printf("Now logging in file %s", opcfg.GetLoggingFilePath())
}

var multibroadcaster = record.NewBroadcasterWithCorrelatorOptions(record.CorrelatorOptions{BurstSize: 100})
ctrl.SetLogger(logger)
setupLog.Info("Build info", "gitCommit", GitCommit,
"buildDate", BuildDate, "vclusterVersion", VClusterVersion)
Expand All @@ -260,6 +261,7 @@ func main() {
LeaderElection: true,
LeaderElectionID: opcfg.GetLeaderElectionID(),
Namespace: opcfg.GetWatchNamespace(),
EventBroadcaster: multibroadcaster,
CertDir: CertDir,
Controller: v1alpha1.ControllerConfigurationSpec{
GroupKindConcurrency: map[string]int{
Expand Down
1 change: 1 addition & 0 deletions kuttl-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

apiVersion: kuttl.dev/v1beta1
kind: TestSuite
kindNodeCache: true
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This allows the downloaded images to be cached on the node. This will speed up test case execution.

# Each testcase will delete its own namespace if it is successful. This
# allows us to collect scrutinize for all of the failed tests.
skipDelete: true
Expand Down
5 changes: 4 additions & 1 deletion tests/e2e-leg-10/sandbox-basic/20-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 1200
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand Down
6 changes: 5 additions & 1 deletion tests/e2e-leg-10/sandbox-basic/60-assert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: kuttl.dev/v1beta1
kind: TestAssert
timeout: 900
---
apiVersion: v1
kind: Event
reason: UnsandboxSubclusterSucceeded
Expand Down Expand Up @@ -65,4 +69,4 @@ status:
name: sec2
- addedToDBCount: 1
upNodeCount: 1
name: sec3
name: sec3
5 changes: 4 additions & 1 deletion tests/e2e-leg-10/sandbox-basic/60-unsandbox-sec3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: kuttl.dev/v1beta1
kind: TestStep
timeout: 900
---
apiVersion: vertica.com/v1
kind: VerticaDB
metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
initPolicy: CreateSkipPackageInstall
communal: {}
local:
requestSize: 250Mi
requestSize: 270Mi
# We pick a cluster size that is too big for the CE license. This relies on
# having a license, which will be added by kustomize.
subclusters:
Expand Down
Loading