10000 [Feature] Integration PongV1 Service by ajanikow · Pull Request #1709 · arangodb/kube-arangodb · GitHub
[go: up one dir, main page]

Skip to content

[Feature] Integration PongV1 Service #1709

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

Merged
merged 1 commit into from
Aug 28, 2024
Merged
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: 4 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ linters-settings:
alias: pbConfigV1
- pkg: github.com/arangodb/kube-arangodb/integrations/config/v1
alias: pbImplConfigV1
- pkg: github.com/arangodb/kube-arangodb/integrations/pong/v1/definition
alias: pbPongV1
- pkg: github.com/arangodb/kube-arangodb/integrations/pong/v1
alias: pbImplPongV1
- pkg: github.com/arangodb/kube-arangodb/integrations/shared/v1/definition
alias: pbSharedV1
- pkg: github.com/arangodb/kube-arangodb/integrations/shared/v1
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- (Feature) ConfigV1 Integration Service
- (Feature) Integration Service Authentication
- (Improvement) Better panic handling
- (Feature) PongV1 Integration Service

## [1.2.42](https://github.com/arangodb/kube-arangodb/tree/1.2.42) (2024-07-23)
- (Maintenance) Go 1.22.4 & Kubernetes 1.29.6 libraries
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,6 @@ sync-charts:
sync: sync-charts

ci-check:
@$(MAKE) tidy vendor update-generated synchronize-v2alpha1-with-v1 generate-internal sync fmt yamlfmt license
@$(MAKE) tidy vendor generate update-generated synchronize-v2alpha1-with-v1 sync fmt yamlfmt license
@git checkout -- go.sum # ignore changes in go.sum
@if [ ! -z "$(git status --porcelain)" ]; then echo "There are uncommited changes!"; git status; exit 1; fi
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Flags:
--kubernetes.max-batch-size int Size of batch during objects read (default 256)
--kubernetes.qps float32 Number of queries per second for k8s API (default 15)
--log.format string Set log format. Allowed values: 'pretty', 'JSON'. If empty, default format is used (default "pretty")
--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])
--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])
--log.sampling If true, operator will try to minimize duplication of logging events (default true)
--memory-limit uint Define memory limit for hard shutdown and the dump of goroutines. Used for testing
--metrics.excluded-prefixes stringArray List of the excluded metrics prefixes
Expand Down
8 changes: 6 additions & 2 deletions cmd/cmd_ops.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// DISCLAIMER
//
// Copyright 2016-2022 ArangoDB GmbH, Cologne, Germany
// Copyright 2016-2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -29,11 +29,15 @@ import (

var (
cmdOps = cobra.Command{
Use: "arangodb_ops",
Use: "arangodb_operator_ops",
Run: executeUsage,
}
)

func CommandOps() *cobra.Command {
return &cmdOps
}

func ExecuteOps() int {
flag.CommandLine.AddGoFlagSet(goflag.CommandLine)

Expand Down
60 changes: 60 additions & 0 deletions cmd/integration/init.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
//
// DISCLAIMER
//
// Copyright 2024 ArangoDB GmbH, Cologne, Germany
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// 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.
//
// Copyright holder is ArangoDB GmbH, Cologne, Germany
//

package integration

import (
goflag "flag"

"github.com/spf13/cobra"
flag "github.com/spf13/pflag"

"github.com/arangodb/kube-arangodb/pkg/integrations"
)

var (
cmd = cobra.Command{
Use: "arangodb_operator_integration",
RunE: func(cmd *cobra.Command, args []string) error {
return cmd.Usage()
},
}
)

func init() {
if err := integrations.Register(&cmd); err != nil {
panic(err.Error())
}
flag.CommandLine.AddGoFlagSet(goflag.CommandLine)
}

func Command() *cobra.Command {
return &cmd
}

func Execute() int {
flag.CommandLine.AddGoFlagSet(goflag.CommandLine)

if err := cmd.Execute(); err != nil {
return 1
}

return 0
}
33 changes: 2 additions & 31 deletions cmd/main-int/main_int.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,40 +21,11 @@
package main

import (
goflag "flag"
"os"

"github.com/spf13/cobra"
flag "github.com/spf13/pflag"

"github.com/arangodb/kube-arangodb/pkg/integrations"
)

var (
cmd = cobra.Command{
Use: &qu 7DF7 ot;arangodb_int",
RunE: func(cmd *cobra.Command, args []string) error {
return cmd.Usage()
},
}
"github.com/arangodb/kube-arangodb/cmd/integration"
)

func init() {
if err := integrations.Register(&cmd); err != nil {
panic(err.Error())
}
}

func Execute() int {
flag.CommandLine.AddGoFlagSet(goflag.CommandLine)

if err := cmd.Execute(); err != nil {
return 1
}

return 0
}

func main() {
os.Exit(Execute())
os.Exit(integration.Execute())
}
Loading
0