Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

single pod deployments #282

Merged
merged 2 commits into from
May 10, 2021

Conversation

pohly
Copy link
Contributor

@pohly pohly commented May 3, 2021

What type of PR is this?
/kind cleanup

What this PR does / why we need it:

We want to show (and, in Kubernetes, test) deployments with all sidecars and driver in the same pod. We still want to test with individual pods to ensure that RBAC rules work, therefore we need both flavors.

Which issue(s) this PR fixes:
Fixes #192

Special notes for your reviewer:

Based on PR #281

Depends on an updated prow.sh and new Prow jobs for the non-default deployments.

Does this PR introduce a user-facing change?:

The deploy/kubernetes-x.yy deployments use one pod for all sidecars and the driver. Deploying with separate pods is still supported though the deploy/kubernetes-x.yy-prow deployments, for testing of RBAC rules with Prow.

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 3, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: pohly

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

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels May 3, 2021
pohly added a commit to pohly/test-infra that referenced this pull request May 3, 2021
kubernetes-csi/csi-driver-host-path#282
introduces two kinds of deployments, with one pod for sidecar and
driver (now the default) individual pods for sidecars and
drivers (what used to be the default, now in a "-prow" flavor for
testing with Prow). We want to test both flavors before merging
and periodically.
@pohly
Copy link
Contributor Author

pohly commented May 4, 2021

/test pull-kubernetes-csi-csi-driver-host-path-1-21-on-kubernetes-1-21

pohly added a commit to pohly/test-infra that referenced this pull request May 4, 2021
kubernetes-csi/csi-driver-host-path#282
introduces two kinds of deployments, with one pod for sidecar and
driver (now the default) and individual pods for sidecars and
drivers (what used to be the default, now in a "-prow" flavor for
testing with Prow). We want to test both flavors before merging
and periodically.
pohly added a commit to pohly/test-infra that referenced this pull request May 4, 2021
kubernetes-csi/csi-driver-host-path#282
introduces two kinds of deployments, with one pod for sidecar and
driver (now the default) and individual pods for sidecars and
drivers (what used to be the default, now in a "-prow" flavor for
testing with Prow). We want to test both flavors before merging
and periodically.
pohly added a commit to pohly/test-infra that referenced this pull request May 4, 2021
kubernetes-csi/csi-driver-host-path#282
introduces two kinds of deployments, with one pod for sidecar and
driver (now the default) and individual pods for sidecars and
drivers (what used to be the default, now in a "-prow" flavor for
testing with Prow). We want to test both flavors before merging
and periodically.
pohly added a commit to pohly/test-infra that referenced this pull request May 4, 2021
kubernetes-csi/csi-driver-host-path#282
introduces two kinds of deployments, with one pod for sidecar and
driver (now the default) and individual pods for sidecars and
drivers (what used to be the default, now in a "-test" flavor for
testing with Prow). We want to test both flavors before merging
and periodically.
@pohly
Copy link
Contributor Author

pohly commented May 5, 2021

/retest

@pohly pohly force-pushed the single-pod-deployments branch 2 times, most recently from b2bdc34 to 43c5d7e Compare May 5, 2021 07:20
pohly added 2 commits May 5, 2021 13:06
All deployments are greater than 1.16, therefore we can deploy
csi-hostpath-snapshotclass.yaml unconditionally.
The kubernetes-x.yy deployments now use the same pod for driver and
sidecars, which is the usual way of deploying them.

The alternative "-prow" deployments use separate pods for them to test
that the individual RBAC rules are correct.
@pohly pohly changed the title WIP: single pod deployments single pod deployments May 5, 2021
@k8s-ci-robot k8s-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 May 5, 2021
@pohly
Copy link
Contributor Author

pohly commented May 5, 2021

/retest

Test flake (?) in https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-csi_csi-driver-host-path/282/pull-kubernetes-csi-csi-driver-host-path-1-21-test-on-kubernetes-1-21/1389899497311571968: "External Storage [Driver: hostpath.csi.k8s.io] [Testpattern: Dynamic PV (default fs)] subPath should support existing directories when readOnly specified in the volumeSource"

@jsafrane
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 10, 2021
@k8s-ci-robot k8s-ci-robot merged commit cb8f3ca into kubernetes-csi:master May 10, 2021
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consolidate all the hostpath driver specs into one pod
3 participants