Documentation ¶
Index ¶
- Constants
- func BuildUrl(scheme string, hostWithoutPort string, port int32) string
- func CreateOrUpdateService(svc *corev1.Service, rawClient *kubernetes.Clientset) error
- func CreateOrUpdateValidatingWebhookConfiguration(config *v1beta1.ValidatingWebhookConfiguration, ...) error
- func FindDeployment(c client.Client, spinsvc v1alpha2.SpinnakerServiceInterface, service string) (*v12.Deployment, error)
- func FindLoadBalancerUrl(svcName string, namespace string, client client.Client, hcSSLEnabled bool) (string, error)
- func FindSecretInDeployment(c client.Client, dep *v12.Deployment, containerName, path string) (*v1.Secret, error)
- func FindSpinnakerService(c client.Client, ns string, builder v1alpha2.SpinnakerServiceBuilderInterface) (v1alpha2.SpinnakerServiceInterface, error)
- func GetContainerInDeployment(dep *v12.Deployment, containerName string) *v1.Container
- func GetDesiredExposePort(ctx context.Context, svcNameWithoutPrefix string, defaultPort int32, ...) int32
- func GetMountedSecretNameInDeployment(dep *v12.Deployment, containerName, path string) string
- func GetPort(aUrl string, defaultPort int32) int32
- func GetSecretContent(c *rest.Config, namespace, name, key string) (string, error)
- func GetService(name string, namespace string, client client.Client) (*corev1.Service, error)
- func GetServiceAccountData(ctx context.Context, name, ns string, c client.Client) (string, string, error)
- func GetSpinnakerServices(list v1alpha2.SpinnakerServiceListInterface, ns string, c client.Client) ([]v1alpha2.SpinnakerServiceInterface, error)
- func UpdateSecret(secret *v1.Secret, svc string, settings map[string]interface{}, ...) error
Constants ¶
View Source
const ( GateServiceName = "spin-gate" GateX509ServiceName = "spin-gate-x509" GateX509PortName = "gate-x509" GateOverrideBaseUrlProp = "security.apiSecurity.overrideBaseUrl" GateSSLEnabledProp = "security.apiSecurity.ssl.enabled" DeckServiceName = "spin-deck" DeckOverrideBaseUrlProp = "security.uiSecurity.overrideBaseUrl" DeckSSLEnabledProp = "security.uiSecurity.ssl.enabled" ClouddriverName = "clouddriver" )
Variables ¶
This section is empty.
Functions ¶
func BuildUrl ¶
BuildUrl builds a well formed url that only specifies the port if not derived by scheme already
func CreateOrUpdateService ¶
func CreateOrUpdateService(svc *corev1.Service, rawClient *kubernetes.Clientset) error
func CreateOrUpdateValidatingWebhookConfiguration ¶
func CreateOrUpdateValidatingWebhookConfiguration(config *v1beta1.ValidatingWebhookConfiguration, rawClient *kubernetes.Clientset) error
func FindDeployment ¶
func FindDeployment(c client.Client, spinsvc v1alpha2.SpinnakerServiceInterface, service string) (*v12.Deployment, error)
func FindLoadBalancerUrl ¶
func FindSecretInDeployment ¶
func FindSpinnakerService ¶
func FindSpinnakerService(c client.Client, ns string, builder v1alpha2.SpinnakerServiceBuilderInterface) (v1alpha2.SpinnakerServiceInterface, error)
func GetContainerInDeployment ¶
func GetContainerInDeployment(dep *v12.Deployment, containerName string) *v1.Container
func GetDesiredExposePort ¶
func GetDesiredExposePort(ctx context.Context, svcNameWithoutPrefix string, defaultPort int32, spinSvc spinnakerv1alpha2.SpinnakerServiceInterface) int32
GetDesiredExposePort returns the expected public port to have for the given service, according to halyard and expose configurations
func GetMountedSecretNameInDeployment ¶
func GetMountedSecretNameInDeployment(dep *v12.Deployment, containerName, path string) string
func GetSecretContent ¶
func GetService ¶
func GetServiceAccountData ¶
func GetServiceAccountData(ctx context.Context, name, ns string, c client.Client) (string, string, error)
GetServiceAccountData returns the service account token and temp path to root ca
func GetSpinnakerServices ¶
func GetSpinnakerServices(list v1alpha2.SpinnakerServiceListInterface, ns string, c client.Client) ([]v1alpha2.SpinnakerServiceInterface, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.