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

Bug 1912888: Add recycler pod template as a ConfigMap #488

Merged
merged 2 commits into from Jan 5, 2021

Conversation

bertinatto
Copy link
Member

@bertinatto bertinatto commented Dec 14, 2020

  • Reverts a45783f. This relied on a template file created by MCO, which updates after KCMO
  • Creates a ConfigMap with the recycler template in it
  • Projects the ConfigMap as a file to be used by the KCM pod
  • Passes the projected template file to KCM as an extended arg

@openshift-ci-robot openshift-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Dec 14, 2020
@bertinatto bertinatto force-pushed the fix-recycler branch 2 times, most recently from 7dc9c5c to e7fc332 Compare December 15, 2020 13:44
value: quay.io/openshift/origin-cluster-policy-controller:v4.3
value: quay.io/openshift/origin-cluster-policy-controller:latest
- name: TOOLS_IMAGE
value: quay.io/openshift/origin-tools:latest
Copy link
Contributor

@sjenning sjenning Dec 15, 2020

Choose a reason for hiding this comment

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

This value is a placeholder for replacement mapped by https://github.com/openshift/cluster-kube-controller-manager-operator/blob/master/manifests/image-references. We need to add the tools image to that ImageStream (and revert all the other changes to existing image values in this file, I assume were for testing)

Copy link
Member Author

Choose a reason for hiding this comment

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

added

@@ -21,7 +21,3 @@ extendedArguments:
service-cluster-ip-range: {{range .ServiceClusterIPRange}}
- {{.}}{{end}}
{{end}}
pv-recycler-pod-template-filepath-nfs: # bootstrap KCM doesn't need recycler templates
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this assumption no longer valid? If it isn't, you'll need to render out the results.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think it doesn't need it (the upstream template is used instead), but it's no harm if it has it

Copy link
Member Author

Choose a reason for hiding this comment

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

hm, the file isn't available during bootstrap, so it fails indeed. Removed

@@ -30,16 +30,16 @@ spec:
--authentication-kubeconfig=/etc/kubernetes/static-pod-resources/configmaps/controller-manager-kubeconfig/kubeconfig \
--authorization-kubeconfig=/etc/kubernetes/static-pod-resources/configmaps/controller-manager-kubeconfig/kubeconfig \
--client-ca-file=/etc/kubernetes/static-pod-certs/configmaps/client-ca/ca-bundle.crt \
--requestheader-client-ca-file=/etc/kubernetes/static-pod-certs/configmaps/aggregator-client-ca/ca-bundle.crt
--requestheader-client-ca-file=/etc/kubernetes/static-pod-certs/configmaps/aggregator-client-ca/ca-bundle.crt \
--pv-recycler-pod-template-filepath-hostpath=/etc/kubernetes/static-pod-resources/configmaps/kube-controller-manager-recycler-config/recycler-pod.yaml \
Copy link
Contributor

Choose a reason for hiding this comment

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

@soltysh your call. I don't feel strongly about a move here versus the extended args. But half and half seems not-awsome.

Copy link
Member Author

Choose a reason for hiding this comment

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

moved to extended args

Copy link
Member

Choose a reason for hiding this comment

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

👍 for extended args

namespace: openshift-kube-controller-manager
name: kube-controller-manager-recycler-config
data:
recycler-pod.yaml:
Copy link
Contributor

Choose a reason for hiding this comment

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

please directly embed your yaml here. Then you can simply create this configmap.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@bertinatto bertinatto force-pushed the fix-recycler branch 4 times, most recently from b08fec5 to 91f5c6d Compare December 15, 2020 18:45
namespace: openshift-kube-controller-manager
name: kube-controller-manager-recycler-config
data:
recycler-pod.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.

done

value: quay.io/openshift/origin-cluster-policy-controller:v4.3
value: quay.io/openshift/origin-cluster-policy-controller:latest
- name: TOOLS_IMAGE
value: quay.io/openshift/origin-tools:latest
Copy link
Member Author

Choose a reason for hiding this comment

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

added

@@ -21,7 +21,3 @@ extendedArguments:
service-cluster-ip-range: {{range .ServiceClusterIPRange}}
- {{.}}{{end}}
{{end}}
pv-recycler-pod-template-filepath-nfs: # bootstrap KCM doesn't need recycler templates
Copy link
Member Author

Choose a reason for hiding this comment

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

I think it doesn't need it (the upstream template is used instead), but it's no harm if it has it

- name: tools
from:
kind: DockerImage
name: quay.io/openshift/origin-tools:latest
Copy link
Member Author

Choose a reason for hiding this comment

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

is there any harm in using latest instead of pinning a version?

Copy link
Contributor

Choose a reason for hiding this comment

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

the release image building process will replace this image pull path with the tools image from that particular release

@bertinatto bertinatto changed the title WIP: Embed template Add recycler pod template as a ConfigMap Dec 15, 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 Dec 15, 2020
@bertinatto bertinatto force-pushed the fix-recycler branch 2 times, most recently from ce58a65 to 6ad7aa1 Compare December 15, 2020 19:54
@bertinatto
Copy link
Member Author

/test e2e-aws

