Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Extract pingsource-jobrunner deployment into manifest #804

Conversation

aliok
Copy link
Member

@aliok aliok commented Sep 1, 2020

Upstream issue: knative#3035
JIRA: https://issues.redhat.com/browse/SRVKE-473

I don't think it is a good idea to merge this back to upstream 0.14, which was released on May 1st.
Let's fix it here and then I can show this PR to the community.

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 1, 2020
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aliok

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

The pull request process is described here

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 1, 2020
@matzew
Copy link
Member

matzew commented Sep 1, 2020

the 0.14.x matches the 1.8.0 product

I guess we than have to carry this patch on a few more branches?

@aliok
Copy link
Member Author

aliok commented Sep 1, 2020

@matzew
Yes. It actually gets complicated because the pingsource-jobrunner is renamed (and I think even split into 2) in later releases.

Let's focus only on 0.14 for now which is to be in the 1.8.0 that's to be released soon.

@aliok
Copy link
Member Author

aliok commented Sep 1, 2020

Note that, after this is merged:

  • Need to change the manifest in our fork of the upstream operator
  • Need to change the image overrides in the serverless operator

@aliok aliok changed the title [WIP] Extract pingsource-jobrunner deployment into manifest Extract pingsource-jobrunner deployment into manifest Sep 1, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 1, 2020
@@ -0,0 +1 @@
core/deployments/pingsource-jobrunner.yaml
Copy link
Member Author

Choose a reason for hiding this comment

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

Symlink to new deployment yaml file

Comment on lines -59 to -60
- name: JOB_RUNNER_IMAGE
value: ko://knative.dev/eventing/cmd/ping/jobrunner
Copy link
Member Author

Choose a reason for hiding this comment

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

This thing is now moved to the manifest and created by the operator.
No need to pass this around.

@@ -0,0 +1,70 @@
# Copyright 2018 The Knative Authors
Copy link
Member Author

Choose a reason for hiding this comment

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

New deployment for the pingsource jobrunner. This is to be included in the manifest.

# See the License for the specific language governing permissions and
# limitations under the License.

apiVersion: apps/v1
Copy link
Member Author

Choose a reason for hiding this comment

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

Comment on lines +1747 to +1751
apiVersion: apps/v1
kind: Deployment
metadata:
name: pingsource-jobrunner
namespace: knative-eventing
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure if I should touch should file manually...

Comment on lines +1747 to +1755
apiVersion: apps/v1
kind: Deployment
metadata:
name: pingsource-jobrunner
namespace: knative-eventing
labels:
eventing.knative.dev/release: devel
spec:
replicas: 0
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure if I should touch this file or if this stuff will be generated.

return nil, fmt.Errorf("error getting job runner deployment %v", err)
} else if podSpecChanged(d.Spec.Template.Spec, expected.Spec.Template.Spec) {
d.Spec.Template.Spec = expected.Spec.Template.Spec
} else if *d.Spec.Replicas != 1 {
Copy link
Member Author

Choose a reason for hiding this comment

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

Prev approach: create the deployment for the job runner
Now: scale up the already created deployment

@openshift-ci-robot
Copy link

@aliok: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-aws-ocp-45 4d7355a link /test e2e-aws-ocp-45

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

@aliok
Copy link
Member Author

aliok commented Sep 2, 2020

/close

Won't fix this problem for this version. Will be fixed in 1.10 (upstream 1.16)

@openshift-ci-robot
Copy link

@aliok: Closed this PR.

In response to this:

/close

Won't fix this problem for this version. Will be fixed in 1.10 (upstream 1.16)

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.

@aliok aliok deleted the SRVKE-473-pingsource-jobrunner branch April 28, 2021 06:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants