Skip to content

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

Merged
LalatenduMohanty merged 3 commits into
operator-framework:mainfrom
everettraven:api/namespace-sa-root
Nov 11, 2024
Merged

⚠️ Move .spec.install.namespace and .spec.install.serviceAccount to .spec.namespace and .spec.serviceAccount#1439
LalatenduMohanty merged 3 commits into
operator-framework:mainfrom
everettraven:api/namespace-sa-root

Conversation

@everettraven

Copy link
Copy Markdown
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 ownerNovember 8, 2024 21:31
@netlify

netlifyBot commented Nov 8, 2024

Copy link
Copy Markdown

Deploy Preview for olmv1 ready!

NameLink
🔨 Latest commit2774cf3
🔍 Latest deploy loghttps://app.netlify.com/sites/olmv1/deploys/672e9f4cea9be10008ec5e4e
😎 Deploy Previewhttps://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-ciopenshift-ciBot 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
// 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
Copy Markdown
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
Copy Markdown
ContributorAuthor

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
Copy Markdown
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
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Signed-off-by: everettraven <everettraven@gmail.com>
Signed-off-by: everettraven <everettraven@gmail.com>
@everettraven
everettraven marked this pull request as ready for review November 8, 2024 22:43
@openshift-ciopenshift-ciBot 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
LalatenduMohanty
LalatenduMohanty previously approved these changes Nov 8, 2024

@LalatenduMohantyLalatenduMohanty left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@openshift-ciopenshift-ciBot added the lgtm Indicates that a PR is ready to be merged. label Nov 8, 2024
Signed-off-by: everettraven <everettraven@gmail.com>
@openshift-ciopenshift-ciBot removed the lgtm Indicates that a PR is ready to be merged. label Nov 8, 2024
@openshift-ci

Copy link
Copy Markdown

New changes are detected. LGTM label has been removed.

@codecov

codecovBot commented Nov 8, 2024

Copy link
Copy Markdown

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 linesPatch %Lines
api/v1alpha1/zz_generated.deepcopy.go16.66%4 Missing and 1 partial ⚠️
internal/applier/helm.go66.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 
FlagCoverage Δ
e2e51.95% <53.33%> (+0.02%)⬆️
unit57.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
Copy Markdown
Member

Any docs updates necessary for this change?

@everettraven

Copy link
Copy Markdown
ContributorAuthor

Any docs updates necessary for this change?

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

@m1kolam1kola left a comment

Copy link
Copy Markdown
Member

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 aaa0e00Nov 11, 2024
@grokspawn

Copy link
Copy Markdown
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 <mradchuk@redhat.com>
@m1kolam1kola mentioned this pull request Nov 12, 2024
4 tasks
github-merge-queueBot 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 <mradchuk@redhat.com>
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 <mradchuk@redhat.com>
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 <mradchuk@redhat.com>
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 <mradchuk@redhat.com>
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 <mradchuk@redhat.com>
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 <mradchuk@redhat.com>
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 <mradchuk@redhat.com>
github-merge-queueBot 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 <mradchuk@redhat.com>
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 <mradchuk@redhat.com>
@m1kolam1kola 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 <mradchuk@redhat.com>
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 <mradchuk@redhat.com>
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 <mradchuk@redhat.com>
github-merge-queueBot 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 <mradchuk@redhat.com>
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 <mradchuk@redhat.com>
github-merge-queueBot 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 <mradchuk@redhat.com>
Sign up for freeto 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

@everettraven@joelanford@grokspawn@m1kola@LalatenduMohanty