Skip to content

Commit

Permalink
cr fixes and skipping for db-less for now
Browse files Browse the repository at this point in the history
  • Loading branch information
programmer04 committed Jul 28, 2023
1 parent f5b9f19 commit 86ab16b
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
consumer_groups:
description: ConsumerGroups are references to Consumer Groups (that Consumer
description: ConsumerGroups are references to consumer groups (that consumer
wants to be part of) provisioned in Kong.
items:
type: string
Expand Down
2 changes: 1 addition & 1 deletion deploy/single/all-in-one-dbless-enterprise.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion deploy/single/all-in-one-dbless-k4k8s-enterprise.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion deploy/single/all-in-one-dbless-konnect-enterprise.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion deploy/single/all-in-one-dbless-konnect.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion deploy/single/all-in-one-dbless-legacy.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion deploy/single/all-in-one-dbless.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion deploy/single/all-in-one-postgres-enterprise.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion deploy/single/all-in-one-postgres.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/api-reference.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/dataplane/kongstate/kongstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (ks *KongState) FillConsumersAndCredentials(
for _, cgName := range consumer.ConsumerGroups {
cg, err := s.GetKongConsumerGroup(consumer.Namespace, cgName)
if err != nil {
failuresCollector.PushResourceFailure(fmt.Sprintf("non-existing consumer group: %q", err), consumer)
failuresCollector.PushResourceFailure(fmt.Sprintf("nonexistent consumer group: %q", err), consumer)
continue
}
c.ConsumerGroups = append(c.ConsumerGroups, kong.ConsumerGroup{
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/configuration/v1/kongconsumer_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type KongConsumer struct {
// Credentials are references to secrets containing a credential to be
// provisioned in Kong.
Credentials []string `json:"credentials,omitempty"`
// ConsumerGroups are references to Consumer Groups (that Consumer wants to be part of)
// ConsumerGroups are references to consumer groups (that consumer wants to be part of)
// provisioned in Kong.
ConsumerGroups []string `json:"consumer_groups,omitempty"`

Expand Down
8 changes: 7 additions & 1 deletion test/integration/consumer_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ func TestConsumerGroup(t *testing.T) {
RunWhenKongVersion(t, fmt.Sprintf(">=%s", versions.ConsumerGroupsVersionCutoff))
RunWhenKongEnterprise(t)

// Get rid of skip when Gateway 3.4 will be released.
// Issue https://konghq.atlassian.net/browse/FTI-5264 will be resolved.
if testenv.DBMode() == testenv.DBModeOff {
t.Skip("due to a bug in Kong Gateway for DB-less mode and consumer groups, this test has to be skipped")
}

ctx := context.Background()
ns, cleaner := helpers.Setup(ctx, t, env)

Expand Down Expand Up @@ -57,7 +63,7 @@ func TestConsumerGroup(t *testing.T) {
}

const consumerName = "test-consumer"
t.Logf("configuring Consumer : %q", consumerName)
t.Logf("configuring consumer: %q", consumerName)
consumer, err := c.ConfigurationV1().KongConsumers(ns.Name).Create(
ctx,
&kongv1.KongConsumer{
Expand Down

0 comments on commit 86ab16b

Please sign in to comment.