hanicz opened a new pull request, #1279: URL: https://github.com/apache/knox/pull/1279
[KNOX-3360](https://issues.apache.org/jira/browse/KNOX-3360) - New KnoxCLI command to save alias from k8s secret ## What changes were proposed in this pull request? - New KnoxCLI command `create-k8s-alias` that adds k8s secrets as aliases - It can take multiple secret names at the same time, optional `--ns` or `--namesapce` flag to specify where the secrets live, it defaults to `knox` - The secret has to have the below structure, topology is optional. ``` alias.name: ... topology: ... alias.value: ... ``` ## How was this patch tested? Unit tests, tested on local kind cluster Secrets ``` apiVersion: v1 kind: Secret metadata: name: stringdatasecret namespace: knox type: Opaque stringData: alias.name: my-alias2 topology: sandbox alias.value: s3cr3t --- apiVersion: v1 kind: Secret metadata: name: datasecret namespace: knox type: Opaque data: alias.name: bXktYWxpYXM= alias.value: czNjcjN0 ``` `./knoxcli.sh create-k8s-alias stringdatasecret datasecret` ## Integration Tests N/A ## UI changes N/A -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
