Skip to content

Fix forwarder SINK URL - #599

Merged
knative-prow[bot] merged 1 commit into
knative-extensions:mainfrom
pierDipi:fix-forwarder-url
Oct 10, 2023
Merged

knative-prow[bot] merged 1 commit into
knative-extensions:mainfrom
pierDipi:fix-forwarder-url

Conversation

@pierDipi

Copy link
Copy Markdown
Contributor

Downstream I'm getting this SINK value due to
the fact that sinkURL is now an Addressable:

        apiVersion: serving.knative.dev/v1
        kind: Service
        metadata:
          name: sink-nwvhvrgz
          namespace: test-fbszrpbn
        spec:
          template:
            spec:
              containers:
                - env:
                    - name: NAME
                      value: sink-nwvhvrgz
                    - name: NAMESPACE
                      value: test-fbszrpbn
                    - name: SINK
                      value:
                        <nil> http://sink-nwvhvrgz-twzpetzr.test-fbszrpbn.svc.cluster.local <nil>: null
                    - name: EVENT_GENERATORS
                      value: forwarder
                    - name: EVENT_LOGS
                      value: logger
                    - name: K_CONFIG_LOGGING
                      value: '{"zap-logger-config":"{\n  \"level\": \"info\",\n  \"development\": false,\n  \"outputPaths\": [\"stdout\"],\n  \"errorOutputPaths\": [\"stderr\"],\n  \"encoding\": \"json\",\n  \"encoderConfig\": {\n    \"timeKey\": \"ts\",\n    \"levelKey\": \"level\",\n    \"nameKey\": \"logger\",\n    \"callerKey\": \"caller\",\n    \"messageKey\": \"msg\",\n    \"stacktraceKey\": \"stacktrace\",\n    \"lineEnding\": \"\",\n    \"levelEncoder\": \"\",\n    \"timeEncoder\": \"iso8601\",\n    \"durationEncoder\": \"\",\n    \"callerEncoder\": \"\"\n  }\n}\n"}'
                    - name: K_CONFIG_TRACING
                      value: '{"backend":"zipkin","debug":"false","sample-rate":"1","zipkin-endpoint":"http://cluster-collector-collector-headless.istio-system.svc:9411/api/v2/spans"}'
                  image: quay.io/openshift-knative/eventing/eventshub:v1.10
                  imagePullPolicy: IfNotPresent
                  name: eventshub-forwarder
              serviceAccountName: sink-nwvhvrgz

Changes

  • Fix forwarder URL
  • Print resource when failing to create/update a resource manifest

/kind bug

Downstream I'm getting this `SINK` value due to
the fact that `sinkURL` is now an `Addressable`:

```
        apiVersion: serving.knative.dev/v1
        kind: Service
        metadata:
          name: sink-nwvhvrgz
          namespace: test-fbszrpbn
        spec:
          template:
            spec:
              containers:
                - env:
                    - name: NAME
                      value: sink-nwvhvrgz
                    - name: NAMESPACE
                      value: test-fbszrpbn
                    - name: SINK
                      value:
                        <nil> http://sink-nwvhvrgz-twzpetzr.test-fbszrpbn.svc.cluster.local <nil>: null
                    - name: EVENT_GENERATORS
                      value: forwarder
                    - name: EVENT_LOGS
                      value: logger
                    - name: K_CONFIG_LOGGING
                      value: '{"zap-logger-config":"{\n  \"level\": \"info\",\n  \"development\": false,\n  \"outputPaths\": [\"stdout\"],\n  \"errorOutputPaths\": [\"stderr\"],\n  \"encoding\": \"json\",\n  \"encoderConfig\": {\n    \"timeKey\": \"ts\",\n    \"levelKey\": \"level\",\n    \"nameKey\": \"logger\",\n    \"callerKey\": \"caller\",\n    \"messageKey\": \"msg\",\n    \"stacktraceKey\": \"stacktrace\",\n    \"lineEnding\": \"\",\n    \"levelEncoder\": \"\",\n    \"timeEncoder\": \"iso8601\",\n    \"durationEncoder\": \"\",\n    \"callerEncoder\": \"\"\n  }\n}\n"}'
                    - name: K_CONFIG_TRACING
                      value: '{"backend":"zipkin","debug":"false","sample-rate":"1","zipkin-endpoint":"http://cluster-collector-collector-headless.istio-system.svc:9411/api/v2/spans"}'
                  image: quay.io/openshift-knative/eventing/eventshub:v1.10
                  imagePullPolicy: IfNotPresent
                  name: eventshub-forwarder
              serviceAccountName: sink-nwvhvrgz
```

Signed-off-by: Pierangelo Di Pilato <[email protected]>
@knative-prow knative-prow Bot added kind/bug Categorizes issue or PR as related to a bug. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 10, 2023
@knative-prow
knative-prow Bot requested review from krsna-m and upodroid October 10, 2023 07:00
@pierDipi pierDipi changed the title Fix forwarder URL Fix forwarder SINK URL Oct 10, 2023
@knative-prow knative-prow Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 10, 2023
@pierDipi

Copy link
Copy Markdown
Contributor Author

/cherry-pick release-1.11

@knative-prow-robot

Copy link
Copy Markdown

@pierDipi: once the present PR merges, I will cherry-pick it on top of release-1.11 in a new PR and assign it to you.

Details

In response to this:

