@bifos/nhncloud-cli 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/index.js +1041 -296
- package/package.json +1 -1
- package/skills/nhncloud-cli/SKILL.md +2 -4
- package/skills/nhncloud-cli/references/apigateway.md +7 -42
- package/skills/nhncloud-cli/references/common.md +14 -84
- package/skills/nhncloud-cli/references/deploy.md +2 -39
- package/skills/nhncloud-cli/references/iaas.md +56 -9
- package/skills/nhncloud-cli/references/loadbalancer.md +0 -42
- package/skills/nhncloud-cli/references/logncrash.md +3 -48
- package/skills/nhncloud-cli/references/ncr.md +0 -22
- package/skills/nhncloud-cli/references/ncs.md +2 -42
- package/skills/nhncloud-cli/references/nks.md +0 -9
- package/skills/nhncloud-cli/references/troubleshooting.md +15 -23
|
@@ -11,17 +11,21 @@
|
|
|
11
11
|
5. exit code를 확인한다.
|
|
12
12
|
6. 서비스별 인증 모델을 대조한다.
|
|
13
13
|
|
|
14
|
+
`nhncloud doctor`는 자격증명과 공개 스킬 설치 상태를 오프라인에서 진단한다.
|
|
15
|
+
|
|
14
16
|
## 인증 모델
|
|
15
17
|
|
|
16
18
|
| 서비스 | 비밀 | 인증 방식 |
|
|
17
19
|
|--------|------|-----------|
|
|
18
20
|
| Log & Crash 검색/export | appkey 와 공통 UAK id/secret | UAK OAuth `X-NHN-Authorization: Bearer <token>` |
|
|
19
21
|
| Log & Crash send | appkey | body `projectName=appkey`, 인증 헤더 없음 |
|
|
20
|
-
| Deploy | UAK id 와 secret | OAuth Bearer token |
|
|
22
|
+
| Deploy | UAK id 와 secret, Deploy appkey | OAuth Bearer token |
|
|
21
23
|
| Instance/network/volume/floatingip | tenantId, username, API password | Keystone `X-Auth-Token` |
|
|
22
24
|
| NKS | tenantId, username, API password | Keystone `X-Auth-Token` 과 container-infra API version |
|
|
23
25
|
| NCR registry | UAK id, secret, NCR appkey | `X-TC-AUTHENTICATION-*` |
|
|
24
26
|
| NCR images/tags | UAK id 와 secret | HTTP Basic Auth to Harbor REST |
|
|
27
|
+
| NCS | UAK id 와 secret, NCS appkey | OAuth Bearer token (`X-NHN-Authorization`) |
|
|
28
|
+
| API Gateway | UAK id 와 secret, API Gateway appkey | OAuth Bearer token (`X-NHN-Authorization`) |
|
|
25
29
|
|
|
26
30
|
## Exit code
|
|
27
31
|
|
|
@@ -34,13 +38,7 @@
|
|
|
34
38
|
|
|
35
39
|
## Profile 누락
|
|
36
40
|
|
|
37
|
-
profile
|
|
38
|
-
|
|
39
|
-
1. `--profile <name>`
|
|
40
|
-
2. `NHNCLOUD_PROFILE`
|
|
41
|
-
3. `~/.nhncloud/config.json`의 `defaultProfile`
|
|
42
|
-
4. `default`
|
|
43
|
-
|
|
41
|
+
profile 선택 순서는 [Profile 우선순위](common.md#profile-우선순위)를 확인한다.
|
|
44
42
|
자동화에서 의도와 다른 profile이 쓰이면 `--profile`을 명시한다.
|
|
45
43
|
|
|
46
44
|
## Region mismatch
|
|
@@ -57,9 +55,10 @@ nhncloud ncr list --region kr2 --json
|
|
|
57
55
|
|
|
58
56
|
## JSON shape 혼동
|
|
59
57
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
서비스와 명령에 따라 API wrapper 처리 방식이 다르다.
|
|
59
|
+
`instance get --json`은 `.server.status`가 아니라 `.status`를 반환하지만, NKS 단건·설정 조회는 raw 객체를 보존한다.
|
|
60
|
+
NCR의 Harbor 이미지·태그 조회에는 NHN 공통 wrapper 언랩을 적용하지 않는다.
|
|
61
|
+
jq path를 쓰기 전에 `--json` 원문을 확인한다.
|
|
63
62
|
|
|
64
63
|
```bash
|
|
65
64
|
nhncloud instance get <instance-id> --json | jq keys
|
|
@@ -71,9 +70,9 @@ nhncloud ncr list --json | jq '.[0] | keys'
|
|
|
71
70
|
- `--from`은 최근 90일 이내여야 한다.
|
|
72
71
|
- `--to - --from` 범위는 31일 이하여야 한다.
|
|
73
72
|
- `--page`는 0만 허용한다. 다음 페이지는 JSON의 `nextCursor`를 `--cursor`로 그대로 전달한다.
|
|
74
|
-
- 검색 `--size`는 1
|
|
75
|
-
- export `--size`는 폐기 예정 호환 옵션이며 10
|
|
76
|
-
- export가 중간 실패하면 보존된 원본 오류를 확인하고 검색 범위를
|
|
73
|
+
- 검색 `--size`는 1부터 100까지 허용한다.
|
|
74
|
+
- export `--size`는 폐기 예정 호환 옵션이며 10부터 100까지 검증 후 경고하고 v3 요청에서는 무시한다.
|
|
75
|
+
- export가 중간 실패하면 보존된 원본 오류를 확인하고 검색 범위를 줄여 다시 실행한다.
|
|
77
76
|
|
|
78
77
|
검색 또는 export에서 설정 오류가 나면 profile에 다음 두 값이 모두 있는지 확인한다.
|
|
79
78
|
|
|
@@ -82,16 +81,9 @@ nhncloud ncr list --json | jq '.[0] | keys'
|
|
|
82
81
|
|
|
83
82
|
기존 `logncrash.secret`은 Search v3 인증에 사용하지 않는다.
|
|
84
83
|
|
|
85
|
-
## 쓰기 명령
|
|
84
|
+
## 쓰기 명령 확인
|
|
86
85
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
nhncloud instance delete <instance-id> --yes
|
|
91
|
-
nhncloud floatingip delete <floatingip-id> --yes
|
|
92
|
-
nhncloud nks cluster delete <cluster> --yes
|
|
93
|
-
nhncloud nks cluster addon remove <cluster> <addon> --yes
|
|
94
|
-
```
|
|
86
|
+
명령별 확인 방식은 [되돌릴 수 없는 명령](common.md#되돌릴-수-없는-명령)에서 확인한다.
|
|
95
87
|
|
|
96
88
|
## stdout/stderr 분리
|
|
97
89
|
|