Documentation ¶
Index ¶
- func EnsureClusterRole(ctx context.Context, kubeconfig []byte, projectName string) error
- func EnsureClusterRoleBinding(ctx context.Context, kubeconfig []byte, projectName string) error
- func EnsureCommonClusterRole(ctx context.Context, kubeconfig []byte, projectName string) error
- func EnsureCommonClusterRoleBinding(ctx context.Context, kubeconfig []byte, projectName string) error
- func EnsureNamespace(ctx context.Context, kubeconfig []byte, projectName string) error
- func EnsureRoleBinding(ctx context.Context, kubeconfig []byte, projectId string, namespace string) error
- func GetAwsAccountIdSecret(ctx context.Context) (awsAccountId string, err error)
- func GetAwsSecret(ctx context.Context) (awsAccessKeyId string, awsSecretAccessKey string, err error)
- func GetClientAdminCluster(ctx context.Context) (*kubernetes.Clientset, error)
- func GetClientFromClusterId(ctx context.Context, clusterId string) (*kubernetes.Clientset, error)
- func GetDynamicClientAdminCluster(ctx context.Context) (*dynamic.DynamicClient, error)
- func GetKubeconfig(ctx context.Context, clusterId string, configType KubeconfigType) ([]byte, error)
- func GetKubernetesVserion(ctx context.Context) (string, error)
- func GetKubernetesVserionByClusterId(ctx context.Context, clusterId string) (string, error)
- func GetResourceApiVersion(ctx context.Context, kubeconfig []byte, kind string) (string, error)
- func MergeKubeconfigsWithSingleUser(kubeconfigs []string) (string, error)
- func RemoveClusterRole(ctx context.Context, kubeconfig []byte, projectName string) error
- func RemoveClusterRoleBinding(ctx context.Context, kubeconfig []byte, projectName string) error
- func RemoveCommonClusterRole(ctx context.Context, kubeconfig []byte, projectName string) error
- func RemoveCommonClusterRoleBinding(ctx context.Context, kubeconfig []byte, projectName string) error
- func RemoveRoleBinding(ctx context.Context, kubeconfig []byte, projectName string, namespace string) error
- type KubeconfigType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureClusterRole ¶
func EnsureCommonClusterRole ¶
func EnsureNamespace ¶
func EnsureRoleBinding ¶
func GetAwsAccountIdSecret ¶
func GetAwsSecret ¶
func GetClientAdminCluster ¶
func GetClientAdminCluster(ctx context.Context) (*kubernetes.Clientset, error)
func GetClientFromClusterId ¶
func GetDynamicClientAdminCluster ¶
func GetDynamicClientAdminCluster(ctx context.Context) (*dynamic.DynamicClient, error)
쿠버네티스 기본 타입 이외의 타입(예: 정책 템플릿, 정책 등)을 처리하기 위한 dynamic client 생성
func GetKubeconfig ¶
func GetResourceApiVersion ¶
func RemoveClusterRole ¶
func RemoveCommonClusterRole ¶
Types ¶
type KubeconfigType ¶
type KubeconfigType string
const ( KubeconfigForAdmin KubeconfigType = "admin" KubeconfigForUser KubeconfigType = "user" )
Click to show internal directories.
Click to hide internal directories.