Skip to content
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
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ require (
k8s.io/api v0.35.3
k8s.io/apimachinery v0.35.3
k8s.io/client-go v0.35.3
knative.dev/client/pkg v0.0.0-20260415023934-20c8c9c714a8
knative.dev/hack v0.0.0-20260415233235-54d1312ccc91
knative.dev/client/pkg v0.0.0-20260416140638-89c2f233d6b4
knative.dev/hack v0.0.0-20260416140237-504af4d2178f
knative.dev/networking v0.0.0-20260414015937-f29b24983488
knative.dev/serving v0.48.1-0.20260415213836-1017c2be6232
knative.dev/serving v0.48.1-0.20260416140545-998f0dae4187
)

require (
Expand Down Expand Up @@ -105,7 +105,7 @@ require (
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 // indirect
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 // indirect
knative.dev/eventing v0.48.1-0.20260414191034-3b3ea1d037e6 // indirect
knative.dev/pkg v0.0.0-20260414003832-e65cbe95a718 // indirect
knative.dev/pkg v0.0.0-20260415140041-388556d5c488 // indirect
sigs.k8s.io/gateway-api v1.1.0 // indirect
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 // indirect
sigs.k8s.io/kustomize/api v0.20.1 // indirect
Expand Down
16 changes: 8 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -303,18 +303,18 @@ k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912 h1:Y3gxNAuB0OBLImH611+UDZ
k8s.io/kube-openapi v0.0.0-20250910181357-589584f1c912/go.mod h1:kdmbQkyfwUagLfXIad1y2TdrjPFWp2Q89B3qkRwf/pQ=
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4 h1:SjGebBtkBqHFOli+05xYbK8YF1Dzkbzn+gDM4X9T4Ck=
k8s.io/utils v0.0.0-20251002143259-bc988d571ff4/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
knative.dev/client/pkg v0.0.0-20260415023934-20c8c9c714a8 h1:CJhimvHkWd7DDXwSJXkwqHLOiatDLTzTOMCotqjPaUU=
knative.dev/client/pkg v0.0.0-20260415023934-20c8c9c714a8/go.mod h1:ETBAuEqQmtH+o+aF0GA8f3Qu8LXwWgW8pI28vua3h+c=
knative.dev/client/pkg v0.0.0-20260416140638-89c2f233d6b4 h1:6C8Pg5HrPfhPB8P3r47cNDrQW/tDqciXBQdVjKqlcp8=
knative.dev/client/pkg v0.0.0-20260416140638-89c2f233d6b4/go.mod h1:ETBAuEqQmtH+o+aF0GA8f3Qu8LXwWgW8pI28vua3h+c=
knative.dev/eventing v0.48.1-0.20260414191034-3b3ea1d037e6 h1:maXR76gTo6zpNjZOir4npylXw5wQX2BcXisq8fcaf4c=
knative.dev/eventing v0.48.1-0.20260414191034-3b3ea1d037e6/go.mod h1:Y3FYNf5gNCIuqv+NzUAmqfbHJ8n+TxXSsZoV/20jfV0=
knative.dev/hack v0.0.0-20260415233235-54d1312ccc91 h1:YkboMEJ48h7DxRQSPe2SePm1yKK0YYgrsQW5Mmc0SEk=
knative.dev/hack v0.0.0-20260415233235-54d1312ccc91/go.mod h1:L5RzHgbvam0u8QFHfzCX6MKxu/a/gIGEdaRBqNiVbl0=
knative.dev/hack v0.0.0-20260416140237-504af4d2178f h1:YTht2cGdhd++kSrhwcDutWpk1V1bi0vKpAs0h4xIjpw=
knative.dev/hack v0.0.0-20260416140237-504af4d2178f/go.mod h1:L5RzHgbvam0u8QFHfzCX6MKxu/a/gIGEdaRBqNiVbl0=
knative.dev/networking v0.0.0-20260414015937-f29b24983488 h1:OZfg130Kbf1bibhmLITAVdu2S0P2y0utBc74SgakzcQ=
knative.dev/networking v0.0.0-20260414015937-f29b24983488/go.mod h1:hEhUDqidhueU6J/OXW0K9peQh8wIvFvIWTSHL/611og=
knative.dev/pkg v0.0.0-20260414003832-e65cbe95a718 h1:/8xILwHO82gYQXgqQgP9jbSpxg8rmsl/mk1YrYtY/hs=
knative.dev/pkg v0.0.0-20260414003832-e65cbe95a718/go.mod h1:m+Jaj5UyK7VkrEx6rt4buVX3a5eaB+vtJqEfQVGnAGQ=
knative.dev/serving v0.48.1-0.20260415213836-1017c2be6232 h1:X40FtJL9UgCu2olo1Ua35m/STmrWSuaqCgDZH4fNT48=
knative.dev/serving v0.48.1-0.20260415213836-1017c2be6232/go.mod h1:JAdfGImM+Dv8I9SHjnCH861S9B2l/mxy5wQcduQ90Qo=
knative.dev/pkg v0.0.0-20260415140041-388556d5c488 h1:7rmo6AW+6NLaWI+qTWv0ABlXz1bpdpaNnnpSBiuQ3vs=
knative.dev/pkg v0.0.0-20260415140041-388556d5c488/go.mod h1:LaL/m4gFNTSUOP0DvHNCVcruVTi5Dyzts5/6UlPuTEQ=
knative.dev/serving v0.48.1-0.20260416140545-998f0dae4187 h1:/JIVybczl5ciViGb4MC1bcI9Owg/YAAlR5gT40YMl7k=
knative.dev/serving v0.48.1-0.20260416140545-998f0dae4187/go.mod h1:tMcAx4WLEhrvckmfDsMnLFN3LLCCoTkQDpsvtqwy96I=
sigs.k8s.io/gateway-api v1.1.0 h1:DsLDXCi6jR+Xz8/xd0Z1PYl2Pn0TyaFMOPPZIj4inDM=
sigs.k8s.io/gateway-api v1.1.0/go.mod h1:ZH4lHrL2sDi0FHZ9jjneb8kKnGzFWyrTya35sWUTrRs=
sigs.k8s.io/json v0.0.0-20250730193827-2d320260d730 h1:IpInykpT6ceI+QxKBbEflcR5EXP7sU1kvOlxwZh5txg=
Expand Down
20 changes: 14 additions & 6 deletions vendor/knative.dev/hack/library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ if [[ ! -v GOPATH ]]; then
fi
fi

# Pinned tool versions
readonly GUM_VERSION="v0.14.1"
readonly GOTESTSUM_VERSION="v1.13.0"
readonly GOTESTFMT_VERSION="v2.5.0"
readonly TERMINAL_TO_HTML_VERSION="v3.10.0"
readonly GO_LICENSES_VERSION="v2.0.1"

# Useful environment variables
[[ -v PROW_JOB_ID ]] && IS_PROW=1 || IS_PROW=0
readonly IS_PROW
Expand Down Expand Up @@ -265,7 +272,7 @@ function gum_banner() {

# Simple info banner for logging purposes.
function gum_style() {
go_run github.com/charmbracelet/gum@v0.14.1 style "$@"
go_run "github.com/charmbracelet/gum@${GUM_VERSION}" style "$@"
}

# Checks whether the given function exists.
Expand Down Expand Up @@ -588,7 +595,7 @@ function report_go_test() {
logfile="${logfile/.xml/.jsonl}"
echo "Running go test with args: ${go_test_args[*]}"
local gotest_retcode=0
go_run gotest.tools/gotestsum@v1.13.0 \
go_run "gotest.tools/gotestsum@${GOTESTSUM_VERSION}" \
--format "${GO_TEST_VERBOSITY:-testname}" \
--junitfile "${xml}" \
--junitfile-testsuite-name relative \
Expand All @@ -601,14 +608,14 @@ function report_go_test() {
echo "Test log (JSONL) written to ${logfile}"

ansilog="${logfile/.jsonl/-ansi.log}"
go_run github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@v2.5.0 \
go_run "github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@${GOTESTFMT_VERSION}" \
-input "${logfile}" \
-showteststatus \
-nofail > "$ansilog"
echo "Test log (ANSI) written to ${ansilog}"

htmllog="${logfile/.jsonl/.html}"
go_run github.com/buildkite/terminal-to-html/v3/cmd/terminal-to-html@v3.10.0 \
go_run "github.com/buildkite/terminal-to-html/v3/cmd/terminal-to-html@${TERMINAL_TO_HTML_VERSION}" \
--preview < "$ansilog" > "$htmllog"
echo "Test log (HTML) written to ${htmllog}"

Expand Down Expand Up @@ -921,13 +928,14 @@ function run_kntest() {
}

# Run go-licenses to check for forbidden licenses.
# Extra flags can be passed via the GO_LICENSES_FLAGS environment variable.
function check_licenses() {
# Pin GOTOOLCHAIN to the project's Go version so that go-licenses is
# compiled with the same toolchain. GOTOOLCHAIN=auto (the go_run default)
# may select a different Go, causing isStdLib() path mismatches.
GOTOOLCHAIN="$(go env GOVERSION)" \
go_run github.com/google/go-licenses/v2@v2.0.1 \
check "${REPO_ROOT_DIR}/..." || \
go_run "github.com/google/go-licenses/v2@${GO_LICENSES_VERSION}" \
check ${GO_LICENSES_FLAGS:-} "${REPO_ROOT_DIR}/..." || \
{ echo "--- FAIL: go-licenses failed the license check"; return 1; }
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ limitations under the License.
package v1alpha1

import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"knative.dev/pkg/apis"
Expand All @@ -43,9 +42,8 @@ type PodScalable struct {
// PodScalableSpec is the specification for the desired state of a
// PodScalable (or at least our shared portion).
type PodScalableSpec struct {
Replicas *int32 `json:"replicas,omitempty"`
Selector *metav1.LabelSelector `json:"selector"`
Template corev1.PodTemplateSpec `json:"template"`
Replicas *int32 `json:"replicas,omitempty"`
Selector *metav1.LabelSelector `json:"selector"`
}

// PodScalableStatus is the observed state of a PodScalable (or at
Expand Down Expand Up @@ -80,19 +78,6 @@ func (t *PodScalable) Populate() {
Values: []string{"baz", "blah"},
}},
},
Template: corev1.PodTemplateSpec{
ObjectMeta: metav1.ObjectMeta{
Labels: map[string]string{
"foo": "bar",
},
},
Spec: corev1.PodSpec{
Containers: []corev1.Container{{
Name: "container-name",
Image: "container-image:latest",
}},
},
},
}
t.Status = PodScalableStatus{
Replicas: 42,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ k8s.io/utils/net
k8s.io/utils/pointer
k8s.io/utils/ptr
k8s.io/utils/trace
# knative.dev/client/pkg v0.0.0-20260415023934-20c8c9c714a8
# knative.dev/client/pkg v0.0.0-20260416140638-89c2f233d6b4
## explicit; go 1.25.0
knative.dev/client/pkg/apis/client
knative.dev/client/pkg/apis/client/v1alpha1
Expand Down Expand Up @@ -986,7 +986,7 @@ knative.dev/eventing/pkg/client/clientset/versioned/typed/sources/v1
knative.dev/eventing/pkg/client/clientset/versioned/typed/sources/v1/fake
knative.dev/eventing/pkg/crossnamespace
knative.dev/eventing/pkg/eventingtls
# knative.dev/hack v0.0.0-20260415233235-54d1312ccc91
# knative.dev/hack v0.0.0-20260416140237-504af4d2178f
## explicit; go 1.24
knative.dev/hack
# knative.dev/networking v0.0.0-20260414015937-f29b24983488
Expand All @@ -1001,7 +1001,7 @@ knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1/
knative.dev/networking/pkg/config
knative.dev/networking/pkg/http/header
knative.dev/networking/pkg/ingress
# knative.dev/pkg v0.0.0-20260414003832-e65cbe95a718
# knative.dev/pkg v0.0.0-20260415140041-388556d5c488
## explicit; go 1.25.0
knative.dev/pkg/apis
knative.dev/pkg/apis/duck
Expand Down Expand Up @@ -1045,7 +1045,7 @@ knative.dev/pkg/test/ingress
knative.dev/pkg/test/logging
knative.dev/pkg/test/spoof
knative.dev/pkg/tracker
# knative.dev/serving v0.48.1-0.20260415213836-1017c2be6232
# knative.dev/serving v0.48.1-0.20260416140545-998f0dae4187
## explicit; go 1.25.0
knative.dev/serving/pkg/apis/autoscaling
knative.dev/serving/pkg/apis/autoscaling/v1alpha1
Expand Down
Loading