jx: github.com/jenkins-x/jx/pkg/kube/serviceaccount Index | Files

package serviceaccount

import "github.com/jenkins-x/jx/pkg/kube/serviceaccount"

Index

Package Files

serviceaccounts.go

func CreateServiceAccount Uses

func CreateServiceAccount(kubeClient kubernetes.Interface, namespace string, name string) (*v1.ServiceAccount, error)

CreateServiceAccount creates a new services account in the given namespace and returns the service account name

func DeleteServiceAccount Uses

func DeleteServiceAccount(kubeClient kubernetes.Interface, namespace string, name string) error

DeleteServiceAccount deletes a service account

func GetServiceAccountToken Uses

func GetServiceAccountToken(kubeClient kubernetes.Interface, namespace string, name string) (string, error)

GetServiceAccountToken return the token of a service account

func PatchImagePullSecrets Uses

func PatchImagePullSecrets(kubeClient kubernetes.Interface, ns string, sa string, imagePullSecrets []string) error

PatchImagePullSecrets patches the specified ImagePullSecrets to the given service account

type ImagePullSecret Uses

type ImagePullSecret struct {
    Name string `json:"name"`
}

type JsonPatch Uses

type JsonPatch struct {
    ImagePullSecret *[]ImagePullSecret `json:"imagePullSecrets"`
}

Package serviceaccount imports 8 packages (graph) and is imported by 3 packages. Updated 2019-07-23. Refresh now. Tools for package owners.