mirror of
https://github.com/paralus/paralus.git
synced 2026-02-14 09:39:50 +00:00
Rename go module name and its usage
This commit is contained in:
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@@ -62,7 +62,7 @@ jobs:
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker (rcloud-base-init)
|
||||
- name: Extract metadata (tags, labels) for Docker (paralus-init)
|
||||
id: meta-init
|
||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
||||
with:
|
||||
@@ -73,7 +73,7 @@ jobs:
|
||||
type=ref,event=pr
|
||||
type=sha
|
||||
|
||||
- name: Build and push Docker image (rcloud-base-init)
|
||||
- name: Build and push Docker image (paralus-init)
|
||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
||||
with:
|
||||
context: .
|
||||
@@ -82,7 +82,7 @@ jobs:
|
||||
tags: ${{ steps.meta-init.outputs.tags }}
|
||||
labels: ${{ steps.meta-init.outputs.labels }}
|
||||
|
||||
- name: Extract metadata (tags, labels) for Docker (rcloud-base-sync)
|
||||
- name: Extract metadata (tags, labels) for Docker (kratos-sync)
|
||||
id: meta-sync
|
||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
||||
with:
|
||||
@@ -93,7 +93,7 @@ jobs:
|
||||
type=ref,event=pr
|
||||
type=sha
|
||||
|
||||
- name: Build and push Docker image (rcloud-base-sync)
|
||||
- name: Build and push Docker image (kratos-sync)
|
||||
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
|
||||
with:
|
||||
context: .
|
||||
|
||||
@@ -8,12 +8,12 @@ COPY go.sum .
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
RUN go build github.com/RafayLabs/rcloud-base
|
||||
RUN go build github.com/paralus/paralus
|
||||
|
||||
FROM alpine:latest as runtime
|
||||
LABEL description="Run container"
|
||||
|
||||
COPY --from=build /build/rcloud-base /usr/bin/rcloud-base
|
||||
COPY --from=build /build/paralus /usr/bin/paralus
|
||||
WORKDIR /usr/bin
|
||||
# Copying data for running migrations
|
||||
# TODO: Support rcloud-base binary to run migrations
|
||||
|
||||
@@ -4,12 +4,12 @@ LABEL description="Build container"
|
||||
ENV CGO_ENABLED 0
|
||||
COPY . /build
|
||||
WORKDIR /build
|
||||
RUN go build -o rcloud-init scripts/initialize/main.go
|
||||
RUN go build -o paralus-init scripts/initialize/main.go
|
||||
|
||||
FROM alpine:latest as runtime
|
||||
LABEL description="Run container"
|
||||
|
||||
WORKDIR /usr/bin
|
||||
COPY --from=build /build/rcloud-init /usr/bin/rcloud-init
|
||||
COPY --from=build /build/paralus-init /usr/bin/paralus-init
|
||||
COPY --from=build /build/scripts/initialize/ /usr/bin/scripts/initialize/
|
||||
ENTRYPOINT ["./rcloud-init"]
|
||||
ENTRYPOINT ["./paralus-init"]
|
||||
|
||||
8
Makefile
8
Makefile
@@ -1,6 +1,6 @@
|
||||
.PHONY: tidy
|
||||
tidy:
|
||||
GOPRIVATE=github.com/RafayLabs/* go mod tidy
|
||||
GOPRIVATE=github.com/paralus/* go mod tidy
|
||||
.PHONY: vendor
|
||||
vendor:
|
||||
go mod vendor
|
||||
@@ -16,13 +16,13 @@ gen-proto:
|
||||
.PHONY: test
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
|
||||
.PHONY: check
|
||||
check:
|
||||
go fmt ./...
|
||||
|
||||
|
||||
go vet ./...
|
||||
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf ./**/gen
|
||||
|
||||
@@ -3,7 +3,7 @@ package main
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/_kratos/development/pkg"
|
||||
"github.com/paralus/paralus/_kratos/development/pkg"
|
||||
|
||||
ory "github.com/ory/kratos-client-go"
|
||||
)
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// AuditInformationLookupClusterReader is a Reader for the AuditInformationLookupCluster structure.
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// AuditInformationLookupUserReader is a Reader for the AuditInformationLookupUser structure.
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
cr "github.com/go-openapi/runtime/client"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// NewBootstrapCreateBootstrapAgentParams creates a new BootstrapCreateBootstrapAgentParams object,
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// BootstrapCreateBootstrapAgentReader is a Reader for the BootstrapCreateBootstrapAgent structure.
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// BootstrapDeleteBootstrapAgentReader is a Reader for the BootstrapDeleteBootstrapAgent structure.
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// BootstrapGetBootstrapAgentConfigReader is a Reader for the BootstrapGetBootstrapAgentConfig structure.
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// BootstrapGetBootstrapAgentReader is a Reader for the BootstrapGetBootstrapAgent structure.
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// BootstrapGetBootstrapAgentTemplateReader is a Reader for the BootstrapGetBootstrapAgentTemplate structure.
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// BootstrapGetBootstrapAgentTemplatesReader is a Reader for the BootstrapGetBootstrapAgentTemplates structure.
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// BootstrapGetBootstrapAgentsReader is a Reader for the BootstrapGetBootstrapAgents structure.
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// BootstrapGetBootstrapInfraReader is a Reader for the BootstrapGetBootstrapInfra structure.
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
cr "github.com/go-openapi/runtime/client"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// NewBootstrapPatchBootstrapAgentTemplateParams creates a new BootstrapPatchBootstrapAgentTemplateParams object,
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// BootstrapPatchBootstrapAgentTemplateReader is a Reader for the BootstrapPatchBootstrapAgentTemplate structure.
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
cr "github.com/go-openapi/runtime/client"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// NewBootstrapPatchBootstrapInfraParams creates a new BootstrapPatchBootstrapInfraParams object,
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// BootstrapPatchBootstrapInfraReader is a Reader for the BootstrapPatchBootstrapInfra structure.
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
"github.com/go-openapi/strfmt"
|
||||
"github.com/go-openapi/swag"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// BootstrapRegisterBootstrapAgentReader is a Reader for the BootstrapRegisterBootstrapAgent structure.
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
cr "github.com/go-openapi/runtime/client"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// NewBootstrapUpdateBootstrapAgentParams creates a new BootstrapUpdateBootstrapAgentParams object,
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// BootstrapUpdateBootstrapAgentReader is a Reader for the BootstrapUpdateBootstrapAgent structure.
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// ClusterAuthorizationGetUserAuthorizationReader is a Reader for the ClusterAuthorizationGetUserAuthorization structure.
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// KubectlClusterSettingsGetKubectlClusterSettingsReader is a Reader for the KubectlClusterSettingsGetKubectlClusterSettings structure.
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
cr "github.com/go-openapi/runtime/client"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// NewKubectlClusterSettingsUpdateKubectlClusterSettingsParams creates a new KubectlClusterSettingsUpdateKubectlClusterSettingsParams object,
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/go-openapi/runtime"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/models"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/models"
|
||||
)
|
||||
|
||||
// KubectlClusterSettingsUpdateKubectlClusterSettingsReader is a Reader for the KubectlClusterSettingsUpdateKubectlClusterSettings structure.
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
httptransport "github.com/go-openapi/runtime/client"
|
||||
"github.com/go-openapi/strfmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/api/def/clients/sentry/client/bootstrap"
|
||||
"github.com/paralus/paralus/api/def/clients/sentry/client/bootstrap"
|
||||
)
|
||||
|
||||
// Default sentry bootstrap service HTTP client.
|
||||
|
||||
@@ -2,12 +2,12 @@ version: v1
|
||||
managed:
|
||||
enabled: true
|
||||
go_package_prefix:
|
||||
default: github.com/RafayLabs/rcloud-base
|
||||
default: github.com/paralus/paralus
|
||||
except:
|
||||
- buf.build/googleapis/googleapis
|
||||
- buf.build/grpc-ecosystem/grpc-gateway
|
||||
- buf.build/gogo/protobuf
|
||||
- buf.build/rafay/k8s
|
||||
- buf.build/paralus/k8s
|
||||
plugins:
|
||||
- name: go
|
||||
out: .
|
||||
|
||||
18
buf.lock
18
buf.lock
@@ -5,20 +5,20 @@ deps:
|
||||
owner: googleapis
|
||||
repository: googleapis
|
||||
branch: main
|
||||
commit: bcdcd1dee95c4277b2edbae6c21332a2
|
||||
digest: b1-QAdxfRqCgCBZPaGaRiY8Ms_jKvwZrONQXfaOSvL2lB8=
|
||||
create_time: 2022-02-26T15:04:31.725057Z
|
||||
commit: c8fa45ea6c1248769dbbcb53e49d8ee4
|
||||
digest: b1-_uLy2wpZAWZAxd2_vn_b7Mnf6hg1G7ib5M1flA-oLs4=
|
||||
create_time: 2022-06-07T15:06:56.944952Z
|
||||
- remote: buf.build
|
||||
owner: grpc-ecosystem
|
||||
repository: grpc-gateway
|
||||
branch: main
|
||||
commit: ff83506eb9cc4cf8972f49ce87e6ed3e
|
||||
digest: b1-iLPHgLaoeWWinMiXXqPnxqE4BThtY3eSbswVGh9GOGI=
|
||||
create_time: 2021-10-23T16:26:52.283938Z
|
||||
commit: 00116f302b12478b85deb33b734e026c
|
||||
digest: b1-iUfkmqGjUB1hlbTkiPKUUeVcFd9pAJ_qRn2oJ4nYpls=
|
||||
create_time: 2022-05-23T22:50:17.0393Z
|
||||
- remote: buf.build
|
||||
owner: rafay
|
||||
owner: paralus
|
||||
repository: k8s
|
||||
branch: main
|
||||
commit: b96f66eb56bc4f279431f4b2187a2fee
|
||||
commit: 6d45aa151ee44c47933787fb5fdebc71
|
||||
digest: b1-U7KVig2Fgpf6eRczjqxrYFa3p6HLqgtEy5QJAOVB8BI=
|
||||
create_time: 2022-02-09T08:44:35.431677Z
|
||||
create_time: 2022-06-07T13:30:44.2613Z
|
||||
|
||||
4
buf.yaml
4
buf.yaml
@@ -1,9 +1,9 @@
|
||||
version: v1
|
||||
name: buf.build/rafay/common
|
||||
name: buf.build/paralus/paralus
|
||||
deps:
|
||||
- buf.build/googleapis/googleapis
|
||||
- buf.build/grpc-ecosystem/grpc-gateway
|
||||
- buf.build/rafay/k8s
|
||||
- buf.build/paralus/k8s
|
||||
breaking:
|
||||
use:
|
||||
- FILE
|
||||
|
||||
@@ -3,11 +3,11 @@ version: '3.7'
|
||||
services:
|
||||
postgresd:
|
||||
image: postgres:13.4
|
||||
container_name: rcloud_postgres_13
|
||||
container_name: paralus_postgres_13
|
||||
ports:
|
||||
- "$DB_PORT:$DB_PORT"
|
||||
volumes:
|
||||
- rcloud_db_data:/var/lib/postgresql/data
|
||||
- paralus_db_data:/var/lib/postgresql/data
|
||||
environment:
|
||||
POSTGRES_USER: $DB_USER
|
||||
POSTGRES_DB: $DB_NAME
|
||||
@@ -15,11 +15,11 @@ services:
|
||||
|
||||
elasticsearch:
|
||||
image: docker.elastic.co/elasticsearch/elasticsearch:8.0.0
|
||||
container_name: rcloud_elasticsearch_8
|
||||
container_name: paralus_elasticsearch_8
|
||||
ports:
|
||||
- '${ES_PORT:-9200}:9200'
|
||||
volumes:
|
||||
- rcloud_es_data:/usr/share/elasticsearch/data
|
||||
- paralus_es_data:/usr/share/elasticsearch/data
|
||||
environment:
|
||||
- discovery.type=single-node
|
||||
- xpack.security.enabled=false # disable auth for local dev
|
||||
@@ -70,5 +70,5 @@ services:
|
||||
- '4437:4437'
|
||||
|
||||
volumes:
|
||||
rcloud_db_data:
|
||||
rcloud_es_data:
|
||||
paralus_db_data:
|
||||
paralus_es_data:
|
||||
|
||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
||||
module github.com/RafayLabs/rcloud-base
|
||||
module github.com/paralus/paralus
|
||||
|
||||
go 1.17
|
||||
|
||||
|
||||
@@ -8,12 +8,12 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/cluster/constants"
|
||||
"github.com/RafayLabs/rcloud-base/internal/cluster/fixtures"
|
||||
"github.com/RafayLabs/rcloud-base/internal/cluster/util"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/common"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/log"
|
||||
infrav3 "github.com/RafayLabs/rcloud-base/proto/types/infrapb/v3"
|
||||
"github.com/paralus/paralus/internal/cluster/constants"
|
||||
"github.com/paralus/paralus/internal/cluster/fixtures"
|
||||
"github.com/paralus/paralus/internal/cluster/util"
|
||||
"github.com/paralus/paralus/pkg/common"
|
||||
"github.com/paralus/paralus/pkg/log"
|
||||
infrav3 "github.com/paralus/paralus/proto/types/infrapb/v3"
|
||||
)
|
||||
|
||||
var _log = log.GetLogger()
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
infrav3 "github.com/RafayLabs/rcloud-base/proto/types/infrapb/v3"
|
||||
infrav3 "github.com/paralus/paralus/proto/types/infrapb/v3"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -3,10 +3,10 @@ package cluster
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/cluster/constants"
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
infrav3 "github.com/RafayLabs/rcloud-base/proto/types/infrapb/v3"
|
||||
"github.com/RafayLabs/rcloud-base/proto/types/scheduler"
|
||||
"github.com/paralus/paralus/internal/cluster/constants"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
infrav3 "github.com/paralus/paralus/proto/types/infrapb/v3"
|
||||
"github.com/paralus/paralus/proto/types/scheduler"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package constants
|
||||
import (
|
||||
"regexp"
|
||||
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
)
|
||||
|
||||
type ClusterGeneration int
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/cluster/constants"
|
||||
"github.com/RafayLabs/rcloud-base/internal/dao"
|
||||
"github.com/RafayLabs/rcloud-base/internal/models"
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
"github.com/paralus/paralus/internal/cluster/constants"
|
||||
"github.com/paralus/paralus/internal/dao"
|
||||
"github.com/paralus/paralus/internal/models"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
"github.com/google/uuid"
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
@@ -3,9 +3,9 @@ package dao
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/dao"
|
||||
"github.com/RafayLabs/rcloud-base/internal/models"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/log"
|
||||
"github.com/paralus/paralus/internal/dao"
|
||||
"github.com/paralus/paralus/internal/models"
|
||||
"github.com/paralus/paralus/pkg/log"
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/dao"
|
||||
"github.com/RafayLabs/rcloud-base/internal/models"
|
||||
infrav3 "github.com/RafayLabs/rcloud-base/proto/types/infrapb/v3"
|
||||
"github.com/paralus/paralus/internal/dao"
|
||||
"github.com/paralus/paralus/internal/models"
|
||||
infrav3 "github.com/paralus/paralus/proto/types/infrapb/v3"
|
||||
"github.com/rs/xid"
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
@@ -3,10 +3,10 @@ package dao
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/dao"
|
||||
"github.com/RafayLabs/rcloud-base/internal/models"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/query"
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
"github.com/paralus/paralus/internal/dao"
|
||||
"github.com/paralus/paralus/internal/models"
|
||||
"github.com/paralus/paralus/pkg/query"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
"github.com/google/uuid"
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/cluster/constants"
|
||||
"github.com/paralus/paralus/internal/cluster/constants"
|
||||
)
|
||||
|
||||
func IsValidKubernetesLabelNameValueRegex(input string) bool {
|
||||
|
||||
@@ -6,11 +6,11 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/models"
|
||||
"github.com/RafayLabs/rcloud-base/internal/random"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/query"
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
"github.com/RafayLabs/rcloud-base/proto/types/sentry"
|
||||
"github.com/paralus/paralus/internal/models"
|
||||
"github.com/paralus/paralus/internal/random"
|
||||
"github.com/paralus/paralus/pkg/query"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
"github.com/paralus/paralus/proto/types/sentry"
|
||||
"github.com/google/uuid"
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
@@ -3,8 +3,8 @@ package dao
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/models"
|
||||
userv3 "github.com/RafayLabs/rcloud-base/proto/types/userpb/v3"
|
||||
"github.com/paralus/paralus/internal/models"
|
||||
userv3 "github.com/paralus/paralus/proto/types/userpb/v3"
|
||||
"github.com/google/uuid"
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/models"
|
||||
"github.com/RafayLabs/rcloud-base/proto/types/sentry"
|
||||
"github.com/paralus/paralus/internal/models"
|
||||
"github.com/paralus/paralus/proto/types/sentry"
|
||||
"github.com/google/uuid"
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/models"
|
||||
"github.com/paralus/paralus/internal/models"
|
||||
"github.com/google/uuid"
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"database/sql"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/models"
|
||||
"github.com/paralus/paralus/internal/models"
|
||||
"github.com/google/uuid"
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@ package dao
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/models"
|
||||
"github.com/paralus/paralus/internal/models"
|
||||
"github.com/google/uuid"
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
@@ -3,8 +3,8 @@ package dao
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/models"
|
||||
userv3 "github.com/RafayLabs/rcloud-base/proto/types/userpb/v3"
|
||||
"github.com/paralus/paralus/internal/models"
|
||||
userv3 "github.com/paralus/paralus/proto/types/userpb/v3"
|
||||
"github.com/google/uuid"
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"strings"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/models"
|
||||
"github.com/paralus/paralus/internal/models"
|
||||
"github.com/google/uuid"
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"context"
|
||||
"database/sql"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/models"
|
||||
userv3 "github.com/RafayLabs/rcloud-base/proto/types/userpb/v3"
|
||||
"github.com/paralus/paralus/internal/models"
|
||||
userv3 "github.com/paralus/paralus/proto/types/userpb/v3"
|
||||
"github.com/google/uuid"
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
@@ -9,14 +9,14 @@ import (
|
||||
|
||||
"crypto/x509/pkix"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/sentry/cryptoutil"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/service"
|
||||
"github.com/paralus/paralus/pkg/sentry/cryptoutil"
|
||||
"github.com/paralus/paralus/pkg/service"
|
||||
"github.com/rs/xid"
|
||||
"sigs.k8s.io/yaml"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/log"
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
sentry "github.com/RafayLabs/rcloud-base/proto/types/sentry"
|
||||
"github.com/paralus/paralus/pkg/log"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
sentry "github.com/paralus/paralus/proto/types/sentry"
|
||||
"github.com/shurcooL/httpfs/vfsutil"
|
||||
)
|
||||
|
||||
|
||||
42
main.go
42
main.go
@@ -12,27 +12,27 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/fixtures"
|
||||
providers "github.com/RafayLabs/rcloud-base/internal/provider/kratos"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/audit"
|
||||
authv3 "github.com/RafayLabs/rcloud-base/pkg/auth/v3"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/common"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/enforcer"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/gateway"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/grpc"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/log"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/notify"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/reconcile"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/sentry/peering"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/service"
|
||||
auditrpc "github.com/RafayLabs/rcloud-base/proto/rpc/audit"
|
||||
rolerpc "github.com/RafayLabs/rcloud-base/proto/rpc/role"
|
||||
schedulerrpc "github.com/RafayLabs/rcloud-base/proto/rpc/scheduler"
|
||||
sentryrpc "github.com/RafayLabs/rcloud-base/proto/rpc/sentry"
|
||||
systemrpc "github.com/RafayLabs/rcloud-base/proto/rpc/system"
|
||||
userrpc "github.com/RafayLabs/rcloud-base/proto/rpc/user"
|
||||
authrpc "github.com/RafayLabs/rcloud-base/proto/rpc/v3"
|
||||
"github.com/RafayLabs/rcloud-base/server"
|
||||
"github.com/paralus/paralus/internal/fixtures"
|
||||
providers "github.com/paralus/paralus/internal/provider/kratos"
|
||||
"github.com/paralus/paralus/pkg/audit"
|
||||
authv3 "github.com/paralus/paralus/pkg/auth/v3"
|
||||
"github.com/paralus/paralus/pkg/common"
|
||||
"github.com/paralus/paralus/pkg/enforcer"
|
||||
"github.com/paralus/paralus/pkg/gateway"
|
||||
"github.com/paralus/paralus/pkg/grpc"
|
||||
"github.com/paralus/paralus/pkg/log"
|
||||
"github.com/paralus/paralus/pkg/notify"
|
||||
"github.com/paralus/paralus/pkg/reconcile"
|
||||
"github.com/paralus/paralus/pkg/sentry/peering"
|
||||
"github.com/paralus/paralus/pkg/service"
|
||||
auditrpc "github.com/paralus/paralus/proto/rpc/audit"
|
||||
rolerpc "github.com/paralus/paralus/proto/rpc/role"
|
||||
schedulerrpc "github.com/paralus/paralus/proto/rpc/scheduler"
|
||||
sentryrpc "github.com/paralus/paralus/proto/rpc/sentry"
|
||||
systemrpc "github.com/paralus/paralus/proto/rpc/system"
|
||||
userrpc "github.com/paralus/paralus/proto/rpc/user"
|
||||
authrpc "github.com/paralus/paralus/proto/rpc/v3"
|
||||
"github.com/paralus/paralus/server"
|
||||
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
||||
kclient "github.com/ory/kratos-client-go"
|
||||
"github.com/spf13/viper"
|
||||
|
||||
@@ -228,9 +228,9 @@ metadata:
|
||||
name: :cluster
|
||||
description: this is a test cluster
|
||||
labels:
|
||||
rafay.dev/clusterLocation: coimbatore-hq
|
||||
rafay.dev/clusterName: testcluster
|
||||
rafay.dev/clusterType: imported
|
||||
paralus.dev/clusterLocation: coimbatore-hq
|
||||
paralus.dev/clusterName: testcluster
|
||||
paralus.dev/clusterType: imported
|
||||
project: myproject
|
||||
organization: finmanorg
|
||||
partner: finman
|
||||
@@ -241,7 +241,7 @@ spec:
|
||||
city: :city
|
||||
state: :state
|
||||
country: :country
|
||||
overrideSelector: rafay.dev/overrideCluster=dummycluster
|
||||
overrideSelector: paralus.dev/overrideCluster=dummycluster
|
||||
proxyConfig:
|
||||
httpProxy: http:localhost:8080/proxy
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
logv2 "github.com/RafayLabs/rcloud-base/pkg/log"
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
logv2 "github.com/paralus/paralus/pkg/log"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
"go.uber.org/zap"
|
||||
"google.golang.org/grpc/metadata"
|
||||
)
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/enforcer"
|
||||
logv2 "github.com/RafayLabs/rcloud-base/pkg/log"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/service"
|
||||
"github.com/paralus/paralus/pkg/enforcer"
|
||||
logv2 "github.com/paralus/paralus/pkg/log"
|
||||
"github.com/paralus/paralus/pkg/service"
|
||||
kclient "github.com/ory/kratos-client-go"
|
||||
"github.com/uptrace/bun"
|
||||
"go.uber.org/zap"
|
||||
|
||||
@@ -7,10 +7,10 @@ import (
|
||||
"errors"
|
||||
"strings"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/dao"
|
||||
rpcv3 "github.com/RafayLabs/rcloud-base/proto/rpc/user"
|
||||
authzv1 "github.com/RafayLabs/rcloud-base/proto/types/authz"
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
"github.com/paralus/paralus/internal/dao"
|
||||
rpcv3 "github.com/paralus/paralus/proto/rpc/user"
|
||||
authzv1 "github.com/paralus/paralus/proto/types/authz"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@ import (
|
||||
context "context"
|
||||
"strings"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/common"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/gateway"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/utils"
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
"github.com/paralus/paralus/pkg/common"
|
||||
"github.com/paralus/paralus/pkg/gateway"
|
||||
"github.com/paralus/paralus/pkg/utils"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/metadata"
|
||||
|
||||
@@ -7,10 +7,10 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/dao"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/common"
|
||||
rpcv3 "github.com/RafayLabs/rcloud-base/proto/rpc/v3"
|
||||
commonpbv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
"github.com/paralus/paralus/internal/dao"
|
||||
"github.com/paralus/paralus/pkg/common"
|
||||
rpcv3 "github.com/paralus/paralus/proto/rpc/v3"
|
||||
commonpbv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
"github.com/uptrace/bun"
|
||||
"github.com/uptrace/bun/dialect/pgdialect"
|
||||
"github.com/uptrace/bun/driver/pgdriver"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package authv3
|
||||
|
||||
import (
|
||||
"github.com/RafayLabs/rcloud-base/pkg/pool"
|
||||
rpcv3 "github.com/RafayLabs/rcloud-base/proto/rpc/v3"
|
||||
"github.com/paralus/paralus/pkg/pool"
|
||||
rpcv3 "github.com/paralus/paralus/proto/rpc/v3"
|
||||
|
||||
"context"
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package authv3
|
||||
import (
|
||||
"context"
|
||||
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
)
|
||||
|
||||
type authService struct {
|
||||
|
||||
@@ -7,10 +7,10 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/controller/client"
|
||||
scheme "github.com/RafayLabs/rcloud-base/pkg/controller/scheme"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/controller/util"
|
||||
clusterv2 "github.com/RafayLabs/rcloud-base/proto/types/controller"
|
||||
"github.com/paralus/paralus/pkg/controller/client"
|
||||
scheme "github.com/paralus/paralus/pkg/controller/scheme"
|
||||
"github.com/paralus/paralus/pkg/controller/util"
|
||||
clusterv2 "github.com/paralus/paralus/proto/types/controller"
|
||||
apixv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
||||
apierrs "k8s.io/apimachinery/pkg/api/errors"
|
||||
"k8s.io/apimachinery/pkg/api/meta"
|
||||
|
||||
@@ -12,8 +12,8 @@ import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
ctrlclient "sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
cruntime "github.com/RafayLabs/rcloud-base/pkg/controller/runtime"
|
||||
clusterv2 "github.com/RafayLabs/rcloud-base/proto/types/controller"
|
||||
cruntime "github.com/paralus/paralus/pkg/controller/runtime"
|
||||
clusterv2 "github.com/paralus/paralus/proto/types/controller"
|
||||
|
||||
"sigs.k8s.io/yaml"
|
||||
)
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/controller/scheme"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/controller/util"
|
||||
"github.com/paralus/paralus/pkg/controller/scheme"
|
||||
"github.com/paralus/paralus/pkg/controller/util"
|
||||
sp "k8s.io/apimachinery/pkg/util/strategicpatch"
|
||||
|
||||
"k8s.io/apimachinery/pkg/types"
|
||||
|
||||
@@ -7,12 +7,12 @@ import (
|
||||
|
||||
v1 "k8s.io/api/core/v1"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/controller/scheme"
|
||||
clusterv2 "github.com/RafayLabs/rcloud-base/proto/types/controller"
|
||||
"github.com/paralus/paralus/pkg/controller/scheme"
|
||||
clusterv2 "github.com/paralus/paralus/proto/types/controller"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
|
||||
cruntime "github.com/RafayLabs/rcloud-base/pkg/controller/runtime"
|
||||
cruntime "github.com/paralus/paralus/pkg/controller/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@ package apply
|
||||
import (
|
||||
"testing"
|
||||
|
||||
clusterv2 "github.com/RafayLabs/rcloud-base/proto/types/controller"
|
||||
clusterv2 "github.com/paralus/paralus/proto/types/controller"
|
||||
)
|
||||
|
||||
func TestGetGVK(t *testing.T) {
|
||||
|
||||
@@ -3,7 +3,7 @@ package client
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/controller/scheme"
|
||||
"github.com/paralus/paralus/pkg/controller/scheme"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client/apiutil"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client/config"
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"bytes"
|
||||
"errors"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/controller/scheme"
|
||||
apiv2 "github.com/RafayLabs/rcloud-base/proto/types/controller"
|
||||
"github.com/paralus/paralus/pkg/controller/scheme"
|
||||
apiv2 "github.com/paralus/paralus/proto/types/controller"
|
||||
rbacv1 "k8s.io/api/rbac/v1"
|
||||
apixv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/controller/util"
|
||||
"github.com/paralus/paralus/pkg/controller/util"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
apiv2 "github.com/RafayLabs/rcloud-base/proto/types/controller"
|
||||
apiv2 "github.com/paralus/paralus/proto/types/controller"
|
||||
appsv1 "k8s.io/api/apps/v1"
|
||||
"sigs.k8s.io/yaml"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@ package scheme
|
||||
import (
|
||||
"sync"
|
||||
|
||||
apiv2 "github.com/RafayLabs/rcloud-base/proto/types/controller"
|
||||
apiv2 "github.com/paralus/paralus/proto/types/controller"
|
||||
// DO NOT UPDATE
|
||||
// API Extensions v1 is not available in k8s v1.14.x
|
||||
apixv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
|
||||
|
||||
@@ -3,7 +3,7 @@ package step
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
clusterv2 "github.com/RafayLabs/rcloud-base/proto/types/controller"
|
||||
clusterv2 "github.com/paralus/paralus/proto/types/controller"
|
||||
appsv1 "k8s.io/api/apps/v1"
|
||||
batchv1 "k8s.io/api/batch/v1"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
|
||||
@@ -3,12 +3,12 @@ package step
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/controller/apply"
|
||||
cr "github.com/RafayLabs/rcloud-base/pkg/controller/runtime"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/controller/scheme"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/controller/util"
|
||||
hash "github.com/RafayLabs/rcloud-base/pkg/hasher"
|
||||
clusterv2 "github.com/RafayLabs/rcloud-base/proto/types/controller"
|
||||
"github.com/paralus/paralus/pkg/controller/apply"
|
||||
cr "github.com/paralus/paralus/pkg/controller/runtime"
|
||||
"github.com/paralus/paralus/pkg/controller/scheme"
|
||||
"github.com/paralus/paralus/pkg/controller/util"
|
||||
hash "github.com/paralus/paralus/pkg/hasher"
|
||||
clusterv2 "github.com/paralus/paralus/proto/types/controller"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
apierrs "k8s.io/apimachinery/pkg/api/errors"
|
||||
"k8s.io/apimachinery/pkg/api/meta"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package util
|
||||
|
||||
import (
|
||||
"github.com/RafayLabs/rcloud-base/pkg/controller/scheme"
|
||||
"github.com/paralus/paralus/pkg/controller/scheme"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client"
|
||||
|
||||
@@ -4,13 +4,13 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/controller/scheme"
|
||||
"github.com/paralus/paralus/pkg/controller/scheme"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"sigs.k8s.io/controller-runtime/pkg/client/apiutil"
|
||||
|
||||
clusterv2 "github.com/RafayLabs/rcloud-base/proto/types/controller"
|
||||
clusterv2 "github.com/paralus/paralus/proto/types/controller"
|
||||
ctrlutil "sigs.k8s.io/controller-runtime/pkg/controller/controllerutil"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,10 +3,10 @@ package util
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
clusterv2 "github.com/RafayLabs/rcloud-base/proto/types/controller"
|
||||
clusterv2 "github.com/paralus/paralus/proto/types/controller"
|
||||
apixv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/controller/scheme"
|
||||
"github.com/paralus/paralus/pkg/controller/scheme"
|
||||
jp "github.com/evanphx/json-patch"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
jmp "k8s.io/apimachinery/pkg/util/jsonmergepatch"
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/controller/scheme"
|
||||
"github.com/paralus/paralus/pkg/controller/scheme"
|
||||
|
||||
apiv2 "github.com/RafayLabs/rcloud-base/proto/types/controller"
|
||||
apiv2 "github.com/paralus/paralus/proto/types/controller"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"sigs.k8s.io/yaml"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package util
|
||||
|
||||
import (
|
||||
clusterv2 "github.com/RafayLabs/rcloud-base/proto/types/controller"
|
||||
clusterv2 "github.com/paralus/paralus/proto/types/controller"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
runtimeutil "github.com/RafayLabs/rcloud-base/pkg/controller/runtime"
|
||||
runtimeutil "github.com/paralus/paralus/pkg/controller/runtime"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/log"
|
||||
controllerv2 "github.com/RafayLabs/rcloud-base/proto/types/controller"
|
||||
"github.com/paralus/paralus/pkg/log"
|
||||
controllerv2 "github.com/paralus/paralus/proto/types/controller"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
|
||||
@@ -3,7 +3,7 @@ package converter
|
||||
import (
|
||||
gojson "encoding/json"
|
||||
|
||||
apiv2 "github.com/RafayLabs/rcloud-base/proto/types/controller"
|
||||
apiv2 "github.com/paralus/paralus/proto/types/controller"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
)
|
||||
|
||||
@@ -3,7 +3,7 @@ package event
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/log"
|
||||
"github.com/paralus/paralus/pkg/log"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package gateway
|
||||
|
||||
import (
|
||||
common "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
common "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/gateway"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/gateway/testdata"
|
||||
"github.com/paralus/paralus/pkg/gateway"
|
||||
"github.com/paralus/paralus/pkg/gateway/testdata"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
)
|
||||
|
||||
|
||||
4
pkg/gateway/testdata/gateway_test.go
vendored
4
pkg/gateway/testdata/gateway_test.go
vendored
@@ -9,8 +9,8 @@ import (
|
||||
"net/http"
|
||||
"testing"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/gateway"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/grpc"
|
||||
"github.com/paralus/paralus/pkg/gateway"
|
||||
"github.com/paralus/paralus/pkg/grpc"
|
||||
"github.com/grpc-ecosystem/grpc-gateway/runtime"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/gateway"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/gateway/testdata"
|
||||
"github.com/paralus/paralus/pkg/gateway"
|
||||
"github.com/paralus/paralus/pkg/gateway/testdata"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package leaderelection
|
||||
import (
|
||||
"context"
|
||||
|
||||
log "github.com/RafayLabs/rcloud-base/pkg/log"
|
||||
log "github.com/paralus/paralus/pkg/log"
|
||||
le "k8s.io/client-go/tools/leaderelection"
|
||||
rl "k8s.io/client-go/tools/leaderelection/resourcelock"
|
||||
)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package match
|
||||
|
||||
import (
|
||||
"github.com/RafayLabs/rcloud-base/pkg/query"
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
"github.com/paralus/paralus/pkg/query"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
)
|
||||
|
||||
|
||||
@@ -8,12 +8,12 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/log"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/match"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/query"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/service"
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
infrav3 "github.com/RafayLabs/rcloud-base/proto/types/infrapb/v3"
|
||||
"github.com/paralus/paralus/pkg/log"
|
||||
"github.com/paralus/paralus/pkg/match"
|
||||
"github.com/paralus/paralus/pkg/query"
|
||||
"github.com/paralus/paralus/pkg/service"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
infrav3 "github.com/paralus/paralus/proto/types/infrapb/v3"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -3,9 +3,9 @@ package patch
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
sp "github.com/RafayLabs/rcloud-base/pkg/controller/strategicpatch"
|
||||
infrav3 "github.com/RafayLabs/rcloud-base/proto/types/infrapb/v3"
|
||||
"github.com/RafayLabs/rcloud-base/proto/types/scheduler"
|
||||
sp "github.com/paralus/paralus/pkg/controller/strategicpatch"
|
||||
infrav3 "github.com/paralus/paralus/proto/types/infrapb/v3"
|
||||
"github.com/paralus/paralus/proto/types/scheduler"
|
||||
)
|
||||
|
||||
type clusterConditions struct {
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/random"
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
"github.com/paralus/paralus/internal/random"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package query
|
||||
|
||||
import (
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
"github.com/uptrace/bun"
|
||||
"k8s.io/apimachinery/pkg/labels"
|
||||
"k8s.io/apimachinery/pkg/selection"
|
||||
|
||||
@@ -3,9 +3,9 @@ package reconcile
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/log"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/service"
|
||||
infrav3 "github.com/RafayLabs/rcloud-base/proto/types/infrapb/v3"
|
||||
"github.com/paralus/paralus/pkg/log"
|
||||
"github.com/paralus/paralus/pkg/service"
|
||||
infrav3 "github.com/paralus/paralus/proto/types/infrapb/v3"
|
||||
)
|
||||
|
||||
var _log = log.GetLogger()
|
||||
|
||||
@@ -4,11 +4,11 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/event"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/query"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/service"
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
infrav3 "github.com/RafayLabs/rcloud-base/proto/types/infrapb/v3"
|
||||
"github.com/paralus/paralus/pkg/event"
|
||||
"github.com/paralus/paralus/pkg/query"
|
||||
"github.com/paralus/paralus/pkg/service"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
infrav3 "github.com/paralus/paralus/proto/types/infrapb/v3"
|
||||
"k8s.io/apimachinery/pkg/util/wait"
|
||||
"k8s.io/client-go/util/workqueue"
|
||||
)
|
||||
|
||||
@@ -5,12 +5,12 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
clstrutil "github.com/RafayLabs/rcloud-base/internal/cluster"
|
||||
"github.com/RafayLabs/rcloud-base/internal/cluster/constants"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/service"
|
||||
infrav3 "github.com/RafayLabs/rcloud-base/proto/types/infrapb/v3"
|
||||
clstrutil "github.com/paralus/paralus/internal/cluster"
|
||||
"github.com/paralus/paralus/internal/cluster/constants"
|
||||
"github.com/paralus/paralus/pkg/service"
|
||||
infrav3 "github.com/paralus/paralus/proto/types/infrapb/v3"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/query"
|
||||
"github.com/paralus/paralus/pkg/query"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package reconcile
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/event"
|
||||
"github.com/paralus/paralus/pkg/event"
|
||||
)
|
||||
|
||||
func resourceToKey(r event.Resource) string {
|
||||
|
||||
@@ -7,16 +7,16 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/constants"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/controller/runtime"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/log"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/query"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/sentry/kubeconfig"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/service"
|
||||
sentryrpc "github.com/RafayLabs/rcloud-base/proto/rpc/sentry"
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
"github.com/RafayLabs/rcloud-base/proto/types/controller"
|
||||
"github.com/RafayLabs/rcloud-base/proto/types/sentry"
|
||||
"github.com/paralus/paralus/internal/constants"
|
||||
"github.com/paralus/paralus/pkg/controller/runtime"
|
||||
"github.com/paralus/paralus/pkg/log"
|
||||
"github.com/paralus/paralus/pkg/query"
|
||||
"github.com/paralus/paralus/pkg/sentry/kubeconfig"
|
||||
"github.com/paralus/paralus/pkg/service"
|
||||
sentryrpc "github.com/paralus/paralus/proto/rpc/sentry"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
"github.com/paralus/paralus/proto/types/controller"
|
||||
"github.com/paralus/paralus/proto/types/sentry"
|
||||
"github.com/google/uuid"
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
rbacv1 "k8s.io/api/rbac/v1"
|
||||
|
||||
@@ -9,21 +9,21 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/log"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/query"
|
||||
sentryrpc "github.com/RafayLabs/rcloud-base/proto/rpc/sentry"
|
||||
rpcv3 "github.com/RafayLabs/rcloud-base/proto/rpc/user"
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
sentry "github.com/RafayLabs/rcloud-base/proto/types/sentry"
|
||||
"github.com/paralus/paralus/pkg/log"
|
||||
"github.com/paralus/paralus/pkg/query"
|
||||
sentryrpc "github.com/paralus/paralus/proto/rpc/sentry"
|
||||
rpcv3 "github.com/paralus/paralus/proto/rpc/user"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
sentry "github.com/paralus/paralus/proto/types/sentry"
|
||||
"github.com/google/uuid"
|
||||
|
||||
clientcmdapiv1 "k8s.io/client-go/tools/clientcmd/api/v1"
|
||||
"sigs.k8s.io/yaml"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/constants"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/sentry/cryptoutil"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/sentry/util"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/service"
|
||||
"github.com/paralus/paralus/internal/constants"
|
||||
"github.com/paralus/paralus/pkg/sentry/cryptoutil"
|
||||
"github.com/paralus/paralus/pkg/sentry/util"
|
||||
"github.com/paralus/paralus/pkg/service"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -10,13 +10,13 @@ import (
|
||||
"regexp"
|
||||
"time"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/log"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/query"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/sentry/cryptoutil"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/sentry/register"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/service"
|
||||
sentryrpc "github.com/RafayLabs/rcloud-base/proto/rpc/sentry"
|
||||
"github.com/RafayLabs/rcloud-base/proto/types/sentry"
|
||||
"github.com/paralus/paralus/pkg/log"
|
||||
"github.com/paralus/paralus/pkg/query"
|
||||
"github.com/paralus/paralus/pkg/sentry/cryptoutil"
|
||||
"github.com/paralus/paralus/pkg/sentry/register"
|
||||
"github.com/paralus/paralus/pkg/service"
|
||||
sentryrpc "github.com/paralus/paralus/proto/rpc/sentry"
|
||||
"github.com/paralus/paralus/proto/types/sentry"
|
||||
"github.com/dgraph-io/ristretto"
|
||||
"github.com/rs/xid"
|
||||
)
|
||||
|
||||
@@ -10,18 +10,18 @@ import (
|
||||
"os"
|
||||
"strings"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/sentry/cryptoutil"
|
||||
sentryrpc "github.com/RafayLabs/rcloud-base/proto/rpc/sentry"
|
||||
commonv3 "github.com/RafayLabs/rcloud-base/proto/types/commonpb/v3"
|
||||
"github.com/RafayLabs/rcloud-base/proto/types/sentry"
|
||||
"github.com/paralus/paralus/pkg/sentry/cryptoutil"
|
||||
sentryrpc "github.com/paralus/paralus/proto/rpc/sentry"
|
||||
commonv3 "github.com/paralus/paralus/proto/types/commonpb/v3"
|
||||
"github.com/paralus/paralus/proto/types/sentry"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/rs/xid"
|
||||
|
||||
bootstrapclientv2 "github.com/RafayLabs/rcloud-base/api/def/clients/sentry/client"
|
||||
bootstrapapiv2 "github.com/RafayLabs/rcloud-base/api/def/clients/sentry/client/bootstrap"
|
||||
bootstrapclientv2 "github.com/paralus/paralus/api/def/clients/sentry/client"
|
||||
bootstrapapiv2 "github.com/paralus/paralus/api/def/clients/sentry/client/bootstrap"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/pkg/log"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/sentry/util"
|
||||
"github.com/paralus/paralus/pkg/log"
|
||||
"github.com/paralus/paralus/pkg/sentry/util"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/dao"
|
||||
"github.com/RafayLabs/rcloud-base/internal/models"
|
||||
"github.com/RafayLabs/rcloud-base/proto/types/sentry"
|
||||
"github.com/paralus/paralus/internal/dao"
|
||||
"github.com/paralus/paralus/internal/models"
|
||||
"github.com/paralus/paralus/proto/types/sentry"
|
||||
"github.com/google/uuid"
|
||||
"github.com/uptrace/bun"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
"database/sql"
|
||||
"time"
|
||||
|
||||
"github.com/RafayLabs/rcloud-base/internal/dao"
|
||||
"github.com/RafayLabs/rcloud-base/internal/models"
|
||||
"github.com/RafayLabs/rcloud-base/pkg/crypto"
|
||||
rpcv3 "github.com/RafayLabs/rcloud-base/proto/rpc/user"
|
||||
"github.com/paralus/paralus/internal/dao"
|
||||
"github.com/paralus/paralus/internal/models"
|
||||
"github.com/paralus/paralus/pkg/crypto"
|
||||
rpcv3 "github.com/paralus/paralus/proto/rpc/user"
|
||||
"github.com/google/uuid"
|
||||
"github.com/uptrace/bun"
|
||||
"go.uber.org/zap"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user