Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Move project to ironcore-dev #20

Merged
merged 2 commits into from
Nov 30, 2023
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: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ updates:
interval: "daily"
open-pull-requests-limit: 10
reviewers:
- "onmetal/onmetal-api-maintainers"
- "ironcore-dev/networking"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 10
reviewers:
- "onmetal/onmetal-api-maintainers"
- "ironcore-dev/networking"
16 changes: 4 additions & 12 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
name: Lint Golang Codebase

on:
pull_request_target:
pull_request:
paths-ignore:
- 'docs/**'
- '**/*.md'
jobs:
golangci:
name: lint
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-go@v3
with:
go-version: '1.19'
- run: ./hack/setup-git-redirect.sh
env:
GITHUB_PAT: ${{ secrets.BOT_PAT }}
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.48.0
version: v1.55.2
11 changes: 8 additions & 3 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,22 @@ on:
push:
branches:
- main
pull_request_target:
types: [ assigned, opened, reopened, synchronize ]
pull_request:
types: [ opened, reopened, synchronize ]

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5
with:
disable-releaser: github.ref != 'refs/heads/main'
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,18 @@ permissions:

jobs:
goreleaser:
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Fetch all tags
run: git fetch --force --tags
- name: Set up Go
uses: actions/setup-go@v3
- name: Setup Go Environment
uses: actions/setup-go@v4
with:
go-version: 1.19
- run: ./hack/setup-git-redirect.sh
env:
GITHUB_PAT: ${{ secrets.BOT_PAT }}
go-version-file: 'go.mod'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/size.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Size Label

on:
pull_request:
types:
- opened
- edited
- synchronize

jobs:
size-label:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: size-label
uses: pascalgn/[email protected]
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
13 changes: 5 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: test

on:
pull_request_target:
pull_request:
types: [ assigned, opened, synchronize, reopened ]
paths-ignore:
- 'docs/**'
Expand All @@ -10,16 +10,13 @@ on:
jobs:
checks:
name: run
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Go
uses: actions/setup-go@v3
- name: Setup Go Environment
uses: actions/setup-go@v4
with:
go-version: 1.19
- run: ./hack/setup-git-redirect.sh
env:
GITHUB_PAT: ${{ secrets.BOT_PAT }}
go-version-file: 'go.mod'
- run: make test
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
project_name: github.com/onmetal/dpservice-cli
project_name: github.com/ironcore-dev/dpservice-cli
builds:
- env:
- CGO_ENABLED=0
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ vet:

.PHONY: addlicense
addlicense: ## Add license headers to all go files.
find . -name '*.go' -exec go run github.com/google/addlicense -c 'OnMetal authors' {} +
find . -name '*.go' -exec go run github.com/google/addlicense -c 'IronCore authors' {} +

.PHONY: checklicense
checklicense: ## Check that every file has a license header present.
find . -name '*.go' -exec go run github.com/google/addlicense -check -c 'OnMetal authors' {} +
find . -name '*.go' -exec go run github.com/google/addlicense -check -c 'IronCore authors' {} +

.PHONY: check
check: addlicense lint test # Generate manifests, code, lint, add licenses, test
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# dpservice-cli

Command-line tool for debugging over gRPC for [net-dpservice](https://github.com/onmetal/net-dpservice).
Command-line tool for debugging over gRPC for [dpservice](https://github.com/ironcore-dev/dpservice).

This tool connects directly to a running dp-service and communicates with it (orchestrates it).
<br />
Expand Down Expand Up @@ -62,8 +62,8 @@ Available Commands:
list Lists one of [firewallrules interfaces prefixes lbprefixes routes]

Flags:
--address string net-dpservice address. (default "localhost:1337")
--connect-timeout duration Timeout to connect to the net-dpservice. (default 4s)
--address string dpservice address. (default "localhost:1337")
--connect-timeout duration Timeout to connect to the dpservice. (default 4s)
-h, --help help for dpservice-cli
-o, --output string Output format. [json|yaml|table|name]
--pretty Whether to render pretty output.
Expand Down
2 changes: 1 addition & 1 deletion cmd/capture.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 OnMetal authors
// Copyright 2022 IronCore authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
8 changes: 4 additions & 4 deletions cmd/capture_start.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 OnMetal authors
// Copyright 2022 IronCore authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -22,9 +22,9 @@ import (
"strconv"
"strings"

"github.com/onmetal/dpservice-cli/flag"
"github.com/onmetal/dpservice-cli/util"
"github.com/onmetal/net-dpservice-go/api"
"github.com/ironcore-dev/dpservice-cli/flag"
"github.com/ironcore-dev/dpservice-cli/util"
"github.com/ironcore-dev/dpservice-go/api"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/capture_status.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 OnMetal authors
// Copyright 2022 IronCore authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion cmd/capture_stop.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 OnMetal authors
// Copyright 2022 IronCore authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions cmd/command.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 OnMetal authors
// Copyright 2022 IronCore authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -15,7 +15,7 @@
package cmd

import (
"github.com/onmetal/dpservice-cli/util"
"github.com/ironcore-dev/dpservice-cli/util"
"github.com/spf13/cobra"
)

Expand Down
20 changes: 10 additions & 10 deletions cmd/common.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 OnMetal authors
// Copyright 2022 IronCore authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -23,12 +23,12 @@ import (
"strconv"
"time"

"github.com/onmetal/dpservice-cli/renderer"
"github.com/onmetal/dpservice-cli/sources"
"github.com/onmetal/net-dpservice-go/api"
"github.com/onmetal/net-dpservice-go/client"
apierrors "github.com/onmetal/net-dpservice-go/errors"
dpdkproto "github.com/onmetal/net-dpservice-go/proto"
"github.com/ironcore-dev/dpservice-cli/renderer"
"github.com/ironcore-dev/dpservice-cli/sources"
"github.com/ironcore-dev/dpservice-go/api"
"github.com/ironcore-dev/dpservice-go/client"
apierrors "github.com/ironcore-dev/dpservice-go/errors"
dpdkproto "github.com/ironcore-dev/dpservice-go/proto"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"google.golang.org/grpc"
Expand All @@ -45,8 +45,8 @@ type DPDKClientOptions struct {
}

func (o *DPDKClientOptions) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&o.Address, "address", "localhost:1337", "net-dpservice address.")
fs.DurationVar(&o.ConnectTimeout, "connect-timeout", 4*time.Second, "Timeout to connect to the net-dpservice.")
fs.StringVar(&o.Address, "address", "localhost:1337", "dpservice address.")
fs.DurationVar(&o.ConnectTimeout, "connect-timeout", 4*time.Second, "Timeout to connect to the dpservice.")
}

