Skip to content

Commit

Permalink
Specify RMQ Cluster resource request.
Browse files Browse the repository at this point in the history
Enables running system tests on Kind for Github Actions.
  • Loading branch information
MirahImage committed Mar 16, 2021
1 parent 9f9f6c9 commit 30189b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions system_tests/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/rabbitmq/messaging-topology-operator/api/v1alpha1"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/api/resource"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/clientcmd"
Expand Down Expand Up @@ -156,6 +157,11 @@ func setupTestRabbitmqCluster(k8sClient client.Client, name, namespace string) *
},
Spec: rabbitmqv1beta1.RabbitmqClusterSpec{
Replicas: pointer.Int32Ptr(1),
Resources: &corev1.ResourceRequirements{
Requests: corev1.ResourceList{
corev1.ResourceMemory: resource.MustParse("100Mi"),
},
},
Service: rabbitmqv1beta1.RabbitmqClusterServiceSpec{
Type: corev1.ServiceTypeNodePort,
},
Expand Down

0 comments on commit 30189b6

Please sign in to comment.