-
Notifications
You must be signed in to change notification settings - Fork 200
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
Add readonly property to Tekton Dashboard component #402
Conversation
Hi @MarcusNoble. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
hack/fetch-releases.sh
Outdated
if [[ ${releaseFileName} == "tekton-dashboard-release-readonly" ]]; then | ||
dir="dashboard-readonly" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we create sub-directories in dashboard
dir instead of creating a new directory.
I would prefer that becuase operator-dev has an informal agreement that we keep 1 top level directory per TektonComponent. 🧑💻
overall the pr looks great. |
pkg/reconciler/common/releases.go
Outdated
return filepath.Join(koDataDir, "tekton-dashboard-readonly") | ||
} | ||
return filepath.Join(koDataDir, "tekton-dashboard") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about:
return filepath.Join(koDataDir, "tekton-dashboard-readonly") | |
} | |
return filepath.Join(koDataDir, "tekton-dashboard") | |
return filepath.Join(koDataDir, "tekton-dashboard/tekton-dashboard-readonly") | |
} | |
return filepath.Join(koDataDir, "tekton-dashboard/tekton-dashboard-fullaccess") |
pkg/reconciler/common/releases.go
Outdated
return filepath.Join(koDataDir, "tekton-dashboard-readonly") | ||
} | ||
return filepath.Join(koDataDir, "tekton-dashboard") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about:
return filepath.Join(koDataDir, "tekton-dashboard-readonly") | |
} | |
return filepath.Join(koDataDir, "tekton-dashboard") | |
return filepath.Join(koDataDir, "tekton-dashboard/tekton-dashboard-readonly") | |
} | |
return filepath.Join(koDataDir, "tekton-dashboard/tekton-dashboard-fullaccess") |
Thanks @nikhil-thomas. I've updated with those suggestions. |
/ok-to-test |
/approve |
The following is the coverage report on the affected files.
|
I'm having a bit of trouble running the
Anyone have any ideas what I may be missing? |
@MarcusNoble could you rebase and then try again? :) |
@sm43 Same problem I'm afraid. |
The following is the coverage report on the affected files.
|
Adds an optional boolean property to the TektonDashboard and the TektonConfig CRDs to control which version of the Dashboard manifest is used. If readonly is set to true the manifests with only the read RBAC permissions will be used. Signed-off-by: Vincent Demeester <[email protected]>
@MarcusNoble hum, interesting, I didn't run into this when doing it. I've amended your commit with the fixed codegen/dep updates. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nikhil-thomas, vdemeester 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 |
The following is the coverage report on the affected files.
|
Thanks @vdemeester. I'm guessing it's something I've got messed up in my env. |
Changes
Fixes #399
Adds an optional boolean property to the TektonDashboard and the TektonConfig CRDs to control which variation of the Dashboard manifest is used.
If readonly is set to true the manifests with only the read RBAC permissions will be used.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.
Release Notes