8000 [Feature] Integration PongV1 Service · arangodb/kube-arangodb@2e706a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e706a1

Browse files
committed
[Feature] Integration PongV1 Service
1 parent 91793bc commit 2e706a1

24 files changed

+1226
-117
lines changed

.golangci.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ linters-settings:
103103
alias: pbConfigV1
104104
- pkg: github.com/arangodb/kube-arangodb/integrations/config/v1
105105
alias: pbImplConfigV1
106+
- pkg: github.com/arangodb/kube-arangodb/integrations/pong/v1/definition
107+
alias: pbPongV1
108+
- pkg: github.com/arangodb/kube-arangodb/integrations/pong/v1
109+
alias: pbImplPongV1
106110
- pkg: github.com/arangodb/kube-arangodb/integrations/shared/v1/definition
107111
alias: pbSharedV1
108112
- pkg: github.com/arangodb/kube-arangodb/integrations/shared/v1

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- (Feature) ConfigV1 Integration Service
1717
- (Feature) Integration Service Authentication
1818
- (Improvement) Better panic handling
19+
- (Feature) PongV1 Integration Service
1920

2021
## [1.2.42](https://github.com/arangodb/kube-arangodb/tree/1.2.42) (2024-07-23)
2122
- (Maintenance) Go 1.22.4 & Kubernetes 1.29.6 libraries

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Flags:
182182
--kubernetes.max-batch-size int Size of batch during objects read (default 256)
183183
--kubernetes.qps float32 Number of queries per second for k8s API (default 15)
184184
--log.format string Set log format. Allowed values: 'pretty', 'JSON'. If empty, default format is used (default "pretty")
185-
--log.level stringArray Set log levels in format <level> or <logger>=<level>. Possible loggers: action, agency, api-server, assertion, backup-operator, chaos-monkey, crd, deployment, deployment-ci, deployment-reconcile, deployment-replication, deployment-resilience, deployment-resources, deployment-storage, deployment-storage-pc, deployment-storage-service, http, inspector, integration-config-v1, integrations, k8s-client, monitor, networking-route-operator, operator, operator-arangojob-handler, operator-v2, operator-v2-event, operator-v2-worker, panics, pod_compare, root, root-event-recorder, server, server-authentication (default [info])
185+
--log.level stringArray Set log levels in format <level> or <logger>=<level>. Possible loggers: action, agency, api-server, assertion, backup-operator, chaos-monkey, crd, deployment, deployment-ci, deployment-reconcile, deployment-replication, deployment-resilience, deployment-resources, deployment-storage, deployment-storage-pc, deployment-storage-service, http, inspector, integration-config-v1, integrations, k8s-client, kubernetes-informer, monitor, networking-route-operator, operator, operator-arangojob-handler, operator-v2, operator-v2-event, operator-v2-worker, panics, pod_compare, root, root-event-recorder, server, server-authentication (default [info])
186186
--log.sampling If true, operator will try to minimize duplication of logging events (default true)
187187
--memory-limit uint Define memory limit for hard shutdown and the dump of goroutines. Used for testing
188188
--metrics.excluded-prefixes stringArray List of the excluded metrics prefixes

cmd/cmd_ops.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// DISCLAIMER
33
//
4-
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
4+
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
55
//
66
// Licensed under the Apache License, Version 2.0 (the "License");
77
// you may not use this file except in compliance with the License.
@@ -29,11 +29,15 @@ import (
2929

3030
var (
3131
cmdOps = cobra.Command{
32-
Use: "arangodb_ops",
32+
Use: "arangodb_operator_ops",
3333
Run: executeUsage,
3434
}
3535
)
3636

37+
func CommandOps() *cobra.Command {
38+
return &cmdOps
39+
}
40+
3741
func ExecuteOps() int {
3842
flag.CommandLine.AddGoFlagSet(goflag.CommandLine)
3943

cmd/integration/init.go

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
//
2+
// DISCLAIMER
3+
//
4+
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
5+
//
6+
// Licensed under the Apache License, Version 2.0 (the "License");
7+
// you may not use this file except in compliance with the License.
8+
// You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing, software
13+
// distributed under the License is distributed on an "AS IS" BASIS,
14+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
// See the License for the specific language governing permissions and
16+
// limitations under the License.
17+
//
18+
// Copyright holder is ArangoDB GmbH, Cologne, Germany
19+
//
20+
21+
package integration
22+
23+
import (
24+
goflag "flag"
25+
26+
"github.com/spf13/cobra"
27+
flag "github.com/spf13/pflag"
28+
29+
"github.com/arangodb/kube-arangodb/pkg/integrations"
30+
)
31+
32+
var (
33+
cmd = cobra.Command{
34+
Use: "arangodb_operator_integration",
35+
RunE: func(cmd *cobra.Command, args []string) error {
36+
return cmd.Usage()
37+
},
38+
}
39+
)
40+
41+
func init() {
42+
if err := integrations.Register(&cmd); err != nil {
43+
panic(err.Error())
44+
}
45+
flag.CommandLine.AddGoFlagSet(goflag.CommandLine)
46+
}
47+
48+
func Command() *cobra.Command {
49+
return &cmd
50+
}
51+
52+
func Execute() int {
53+
flag.CommandLine.AddGoFlagSet(goflag.CommandLine)
54+
55+
if err := cmd.Execute(); err != nil {
56+
return 1
57+
}
58+
59+
return 0
60+
}

cmd/main-int/main_int.go

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -21,40 +21,11 @@
2121
package main
2222

2323
import (
24-
goflag "flag"
2524
"os"
2625

27-
"github.com/spf13/cobra"
28-
flag "github.com/spf13/pflag"
29-
30-
"github.com/arangodb/kube-arangodb/pkg/integrations"
31-
)
32-
33-
var (
34-
cmd = cobra.Command{
35-
Use: "arangodb_int",
36-
RunE: func(cmd *cobra.Command, args []string) error {
37-
return cmd.Usage()
38-
},
39-
}
26+
"github.com/arangodb/kube-arangodb/cmd/integration"
4027
)
4128

42-
func init() {
43-
if err := integrations.Register(&cmd); err != nil {
44-
panic(err.Error())
45-
}
46-
}
47-
48-
func Execute() int {
49-
flag.CommandLine.AddGoFlagSet(goflag.CommandLine)
50-
51-
if err := cmd.Execute(); err != nil {
52-
return 1
53-
}
54-
55-
return 0
56-
}
57-
5829
func main() {
59-
os.Exit(Execute())
30+
os.Exit(integration.Execute())
6031
}

0 commit comments

Comments
 (0)
0