@bertinatto bertinatto force-pushed the fix-recycler branch 2 times, most recently from 0c6d565 to 915a6e2 Compare December 15, 2020 22:36
@bertinatto
Copy link
Member Author

/hold cancel

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 15, 2020
@sjenning
Copy link
Contributor

/retest

@@ -12,9 +12,9 @@ extendedArguments:
flex-volume-plugin-dir:
- "/etc/kubernetes/kubelet-plugins/volume/exec" # created by machine-config-operator, owned by storage team/hekumar@redhat.com
pv-recycler-pod-template-filepath-nfs:
- "/etc/kubernetes/manifests/recycler-pod.yaml" # created by machine-config-operator, owned by storage team/fbertina@redhat.com
- "/etc/kubernetes/static-pod-resources/configmaps/recycler-config/recycler-pod.yaml"
Copy link
Contributor

Choose a reason for hiding this comment

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

keep a storage team indication and name here.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@@ -14,3 +14,7 @@ spec:
from:
kind: DockerImage
name: quay.io/openshift/origin-cluster-policy-controller:v4.3
- name: tools
Copy link
Contributor

Choose a reason for hiding this comment

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

keep a storage team indication and name here.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@@ -404,6 +410,17 @@ func manageControllerManagerKubeconfig(ctx context.Context, client corev1client.
return resourceapply.ApplyConfigMap(client, recorder, requiredCM)
}

func manageRecycler(ctx context.Context, configMapsGetter corev1client.ConfigMapsGetter, recorder events.Recorder, imagePullSpec string) (*corev1.ConfigMap, bool, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

keep a storage team indication and name here.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@openshift-ci-robot openshift-ci-robot added bugzilla/severity-unspecified Referenced Bugzilla bug's severity is unspecified for the PR. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Jan 5, 2021
@openshift-ci-robot
Copy link

@bertinatto: This pull request references Bugzilla bug 1912888, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.7.0) matches configured target release for branch (4.7.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1912888: Add recycler pod template as a ConfigMap

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.

@bertinatto bertinatto changed the title Bug 1912888: Add recycler pod template as a ConfigMap Bug 1896226: Add recycler pod template as a ConfigMap Jan 5, 2021
@openshift-ci-robot
Copy link

@bertinatto: This pull request references Bugzilla bug 1896226, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.7.0) matches configured target release for branch (4.7.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

Bug 1896226: Add recycler pod template as a ConfigMap

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.

@openshift-ci-robot openshift-ci-robot added bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. and removed bugzilla/severity-unspecified Referenced Bugzilla bug's severity is unspecified for the PR. labels Jan 5, 2021
@bertinatto bertinatto changed the title Bug 1896226: Add recycler pod template as a ConfigMap Add recycler pod template as a ConfigMap Jan 5, 2021
@openshift-ci-robot openshift-ci-robot removed bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Jan 5, 2021
@openshift-ci-robot
Copy link

@bertinatto: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to this:

Add recycler pod template as a ConfigMap

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.

@bertinatto bertinatto changed the title Add recycler pod template as a ConfigMap Bug 1912888: Add recycler pod template as a ConfigMap Jan 5, 2021
@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-unspecified Referenced Bugzilla bug's severity is unspecified for the PR. label Jan 5, 2021
@openshift-ci-robot
Copy link

@bertinatto: This pull request references Bugzilla bug 1912888, which is invalid:

  • expected the bug to target the "4.7.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

Bug 1912888: Add recycler pod template as a ConfigMap

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.

@openshift-ci-robot openshift-ci-robot added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Jan 5, 2021
@bertinatto
Copy link
Member Author

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. and removed bugzilla/severity-unspecified Referenced Bugzilla bug's severity is unspecified for the PR. bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. labels Jan 5, 2021
@openshift-ci-robot
Copy link

@bertinatto: This pull request references Bugzilla bug 1912888, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.7.0) matches configured target release for branch (4.7.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

In response to this:

/bugzilla refresh

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.

@openshift-merge-robot openshift-merge-robot merged commit fad506d into openshift:master Jan 5, 2021
@openshift-ci-robot
Copy link

@bertinatto: All pull requests linked via external trackers have merged:

Bugzilla bug 1912888 has been moved to the MODIFIED state.

In response to this:

Bug 1912888: Add recycler pod template as a ConfigMap

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.

@bertinatto
Copy link
Member Author

/cherry-pick 4.6

@openshift-cherrypick-robot

@bertinatto: cannot checkout 4.6: error checking out 4.6: exit status 1. output: error: pathspec '4.6' did not match any file(s) known to git

In response to this:

/cherry-pick 4.6

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.

@bertinatto
Copy link
Member Author

/cherry-pick release-4.6

@openshift-cherrypick-robot

@bertinatto: new pull request created: #490

In response to this:

/cherry-pick release-4.6

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.

openshift-cherrypick-robot pushed a commit to openshift-cherrypick-robot/machine-config-operator that referenced this pull request Mar 9, 2021
The template is no longer necessary in MCO because now it's embedded in
KCM operator [0].
[0] openshift/cluster-kube-controller-manager-operator#488
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. bugzilla/severity-medium Referenced Bugzilla bug's severity is medium for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants