Skip to content

Commit

Permalink
knative-serving package build (#39914)
Browse files Browse the repository at this point in the history
<!---
Provide a short summary in the Title above. Examples of good PR titles:
* "ruby-3.1: new package"
* "haproxy: fix CVE-2014-123456"
-->

<!--
Please include references to any related issues or delete this section
otherwise.
 -->

Fixes:

Related:

### Pre-review Checklist

<!--
This checklist is mostly useful as a reminder of small things that can
easily be
forgotten – it is meant as a helpful tool rather than hoops to jump
through.

At the moment of this PR you have the most information on what all the
change
will affect, so please take the time to jot it down.

Put an `x` in all the items that apply, make notes next to any that
haven't been
addressed, and remove any items that are not relevant to this PR.

-->

#### For new package PRs only
<!-- remove if unrelated -->
- [ ] This PR is marked as fixing a pre-existing package request bug
- [ ] Alternatively, the PR is marked as related to a pre-existing
package request bug, such as a dependency
- [x] REQUIRED - The package is available under an OSI-approved or
FSF-approved license
- [x] REQUIRED - The version of the package is still receiving security
updates
- [ ] This PR links to the upstream project's support policy (e.g.
`endoflife.date`)

Signed-off-by: Batuhan Apaydin <[email protected]>
  • Loading branch information
developer-guy authored Jan 19, 2025
1 parent eb02685 commit 07cccbb
Showing 1 changed file with 99 additions and 0 deletions.
99 changes: 99 additions & 0 deletions knative-serving-1.16.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
package:
name: knative-serving-1.16
version: 1.16.0
epoch: 0
description: Kubernetes-based, scale-to-zero, request-driven compute
copyright:
- license: Apache-2.0
dependencies:
provides:
- knative-serving=${{package.full-version}}

pipeline:
- uses: git-checkout
with:
expected-commit: 6a27004b357047832f68b62304857b479a100f4d
repository: https://github.com/knative/serving
tag: knative-v${{package.version}}

- uses: go/bump
with:
deps: golang.org/x/[email protected]

subpackages:
- name: ${{package.name}}-queue
description: "Queue component for Knative serving"
dependencies:
provides:
- knative-serving-queue=${{package.full-version}}
pipeline:
- uses: go/build
with:
output: queue
packages: ./cmd/queue
test:
environment:
contents:
packages:
- wait-for-it
environment:
## dummy environment variables for testing copied over: https://github.com/knative/serving/blob/d4766bee6f56bbcde9af538230562b8cf5a6751b/pkg/reconciler/revision/resources/deploy_test.go#L112
SERVING_NAMESPACE: foo
SERVING_SERVICE: ""
SERVING_CONFIGURATION: ""
SERVING_REVISION: bar
QUEUE_SERVING_PORT: 8012 # This is the port that the queue will listen on
QUEUE_SERVING_TLS_PORT: 8112
CONTAINER_CONCURRENCY: 0
REVISION_TIMEOUT_SECONDS: 45
REVISION_RESPONSE_START_TIMEOUT_SECONDS: 0
REVISION_IDLE_TIMEOUT_SECONDS: 0
SERVING_POD: static-pod-name
SERVING_POD_IP: 192.168.1.100
SERVING_LOGGING_CONFIG: ""
SERVING_LOGGING_LEVEL: ""
SERVING_REQUEST_LOG_TEMPLATE: ""
SERVING_ENABLE_REQUEST_LOG: false
SERVING_REQUEST_METRICS_BACKEND: ""
SERVING_REQUEST_METRICS_REPORTING_PERIOD_SECONDS: 0
TRACING_CONFIG_BACKEND: ""
TRACING_CONFIG_ZIPKIN_ENDPOINT: ""
TRACING_CONFIG_DEBUG: false
TRACING_CONFIG_SAMPLE_RATE: 0
USER_PORT: 8080
SYSTEM_NAMESPACE: default-system-namespace
METRICS_DOMAIN: default-metrics-domain
SERVING_READINESS_PROBE: '{"tcpSocket":{"port":8080,"host":"127.0.0.1"}}'
ENABLE_PROFILING: false
SERVING_ENABLE_PROBE_REQUEST_LOG: false
METRICS_COLLECTOR_ADDRESS: ""
HOST_IP: 192.168.1.1
ENABLE_HTTP2_AUTO_DETECTION: false
ENABLE_HTTP_FULL_DUPLEX: false
ROOT_CA: ""
ENABLE_MULTI_CONTAINER_PROBES: false
pipeline:
- runs: |
# Define the log file path
# Start the queue and redirect logs to the file
echo "Starting the queue and redirecting logs to /tmp/queue.log"
queue > "/tmp/queue.log" 2>&1 &
wait-for-it -t 30 localhost:8012
grep -q "Starting http server main:8012" /tmp/queue.log
- name: ${{package.name}}-queue-compat
description: "To match with the upstream image entrypoint"
pipeline:
- runs: |
mkdir -p ${{targets.contextdir}}/ko-app
ln -sf /usr/bin/queue ${{targets.contextdir}}/ko-app/queue
dependencies:
provides:
- knative-serving-queue-compat=${{package.full-version}}

update:
enabled: true
github:
identifier: knative/serving
strip-prefix: knative-v
tag-filter: knative-v1.16.

0 comments on commit 07cccbb

Please sign in to comment.