Skip to content

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 pohly force-pushed the single-pod-deployments branch from 12d9b6e to b813602 Compare May 4, 2021 11:53
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 force-pushed the single-pod-deployments branch from 43c5d7e to 194132f Compare May 5, 2021 11:07
@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
darshansreenivas pushed a commit to darshansreenivas/csi-driver-host-path that referenced this pull request Oct 15, 2025
74502e54 Merge pull request kubernetes-csi#278 from liangyuanpeng/migrate_k8s_testimages
53344305 Merge pull request kubernetes-csi#281 from kubernetes-csi/dependabot/github_actions/actions/checkout-5
458ce146 Bump actions/checkout from 4 to 5
5f38a907 Merge pull request kubernetes-csi#282 from rhrmo/update-go-1.24.6
579f6242 Update go to 1.24.6
5ec1a52b use gcr.io/k8s-staging-test-infra instead of gcr.io/k8s-testimages
74e066a8 Merge pull request kubernetes-csi#279 from Aishwarya-Hebbar/update-csi-prow-version
6f236be7 Update CSI prow driver version to v1.17.0
0ee55894 Merge pull request kubernetes-csi#280 from xing-yang/update_go_1.24.4
9af10153 update to go 1.24.4
f5fec3e3 Merge pull request kubernetes-csi#275 from chrishenzie/emeritus
c5d285db Remove chrishenzie from kubernetes-csi-reviewers

git-subtree-dir: release-tools
git-subtree-split: 74502e544bc6a17820892c0d490e8f0b59462998
darshansreenivas added a commit to darshansreenivas/csi-driver-host-path that referenced this pull request Oct 15, 2025
74502e54 Merge pull request kubernetes-csi#278 from liangyuanpeng/migrate_k8s_testimages
53344305 Merge pull request kubernetes-csi#281 from kubernetes-csi/dependabot/github_actions/actions/checkout-5
458ce146 Bump actions/checkout from 4 to 5
5f38a907 Merge pull request kubernetes-csi#282 from rhrmo/update-go-1.24.6
579f6242 Update go to 1.24.6
5ec1a52b use gcr.io/k8s-staging-test-infra instead of gcr.io/k8s-testimages
74e066a8 Merge pull request kubernetes-csi#279 from Aishwarya-Hebbar/update-csi-prow-version
6f236be7 Update CSI prow driver version to v1.17.0
0ee55894 Merge pull request kubernetes-csi#280 from xing-yang/update_go_1.24.4
9af10153 update to go 1.24.4
f5fec3e3 Merge pull request kubernetes-csi#275 from chrishenzie/emeritus
c5d285db Remove chrishenzie from kubernetes-csi-reviewers

git-subtree-dir: release-tools
git-subtree-split: 74502e544bc6a17820892c0d490e8f0b59462998
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