component

package
v4.2.542+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2019 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertificateBlockType   = "CERTIFICATE"
	RSAPrivateKeyBlockType = "RSA PRIVATE KEY"
)

Variables

This section is empty.

Functions

func EncodeCertPEM

func EncodeCertPEM(cert *x509.Certificate) []byte

func EncodePrivateKeyPEM

func EncodePrivateKeyPEM(key *rsa.PrivateKey) []byte

func NewPrivateKey

func NewPrivateKey() (*rsa.PrivateKey, error)

func NewSignedCert

func NewSignedCert(cfg cert.Config, key crypto.Signer, caCert *x509.Certificate, caKey crypto.Signer) (*x509.Certificate, error)

Types

type ComponentConfig

type ComponentConfig struct {
	NameSpace           string
	PodTemplateConfig   PodTemplateConfig
	FederatoraiAgentGPU FederatoraiAgentGPUConfig
}

func NewComponentConfig

func NewComponentConfig(namespace string, ptc PodTemplateConfig, alamedaService federatoraiv1alpha1.AlamedaService) *ComponentConfig

func (ComponentConfig) NewAPIService added in v0.9.1

func (ComponentConfig) NewAdmissionControllerSecret

func (c ComponentConfig) NewAdmissionControllerSecret() (*corev1.Secret, error)

func (ComponentConfig) NewAlamedaNotificationChannel added in v0.9.1

func (c ComponentConfig) NewAlamedaNotificationChannel(str string) (*unstructuredv1.Unstructured, error)

func (ComponentConfig) NewAlamedaNotificationTopic added in v0.9.1

func (c ComponentConfig) NewAlamedaNotificationTopic(str string) (*unstructuredv1.Unstructured, error)

func (ComponentConfig) NewAlamedaScaler added in v0.2.12

func (c ComponentConfig) NewAlamedaScaler(str string) *autoscaling_v1alpha1.AlamedaScaler

func (ComponentConfig) NewClusterRole

func (c ComponentConfig) NewClusterRole(str string) *rbacv1.ClusterRole

func (ComponentConfig) NewClusterRoleBinding

func (c ComponentConfig) NewClusterRoleBinding(str string) *rbacv1.ClusterRoleBinding

func (ComponentConfig) NewConfigMap

func (c ComponentConfig) NewConfigMap(str string) *corev1.ConfigMap

func (ComponentConfig) NewDaemonSet added in v0.2.35

func (c ComponentConfig) NewDaemonSet(str string) *appsv1.DaemonSet

func (ComponentConfig) NewDeployment

func (c ComponentConfig) NewDeployment(str string) *appsv1.Deployment

func (ComponentConfig) NewInfluxDBSecret

func (c ComponentConfig) NewInfluxDBSecret() (*corev1.Secret, error)

func (ComponentConfig) NewIngress added in v0.2.30

func (c ComponentConfig) NewIngress(str string) *ingressv1beta1.Ingress

func (ComponentConfig) NewMutatingWebhookConfiguration added in v0.9.1

func (c ComponentConfig) NewMutatingWebhookConfiguration(str string) (*admissionregistration_v1beta1.MutatingWebhookConfiguration, error)

func (ComponentConfig) NewPersistentVolumeClaim

func (c ComponentConfig) NewPersistentVolumeClaim(str string) *corev1.PersistentVolumeClaim

func (ComponentConfig) NewPodSecurityPolicy added in v0.2.35

func (c ComponentConfig) NewPodSecurityPolicy(str string) *v1beta1.PodSecurityPolicy

func (ComponentConfig) NewRole added in v0.9.1

func (c ComponentConfig) NewRole(str string) *rbacv1.Role

func (ComponentConfig) NewRoleBinding added in v0.9.1

func (c ComponentConfig) NewRoleBinding(str string) *rbacv1.RoleBinding

func (ComponentConfig) NewRoute added in v0.2.19

func (c ComponentConfig) NewRoute(str string) *routev1.Route

func (ComponentConfig) NewSecret

func (c ComponentConfig) NewSecret(str string) (*corev1.Secret, error)

func (ComponentConfig) NewSecurityContextConstraints added in v0.9.1

func (c ComponentConfig) NewSecurityContextConstraints(str string) *securityv1.SecurityContextConstraints

func (ComponentConfig) NewService

func (c ComponentConfig) NewService(str string) *corev1.Service

func (ComponentConfig) NewServiceAccount

func (c ComponentConfig) NewServiceAccount(str string) *corev1.ServiceAccount

func (ComponentConfig) NewStatefulSet added in v0.2.30

func (c ComponentConfig) NewStatefulSet(str string) *appsv1.StatefulSet

func (ComponentConfig) NewTLSSecret added in v0.9.1

func (c ComponentConfig) NewTLSSecret(assetFile, cn string) (*corev1.Secret, error)

func (ComponentConfig) NewUnstructed added in v0.9.1

func (c ComponentConfig) NewUnstructed(str string) (*unstructuredv1.Unstructured, error)

func (ComponentConfig) NewValidatingWebhookConfiguration added in v0.9.1

func (c ComponentConfig) NewValidatingWebhookConfiguration(str string) (*admissionregistration_v1beta1.ValidatingWebhookConfiguration, error)

func (ComponentConfig) NewfedemeterSecret added in v0.2.30

func (c ComponentConfig) NewfedemeterSecret() (*corev1.Secret, error)

func (ComponentConfig) RegistryCustomResourceDefinition

func (c ComponentConfig) RegistryCustomResourceDefinition(str string) *apiextv1beta1.CustomResourceDefinition

func (*ComponentConfig) SetNameSpace

func (c *ComponentConfig) SetNameSpace(ns string)

type FederatoraiAgentGPUConfig added in v0.9.13

type FederatoraiAgentGPUConfig struct {
	Datasource FederatoraiAgentGPUDatasourceConfig
}

func NewDefaultFederatoraiAgentGPUConfig added in v0.9.13

func NewDefaultFederatoraiAgentGPUConfig() FederatoraiAgentGPUConfig

type FederatoraiAgentGPUDatasourceConfig added in v0.9.13

type FederatoraiAgentGPUDatasourceConfig struct {
	InfluxDB   InfluxDBConfig
	Prometheus PrometheusConfig
}

type InfluxDBConfig added in v0.9.13

type InfluxDBConfig struct {
	Address  string
	Username string
	Password string
}

type PodTemplateConfig added in v0.2.0

type PodTemplateConfig struct {
	corev1.PodSecurityContext
}

PodTemplateConfig specifies pod confiruation needed while deploying pod

func NewDefaultPodTemplateConfig added in v0.2.0

func NewDefaultPodTemplateConfig(ns corev1.Namespace) PodTemplateConfig

type PrometheusConfig added in v0.9.13

type PrometheusConfig struct {
	Address  string
	Username string
	Password string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL