Skip to content

⚠️ Move .spec.install.namespace and .spec.install.serviceAccount to .spec.namespace and .spec.serviceAccount #1439

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

Merged

Conversation

everettraven
Copy link
Contributor

Description

Move .spec.install.namespace and .spec.install.serviceAccount to .spec.namespace and .spec.serviceAccount, updates descriptions of those fields, and makes .spec.install optional.

Immediate follow up to #1404

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@everettraven everettraven requested a review from a team as a code owner November 8, 2024 21:31
Copy link

netlify bot commented Nov 8, 2024

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 2774cf3
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/672e9f4cea9be10008ec5e4e
😎 Deploy Preview https://deploy-preview-1439--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@everettraven everettraven marked this pull request as draft November 8, 2024 21:31
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 8, 2024
@@ -43,6 +43,34 @@ const (

// ClusterExtensionSpec defines the desired state of ClusterExtension
type ClusterExtensionSpec struct {
// namespace is a reference to a Kubernetes namespace.
// This is the namespace the provided ServiceAccount must exist.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// This is the namespace the provided ServiceAccount must exist.
// This is the namespace in which the provided ServiceAccount must exist.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

errMsg string
}{
{
"install specified, nothing configured",
Copy link
Member

Choose a reason for hiding this comment

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

Add field names to the struct instances?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@everettraven everettraven force-pushed the api/namespace-sa-root branch from 1685475 to f6dd2eb Compare November 8, 2024 22:43
@everettraven everettraven marked this pull request as ready for review November 8, 2024 22:43
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 8, 2024
Copy link
Member

@LalatenduMohanty LalatenduMohanty left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 8, 2024
Signed-off-by: everettraven <[email protected]>
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Nov 8, 2024
Copy link

openshift-ci bot commented Nov 8, 2024

New changes are detected. LGTM label has been removed.

Copy link

codecov bot commented Nov 8, 2024

Codecov Report

Attention: Patch coverage is 53.33333% with 7 lines in your changes missing coverage. Please review.

Project coverage is 74.88%. Comparing base (6c2be08) to head (2774cf3).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
api/v1alpha1/zz_generated.deepcopy.go 16.66% 4 Missing and 1 partial ⚠️
internal/applier/helm.go 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1439      +/-   ##
==========================================
- Coverage   74.91%   74.88%   -0.04%     
==========================================
  Files          42       42              
  Lines        3237     3241       +4     
==========================================
+ Hits         2425     2427       +2     
- Misses        639      643       +4     
+ Partials      173      171       -2     
Flag Coverage Δ
e2e 51.95% <53.33%> (+0.02%) ⬆️
unit 57.17% <0.00%> (-0.11%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@joelanford
Copy link
Member

Any docs updates necessary for this change?

@everettraven
Copy link
Contributor Author

Any docs updates necessary for this change?

Ah, probably. I'll look into this on Monday.

Copy link
Member

@m1kola m1kola left a comment

Choose a reason for hiding this comment

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

Looks good to me.

I see there is a question about docs - I had a look and our docs are broken already unfortunately (even getting started page). It is because previous changes were not reflected in the docs (e.g. pollInterval being renamed to pollIntervalMinutes).

I'm going to merge this PR as is and will go through the docs in the afternoon.

@LalatenduMohanty LalatenduMohanty added this pull request to the merge queue Nov 11, 2024
Merged via the queue into operator-framework:main with commit aaa0e00 Nov 11, 2024
15 of 19 checks passed
@grokspawn
Copy link
Contributor

Related to #1426

m1kola pushed a commit to m1kola/operator-controller that referenced this pull request Nov 12, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

Our upgrade-e2e job need to be updated to make take the
changes into account.

Relevant PRs:
* operator-framework#1439
* operator-framework#1434

Signed-off-by: Mikalai Radchuk <[email protected]>
@m1kola m1kola mentioned this pull request Nov 12, 2024
4 tasks
github-merge-queue bot pushed a commit that referenced this pull request Nov 12, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

Our upgrade-e2e job need to be updated to make take the
changes into account.

Relevant PRs:
* #1439
* #1434

Signed-off-by: Mikalai Radchuk <[email protected]>
m1kola pushed a commit to m1kola/operator-controller that referenced this pull request Nov 12, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

This commit mostly focuses on updating the documentation to
reflect API changes. This includes making sure that snippets
and example outputs match the current state of the project.

Relevant PRs:
* operator-framework#1439
* operator-framework#1434

Together with fixing snippets & outputs this fixes some rendering issues.

Signed-off-by: Mikalai Radchuk <[email protected]>
m1kola pushed a commit to m1kola/operator-controller that referenced this pull request Nov 12, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

This commit mostly focuses on updating the documentation to
reflect API changes. This includes making sure that snippets
and example outputs match the current state of the project.

Relevant PRs:
* operator-framework#1439
* operator-framework#1434

Signed-off-by: Mikalai Radchuk <[email protected]>
m1kola pushed a commit to m1kola/operator-controller that referenced this pull request Nov 13, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

This commit mostly focuses on updating the documentation to
reflect API changes. This includes making sure that snippets
and example outputs match the current state of the project.

Relevant PRs:
* operator-framework#1439
* operator-framework#1434

Signed-off-by: Mikalai Radchuk <[email protected]>
m1kola pushed a commit to m1kola/operator-controller that referenced this pull request Nov 13, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

This commit mostly focuses on updating the documentation to
reflect API changes. This includes making sure that snippets
and example outputs match the current state of the project.

Relevant PRs:
* operator-framework#1439
* operator-framework#1434

Signed-off-by: Mikalai Radchuk <[email protected]>
m1kola pushed a commit to m1kola/operator-controller that referenced this pull request Nov 13, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

This commit mostly focuses on updating the documentation to
reflect API changes. This includes making sure that snippets
and example outputs match the current state of the project.

Relevant PRs:
* operator-framework#1439
* operator-framework#1434

Signed-off-by: Mikalai Radchuk <[email protected]>
m1kola pushed a commit to m1kola/operator-controller that referenced this pull request Nov 13, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

This commit mostly focuses on updating the documentation to
reflect API changes. This includes making sure that snippets
and example outputs match the current state of the project.

Relevant PRs:
* operator-framework#1439
* operator-framework#1434

Signed-off-by: Mikalai Radchuk <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Nov 14, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

This commit mostly focuses on updating the documentation to
reflect API changes. This includes making sure that snippets
and example outputs match the current state of the project.

Relevant PRs:
* #1439
* #1434

Signed-off-by: Mikalai Radchuk <[email protected]>
m1kola pushed a commit to m1kola/operator-controller that referenced this pull request Nov 14, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

This commit mostly focuses on updating the documentation to
reflect API changes. This includes making sure that snippets
and example outputs match the current state of the project.

Relevant PRs:
* operator-framework#1439
* operator-framework#1434

Signed-off-by: Mikalai Radchuk <[email protected]>
@m1kola m1kola mentioned this pull request Nov 14, 2024
4 tasks
m1kola pushed a commit to m1kola/operator-controller that referenced this pull request Nov 14, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

This commit mostly focuses on updating the documentation to
reflect API changes. This includes making sure that snippets
and example outputs match the current state of the project.

Relevant PRs:
* operator-framework#1439
* operator-framework#1434

Signed-off-by: Mikalai Radchuk <[email protected]>
m1kola pushed a commit to m1kola/operator-controller that referenced this pull request Nov 14, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

This commit mostly focuses on updating the documentation to
reflect API changes. This includes making sure that snippets
and example outputs match the current state of the project.

Relevant PRs:
* operator-framework#1439
* operator-framework#1434

Signed-off-by: Mikalai Radchuk <[email protected]>
m1kola pushed a commit to m1kola/operator-controller that referenced this pull request Nov 14, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

This commit mostly focuses on updating the documentation to
reflect API changes. This includes making sure that snippets
and example outputs match the current state of the project.

Relevant PRs:
* operator-framework#1439
* operator-framework#1434

Signed-off-by: Mikalai Radchuk <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Nov 14, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

This commit mostly focuses on updating the documentation to
reflect API changes. This includes making sure that snippets
and example outputs match the current state of the project.

Relevant PRs:
* #1439
* #1434

Signed-off-by: Mikalai Radchuk <[email protected]>
m1kola pushed a commit to m1kola/operator-controller that referenced this pull request Nov 15, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

This commit mostly focuses on updating the documentation to
reflect API changes. This includes making sure that snippets
and example outputs match the current state of the project.

Relevant PRs:
* operator-framework#1439
* operator-framework#1434

Signed-off-by: Mikalai Radchuk <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Nov 15, 2024
There were several intentional breaking changes in the API
which are now included in v0.18.0 release.

This commit mostly focuses on updating the documentation to
reflect API changes. This includes making sure that snippets
and example outputs match the current state of the project.

Relevant PRs:
* #1439
* #1434

Signed-off-by: Mikalai Radchuk <[email protected]>
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.

5 participants