Skip to content

[Multi_K8s-Plugin] Add plugin documentation page#6878

Open
mohammedfirdouss wants to merge 6 commits into
pipe-cd:masterfrom
mohammedfirdouss:feat/multicluster-plugin-docs-v2
Open

[Multi_K8s-Plugin] Add plugin documentation page#6878
mohammedfirdouss wants to merge 6 commits into
pipe-cd:masterfrom
mohammedfirdouss:feat/multicluster-plugin-docs-v2

Conversation

@mohammedfirdouss
Copy link
Copy Markdown
Contributor

What this PR does: Adds a documentation page for the kubernetes_multicluster plugin and updates the plugins index to include it.

Why we need it: The plugin has no user-facing documentation yet. This page covers prerequisites, all 8 pipeline stages with options tables, multi-cluster features (per-cluster manifests, per-stage filtering), livestate/drift detection, plan preview, Helm authentication, and a complete configuration reference.

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

  • How are users affected by this change: Users can now find documentation for the kubernetes_multicluster plugin at docs-v1.0.x/plugins/kubernetes-multicluster/
  • Is this breaking change: No
  • How to migrate (if breaking change): N/A

Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
Copy link
Copy Markdown
Member

@Warashi Warashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not good at English or documentation styling, so I want others to review the English wording and/or styling.
cc: @pipe-cd/pipecd-approvers-docs

| prune | bool | Remove resources that are no longer defined in Git. | false |
| multiTargets | []string | Restrict the stage to these deploy targets. | all |

### K8S_PRIMARY_ROLLOUT
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm so sorry for not noticing that the stage name conflicts with the Kubernetes plugin
It's not allowed that a Piped instance has some plugins with the same stage names, which is a limitation of the Piped implementation.
Please change the stage name of the Kubernetes multicluster plugin to something else, for example, "K8S_MULTI_PRIMARY_ROLLOUT."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The conflicting stage names (K8S_PRIMARY_ROLLOUT, K8S_CANARY_ROLLOUT, etc.) need to be renamed in both the Go source and the docs to avoid collision with the regular Kubernetes plugin. I should open a PR for this.

kubeConfigPath: /etc/piped/kube/cluster-us
```

2. **`kubectl` must be reachable from the piped host.** The plugin invokes `kubectl` (and `kustomize`/`helm` when used) via the tool registry; pin a version with `kubectlVersion` if you need a specific one.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does reachable mean that the piped host can download the kubectl binary from the internet? If so, it's correct and ok.
If that means that the kubectl binary must exist on the piped host, then it's not correct. The piped downloads the kubectl binary through the tool registry, so the kubectl binary doesn't need to exist on the piped host.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I think reachable is ambigous, kubectl binary is pre-installed on the host, OR the host has internet access to download it. Yeah correct, update it shortly.

@mohammedfirdouss
Copy link
Copy Markdown
Contributor Author

I'm not good at English or documentation styling, so I want others to review the English wording and/or styling. cc: @pipe-cd/pipecd-approvers-docs

okay no problem

…cally by piped

Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
Signed-off-by: Mohammed Firdous <124298708+mohammedfirdouss@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants