package node
import "k8s.io/kubernetes/cmd/kubeadm/app/phases/bootstraptoken/node"
Index ¶
- func AllowBootstrapTokensToGetNodes(client clientset.Interface) error
- func AllowBootstrapTokensToPostCSRs(client clientset.Interface) error
- func AutoApproveNodeBootstrapTokens(client clientset.Interface) error
- func AutoApproveNodeCertificateRotation(client clientset.Interface) error
- func CreateNewTokens(client clientset.Interface, tokens []bootstraptokenv1.BootstrapToken) error
- func UpdateOrCreateTokens(client clientset.Interface, failIfExists bool, tokens []bootstraptokenv1.BootstrapToken) error
Functions ¶
func AllowBootstrapTokensToGetNodes ¶
AllowBootstrapTokensToGetNodes creates RBAC rules to allow Node Bootstrap Tokens to list nodes.
func AllowBootstrapTokensToPostCSRs ¶
AllowBootstrapTokensToPostCSRs creates RBAC rules in a way the makes Node Bootstrap Tokens able to post CSRs
func AutoApproveNodeBootstrapTokens ¶
AutoApproveNodeBootstrapTokens creates RBAC rules in a way that makes Node Bootstrap Tokens' CSR auto-approved by the csrapprover controller
func AutoApproveNodeCertificateRotation ¶
AutoApproveNodeCertificateRotation creates RBAC rules in a way that makes Node certificate rotation CSR auto-approved by the csrapprover controller
func CreateNewTokens ¶
func CreateNewTokens(client clientset.Interface, tokens []bootstraptokenv1.BootstrapToken) error
CreateNewTokens tries to create a token and fails if one with the same ID already exists
func UpdateOrCreateTokens ¶
func UpdateOrCreateTokens(client clientset.Interface, failIfExists bool, tokens []bootstraptokenv1.BootstrapToken) error
UpdateOrCreateTokens attempts to update a token with the given ID, or create if it does not already exist.
Source Files ¶
tlsbootstrap.go token.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- 6 hours ago –
Tools for package owners.