Commit Graph

1267 Commits

Author SHA1 Message Date
Zbynek Roubalik ed1d963c85
feat: PaC support flags (#1604)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-13 20:44:56 +00:00
Matej Vasek 28eb331df4
chore: more tests on push to main (#1616)
* Run unit tests on various platforms.
* Run end to end tests.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-13 20:43:56 +00:00
Dhruv Garg b03ada6c0d
docs: update broken links in docs to command.txt and command.md (#1613) 2023-03-10 17:50:24 +00:00
Zbynek Roubalik b793f8739a
feat: PAC - add support for S2I (#1610)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-10 12:14:23 +00:00
Matej Vasek 7b85fa5f84
fix: node s2i build when node_modules present (#1612)
* fix: node s2i build when node_modules present

This is workaround for two bug in another components:
* The s2i CLI/library is not honoring the `--exclude` flag when used with
  the `--as-dockerfile` flag.
* The node s2i image is not working if project contains `node_modules`
  directory with NodeJS modules.

If only one of the bugs above were fixed this commit wouldn't be
necessary.

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fix: project root escape link detection

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fix: ignore node_modules for s2i on cluster build

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: style

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-10 12:09:24 +00:00
knative-automation afad45ee8c
Update community files (#1611)
Signed-off-by: Knative Automation <automation@knative.team>
2023-03-09 13:48:22 +00:00
Matej Vasek 9aac5eba68
fix: build stamp computation (#1608)
About the same time that buildStamp was computed .gitignore was modified.
This caused non-deterministic results, because sometimes the
modification was taken into account and sometimed it was not.

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-08 23:06:20 +00:00
Matej Vasek 9a9da1ff3f
chore: coverage for e2e tests (#1603)
* chore: coverage for e2e tests

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: disable thread sanitiser

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-08 17:53:20 +00:00
Manoel Marques fa3286ccac
Change 'create' help text to indicate mandatory language option (#1607) 2023-03-08 17:41:21 +00:00
Zbynek Roubalik c552aa2e4e
chore: better output for PaC (#1606)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-08 17:34:22 +00:00
knative-automation da83a2bf73
upgrade to latest dependencies (#1591)
bumping knative.dev/serving 59d4c52...74fcd62:
  > 74fcd62 Update net-kourier nightly (# 13775)
  > 6436af6 upgrade to latest dependencies (# 13769)
  > 4d51212 Use `pkgtest.CheckEndpointState` in TestActivationScale instead of raw client (# 13770)
  > 587f587 add missing probes (# 13563)
  > 5e3b4af Adds e2e test for activation-scale (# 13197)
  > b285cb4 Update net-certmanager nightly (# 13762)
  > aab7abe Update net-contour nightly (# 13761)
  > 0cf0da8 Update net-gateway-api nightly (# 13756)
  > efc0bb0 Update net-kourier nightly (# 13760)
  > 6bc4bb2 upgrade to latest dependencies (# 13759)
bumping knative.dev/eventing c5847a9...38a00d8:
  > 38a00d8 Migrate to rekt cronjob package (# 6800)
  > 0e2c389 [main] Upgrade to latest dependencies (# 6798)
  > df2287d [main] Upgrade to latest dependencies (# 6794)
  > 1ff36e1 Support testing ContainerSource with istio (# 6790)
  > a8128e6 [main] Upgrade to latest dependencies (# 6774)
  > 397387e SC settings for ApiServerSource's Receive Adapter's container/deployment  (# 6788)
  > b474770 No reason for API ServerSource adapter to not inject istio sidecar (# 6789)
  > 7d7df2d Removes the deprecated DeadLetterChannel in ChannelableStatus (# 6722)
bumping knative.dev/pkg 645afb2...b77a78c:
  > b77a78c upgrade to latest dependencies (# 2698)
  > 310274d bump golang version in downstream tests (# 2697)
  > fd00e03 Add certs secret name read from env (# 2685)
bumping knative.dev/client e82e749...3bdc232:
  > 3bdc232 upgrade to latest dependencies (# 1773)
bumping knative.dev/networking 5a5f810...c692e9e:
  > c692e9e upgrade to latest dependencies (# 776)
  > 475e232 upgrade to latest dependencies (# 775)

Signed-off-by: Knative Automation <automation@knative.team>
2023-03-08 16:51:20 +00:00
Manoel Marques f2238be7ed
Correctly format Node.js code (#1602) 2023-03-08 12:17:20 +00:00
Marcos Nils cc34d0bc83
docs: add note about not supported on cluster build runtimes. (#1597)
* Add note about not supported on cluster build runtimes.

* fix typo

* remove quarkus from list
2023-03-07 19:58:19 +00:00
Zbynek Roubalik e3b318adff
feat: Pipelines as Code - initial support (pack) (#1594)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-07 15:41:20 +00:00
Zbynek Roubalik 616feb15b1
chore: move prompts to a separate package (#1592)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-03-06 15:08:33 +00:00
Matej Vasek 1cff3a4d35
chore: clean up e2e project update logic (#1593)
* chore: clean up e2e project update logic

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: linter unused param

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-03-02 19:14:31 +00:00
knative-automation 850adf30ab
upgrade to latest dependencies (#1582)
bumping knative.dev/client 8a2ed4c...e82e749:
  > e82e749 Bump golang.org/x/net from 0.0.0-20220919232410-f2f64ebce3c1 to 0.7.0 (# 1783)
  > a91b916 Bump golang.org/x/text from 0.3.7 to 0.3.8 (# 1780)
bumping knative.dev/pkg f306c13...645afb2:
  > 645afb2 bump golang.org/x/net to v0.7.0 (# 2695)
  > 0591b75 bump net and text packages (# 2692)
  > 2fdd6bf Allow reconcilers to listen to leader promotion events  (# 2688)
  > f65eba5 Make ZipkinTracingEnabled flag thread safe (# 2690)
bumping golang.org/x/sys fc697a3...90c8f94:
  > 90c8f94 unix: avoid converting non-pointers to unsafe.Pointer in PtraceIO
  > 4e121b1 unix: add missing address operator in initxattrdest
  > 68f9dcb windows/debug/svc: buffer channel passed to signal.Notify
  > 0e1262c unix: add ptrace(PT_DENY_ATTACH) wrapper for darwin
  > 6938dae unix: add missing constants used with struct Timex on Linux
  > 01b330b unix: improve flaky solaris test logging
  > e7d7f63 all: fix some comments
  > 7a75290 unix/linux: update to glibc 2.36
  > 4112509 windows/mkwinsyscall: write source to temp file if formatting fails
  > 71da690 windows/mkwinsyscall: support "." and "-" in DLL name
  > b829a39 unix/linux: update to gcc 13.0.0, qemu 7.1.0 for loong64
  > c3037ed unix: add support for clock_adjtime on Linux
  > 13fe000 cpu: add IsBigEndian
  > 17fce3a unix: avoid false positive in vet shift check
  > a6f4650 windows: use UTF16FromString and UTF16ToString from syscall
  > 6e4d1c5 unix/linux: update to Linux kernel 6.1 and Go 1.20-rc2
  > b8be2fd cpu: add //go:build line to cpu_gccgo_x86.c
  > 1e9f341 unix: add //go:build line to gccgo_c.c
  > b60007c unix: add Uvmexp and SysctlUvmexp for NetBSD
  > b751db5 unix: gofmt hurd files after CL 459895
  > b360406 unix: support TIOCGETA on GNU/Hurd
  > 3086868 unix: regen on OpenBSD 7.2
  > 2b11e6b unix: remove Mclpool from openbsd types
  > 7c6badc unix: convert openbsd/mips64 to direct libc calls
  > 3b1fc93 unix: avoid allocations for common uses of Readv, Writev, etc.
  > 2204b66 cpu: parse /proc/cpuinfo on linux/arm64 on old kernels when needed
  > 72f772c unix: offs2lohi should shift by bits, not bytes
  > cffae8e unix: add ClockGettime on *bsd and solaris
  > 96e75de unix: improve Sendmsg and Recvmsg documentation
  > 127c0dd unix/linux: use Go 1.20rc1 to generate files
  > 3ca3b18 windows: add GetLargePageMinimum
  > d684c6f execabs: isGo119ErrDot: use errors.Is instead of string-matching
bumping knative.dev/serving 7aeb55d...59d4c52:
  > 59d4c52 Update net-kourier nightly (# 13755)
  > 5a7a72e Update net-contour nightly (# 13758)
  > cc58860 Update net-certmanager nightly (# 13757)
  > 879c723 upgrade to latest dependencies (# 13742)
  > 23212b3 Update net-kourier nightly (# 13733)
  > 12b0690 Update net-contour nightly (# 13734)
  > 628b3e6 Update net-gateway-api nightly (# 13732)
  > cd3fe03 Update net-certmanager nightly (# 13735)
  > 28b8fba upgrade to latest dependencies (# 13730)
  > 708374e TestAutoscaleSustaining scales to 8 instead of 10 (# 13679)
  > 168ea39 Update net-contour nightly (# 13729)
  > f2ee629 Update net-certmanager nightly (# 13728)
  > bd75129 upgrade to latest dependencies (# 13726)
  > f4792e4 check for renewing status (# 13666)
  > 51ed9ad Update net-contour nightly (# 13724)
  > 1b99dce Update net-gateway-api nightly (# 13719)
  > fe52019 Update net-certmanager nightly (# 13718)
  > 506f8c6 Update net-contour nightly (# 13717)
  > 1f5f822 Update net-kourier nightly (# 13698)
bumping knative.dev/hack f2f3107...3de51af:
  > 3de51af Set GitHub Release Title to the version (# 277)
bumping knative.dev/networking 1bd50a5...5a5f810:
  > 5a5f810 upgrade to latest dependencies (# 767)
  > 2c2695b upgrade to latest dependencies (# 766)
bumping golang.org/x/text 1bdb400...71a9c9a:
  > 71a9c9a all: fix some comments
  > ec5565b README.md: update documentation of module versioning
  > c8236a6 unicode/bidi: remove unused global
  > ada7473 all: remove redundant type conversion
bumping knative.dev/eventing 5f24569...c5847a9:
  > c5847a9 Port broker many triggers testcase to rekt (# 6761)
  > 52574ce Fixes issue where a CE response is truncated (# 6758)
  > 44b0b8a Remove deprecated usage of ZipkinTracingEnabled (# 6780)
  > 07e6d0c [main] Upgrade to latest dependencies (# 6770)
  > 70d2cb9 Pass EnvConfig to Broker conformance tests (# 6769)
  > f6afad3 Exclusive access to tracing flag for upgrade prober (# 6767)
  > 843b6f2 Allow event display to log requests (# 6764)
  > 23dc742 [main] Upgrade to latest dependencies (# 6765)
  > 82d85f9 [main] Upgrade to latest dependencies (# 6762)
bumping golang.org/x/net a2d827a...8e2b117:
  > 8e2b117 http2/hpack: avoid quadratic complexity in hpack decoding
  > 547e7ed http2: avoid referencing ResponseWrite.Write parameter after returning
  > 39940ad html: parse comments per HTML spec
  > 87ce33e go.mod: update golang.org/x dependencies
  > 415cb6d all: fix some comments
  > 7e3c19c all: correct typos in comments
  > 296f09a http2: case insensitive handling for 100-continue
  > f8411da nettest: fix tests on dragonfly and js/wasm
  > 8e0e7d8 go.mod: update golang.org/x dependencies
  > 7805fdc http2: rewrite inbound flow control tracking
  > 2aa8215 nettest: use RoutedInterface for probing network stack capability
  > ad92d3d websocket: don't recommend Gorilla
  > e1ec361 http2: fix race in TestCanonicalHeaderCacheGrowth
  > 1e63c2f http2: limit canonical header cache by bytes, not entries
  > 3247b5b go.mod: update golang.org/x dependencies
  > ecf7fda http2: deflake TestTransportMaxFrameReadSize
  > 0833b63 publicsuffix: embed table data
  > ecf091a publicsuffix: update table to latest list from publicsuffix.org
  > 2f8c3d1 http2: add Transport.MaxReadFrameSize configuration setting
  > 0e478a2 http2: add SETTINGS_HEADER_TABLE_SIZE support
bumping golang.org/x/term f72a2d8...d974fe8:
  > d974fe8 go.mod: update golang.org/x dependencies
  > 1efcd90 go.mod: update golang.org/x dependencies
  > 97ca0e3 go.mod: update golang.org/x dependencies

Signed-off-by: Knative Automation <automation@knative.team>
2023-03-01 10:17:54 +00:00
Luke Kingland aa582dad21
cli help text updates and flags cleanup (#1564)
* cli help text and flags cleanup

- verbose flag uses global setting throughout
- confirm flag added using shared visitor throughout
- path flag added using shared visitor throughout
- removes --version flag on root as redundant with subcommand
- splits main help's 'Main Commands' into 'Primary Commands' and 'Development
  Commands' groups
- Moves RunE definition into flag struct literals

* remove commented code
2023-03-01 09:35:54 +00:00
Matej Vasek 9c5b5a805b
chore: verify-codegen.sh (#1590)
* fix: verify-codegen.sh

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-02-27 19:23:54 +00:00
Matej Vasek 0a9ed1bc46
refactor: clean up filesystem test (#1584)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-02-27 02:21:32 +00:00
Lance Ball 0b1d537309
chore: update references to zz_filesystem_generated.go (#1580)
* chore: update references to zz_filesystem_generated.go

Some places were missed in the repo restructuring. This should fix
test_infra build failures.

Signed-off-by: Lance Ball <lball@redhat.com>

* fix: do not put "." into template zip array (#24)

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Lance Ball <lball@redhat.com>
Signed-off-by: Matej Vasek <mvasek@redhat.com>
Co-authored-by: Matej Vasek <matejvasek@gmail.com>
2023-02-23 19:12:29 +00:00
Luke Kingland 3624ccb58d
command aliases (#1578)
Ensures commands which have subcommands to operate on individual members
(list, add, remove etc) have singular and plural as aliases.

Ensures consistent usage of linux-command-style aliases for list,remove
and rename operations: "ls", "rm", "mv"
2023-02-23 14:07:29 +00:00
Luke Kingland 91c95a711e
fix: repo add skips root (#1577) 2023-02-21 20:40:27 +00:00
Zbynek Roubalik 726b566f83
fix: deploy annotations & labels correctly (#1574)
* fix: deploy annotations & labels correctly

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

* increase timeout

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

---------

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-02-21 15:24:26 +00:00
Luke Kingland 03c5df4337
fix: missing map initializations (#1575)
The helper Function constructor which uses a passed function as defaults
was missing map initializations.  This could lead to nil pointer
exceptions as it is used by client.Init.
2023-02-21 10:11:26 +00:00
Luke Kingland 9961c43b35
rm testData (#1576) 2023-02-21 09:15:26 +00:00
Lance Ball c20c887cd2
chore: update faas-js-runtime to 0.10.0 (#1570)
* chore: update faas-js-runtime to 0.10.0

Fixes: https://github.com/nodeshift/faas-js-runtime/issues/120

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: try ignoring package-lock.json files in linter

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: actually add package-lock.json

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: better globbing

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: best globbing

Signed-off-by: Lance Ball <lball@redhat.com>

---------

Signed-off-by: Lance Ball <lball@redhat.com>
2023-02-20 20:32:25 +00:00
David Hadas e6e27d6e66
fix initialization of service.Spec.Template.ObjectMeta.Annotations (#1569)
Signed-off-by: David Hadas <david.hadas@gmail.com>
2023-02-20 18:31:25 +00:00
knative-automation df819d13d8
upgrade to latest dependencies (#1565)
bumping knative.dev/client badd909...8a2ed4c:
  > 8a2ed4c Fixing errors related to Go 1.20 (# 1779)
  > 954720d Update community files (# 1778)
bumping knative.dev/eventing f022034...5f24569:
  > 5f24569 [main] Upgrade to latest dependencies (# 6744)
  > dac6b8b [main] Update community files (# 6756)
  > 2b517b6 Deprecate `test/rekt/resources/svc` (# 6742)
  > bbbd425 Deprecate `test/rekt/resources/deployment` (# 6748)
bumping knative.dev/pkg 2f55fe0...f306c13:
  > f306c13 upgrade to latest dependencies (# 2684)
bumping knative.dev/networking 195809a...1bd50a5:
  > 1bd50a5 Update community files (# 764)
  > 6a15e7d upgrade to latest dependencies (# 765)
  > 9373ba6 upgrade to latest dependencies (# 762)
bumping knative.dev/serving 08812b3...7aeb55d:
  > 7aeb55d Update net-gateway-api nightly (# 13716)
  > aa4149f Update net-certmanager nightly (# 13715)
  > 04da752 upgrade to latest dependencies (# 13713)
  > dfd39ca Update support rotation (# 13714)
  > 8c282ba Update net-certmanager nightly (# 13697)
  > 7ed2869 Update support rotation contacts (# 13703)
  > 0ec0ecf Update net-gateway-api nightly (# 13699)
  > 060a49a Update net-contour nightly (# 13705)
  > 53e91c9 Fix G112: Potential Slowloris Attacks lint errs (# 13702)
  > a99a936 upgrade to latest dependencies (# 13709)
bumping knative.dev/hack d71d569...f2f3107:
  > f2f3107 Update community files (# 273)
  > f41894d Find checksums file works with ARTIFACTS_TO_PUBLISH variable (# 275)

Signed-off-by: Knative Automation <automation@knative.team>
2023-02-20 18:02:26 +00:00
Matej Vasek 138d1e46c5
fix: ban podman 4.3 for pack build (#1563)
Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-02-20 17:16:25 +00:00
Matej Vasek 6d4565158b
feat: enabled s2i for python (#1562)
* feat: enable s2i for python

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: update zz_filesystem_generated.go

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: test

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: test

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: test

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fixup: script

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-02-20 16:45:26 +00:00
Luke Kingland 902eaecd57
global config member accessors (#1559) 2023-02-16 20:07:52 +00:00
knative-automation b02956b7e5
Update community files (#1556)
Signed-off-by: Knative Automation <automation@knative.team>
2023-02-16 13:45:51 +00:00
Lance Ball 4e8ef492ab
chore: add tekton artifacts to release (#1557)
Signed-off-by: Lance Ball <lball@redhat.com>
2023-02-16 11:34:51 +00:00
Zbynek Roubalik b26a1c29b3
chore: `testData` -> `testdata` (#1560)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-02-16 11:05:51 +00:00
Luke Kingland 2a9a744501
chore: build and deploy test suite cleanup (#1437)
Ensures all tests which apply to both build and deploy commands are
invoked.  Test implementations are kept on deploy command, as it is the
primary command and build is a derivitave. Slight logical and
alphabetical reordering.
2023-02-16 08:42:51 +00:00
knative-automation ec6c698244
upgrade to latest dependencies (#1534)
bumping knative.dev/eventing 4d6e1fc...f022034:
  > f022034 Update dependencies (# 6753)
  > fdffabe Deprecate `test/rekt/resources/pod` package (# 6747)
  > dfd095f Remove event flaker since eventshub offers an equivalent feature (# 6750)
  > 0ab29eb  Remove unused event-library (# 6751)
  > 82324b9 [main] Update community files (# 6743)
  > 452cd49 Adds apiVersion as an extension to api source events (# 6696)
  > b96d2fb Migrate from `knative.dev/reconciler-test/resources/svc` to `knative.dev/reconciler-test/pkg/resources/service` (# 6741)
  > f9ceb4f [main] Upgrade to latest dependencies (# 6715)
  > 37fa6e0 Extract scheduler config in a dedicate struct instead of many parameters (# 6736)
  > 4911986 Add function to check if a broker resource is `NotReady` (# 6737)
  > 2f98e55 Improve scheduler logging for state and pending vpods (# 6729)
  > 1092472 Scheduler doesn't reschedule vpods that are scheduled on unscehdulable pods (# 6726)
  > 40517be Added Broker class in `kubectl get -o wide` (# 6723)
  > e609459 [main] Update community files (# 6727)
  > 47a793b Revert "Change subscription patch logic to ensure resource version (# 6670) (# 6724)
  > 8b7551c Removing one more deprecated, unused func (# 6718)
  > 228eda3 Removing deprecated and unused func (# 6716)
  > ffc8fe0 Default a subscriptions subscriber and reply in webhook (# 6701)
  > 8d62a06  Adds link to the Knative CNCF Slack Channel  (# 6711)
  > 91a1991 Install source at requirement phase in conformance tests (# 6712)
  > 983189d Set scheduler logging to debug (# 6705)
  > c3364e4 Remove UNUSED and deprecated test helpers (# 6710)
  > 9b8c4d6 Port BrokerWorkFlowWithTranformation test to rekt and code cleanup (# 6709)
  > 45e7a24 Do not overwrite existing imagePullSecrets in CopySecret (# 6707)
  > efba019 [main] Format Go code (# 6702)
bumping k8s.io/kube-openapi 67bda5d...172d655:
  > 172d655 Merge pull request # 319 from alexzielenski/json_next
  > 829ce0c fix json unmarshal bug when extension used with Responses (# 320)
  > 8d49439 add JSONRoundTripTestCase and add a Test*RoundTrip for every spec.* type which needs it
  > b7a9e6f Merge pull request # 318 from dims/add-go.mod-for-integration-tests
  > 3b3bb66 add jsonv2 roundtrip fuzz tests and benchmarks
  > a70c9af Merge pull request # 307 from apelisse/test-required-job
  > b856c89 Add a go.mod for integration test
  > 395774f add jsonv2 implementation
  > c6e407d Add required job that depends on matrix jobs
  > c601e50 add go-json-experiment/json to pkg/internal/third_party
  > 5ca72f5 gofmt changes
bumping knative.dev/hack c7cfcb0...d71d569:
  > d71d569 🐛 Location-agnostic sign release (# 268)
  > b674d64 Update community files (# 270)
  > 549c360 Cleanup: remove ioutil for new go version (# 265)
  > 5814be5 Update community files (# 267)
bumping knative.dev/networking db2bcbe...195809a:
  > 195809a Update community files (# 761)
  > c3510af upgrade to latest dependencies (# 760)
  > 2473e65 Update community files (# 759)
  > f6585dc update OWNERS file (# 758)
  > 89f3990 Assert all the expected DNSNames are part of the HTTP01 challenge (# 756)
  > 4ccbe60 adjust domain validation in kcert (# 754)
bumping knative.dev/serving 484e848...08812b3:
  > 08812b3 Update net-istio nightly (# 13706)
  > 368994b Update community files (# 13707)
  > d68797e Bumping 'github.com/google/go-containerregistry' dependency (# 13701)
  > 9b9a951 upgrade to latest dependencies (# 13689)
  > e2add5d fix curl invocation (# 13683)
  > 6334ffe Update net-contour nightly (# 13676)
  > d7959af Update net-certmanager nightly (# 13686)
  > 4db2ada Update net-istio nightly (# 13687)
  > 7f2264d Update community files (# 13685)
  > baa6292 Update net-gateway-api nightly (# 13672)
  > 83d2dd7 Update net-kourier nightly (# 13673)
  > 2fc2a12 fix route reconciler test flakes (# 13684)
  > 729eb6d Update net-istio nightly (# 13674)
  > 30a2b0c Add k8s 1.26 for kind (# 13682)
  > 3764762 use GITHUB_TOKEN when querying net-istio releases (# 13681)
  > 485f2a9 upgrade to latest dependencies (# 13680)
  > 0639c5f Update community files (# 13678)
  > b4d7a28 clean up OWNER files (# 13668)
  > 68e128b Update net-contour nightly (# 13667)
  > f6ab591 Adds slack links to CNCF Knative slack channel (# 13655)
  > 53b3c92 Add serving-internal docs about Knative encryption support (# 13662)
  > 3b8d6cb Update net-contour nightly (# 13656)
  > b9b4c57 Update net-gateway-api nightly (# 13654)
  > 63832e2 Update net-contour nightly (# 13650)
  > 908edaf Update net-istio nightly (# 13649)
  > 06add5f Update net-kourier nightly (# 13648)
bumping knative.dev/pkg 247510c...2f55fe0:
  > 2f55fe0 Fix potential slowloris attack (# 2682)
  > 8d1efe1 Update community files (# 2683)
  > 4a80605 Add health checks (# 2671)
  > 33e6b88 fix: `reconcilerImpl.updateStatus` calculates state difference in debug mode only (# 2678)
  > c889c5b upgrade to latest dependencies (# 2679)
  > fb44e94 Update community files (# 2676)
  > decc1cc Update community files (# 2674)
  > 8532ae0 update OWNERS files to use teams with active members (# 2672)
  > 408ad07 Make SetDefaults of Destination duck type nil safer (# 2670)
bumping github.com/google/go-containerregistry 76ae819...1e09daa:
  > 1e09daa clarify crane download readme (# 1533)
  > 8e08d51 Revert "Hack around DockerHub plugin scope handling" (# 1531)
  > 5ad0a76 crane: support --full-ref for crane ls (# 1525)
  > b063f6a Hack around DockerHub plugin scope handling (# 1527)
  > e797859 crane: add digest --full (# 1524)
  > 3986cf4 test: use `T.TempDir` to create temporary test directory (# 1522)
  > 9db616f FIX mutate.Time not respecting history (# 1520)
  > 8048663 Race http fallback ping (# 1521)
  > e64ff3a Bump actions/stale from 6 to 7 (# 1519)
  > 9bd8237 Bump goreleaser/goreleaser-action from 3.2.0 to 4.1.0 (# 1511)
  > ffc14a0 Treat empty registry config as anonymous (# 1512)
  > 23d895d Fix missing doc comment (# 1509)
  > 6ba20c8 Fix various lints (# 1507)
  > 4270e04 Update Arch Linux install instructions (# 1508)
  > 37bf5df Revert "docs: pull latest instead of debug (# 1497)" (# 1504)
  > 47f0933 Use the default retry predicate in transport (# 1502)
  > c7270c2 Make unit tests substantially faster (# 1498)
  > a35805d Make credential warning slightly more accurate (# 1499)
  > 37b993a docs: pull latest instead of debug (# 1497)
  > cd77615 Add support for zstd compression (# 1487)
  > c412593 Fix calculating tarball size when duplicated layers exist (# 1495)
  > bdc946f add source archive checksum into the checksums.txt (# 1492)
  > 781782a Bump golangci/golangci-lint-action from 3.3.0 to 3.3.1 (# 1491)
  > 9e939fb Features: Allow eliding `serviceaccount` lookups. (# 1490)
  > 3e4f490 Bump slsa-framework/slsa-github-generator to 1.2.2 (# 1489)

Signed-off-by: Knative Automation <automation@knative.team>
2023-02-16 08:24:51 +00:00
Lance Ball ab194d421d
feat(templates): remove liveness and readiness from defaults (#1555)
* feat(templates): remove liveness and readiness from defaults

The liveness and readiness URLs are defined in code as defaulting to
`/health/liveness` and `/health/readiness` respectively. The deploy
command handles these defaults without requiring them to exist in the
`func.yaml` file. Existing tests for defaults and overrides already
exist, so this change does not require additional tests to be included.

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: remove default endpoints from repository.go

Signed-off-by: Lance Ball <lball@redhat.com>

---------

Signed-off-by: Lance Ball <lball@redhat.com>
2023-02-16 08:23:51 +00:00
Lance Ball 44bb13f803
feat: adds refspec support for `func repo add` (#1558)
* add option 'branch' to command 'repository add'

* Format go code (#1407)

Signed-off-by: Knative Automation <automation@knative.team>

* chore: refactor repository layout (#1554)

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

* fixup: removes --branch tag from repo commands

Removes the currently in-flight work on the `--branch` tag, simply
supporting a `refspec` on the repository URI. For example,
https://github.com/knative-sandbox/func-tastic#metacontroller will pull
the `func-tastic` repo, and set the currently active HEAD to the
`metacontroller` branch. Adds support for displaying this with the
command `func repo list -v`.

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: add example to `func repo add` documentation

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: adjust test output expectations

Signed-off-by: Lance Ball <lball@redhat.com>

---------

Signed-off-by: Knative Automation <automation@knative.team>
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
Signed-off-by: Lance Ball <lball@redhat.com>
Co-authored-by: Yingchun Guo <yingchun.guo@intel.com>
Co-authored-by: knative-automation <automation@knative.team>
Co-authored-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-02-16 04:05:51 +00:00
Zbynek Roubalik 5a4803bf95
chore: refactor repository layout (#1554)
Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
2023-02-15 08:46:52 +00:00
Jefferson Ramos e6618c0c2b
test: e2e on cluster test in verbose mode (#1537) 2023-02-14 17:14:51 +00:00
Matej Vasek 6bedc4aeed
Use current (as in PR) func image in integration tests (#1548)
* cleanup: style

Signed-off-by: Matej Vasek <mvasek@redhat.com>

* fix: use current func image for in cluster tests

Signed-off-by: Matej Vasek <mvasek@redhat.com>

---------

Signed-off-by: Matej Vasek <mvasek@redhat.com>
2023-02-14 16:29:50 +00:00
Jefferson Ramos 30b72dab53
fix: oncluster builds registry mismatch error (#1542) 2023-02-14 15:36:51 +00:00
knative-automation 826c312777
Update community files (#1540)
Signed-off-by: Knative Automation <automation@knative.team>
2023-02-10 17:59:49 +00:00
Jefferson Ramos 8e62148538
fix: func deploy with explicity `--build=false` bypass isBuilt check (#1539) 2023-02-09 16:24:48 +00:00
github-actions[bot] 34fed117bc
chore: update Quarkus platform version to 2.16.2.Final (#1538)
Co-authored-by: Knative Automation <automation@knative.team>
2023-02-08 20:29:46 +00:00
knative-automation bb7a9f209d
Update community files (#1533)
Signed-off-by: Knative Automation <automation@knative.team>
2023-02-08 01:35:46 +00:00
github-actions[bot] 6a5655ef91
chore: update Quarkus platform version to 2.16.1.Final (#1531)
Co-authored-by: Knative Automation <automation@knative.team>
2023-02-07 21:31:47 +00:00
my-git9 705cbcd8ac
Cleanup: remove ioutil for new go version (#1532) 2023-02-06 09:43:35 +00:00
Luke Kingland 958429c2f3
feat: deploy command global config with function context (#1434)
* feat: deploy command global config function context

* fix static check errors

* fix test

* fix remote persists test

* env opaque box test

* use keyed fields (govet)

* mock deployer expansion

* ClearEnvs now in shared testing pkg

* effectivePath now uses plfags

* list directly uses config for default namespace

* Improved Namespace calculation and Caching

- Built() now a client package function
- Namespace evaluation delegeate to implementations
  This enables the func.yaml to avert dirtiness checks on rebuilds
  (caching)
- Build and Deploy update build stamp on completion
  Enables dirtiness checks to be unaffects, leading to better caching.
- CLI Namespace checks no longer require k8s env evaluation for default
- Fixed missing condition check in TestDeploy_Namespace
- Fixes some minor linter and spelling errors
- Global config does not directly set namespace - it is corrected to be
  deferred evaluation used by implementations.
- Skips writing func.yaml on f.Write if there were no modifications,
  which leads to better caching (no timestamp update means Built ==
  true)
- HasImage removed in favor of a corrected fn.Built

* linting, misspellings and docs rebuild

* warn user if git settings exist on a non-remote build

* lint error fix

* test flag unsetting persists

* allow unknown flags in preparsing of flags

* pre-submit cleanup

* update cmd to use client.Init
2023-02-06 08:43:35 +00:00