-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat: Expand install msg on artifacthub #306
Conversation
Signed-off-by: Víctor Cuadrado Juan <[email protected]>
src/policy_artifacthub.rs
Outdated
@@ -375,6 +375,10 @@ fn compose_install(oci_url: String) -> String { | |||
```console | |||
kwctl pull {} | |||
``` | |||
Then, generate the policy manifest and tune it to your liking. For example: | |||
```console | |||
kwctl scaffold manifest -t ClusterAdmissionPolicy registry://{} |
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.
Note that here I needed to add registry://
while for kwctl pull
one doesn't need to.
Opened kubewarden/kwctl#537. Maybe worth fixing it at the same time as this for simplicity.
efc5274
to
4f0c357
Compare
src/policy_artifacthub.rs
Outdated
"#, | ||
oci_url | ||
oci_url, oci_url |
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.
I would change the way we build this string to make use of the new string interpolation used by latest versions of rust. I think it would make things more readable:
Do something like
kwctl scaffold manifest -t ClusterAdmissionPolicy registry://{oci_url}
So that we can drop the line referenced by this comment
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.
TIL, amended the commit.
4f0c357
to
efc5274
Compare
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.
thanks for the quick change!
Signed-off-by: Víctor Cuadrado Juan <[email protected]>
2caac07
to
595d381
Compare
Description
I find the install modal on artifacthub lacking:
https://artifacthub.io/packages/kubewarden/safe-annotations/safe-annotations?modal=install
This is an attempt to improve it, as I was typing too much on my own.
Test
Additional Information
Tradeoff
Potential improvement