Skip to content

Commit

Permalink
Update sink flag code to use latest from knative/client
Browse files Browse the repository at this point in the history
  • Loading branch information
cardil committed Apr 16, 2024
1 parent 2dec068 commit fe59266
Show file tree
Hide file tree
Showing 68 changed files with 4,673 additions and 267 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ require (
k8s.io/cli-runtime v0.29.2
k8s.io/client-go v0.29.2
k8s.io/code-generator v0.29.2
k8s.io/utils v0.0.0-20240102154912-e7106e64919e
knative.dev/eventing v0.40.1-0.20240325205050-ff32fbeefd03
knative.dev/hack v0.0.0-20240318013248-424e75ed769a
knative.dev/pkg v0.0.0-20240325103648-fd7cc2153e6a
Expand Down Expand Up @@ -139,7 +140,6 @@ require (
k8s.io/gengo v0.0.0-20240129211411-f967bbeff4b4 // indirect
k8s.io/klog/v2 v2.120.1 // indirect
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect
k8s.io/utils v0.0.0-20240102154912-e7106e64919e // indirect
knative.dev/networking v0.0.0-20240318132715-69566347ab2a // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/kustomize/api v0.13.5-0.20230601165947-6ce0bf390ce3 // indirect
Expand Down
2 changes: 1 addition & 1 deletion hack/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ package tools
import (
_ "k8s.io/code-generator"
_ "k8s.io/code-generator/cmd/deepcopy-gen"
_ "knative.dev/hack"
_ "knative.dev/hack/cmd/script"
_ "knative.dev/pkg/hack"
)
3 changes: 2 additions & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ set -o errexit
set -o nounset
set -o pipefail

source $(dirname $0)/../vendor/knative.dev/hack/codegen-library.sh
# shellcheck disable=SC1090
source "$(go run knative.dev/hack/cmd/script codegen-library.sh)"

# If we run with -mod=vendor here, then generate-groups.sh looks for vendor files in the wrong place.
export GOFLAGS=-mod=
Expand Down
3 changes: 2 additions & 1 deletion hack/update-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ set -o errexit
set -o nounset
set -o pipefail

source $(dirname $0)/../vendor/knative.dev/hack/library.sh
# shellcheck disable=SC1090
source "$(go run knative.dev/hack/cmd/script library.sh)"

go_update_deps "$@"
3 changes: 2 additions & 1 deletion hack/update-k8s-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ set -o errexit
set -o nounset
set -o pipefail

source $(dirname "$0")/../vendor/knative.dev/hack/library.sh
# shellcheck disable=SC1090
source "$(go run knative.dev/hack/cmd/script library.sh)"

run_go_tool knative.dev/test-infra/buoy \
buoy float ${REPO_ROOT_DIR}/go.mod \
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/client/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ package client

// GroupName is the group name used in this package
const (
GroupName = "client-pkg.knative.dev"
GroupName = "client.knative.dev"
)
2 changes: 1 addition & 1 deletion pkg/apis/client/v1alpha1/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ limitations under the License.
*/

// +k8s:deepcopy-gen=package
// +groupName=client-pkg.knative.dev
// +groupName=client.knative.dev

// Package v1alpha1 is the v1alpha1 version of the API.
package v1alpha1 // import "knative.dev/client-pkg/pkg/apis/client/v1alpha1"
Loading

0 comments on commit fe59266

Please sign in to comment.