Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support referencing cluster authentication info from secrets #747

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Iceber
Copy link
Member

@Iceber Iceber commented Mar 7, 2025

What type of PR is this?

/kind feature

What this PR does / why we need it:
Clusterpedia will only fetch secrets from the specified namespace, which is set by the --namespace flag, indicating the namespace where Clusterpedia is running.

apiVersion: cluster.clusterpedia.io/v1alpha2
kind: PediaCluster
metadata:
  name: cluster-example
spec:
  apiserver: "https://cluster-example.io:8080"
  authenticationFrom:
    kubeconfig:
      name: "cluster-example-auth"
      key: "kubeconfig"
    ca:
      name: "cluster-example-auth"
      key: "ca.crt"
    cert:
      name: "cluster-example-auth"
      key: "client.crt"
    key:
      name: "cluster-example-auth"
      key: "client.key"
    token:
      name: "cluster-example-auth"
      key: "token"

Which issue(s) this PR fixes:
issue: #680

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@Iceber Iceber marked this pull request as draft March 7, 2025 07:14
@clusterpedia-bot
Copy link

Hi @Iceber,
Thanks for your pull request!
If the PR is ready, use the /auto-cc command to assign Reviewer to Review.
We will review it shortly.

Details

Instructions for interacting with me using comments are available here.
If you have questions or suggestions related to my behavior, please file an issue against the gh-ci-bot repository.

@clusterpedia-bot clusterpedia-bot added the kind/feature New feature label Mar 7, 2025
@Iceber Iceber force-pushed the cluster_certifition_from_secrets branch 2 times, most recently from d5f0443 to ff315f1 Compare March 12, 2025 07:24
@Iceber Iceber marked this pull request as ready for review March 12, 2025 07:24
@Iceber Iceber force-pushed the cluster_certifition_from_secrets branch 3 times, most recently from 34ebf32 to 97cbfca Compare March 12, 2025 10:03
@Iceber Iceber force-pushed the cluster_certifition_from_secrets branch from 97cbfca to ab678cc Compare March 12, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants