[
https://issues.apache.org/jira/browse/KNOX-3360?focusedWorklogId=1026844&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-1026844
]
ASF GitHub Bot logged work on KNOX-3360:
----------------------------------------
Author: ASF GitHub Bot
Created on: 25/Jun/26 14:38
Start Date: 25/Jun/26 14:38
Worklog Time Spent: 10m
Work Description: 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
Issue Time Tracking
-------------------
Worklog Id: (was: 1026844)
Remaining Estimate: 0h
Time Spent: 10m
> New KnoxCLI command to save alias from k8s secret
> -------------------------------------------------
>
> Key: KNOX-3360
> URL: https://issues.apache.org/jira/browse/KNOX-3360
> Project: Apache Knox
> Issue Type: New Feature
> Components: KnoxCLI
> Affects Versions: 2.1.0
> Reporter: Tamás Hanicz
> Assignee: Tamás Hanicz
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)