/cherry-pick release-1.11

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@pierDipi

Copy link
Copy Markdown
Contributor Author

/cc @creydr @mgencur

@knative-prow
knative-prow Bot requested review from creydr and mgencur October 10, 2023 07:01

@creydr creydr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this

/lgtm

@knative-prow knative-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Oct 10, 2023
@knative-prow

knative-prow Bot commented Oct 10, 2023

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: creydr, pierDipi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow
knative-prow Bot merged commit ffaf4f6 into knative-extensions:main Oct 10, 2023
@knative-prow-robot

Copy link
Copy Markdown

@pierDipi: failed to push cherry-picked changes in GitHub: pushToNamedFork is not implemented in the v2 client

Details

In response to this:

/cherry-pick release-1.11

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

pierDipi added a commit to pierDipi/reconciler-test that referenced this pull request Oct 10, 2023
Downstream I'm getting this `SINK` value due to
the fact that `sinkURL` is now an `Addressable`:

```
        apiVersion: serving.knative.dev/v1
        kind: Service
        metadata:
          name: sink-nwvhvrgz
          namespace: test-fbszrpbn
        spec:
          template:
            spec:
              containers:
                - env:
                    - name: NAME
                      value: sink-nwvhvrgz
                    - name: NAMESPACE
                      value: test-fbszrpbn
                    - name: SINK
                      value:
                        <nil> http://sink-nwvhvrgz-twzpetzr.test-fbszrpbn.svc.cluster.local <nil>: null
                    - name: EVENT_GENERATORS
                      value: forwarder
                    - name: EVENT_LOGS
                      value: logger
                    - name: K_CONFIG_LOGGING
                      value: '{"zap-logger-config":"{\n  \"level\": \"info\",\n  \"development\": false,\n  \"outputPaths\": [\"stdout\"],\n  \"errorOutputPaths\": [\"stderr\"],\n  \"encoding\": \"json\",\n  \"encoderConfig\": {\n    \"timeKey\": \"ts\",\n    \"levelKey\": \"level\",\n    \"nameKey\": \"logger\",\n    \"callerKey\": \"caller\",\n    \"messageKey\": \"msg\",\n    \"stacktraceKey\": \"stacktrace\",\n    \"lineEnding\": \"\",\n    \"levelEncoder\": \"\",\n    \"timeEncoder\": \"iso8601\",\n    \"durationEncoder\": \"\",\n    \"callerEncoder\": \"\"\n  }\n}\n"}'
                    - name: K_CONFIG_TRACING
                      value: '{"backend":"zipkin","debug":"false","sample-rate":"1","zipkin-endpoint":"http://cluster-collector-collector-headless.istio-system.svc:9411/api/v2/spans"}'
                  image: quay.io/openshift-knative/eventing/eventshub:v1.10
                  imagePullPolicy: IfNotPresent
                  name: eventshub-forwarder
              serviceAccountName: sink-nwvhvrgz
```

Signed-off-by: Pierangelo Di Pilato <[email protected]>
knative-prow Bot pushed a commit that referenced this pull request Oct 10, 2023
Downstream I'm getting this `SINK` value due to
the fact that `sinkURL` is now an `Addressable`:

```
        apiVersion: serving.knative.dev/v1
        kind: Service
        metadata:
          name: sink-nwvhvrgz
          namespace: test-fbszrpbn
        spec:
          template:
            spec:
              containers:
                - env:
                    - name: NAME
                      value: sink-nwvhvrgz
                    - name: NAMESPACE
                      value: test-fbszrpbn
                    - name: SINK
                      value:
                        <nil> http://sink-nwvhvrgz-twzpetzr.test-fbszrpbn.svc.cluster.local <nil>: null
                    - name: EVENT_GENERATORS
                      value: forwarder
                    - name: EVENT_LOGS
                      value: logger
                    - name: K_CONFIG_LOGGING
                      value: '{"zap-logger-config":"{\n  \"level\": \"info\",\n  \"development\": false,\n  \"outputPaths\": [\"stdout\"],\n  \"errorOutputPaths\": [\"stderr\"],\n  \"encoding\": \"json\",\n  \"encoderConfig\": {\n    \"timeKey\": \"ts\",\n    \"levelKey\": \"level\",\n    \"nameKey\": \"logger\",\n    \"callerKey\": \"caller\",\n    \"messageKey\": \"msg\",\n    \"stacktraceKey\": \"stacktrace\",\n    \"lineEnding\": \"\",\n    \"levelEncoder\": \"\",\n    \"timeEncoder\": \"iso8601\",\n    \"durationEncoder\": \"\",\n    \"callerEncoder\": \"\"\n  }\n}\n"}'
                    - name: K_CONFIG_TRACING
                      value: '{"backend":"zipkin","debug":"false","sample-rate":"1","zipkin-endpoint":"http://cluster-collector-collector-headless.istio-system.svc:9411/api/v2/spans"}'
                  image: quay.io/openshift-knative/eventing/eventshub:v1.10
                  imagePullPolicy: IfNotPresent
                  name: eventshub-forwarder
              serviceAccountName: sink-nwvhvrgz
```

Signed-off-by: Pierangelo Di Pilato <[email protected]>
@pierDipi
pierDipi deleted the fix-forwarder-url branch October 10, 2023 09:45
@pierDipi
pierDipi restored the fix-forwarder-url branch February 19, 2025 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants