feat(common): add existing secret support for pullsecret (#31500)
**Description** <!-- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. --> ⚒️ Fixes #31324 **⚙️ Type of change** - [x] ⚙️ Feature/App addition - [ ] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** <!-- Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration --> **📃 Notes:** <!-- Please enter any other relevant information here --> **✔️ Checklist:** - [ ] ⚖️ My code follows the style guidelines of this project - [ ] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [ ] ⬆️ I increased versions for any altered app according to semantic versioning - [ ] I made sure the title starts with `feat(chart-name):`, `fix(chart-name):` or `chore(chart-name):` **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --- _Please don't blindly check all the boxes. Read them and only check those that apply. Those checkboxes are there for the reviewer to see what is this all about and the status of this PR with a quick glance._ --------- Co-authored-by: Stavros Kois <s.kois@outlook.com>
This commit is contained in:
co-authored by
Stavros Kois
parent
8a7f540e51
commit
a759873bf5
@@ -41,8 +41,8 @@ Define image pull secrets
|
||||
| ---------- | ----------------- |
|
||||
| Key | `imagePullSecret` |
|
||||
| Type | `map` |
|
||||
| Required | ❌ |
|
||||
| Helm `tpl` | ❌ |
|
||||
| Required | ❌ |
|
||||
| Helm `tpl` | ❌ |
|
||||
| Default | `{}` |
|
||||
|
||||
Example
|
||||
@@ -61,8 +61,8 @@ Define image pull secret
|
||||
| ---------- | ----------------------- |
|
||||
| Key | `imagePullSecret.$name` |
|
||||
| Type | `map` |
|
||||
| Required | ✅ |
|
||||
| Helm `tpl` | ❌ |
|
||||
| Required | ✅ |
|
||||
| Helm `tpl` | ❌ |
|
||||
| Default | `{}` |
|
||||
|
||||
Example
|
||||
@@ -82,8 +82,8 @@ Enables or Disables the image pull secret
|
||||
| ---------- | ------------------------------- |
|
||||
| Key | `imagePullSecret.$name.enabled` |
|
||||
| Type | `bool` |
|
||||
| Required | ✅ |
|
||||
| Helm `tpl` | ✅ |
|
||||
| Required | ✅ |
|
||||
| Helm `tpl` | ✅ |
|
||||
| Default | `false` |
|
||||
|
||||
Example
|
||||
@@ -96,6 +96,39 @@ imagePullSecret:
|
||||
|
||||
---
|
||||
|
||||
#### `existingSecret`
|
||||
|
||||
Define the existing secret name
|
||||
|
||||
:::note
|
||||
|
||||
If this is defined, only the following keys are used:
|
||||
|
||||
- `enabled`
|
||||
- `targetSelectAll`
|
||||
- `targetSelector`
|
||||
|
||||
:::
|
||||
|
||||
| | |
|
||||
| ---------- | -------------------------------------- |
|
||||
| Key | `imagePullSecret.$name.existingSecret` |
|
||||
| Type | `string` |
|
||||
| Required | ❌ |
|
||||
| Helm `tpl` | ❌ |
|
||||
| Default | - |
|
||||
|
||||
Example
|
||||
|
||||
```yaml
|
||||
imagePullSecret:
|
||||
pull-secret-name:
|
||||
enabled: true
|
||||
existingSecret: some-existing-secret
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
#### `namespace`
|
||||
|
||||
Define the namespace for this object
|
||||
@@ -104,8 +137,8 @@ Define the namespace for this object
|
||||
| ---------- | --------------------------------- |
|
||||
| Key | `imagePullSecret.$name.namespace` |
|
||||
| Type | `string` |
|
||||
| Required | ❌ |
|
||||
| Helm `tpl` | ✅ (On value only) |
|
||||
| Required | ❌ |
|
||||
| Helm `tpl` | ✅ (On value only) |
|
||||
| Default | `""` |
|
||||
|
||||
Example
|
||||
@@ -126,8 +159,8 @@ Additional labels for image pull secret
|
||||
| ---------- | ------------------------------ |
|
||||
| Key | `imagePullSecret.$name.labels` |
|
||||
| Type | `map` |
|
||||
| Required | ❌ |
|
||||
| Helm `tpl` | ✅ (On value only) |
|
||||
| Required | ❌ |
|
||||
| Helm `tpl` | ✅ (On value only) |
|
||||
| Default | `{}` |
|
||||
|
||||
Example
|
||||
@@ -149,8 +182,8 @@ Additional annotations for image pull secret
|
||||
| ---------- | ----------------------------------- |
|
||||
| Key | `imagePullSecret.$name.annotations` |
|
||||
| Type | `map` |
|
||||
| Required | ❌ |
|
||||
| Helm `tpl` | ✅ (On value only) |
|
||||
| Required | ❌ |
|
||||
| Helm `tpl` | ✅ (On value only) |
|
||||
| Default | `{}` |
|
||||
|
||||
Example
|
||||
@@ -172,8 +205,8 @@ Whether to assign the secret to all pods or not
|
||||
| ---------- | --------------------------------------- |
|
||||
| Key | `imagePullSecret.$name.targetSelectAll` |
|
||||
| Type | `bool` |
|
||||
| Required | ❌ |
|
||||
| Helm `tpl` | ❌ |
|
||||
| Required | ❌ |
|
||||
| Helm `tpl` | ❌ |
|
||||
| Default | unset |
|
||||
|
||||
Example
|
||||
@@ -194,8 +227,8 @@ Define the pod(s) to assign the secret
|
||||
| ---------- | -------------------------------------- |
|
||||
| Key | `imagePullSecret.$name.targetSelector` |
|
||||
| Type | `list` of `string` |
|
||||
| Required | ❌ |
|
||||
| Helm `tpl` | ❌ |
|
||||
| Required | ❌ |
|
||||
| Helm `tpl` | ❌ |
|
||||
| Default | `[]` |
|
||||
|
||||
Example
|
||||
@@ -218,8 +251,8 @@ Define the data of the image pull secret
|
||||
| ---------- | ---------------------------- |
|
||||
| Key | `imagePullSecret.$name.data` |
|
||||
| Type | `map` |
|
||||
| Required | ✅ |
|
||||
| Helm `tpl` | ❌ |
|
||||
| Required | ✅ |
|
||||
| Helm `tpl` | ❌ |
|
||||
| Default | `{}` |
|
||||
|
||||
Example
|
||||
@@ -240,8 +273,8 @@ Define the registry of the image pull secret
|
||||
| ---------- | ------------------------------------- |
|
||||
| Key | `imagePullSecret.$name.data.registry` |
|
||||
| Type | `string` |
|
||||
| Required | ✅ |
|
||||
| Helm `tpl` | ✅ |
|
||||
| Required | ✅ |
|
||||
| Helm `tpl` | ✅ |
|
||||
| Default | `""` |
|
||||
|
||||
Example
|
||||
@@ -263,8 +296,8 @@ Define the username of the image pull secret
|
||||
| ---------- | ------------------------------------- |
|
||||
| Key | `imagePullSecret.$name.data.username` |
|
||||
| Type | `string` |
|
||||
| Required | ✅ |
|
||||
| Helm `tpl` | ✅ |
|
||||
| Required | ✅ |
|
||||
| Helm `tpl` | ✅ |
|
||||
| Default | `""` |
|
||||
|
||||
Example
|
||||
@@ -286,8 +319,8 @@ Define the password of the image pull secret
|
||||
| ---------- | ------------------------------------- |
|
||||
| Key | `imagePullSecret.$name.data.password` |
|
||||
| Type | `string` |
|
||||
| Required | ✅ |
|
||||
| Helm `tpl` | ✅ |
|
||||
| Required | ✅ |
|
||||
| Helm `tpl` | ✅ |
|
||||
| Default | `""` |
|
||||
|
||||
Example
|
||||
@@ -309,8 +342,8 @@ Define the email of the image pull secret
|
||||
| ---------- | ---------------------------------- |
|
||||
| Key | `imagePullSecret.$name.data.email` |
|
||||
| Type | `string` |
|
||||
| Required | ✅ |
|
||||
| Helm `tpl` | ✅ |
|
||||
| Required | ✅ |
|
||||
| Helm `tpl` | ✅ |
|
||||
| Default | `""` |
|
||||
|
||||
Example
|
||||
|
||||
Reference in New Issue
Block a user