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

Create the addon SA before the deployment #460

Merged

Conversation

skitt
Copy link
Member

@skitt skitt commented Jul 27, 2022

The agent uses a ManifestWork to deploy the agent on the hub; this
ManifestWork is charged with creating the roles, role bindings,
service account, and deployment for the addon. In some cases, the
deployment fails because the service account hasn't been created by
the time the pod replicaset is instantiated.

This reorders the ManifestWork entries so that the SA comes first,
followed by the roles and bindings, and the deployment comes last.
This should ensure that the SA is created before any resource which
needs it.

Signed-off-by: Stephen Kitt skitt@redhat.com

The agent uses a ManifestWork to deploy the agent on the hub; this
ManifestWork is charged with creating the roles, role bindings,
service account, and deployment for the addon. In some cases, the
deployment fails because the service account hasn't been created by
the time the pod replicaset is instantiated.

This reorders the ManifestWork entries so that the SA comes first,
followed by the roles and bindings, and the deployment comes last.
This should ensure that the SA is created before any resource which
needs it.

Signed-off-by: Stephen Kitt <skitt@redhat.com>
@sonarcloud
Copy link

sonarcloud bot commented Jul 27, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@nyechiel
Copy link
Member

/cc @sridhargaddam @tpantelis

@nyechiel nyechiel added this to Review in progress in Submariner ACM integration Jul 27, 2022
@sridhargaddam
Copy link
Contributor

/lgtm

Submariner ACM integration automation moved this from Review in progress to Reviewer approved Jul 27, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 27, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tpantelis

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

@skitt
Copy link
Member Author

skitt commented Jul 27, 2022

/cherrypick release-2.5
/cherrypick release-2.4

@openshift-cherrypick-robot

@skitt: once the present PR merges, I will cherry-pick it on top of release-2.5 in a new PR and assign it to you.

In response to this:

/cherrypick release-2.5
/cherrypick release-2.4

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.

@skitt
Copy link
Member Author

skitt commented Jul 27, 2022

/cherrypick release-2.4

@openshift-cherrypick-robot

@skitt: once the present PR merges, I will cherry-pick it on top of release-2.4 in a new PR and assign it to you.

In response to this:

/cherrypick release-2.4

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 71bea49 into stolostron:main Jul 27, 2022
Submariner ACM integration automation moved this from Reviewer approved to Done Jul 27, 2022
@openshift-cherrypick-robot

@skitt: new pull request created: #461

In response to this:

/cherrypick release-2.4

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

@skitt: new pull request created: #462

In response to this:

/cherrypick release-2.5
/cherrypick release-2.4

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.

@skitt skitt deleted the addon-sa-before-deployment branch July 27, 2022 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

6 participants