Skip to content

Commit

Permalink
fix: 패키지명 변경사항 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
inspirit941 committed Mar 20, 2024
1 parent 8e0a4c1 commit e573630
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion cmd/controller/main.go
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package main

import (
"knative.dev/eventing-prometheus/pkg/reconciler"
"github.com/inspirit941/eventing-prometheus/pkg/reconciler"
"knative.dev/pkg/injection/sharedmain"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/receive_adapter/main.go
Expand Up @@ -19,7 +19,7 @@ package main
import (
"knative.dev/eventing/pkg/adapter/v2"

prometheusadapter "knative.dev/eventing-prometheus/pkg/adapter"
prometheusadapter "github.com/inspirit941/eventing-prometheus/pkg/adapter"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/webhook/main.go
Expand Up @@ -19,8 +19,8 @@ package main
import (
"context"

sourcev1alpha1 "github.com/inspirit941/eventing-prometheus/pkg/apis/sources/v1alpha1"
"k8s.io/apimachinery/pkg/runtime/schema"
sourcev1alpha1 "knative.dev/eventing-prometheus/pkg/apis/sources/v1alpha1"
"knative.dev/pkg/configmap"
"knative.dev/pkg/controller"
"knative.dev/pkg/injection/sharedmain"
Expand Down
4 changes: 2 additions & 2 deletions config/500-controller.yaml
Expand Up @@ -32,7 +32,7 @@ spec:
spec:
serviceAccountName: prometheus-controller-manager
containers:
- image: ko://knative.dev/eventing-prometheus/cmd/controller
- image: ko://github.com/inspirit941/eventing-prometheus/cmd/controller
name: manager
env:
- name: SYSTEM_NAMESPACE
Expand All @@ -48,7 +48,7 @@ spec:
- name: CONFIG_LEADERELECTION_NAME
value: config-leader-election-prometheus
- name: PROMETHEUS_RA_IMAGE
value: ko://knative.dev/eventing-prometheus/cmd/receive_adapter
value: ko://github.com/inspirit941/eventing-prometheus/cmd/receive_adapter
resources:
requests:
cpu: 100m
Expand Down
2 changes: 1 addition & 1 deletion config/500-webhook.yaml
Expand Up @@ -46,7 +46,7 @@ spec:
containers:
- name: prometheus-source-webhook
terminationMessagePolicy: FallbackToLogsOnError
image: ko://knative.dev/eventing-prometheus/cmd/webhook
image: ko://github.com/inspirit941/eventing-prometheus/cmd/webhook
env:
- name: SYSTEM_NAMESPACE
valueFrom:
Expand Down
6 changes: 3 additions & 3 deletions hack/update-codegen.sh
Expand Up @@ -33,15 +33,15 @@ group "Kubernetes Codegen"
# k8s.io/kubernetes. The output-base is needed for the generators to output into the vendor dir
# instead of the $GOPATH directly. For normal projects this can be dropped.
${CODEGEN_PKG}/generate-groups.sh "deepcopy,client,informer,lister" \
"knative.dev/eventing-prometheus/pkg/client" "knative.dev/eventing-prometheus/pkg/apis" \
"github.com/inspirit941/eventing-prometheus/pkg/client" "github.com/inspirit941/eventing-prometheus/pkg/apis" \
"sources:v1alpha1" \
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate.go.txt

group "Knative Codegen"

# Knative Injection
${KNATIVE_CODEGEN_PKG}/hack/generate-knative.sh "injection" \
"knative.dev/eventing-prometheus/pkg/client" "knative.dev/eventing-prometheus/pkg/apis" \
"github.com/inspirit941/eventing-prometheus/pkg/client" "github.com/inspirit941/eventing-prometheus/pkg/apis" \
"sources:v1alpha1" \
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate.go.txt

Expand All @@ -51,7 +51,7 @@ group "Deepcopy Gen"
${GOPATH}/bin/deepcopy-gen \
-O zz_generated.deepcopy \
--go-header-file ${REPO_ROOT_DIR}/hack/boilerplate.go.txt \
-i knative.dev/eventing-prometheus/pkg/apis \
-i github.com/inspirit941/eventing-prometheus/pkg/apis \

group "Update deps post-codegen"

Expand Down
2 changes: 1 addition & 1 deletion pkg/adapter/adapter.go
Expand Up @@ -33,7 +33,7 @@ import (
"knative.dev/eventing/pkg/adapter/v2"
"knative.dev/pkg/logging"

"knative.dev/eventing-prometheus/pkg/apis/sources/v1alpha1"
"github.com/inspirit941/eventing-prometheus/pkg/apis/sources/v1alpha1"
)

type envConfig struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/addtoscheme_sources_v1alpha1.go
Expand Up @@ -16,7 +16,7 @@ limitations under the License.

package apis

import "knative.dev/eventing-prometheus/pkg/apis/sources/v1alpha1"
import "github.com/inspirit941/eventing-prometheus/pkg/apis/sources/v1alpha1"

func init() {
// Register the types with the Scheme so the components can map objects to GroupVersionKinds and back
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/sources/v1alpha1/doc.go
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
// Package v1alpha1 contains API Schema definitions for the sources v1alpha1 API group
// +k8s:openapi-gen=true
// +k8s:deepcopy-gen=package,register
// +k8s:conversion-gen=knative.dev/eventing-prometheus/pkg/apis/sources
// +k8s:conversion-gen=github.com/inspirit941/eventing-prometheus/pkg/apis/sources
// +k8s:defaulter-gen=TypeMeta
// +groupName=sources.knative.dev
package v1alpha1
6 changes: 3 additions & 3 deletions pkg/reconciler/controller.go
Expand Up @@ -19,15 +19,15 @@ package reconciler
import (
"context"

"github.com/inspirit941/eventing-prometheus/pkg/apis/sources/v1alpha1"
"k8s.io/client-go/tools/cache"
"knative.dev/eventing-prometheus/pkg/apis/sources/v1alpha1"
"knative.dev/eventing/pkg/reconciler/source"
"knative.dev/pkg/configmap"
"knative.dev/pkg/controller"
"knative.dev/pkg/resolver"

prometheusinformer "knative.dev/eventing-prometheus/pkg/client/injection/informers/sources/v1alpha1/prometheussource"
promreconciler "knative.dev/eventing-prometheus/pkg/client/injection/reconciler/sources/v1alpha1/prometheussource"
prometheusinformer "github.com/inspirit941/eventing-prometheus/pkg/client/injection/informers/sources/v1alpha1/prometheussource"
promreconciler "github.com/inspirit941/eventing-prometheus/pkg/client/injection/reconciler/sources/v1alpha1/prometheussource"
kubeclient "knative.dev/pkg/client/injection/kube/client"
deploymentinformer "knative.dev/pkg/client/injection/kube/informers/apps/v1/deployment"
)
Expand Down
6 changes: 3 additions & 3 deletions pkg/reconciler/prometheussource.go
Expand Up @@ -26,6 +26,7 @@ import (
"knative.dev/eventing/pkg/reconciler/source"
"knative.dev/pkg/controller"

"github.com/inspirit941/eventing-prometheus/pkg/reconciler/resources"
"github.com/kelseyhightower/envconfig"
"github.com/robfig/cron"
"go.uber.org/zap"
Expand All @@ -35,15 +36,14 @@ import (
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
appsv1listers "k8s.io/client-go/listers/apps/v1"
"knative.dev/eventing-prometheus/pkg/reconciler/resources"
"knative.dev/pkg/apis"
duckv1 "knative.dev/pkg/apis/duck/v1"
"knative.dev/pkg/logging"
pkgreconciler "knative.dev/pkg/reconciler"
"knative.dev/pkg/resolver"

"knative.dev/eventing-prometheus/pkg/apis/sources/v1alpha1"
promreconciler "knative.dev/eventing-prometheus/pkg/client/injection/reconciler/sources/v1alpha1/prometheussource"
"github.com/inspirit941/eventing-prometheus/pkg/apis/sources/v1alpha1"
promreconciler "github.com/inspirit941/eventing-prometheus/pkg/client/injection/reconciler/sources/v1alpha1/prometheussource"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/reconciler/resources/receive_adapter.go
Expand Up @@ -24,7 +24,7 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"knative.dev/pkg/kmeta"

"knative.dev/eventing-prometheus/pkg/apis/sources/v1alpha1"
"github.com/inspirit941/eventing-prometheus/pkg/apis/sources/v1alpha1"
)

// ReceiveAdapterArgs are the arguments needed to create a Prometheus Receive Adapter.
Expand Down

0 comments on commit e573630

Please sign in to comment.