func (o *DPDKClientOptions) NewClient(ctx context.Context) (client.Client, func() error, error) {
Expand All @@ -58,7 +58,7 @@ func (o *DPDKClientOptions) NewClient(ctx context.Context) (client.Client, func(
return nil, nil, fmt.Errorf("error connecting to %s: %w", o.Address, err)
}

protoClient := dpdkproto.NewDPDKonmetalClient(conn)
protoClient := dpdkproto.NewDPDKironcoreClient(conn)
c := client.NewClient(protoClient)

cleanup := conn.Close
Expand Down
2 changes: 1 addition & 1 deletion cmd/completion.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 OnMetal authors
// Copyright 2022 IronCore authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
10 changes: 5 additions & 5 deletions cmd/create.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 OnMetal authors
// Copyright 2022 IronCore authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -21,10 +21,10 @@ import (
"reflect"
"strings"

"github.com/onmetal/dpservice-cli/dpdk/client/dynamic"
"github.com/onmetal/dpservice-cli/dpdk/runtime"
"github.com/onmetal/dpservice-cli/sources"
"github.com/onmetal/net-dpservice-go/errors"
"github.com/ironcore-dev/dpservice-cli/dpdk/client/dynamic"
"github.com/ironcore-dev/dpservice-cli/dpdk/runtime"
"github.com/ironcore-dev/dpservice-cli/sources"
"github.com/ironcore-dev/dpservice-go/errors"
"github.com/spf13/cobra"
)

Expand Down
10 changes: 5 additions & 5 deletions cmd/create_firewall_rule.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 OnMetal authors
// Copyright 2022 IronCore authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -20,10 +20,10 @@ import (
"net/netip"
"os"

"github.com/onmetal/dpservice-cli/flag"
"github.com/onmetal/dpservice-cli/util"
"github.com/onmetal/net-dpservice-go/api"
dpdkproto "github.com/onmetal/net-dpservice-go/proto"
"github.com/ironcore-dev/dpservice-cli/flag"
"github.com/ironcore-dev/dpservice-cli/util"
"github.com/ironcore-dev/dpservice-go/api"
dpdkproto "github.com/ironcore-dev/dpservice-go/proto"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)
Expand Down
8 changes: 4 additions & 4 deletions cmd/create_interface.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 OnMetal authors
// Copyright 2022 IronCore authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -20,9 +20,9 @@ import (
"net/netip"
"os"

"github.com/onmetal/dpservice-cli/flag"
"github.com/onmetal/dpservice-cli/util"
"github.com/onmetal/net-dpservice-go/api"
"github.com/ironcore-dev/dpservice-cli/flag"
"github.com/ironcore-dev/dpservice-cli/util"
"github.com/ironcore-dev/dpservice-go/api"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)
Expand Down
8 changes: 4 additions & 4 deletions cmd/create_loadbalancer.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 OnMetal authors
// Copyright 2022 IronCore authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -20,9 +20,9 @@ import (
"net/netip"
"os"

"github.com/onmetal/dpservice-cli/flag"
"github.com/onmetal/dpservice-cli/util"
"github.com/onmetal/net-dpservice-go/api"
"github.com/ironcore-dev/dpservice-cli/flag"
"github.com/ironcore-dev/dpservice-cli/util"
"github.com/ironcore-dev/dpservice-go/api"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)
Expand Down
8 changes: 4 additions & 4 deletions cmd/create_loadbalancer_prefix.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 OnMetal authors
// Copyright 2022 IronCore authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -20,9 +20,9 @@ import (
"net/netip"
"os"

"github.com/onmetal/dpservice-cli/flag"
"github.com/onmetal/dpservice-cli/util"
"github.com/onmetal/net-dpservice-go/api"
"github.com/ironcore-dev/dpservice-cli/flag"
"github.com/ironcore-dev/dpservice-cli/util"
"github.com/ironcore-dev/dpservice-go/api"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)
Expand Down
Loading
Loading