Skip to content

✨ feat(kube): add command to create CCM/CSI secrets#229

Merged
jfbus merged 1 commit into
mainfrom
kube_secret
Jun 26, 2026
Merged

✨ feat(kube): add command to create CCM/CSI secrets#229
jfbus merged 1 commit into
mainfrom
kube_secret

Conversation

@jfbus

@jfbus jfbus commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Description

This PR adds the octl kube secret command to generate secrets required by the CSI driver/CCM/Cluster-API provider.

Type of Change

Please check the relevant option(s):

  • 🐛 Bug fix
  • ✨ New feature
  • 🧹 Code cleanup or refactor
  • 📝 Documentation update
  • 🔧 Build or CI-related change
  • 🔒 Security fix
  • Other (specify):

How Has This Been Tested?

Please describe the test strategy:

  • Manual testing
  • Unit tests
  • Integration tests
  • Not tested yet

Checklist

  • I have followed the Contributing Guidelines
  • I have added tests or explained why they are not needed
  • I have updated relevant documentation (README, examples, etc.)
  • My changes follow the Conventional Commits specification
  • My commits include appropriate Gitmoji

Additional Context

@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown

WARNING : Differences in reference doc 🤔

 docs/reference/octl_kube.md        |  1 +
 docs/reference/octl_kube_secret.md | 59 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 60 insertions(+)
Detailed changes

docs/reference/octl_kube.md

+* [octl kube secret](octl_kube_secret.md)	 - Create secret for CCM or CSI driver deployment

docs/reference/octl_kube_secret.md

new file mode 100644
+## octl kube secret
+
+Create secret for CCM or CSI driver deployment
+
+### Synopsis
+
+Create secret for CCM/CSI driver/Cluster-API provider deployments using the selected AK/SK.
+
+CCM:
+```shell
+octl kube secret --name osc-secret | kubectl apply -f -
+```
+CSI driver:
+```shell
+octl kube secret --name osc-csi-bsu | kubectl apply -f -
+```
+Cluster-API:
+```shell
+octl kube secret --name cluster-api-provider-outscale --namespace cluster-api-provider-outscale-system | kubectl apply -f -
+```
+
+
+```
+octl kube secret [flags]
+```
+
+### Options
+
+```
+  -h, --help               help for secret
+      --name string        name of secret
+      --namespace string   namespace of secret (default "kube-system")
+```
+
+### Options inherited from parent commands
+
+```
+  -c, --columns string              columns to display - [+]<title>:<jq query for content>||<title>:<jq query for content>
+      --config string               Path of profile file (by default, ~/.osc/config.json)
+      --filter strings              comma separated list of filters for results - name:value,name:value, alias for jq filter 'select(.name | tostring | test("value"))'
+      --jq string                   jq filter
+      --no-upgrade                  do not check for new versions
+  -O, --out-file string             redirect output to file
+  -o, --output string               output format (raw, json, yaml, table, csv, none, base64, text)
+      --payload string              JSON content for query body
+      --profile string              Profile to use in profile file (by default, "default")
+      --single                      convert single entry lists to a single object
+      --template string             JSON template file for query body
+  -v, --verbose                     Verbose output
+      --waitfor string              jq expression to wait for - octl will query every waitfor-interval until the expression returns 1/true or a non empty result
+      --waitfor-interval duration   interval between two waitfor iterations (default 5s)
+      --waitfor-timeout duration    maximum duration of a wait (default 10m0s)
+  -y, --yes                         answer yes to all prompts
+```
+
+### SEE ALSO
+
+* [octl kube](octl_kube.md)	 - OUTSCALE Kubernetes as a Service (OKS) management
+

@github-actions

Copy link
Copy Markdown

Binary size: 81.7MB => 81.7MB (change +8KB, +0.0%) 😉

@jfbus jfbus marked this pull request as ready for review June 25, 2026 14:56
@jfbus jfbus requested a review from a team June 25, 2026 14:56
@jfbus jfbus requested a review from a team as a code owner June 25, 2026 14:56
@jfbus jfbus merged commit f7761a9 into main Jun 26, 2026
10 checks passed
@jfbus jfbus deleted the kube_secret branch June 26, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants