k8s CustomResource previews.preview.jenkins.io should not contain the credentials IMO.
The caller (ex: jx preview gc) should retrieve them from secret and change the url instead of saving credentials in plain text (the same way it's done in the first place to create the cloneURL now).
k8s CustomResource previews.preview.jenkins.io should not contain the credentials IMO.
The caller (ex:
jx preview gc) should retrieve them from secret and change the url instead of saving credentials in plain text (the same way it's done in the first place to create the cloneURL now).