Skip to content

Commit

Permalink
Move packages from pkg to internal (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
int128 committed May 2, 2023
1 parent 928fb80 commit e05d5f6
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{
"description": "Update envoy version",
"fileMatch": [
"^pkg/envoy/.+\\.go$",
"^internal/envoy/.+\\.go$",
],
"matchStrings": [
"\"(?<depName>.*?):(?<currentValue>.*)\" // renovate: docker\\s",
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ on:
- go.*
- main.go
- api/**
- controllers/**
- pkg/**
- internal/**
- config/**
tags:
- v*
Expand All @@ -22,8 +21,7 @@ on:
- go.*
- main.go
- api/**
- controllers/**
- pkg/**
- internal/**
- config/**

jobs:
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ RUN go mod download
# Copy the go source
COPY cmd/main.go cmd/main.go
COPY api/ api/
COPY internal/controller/ internal/controller/
COPY pkg/ pkg/
COPY internal/ internal/

# Build
# the GOARCH has not a default value to allow the binary be built according to the host where the command
Expand Down
4 changes: 2 additions & 2 deletions internal/controller/proxy_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import (
"context"
"fmt"

"github.com/int128/ktunnels/pkg/envoy"
"github.com/int128/ktunnels/pkg/transit"
"github.com/int128/ktunnels/internal/envoy"
"github.com/int128/ktunnels/internal/transit"
appsv1 "k8s.io/api/apps/v1"
corev1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/proxy_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"time"

ktunnelsv1 "github.com/int128/ktunnels/api/v1"
"github.com/int128/ktunnels/pkg/envoy"
"github.com/int128/ktunnels/internal/envoy"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
appsv1 "k8s.io/api/apps/v1"
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/tunnel_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package controller
import (
"context"

"github.com/int128/ktunnels/pkg/envoy"
"github.com/int128/ktunnels/internal/envoy"
corev1 "k8s.io/api/core/v1"
apierrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/runtime"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e05d5f6

Please sign in to comment.