Skip to content

[kubeadm] Support HostPathType of ExtraVolumes in the kubeadm configuration file.#63452

Merged
k8s-github-robot merged 2 commits intokubernetes:masterfrom
xlgao-zju:add-path-type
May 9, 2018
Merged

[kubeadm] Support HostPathType of ExtraVolumes in the kubeadm configuration file.#63452
k8s-github-robot merged 2 commits intokubernetes:masterfrom
xlgao-zju:add-path-type

Conversation

@xlgao-zju
Copy link
Copy Markdown
Contributor

@xlgao-zju xlgao-zju commented May 5, 2018

What this PR does / why we need it:

Now we use DirectoryOrCreate as a default HostPathType in the kubeadm configuration file, when we create user's extra volumes(like apiServerExtraVolumes). So, user can't use other HostPathType. In order to let users use other types of HostPath(like File), I think we should support HostPathType of ExtraVolumes in the kubeadm configuration file.

Which issue(s) this PR fixes

ref kubernetes/kubeadm#788

Special notes for your reviewer:

Release note:

NONE

Signed-off-by: Xianglin Gao <xianglin.gxl@alibaba-inc.com>
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 5, 2018
@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. area/kubeadm sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. labels May 5, 2018
@xlgao-zju xlgao-zju changed the title Support HostPathType of ExtraVolumes in the kubeadm configuration file. [kubeadm] Support HostPathType of ExtraVolumes in the kubeadm configuration file. May 5, 2018
@xlgao-zju
Copy link
Copy Markdown
Contributor Author

Ping @dmmcquay @xiangpengzhao

@dims
Copy link
Copy Markdown
Member

dims commented May 7, 2018

/ok-to-test

@k8s-ci-robot k8s-ci-robot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label May 7, 2018
@timothysc
Copy link
Copy Markdown
Contributor

@kubernetes/sig-cluster-lifecycle-pr-reviews

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.

Where is this defaulted, and what happens if it's an empty string?

Copy link
Copy Markdown
Contributor Author

@xlgao-zju xlgao-zju May 8, 2018

Choose a reason for hiding this comment

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

@timothysc The default value is an empty string. And it will create a volume like this:

volumes:
- hostPath:
      path: /foo/bar
      type: ""
   name: test

And this will have the same behavior as the volume in which we do not specify the type of hostPath.

Copy link
Copy Markdown
Contributor

@timothysc timothysc May 8, 2018

Choose a reason for hiding this comment

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

/cc @liztio

B/c it's affecting config. You're basically adding a string for a v1-type. Why wouldn't you use the type itself?

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@timothysc: GitHub didn't allow me to request PR reviews from the following users: liztio.

Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs.

Details

In response to this:

/cc @liztio

B/c it's affecting config. You're basically adding a string for a v1-type. Why wouldn't you have the type itself?

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.

Signed-off-by: Xianglin Gao <xianglin.gxl@alibaba-inc.com>
@xlgao-zju
Copy link
Copy Markdown
Contributor Author

xlgao-zju commented May 9, 2018

@timothysc I updated this PR and use v1.HostPathType instead of string.

Copy link
Copy Markdown
Contributor

@timothysc timothysc left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 9, 2018
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: timothysc, xlgao-zju

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 9, 2018
@k8s-github-robot
Copy link
Copy Markdown

/test all [submit-queue is verifying that this PR is safe to merge]

@k8s-github-robot
Copy link
Copy Markdown

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here.

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. area/kubeadm cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants