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

Change type for volumeMount in CRD to VolumeMount #119

Merged
merged 3 commits into from
Apr 9, 2021

Conversation

kkujawa-sumo
Copy link
Contributor

@kkujawa-sumo kkujawa-sumo commented Mar 31, 2021

Summary of changes:

  • crd: change type for volumeMount to VolumeMount

  • operator: adjust code to volumeMount type

  • tests: extend tests to cover volume mount options

  • tests: add MountPath to all TailingSidecar resources
    MountPath is required parameter for VolumeMount

  • tests: add target to Makefile and template to test VolumeMount update

  • chart,templates: set reinvocationPolicy to Never, with reinvocationPolicy set to ifNeeded kube-apiserver calls
    mutating webhook multiple times but changes from previous call were not applied

  • tests: add kubectl describe command for easier debugging of broken tests

Related to #55

@kkujawa-sumo kkujawa-sumo force-pushed the kk-volume-mount-type branch 3 times, most recently from d052f59 to 10e5edb Compare March 31, 2021 15:40
@kkujawa-sumo kkujawa-sumo reopened this Mar 31, 2021
@kkujawa-sumo kkujawa-sumo marked this pull request as ready for review March 31, 2021 15:44
@kkujawa-sumo kkujawa-sumo requested a review from a team as a code owner March 31, 2021 15:44
@kkujawa-sumo kkujawa-sumo reopened this Mar 31, 2021
@kkujawa-sumo kkujawa-sumo marked this pull request as draft March 31, 2021 15:58
@kkujawa-sumo kkujawa-sumo force-pushed the kk-volume-mount-type branch 10 times, most recently from 1b3552c to de2363a Compare April 6, 2021 17:53
operator: adjust code to volumeMount type

tests: extend tests to cover volume mount options

tests: add MountPath to all TailingSidecar resources
MountPath is required parameter for VolumeMount

tests: add target to Makefile and template to test VolumeMount update
with reinvocationPolicy set to ifNeeded kube-apiserver calls
mutating webhook multiple times but changes from previous call were not applied
@kkujawa-sumo kkujawa-sumo force-pushed the kk-volume-mount-type branch 2 times, most recently from 27fb5d9 to 972c658 Compare April 6, 2021 20:31
@kkujawa-sumo kkujawa-sumo marked this pull request as ready for review April 6, 2021 20:41
@@ -9,11 +9,11 @@ readonly NAMESPACE="tailing-sidecar-system"
readonly TIME=300

wait_for_all_pods_running ${NAMESPACE} ${TIME}
echo "$(kubectl describe pods -n ${NAMESPACE})"
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the echo needed here? Why not just do kubectl describe pods -n ${NAMESPACE}?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is not needed. Thanks for catching this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants