Documentation ¶
Index ¶
- func EnsureIngress(cl kubernetes.Interface, ingress *extensions.Ingress) (*extensions.Ingress, error)
- func EnsureJob(cl kubernetes.Interface, job *batch.Job) (*batch.Job, error)
- func EnsureSecret(cl kubernetes.Interface, secret *api.Secret) (*api.Secret, error)
- func EnsureService(cl kubernetes.Interface, service *core.Service) (*core.Service, error)
- func GetKeyPair(secretLister corelisters.SecretLister, namespace, name string) (certBytes []byte, keyBytes []byte, err error)
- func KubeConfig(apiServerHost string) (*rest.Config, error)
- func SecretRSAKey(secretLister corelisters.SecretLister, namespace, name string) (*rsa.PrivateKey, error)
- func SecretRSAKeyRef(secretLister corelisters.SecretLister, namespace, name, keyName string) (*rsa.PrivateKey, error)
- func SecretTLSCert(secretLister corelisters.SecretLister, namespace, name string) (*x509.Certificate, error)
- func SecretTLSKey(secretLister corelisters.SecretLister, namespace, name string) (crypto.PrivateKey, error)
- func SecretTLSKeyRef(secretLister corelisters.SecretLister, namespace, name, keyName string) (crypto.PrivateKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureIngress ¶
func EnsureIngress(cl kubernetes.Interface, ingress *extensions.Ingress) (*extensions.Ingress, error)
func EnsureSecret ¶
func EnsureService ¶
func GetKeyPair ¶
func GetKeyPair(secretLister corelisters.SecretLister, namespace, name string) (certBytes []byte, keyBytes []byte, err error)
func KubeConfig ¶ added in v0.2.2
KubeConfig will return a rest.Config for communicating with the Kubernetes API server. If apiServerHost is specified, a config without authentication that is configured to talk to the apiServerHost URL will be returned. Else, the in-cluster config will be loaded, and failing this, the config will be loaded from the users local kubeconfig directory
func SecretRSAKey ¶ added in v0.5.0
func SecretRSAKey(secretLister corelisters.SecretLister, namespace, name string) (*rsa.PrivateKey, error)
SecretRSAKey will decode a PKCS1 private key stored in a secret with 'name' in 'namespace'. It will read the private key data from the secret entry with name 'keyName'.
func SecretRSAKeyRef ¶ added in v0.5.0
func SecretRSAKeyRef(secretLister corelisters.SecretLister, namespace, name, keyName string) (*rsa.PrivateKey, error)
SecretRSAKeyRef will decode a PKCS1 private key stored in a secret with 'name' in 'namespace'. It will read the private key data from the secret entry with name 'keyName'.
func SecretTLSCert ¶
func SecretTLSCert(secretLister corelisters.SecretLister, namespace, name string) (*x509.Certificate, error)
func SecretTLSKey ¶
func SecretTLSKey(secretLister corelisters.SecretLister, namespace, name string) (crypto.PrivateKey, error)
SecretTLSKey will decode a PKCS1/SEC1 (in effect, a RSA or ECDSA) private key stored in a secret with 'name' in 'namespace'. It will read the private key data from the secret entry with name 'keyName'.
func SecretTLSKeyRef ¶
func SecretTLSKeyRef(secretLister corelisters.SecretLister, namespace, name, keyName string) (crypto.PrivateKey, error)
SecretTLSKeyRef will decode a PKCS1/SEC1 (in effect, a RSA or ECDSA) private key stored in a secret with 'name' in 'namespace'. It will read the private key data from the secret entry with name 'keyName'.
Types ¶
This section is empty.