Documentation ¶
Index ¶
- Variables
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func GeneratePassword(n int) (string, error)
- func IsMissingPortInAddressError(err error) bool
- func MustAsset(name string) []byte
- func MustAssetReader(asset string) io.Reader
- func NewAlertmanager(manifest io.Reader) (*monv1.Alertmanager, error)
- func NewClusterRole(manifest io.Reader) (*rbacv1beta1.ClusterRole, error)
- func NewClusterRoleBinding(manifest io.Reader) (*rbacv1beta1.ClusterRoleBinding, error)
- func NewConfigMap(manifest io.Reader) (*v1.ConfigMap, error)
- func NewConfigMapList(manifest io.Reader) (*v1.ConfigMapList, error)
- func NewDaemonSet(manifest io.Reader) (*appsv1.DaemonSet, error)
- func NewDeployment(manifest io.Reader) (*appsv1.Deployment, error)
- func NewEndpoints(manifest io.Reader) (*v1.Endpoints, error)
- func NewIngress(manifest io.Reader) (*v1beta1.Ingress, error)
- func NewPrometheus(manifest io.Reader) (*monv1.Prometheus, error)
- func NewPrometheusRule(manifest io.Reader) (*monv1.PrometheusRule, error)
- func NewRole(manifest io.Reader) (*rbacv1beta1.Role, error)
- func NewRoleBinding(manifest io.Reader) (*rbacv1beta1.RoleBinding, error)
- func NewRoleBindingList(manifest io.Reader) (*rbacv1beta1.RoleBindingList, error)
- func NewRoleList(manifest io.Reader) (*rbacv1beta1.RoleList, error)
- func NewRoute(manifest io.Reader) (*routev1.Route, error)
- func NewSecret(manifest io.Reader) (*v1.Secret, error)
- func NewSecurityContextConstraints(manifest io.Reader) (*securityv1.SecurityContextConstraints, error)
- func NewService(manifest io.Reader) (*v1.Service, error)
- func NewServiceAccount(manifest io.Reader) (*v1.ServiceAccount, error)
- func NewServiceMonitor(manifest io.Reader) (*monv1.ServiceMonitor, error)
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- type AlertmanagerMainConfig
- type AuthConfig
- type Config
- type EtcdConfig
- type EtcdTLSConfig
- type EtcdTargets
- type Factory
- func (f *Factory) AlertmanagerClusterRole() (*rbacv1beta1.ClusterRole, error)
- func (f *Factory) AlertmanagerClusterRoleBinding() (*rbacv1beta1.ClusterRoleBinding, error)
- func (f *Factory) AlertmanagerConfig() (*v1.Secret, error)
- func (f *Factory) AlertmanagerExternalURL(host string) *url.URL
- func (f *Factory) AlertmanagerMain(host string) (*monv1.Alertmanager, error)
- func (f *Factory) AlertmanagerProxySecret() (*v1.Secret, error)
- func (f *Factory) AlertmanagerRoute() (*routev1.Route, error)
- func (f *Factory) AlertmanagerService() (*v1.Service, error)
- func (f *Factory) AlertmanagerServiceAccount() (*v1.ServiceAccount, error)
- func (f *Factory) AlertmanagerServiceMonitor() (*monv1.ServiceMonitor, error)
- func (f *Factory) ClusterMonitoringClusterRole() (*rbacv1beta1.ClusterRole, error)
- func (f *Factory) ClusterMonitoringOperatorService() (*v1.Service, error)
- func (f *Factory) ClusterMonitoringOperatorServiceMonitor() (*monv1.ServiceMonitor, error)
- func (f *Factory) GrafanaClusterRole() (*rbacv1beta1.ClusterRole, error)
- func (f *Factory) GrafanaClusterRoleBinding() (*rbacv1beta1.ClusterRoleBinding, error)
- func (f *Factory) GrafanaConfig() (*v1.Secret, error)
- func (f *Factory) GrafanaDashboardDefinitions() (*v1.ConfigMapList, error)
- func (f *Factory) GrafanaDashboardSources() (*v1.ConfigMap, error)
- func (f *Factory) GrafanaDatasources() (*v1.Secret, error)
- func (f *Factory) GrafanaDeployment() (*appsv1.Deployment, error)
- func (f *Factory) GrafanaProxySecret() (*v1.Secret, error)
- func (f *Factory) GrafanaRoute() (*routev1.Route, error)
- func (f *Factory) GrafanaService() (*v1.Service, error)
- func (f *Factory) GrafanaServiceAccount() (*v1.ServiceAccount, error)
- func (f *Factory) KubeControllersService() (*v1.Service, error)
- func (f *Factory) KubeStateMetricsClusterRole() (*rbacv1beta1.ClusterRole, error)
- func (f *Factory) KubeStateMetricsClusterRoleBinding() (*rbacv1beta1.ClusterRoleBinding, error)
- func (f *Factory) KubeStateMetricsDeployment() (*appsv1.Deployment, error)
- func (f *Factory) KubeStateMetricsService() (*v1.Service, error)
- func (f *Factory) KubeStateMetricsServiceAccount() (*v1.ServiceAccount, error)
- func (f *Factory) KubeStateMetricsServiceMonitor() (*monv1.ServiceMonitor, error)
- func (f *Factory) NewAlertmanager(manifest io.Reader) (*monv1.Alertmanager, error)
- func (f *Factory) NewClusterRole(manifest io.Reader) (*rbacv1beta1.ClusterRole, error)
- func (f *Factory) NewClusterRoleBinding(manifest io.Reader) (*rbacv1beta1.ClusterRoleBinding, error)
- func (f *Factory) NewConfigMap(manifest io.Reader) (*v1.ConfigMap, error)
- func (f *Factory) NewConfigMapList(manifest io.Reader) (*v1.ConfigMapList, error)
- func (f *Factory) NewDaemonSet(manifest io.Reader) (*appsv1.DaemonSet, error)
- func (f *Factory) NewDeployment(manifest io.Reader) (*appsv1.Deployment, error)
- func (f *Factory) NewEndpoints(manifest io.Reader) (*v1.Endpoints, error)
- func (f *Factory) NewIngress(manifest io.Reader) (*v1beta1.Ingress, error)
- func (f *Factory) NewPrometheus(manifest io.Reader) (*monv1.Prometheus, error)
- func (f *Factory) NewPrometheusRule(manifest io.Reader) (*monv1.PrometheusRule, error)
- func (f *Factory) NewRole(manifest io.Reader) (*rbacv1beta1.Role, error)
- func (f *Factory) NewRoleBinding(manifest io.Reader) (*rbacv1beta1.RoleBinding, error)
- func (f *Factory) NewRoleBindingList(manifest io.Reader) (*rbacv1beta1.RoleBindingList, error)
- func (f *Factory) NewRoleList(manifest io.Reader) (*rbacv1beta1.RoleList, error)
- func (f *Factory) NewRoute(manifest io.Reader) (*routev1.Route, error)
- func (f *Factory) NewSecret(manifest io.Reader) (*v1.Secret, error)
- func (f *Factory) NewSecurityContextConstraints(manifest io.Reader) (*securityv1.SecurityContextConstraints, error)
- func (f *Factory) NewService(manifest io.Reader) (*v1.Service, error)
- func (f *Factory) NewServiceAccount(manifest io.Reader) (*v1.ServiceAccount, error)
- func (f *Factory) NewServiceMonitor(manifest io.Reader) (*monv1.ServiceMonitor, error)
- func (f *Factory) NodeExporterClusterRole() (*rbacv1beta1.ClusterRole, error)
- func (f *Factory) NodeExporterClusterRoleBinding() (*rbacv1beta1.ClusterRoleBinding, error)
- func (f *Factory) NodeExporterDaemonSet() (*appsv1.DaemonSet, error)
- func (f *Factory) NodeExporterSecurityContextConstraints() (*securityv1.SecurityContextConstraints, error)
- func (f *Factory) NodeExporterService() (*v1.Service, error)
- func (f *Factory) NodeExporterServiceAccount() (*v1.ServiceAccount, error)
- func (f *Factory) NodeExporterServiceMonitor() (*monv1.ServiceMonitor, error)
- func (f *Factory) PrometheusExternalURL(host string) *url.URL
- func (f *Factory) PrometheusK8s(host string) (*monv1.Prometheus, error)
- func (f *Factory) PrometheusK8sApiserverServiceMonitor() (*monv1.ServiceMonitor, error)
- func (f *Factory) PrometheusK8sClusterRole() (*rbacv1beta1.ClusterRole, error)
- func (f *Factory) PrometheusK8sClusterRoleBinding() (*rbacv1beta1.ClusterRoleBinding, error)
- func (f *Factory) PrometheusK8sEtcdCerts() (*v1.Secret, error)
- func (f *Factory) PrometheusK8sEtcdEndpoints() (*v1.Endpoints, error)
- func (f *Factory) PrometheusK8sEtcdService() (*v1.Service, error)
- func (f *Factory) PrometheusK8sEtcdServiceMonitor() (*monv1.ServiceMonitor, error)
- func (f *Factory) PrometheusK8sHtpasswdSecret(password string) (*v1.Secret, error)
- func (f *Factory) PrometheusK8sKubeControllersServiceMonitor() (*monv1.ServiceMonitor, error)
- func (f *Factory) PrometheusK8sKubeletServiceMonitor() (*monv1.ServiceMonitor, error)
- func (f *Factory) PrometheusK8sPrometheusServiceMonitor() (*monv1.ServiceMonitor, error)
- func (f *Factory) PrometheusK8sProxySecret() (*v1.Secret, error)
- func (f *Factory) PrometheusK8sRoleBindingConfig() (*rbacv1beta1.RoleBinding, error)
- func (f *Factory) PrometheusK8sRoleBindingList() (*rbacv1beta1.RoleBindingList, error)
- func (f *Factory) PrometheusK8sRoleConfig() (*rbacv1beta1.Role, error)
- func (f *Factory) PrometheusK8sRoleList() (*rbacv1beta1.RoleList, error)
- func (f *Factory) PrometheusK8sRoute() (*routev1.Route, error)
- func (f *Factory) PrometheusK8sRules() (*monv1.PrometheusRule, error)
- func (f *Factory) PrometheusK8sService() (*v1.Service, error)
- func (f *Factory) PrometheusK8sServiceAccount() (*v1.ServiceAccount, error)
- func (f *Factory) PrometheusOperatorClusterRole() (*rbacv1beta1.ClusterRole, error)
- func (f *Factory) PrometheusOperatorClusterRoleBinding() (*rbacv1beta1.ClusterRoleBinding, error)
- func (f *Factory) PrometheusOperatorDeployment() (*appsv1.Deployment, error)
- func (f *Factory) PrometheusOperatorService() (*v1.Service, error)
- func (f *Factory) PrometheusOperatorServiceAccount() (*v1.ServiceAccount, error)
- func (f *Factory) PrometheusOperatorServiceMonitor() (*monv1.ServiceMonitor, error)
- type GrafanaConfig
- type GrafanaDatasource
- type GrafanaDatasources
- type GrafanaJsonData
- type HTTPConfig
- type KubeRbacProxyConfig
- type KubeStateMetricsConfig
- type NodeExporterConfig
- type PrometheusK8sConfig
- type PrometheusOperatorConfig
Constants ¶
This section is empty.
Variables ¶
var ( AlertmanagerConfig = "assets/alertmanager/secret.yaml" AlertmanagerService = "assets/alertmanager/service.yaml" AlertmanagerProxySecret = "assets/alertmanager/proxy-secret.yaml" AlertmanagerMain = "assets/alertmanager/alertmanager.yaml" AlertmanagerServiceAccount = "assets/alertmanager/service-account.yaml" AlertmanagerClusterRoleBinding = "assets/alertmanager/cluster-role-binding.yaml" AlertmanagerClusterRole = "assets/alertmanager/cluster-role.yaml" AlertmanagerRoute = "assets/alertmanager/route.yaml" AlertmanagerServiceMonitor = "assets/alertmanager/service-monitor.yaml" KubeStateMetricsClusterRoleBinding = "assets/kube-state-metrics/cluster-role-binding.yaml" KubeStateMetricsClusterRole = "assets/kube-state-metrics/cluster-role.yaml" KubeStateMetricsDeployment = "assets/kube-state-metrics/deployment.yaml" KubeStateMetricsServiceAccount = "assets/kube-state-metrics/service-account.yaml" KubeStateMetricsService = "assets/kube-state-metrics/service.yaml" KubeStateMetricsServiceMonitor = "assets/kube-state-metrics/service-monitor.yaml" NodeExporterDaemonSet = "assets/node-exporter/daemonset.yaml" NodeExporterService = "assets/node-exporter/service.yaml" NodeExporterServiceAccount = "assets/node-exporter/service-account.yaml" NodeExporterClusterRole = "assets/node-exporter/cluster-role.yaml" NodeExporterClusterRoleBinding = "assets/node-exporter/cluster-role-binding.yaml" NodeExporterSecurityContextConstraints = "assets/node-exporter/security-context-constraints.yaml" NodeExporterServiceMonitor = "assets/node-exporter/service-monitor.yaml" PrometheusK8sClusterRoleBinding = "assets/prometheus-k8s/cluster-role-binding.yaml" PrometheusK8sRoleBindingConfig = "assets/prometheus-k8s/role-binding-config.yaml" PrometheusK8sRoleBindingList = "assets/prometheus-k8s/role-binding-specific-namespaces.yaml" PrometheusK8sClusterRole = "assets/prometheus-k8s/cluster-role.yaml" PrometheusK8sRoleConfig = "assets/prometheus-k8s/role-config.yaml" PrometheusK8sRoleList = "assets/prometheus-k8s/role-specific-namespaces.yaml" PrometheusK8sRules = "assets/prometheus-k8s/rules.yaml" PrometheusK8sServiceAccount = "assets/prometheus-k8s/service-account.yaml" PrometheusK8s = "assets/prometheus-k8s/prometheus.yaml" PrometheusK8sKubeletServiceMonitor = "assets/prometheus-k8s/service-monitor-kubelet.yaml" PrometheusK8sApiserverServiceMonitor = "assets/prometheus-k8s/service-monitor-apiserver.yaml" PrometheusK8sPrometheusServiceMonitor = "assets/prometheus-k8s/service-monitor.yaml" PrometheusK8sKubeControllersServiceMonitor = "assets/prometheus-k8s/service-monitor-kube-controllers.yaml" PrometheusK8sService = "assets/prometheus-k8s/service.yaml" PrometheusK8sProxySecret = "assets/prometheus-k8s/proxy-secret.yaml" PrometheusK8sRoute = "assets/prometheus-k8s/route.yaml" PrometheusK8sHtpasswd = "assets/prometheus-k8s/htpasswd-secret.yaml" PrometheusK8sEtcdService = "assets/prometheus-k8s/service-etcd.yaml" PrometheusK8sEtcdEndpoints = "assets/prometheus-k8s/endpoints-etcd.yaml" PrometheusK8sEtcdCerts = "assets/prometheus-k8s/secret-etcd-certs.yaml" PrometheusK8sEtcdServiceMonitor = "assets/prometheus-k8s/service-monitor-etcd.yaml" PrometheusOperatorClusterRoleBinding = "assets/prometheus-operator/cluster-role-binding.yaml" PrometheusOperatorClusterRole = "assets/prometheus-operator/cluster-role.yaml" PrometheusOperatorServiceAccount = "assets/prometheus-operator/service-account.yaml" PrometheusOperatorDeployment = "assets/prometheus-operator/deployment.yaml" PrometheusOperatorService = "assets/prometheus-operator/service.yaml" PrometheusOperatorServiceMonitor = "assets/prometheus-operator/service-monitor.yaml" KubeControllersService = "assets/prometheus-k8s/kube-controllers-service.yaml" GrafanaClusterRoleBinding = "assets/grafana/cluster-role-binding.yaml" GrafanaClusterRole = "assets/grafana/cluster-role.yaml" GrafanaConfigSecret = "assets/grafana/config.yaml" GrafanaDatasourcesSecret = "assets/grafana/dashboard-datasources.yaml" GrafanaDashboardDefinitions = "assets/grafana/dashboard-definitions.yaml" GrafanaDashboardSources = "assets/grafana/dashboard-sources.yaml" GrafanaDeployment = "assets/grafana/deployment.yaml" GrafanaProxySecret = "assets/grafana/proxy-secret.yaml" GrafanaRoute = "assets/grafana/route.yaml" GrafanaServiceAccount = "assets/grafana/service-account.yaml" GrafanaService = "assets/grafana/service.yaml" ClusterMonitoringOperatorService = "assets/cluster-monitoring-operator/service.yaml" ClusterMonitoringOperatorServiceMonitor = "assets/cluster-monitoring-operator/service-monitor.yaml" ClusterMonitoringClusterRole = "assets/cluster-monitoring-operator/cluster-role.yaml" )
var ( PrometheusConfigReloaderFlag = "--prometheus-config-reloader=" ConfigReloaderImageFlag = "--config-reloader-image=" PrometheusOperatorNamespaceFlag = "--namespace=" AuthProxyExternalURLFlag = "-external-url=" AuthProxyCookieDomainFlag = "-cookie-domain=" AuthProxyRedirectURLFlag = "-redirect-url=" )
var InvalidImage = errors.New("image string invalid")
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func GeneratePassword ¶
GeneratePassword returns a base64 encoded securely random bytes.
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func MustAssetReader ¶
func NewAlertmanager ¶
func NewAlertmanager(manifest io.Reader) (*monv1.Alertmanager, error)
func NewClusterRole ¶
func NewClusterRole(manifest io.Reader) (*rbacv1beta1.ClusterRole, error)
func NewClusterRoleBinding ¶
func NewClusterRoleBinding(manifest io.Reader) (*rbacv1beta1.ClusterRoleBinding, error)
func NewConfigMapList ¶ added in v0.1.0
func NewConfigMapList(manifest io.Reader) (*v1.ConfigMapList, error)
func NewDeployment ¶
func NewDeployment(manifest io.Reader) (*appsv1.Deployment, error)
func NewPrometheus ¶
func NewPrometheus(manifest io.Reader) (*monv1.Prometheus, error)
func NewPrometheusRule ¶ added in v0.1.0
func NewPrometheusRule(manifest io.Reader) (*monv1.PrometheusRule, error)
func NewRoleBinding ¶
func NewRoleBinding(manifest io.Reader) (*rbacv1beta1.RoleBinding, error)
func NewRoleBindingList ¶ added in v0.1.1
func NewRoleBindingList(manifest io.Reader) (*rbacv1beta1.RoleBindingList, error)
func NewRoleList ¶ added in v0.1.1
func NewRoleList(manifest io.Reader) (*rbacv1beta1.RoleList, error)
func NewSecurityContextConstraints ¶
func NewSecurityContextConstraints(manifest io.Reader) (*securityv1.SecurityContextConstraints, error)
func NewServiceAccount ¶
func NewServiceAccount(manifest io.Reader) (*v1.ServiceAccount, error)
func NewServiceMonitor ¶
func NewServiceMonitor(manifest io.Reader) (*monv1.ServiceMonitor, error)
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
type AlertmanagerMainConfig ¶
type AlertmanagerMainConfig struct { BaseImage string `json:"baseImage"` Tag string `json:"-"` NodeSelector map[string]string `json:"nodeSelector"` Resources *v1.ResourceRequirements `json:"resources"` VolumeClaimTemplate *v1.PersistentVolumeClaim `json:"volumeClaimTemplate"` Hostport string `json:"hostport"` }
type AuthConfig ¶
type Config ¶
type Config struct { PrometheusOperatorConfig *PrometheusOperatorConfig `json:"prometheusOperator"` PrometheusK8sConfig *PrometheusK8sConfig `json:"prometheusK8s"` AlertmanagerMainConfig *AlertmanagerMainConfig `json:"alertmanagerMain"` AuthConfig *AuthConfig `json:"auth"` NodeExporterConfig *NodeExporterConfig `json:"nodeExporter"` KubeStateMetricsConfig *KubeStateMetricsConfig `json:"kubeStateMetrics"` KubeRbacProxyConfig *KubeRbacProxyConfig `json:"kubeRbacProxy"` GrafanaConfig *GrafanaConfig `json:"grafana"` EtcdConfig *EtcdConfig `json:"etcd"` HTTPConfig *HTTPConfig `json:"http"` }
func NewConfigFromString ¶
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
func (*Config) SetTagOverrides ¶ added in v0.1.0
type EtcdConfig ¶ added in v0.1.0
type EtcdConfig struct { Enabled *bool `json:"enabled"` Targets EtcdTargets `json:"targets,omitempty"` TLSConfig *EtcdTLSConfig `json:"tlsConfig"` }
type EtcdTLSConfig ¶ added in v0.1.0
type EtcdTLSConfig struct {
ServerName string `json:"serverName"`
}
type EtcdTargets ¶ added in v0.1.0
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func (*Factory) AlertmanagerClusterRole ¶
func (f *Factory) AlertmanagerClusterRole() (*rbacv1beta1.ClusterRole, error)
func (*Factory) AlertmanagerClusterRoleBinding ¶
func (f *Factory) AlertmanagerClusterRoleBinding() (*rbacv1beta1.ClusterRoleBinding, error)
func (*Factory) AlertmanagerExternalURL ¶
func (*Factory) AlertmanagerMain ¶
func (f *Factory) AlertmanagerMain(host string) (*monv1.Alertmanager, error)
func (*Factory) AlertmanagerProxySecret ¶
func (*Factory) AlertmanagerServiceAccount ¶
func (f *Factory) AlertmanagerServiceAccount() (*v1.ServiceAccount, error)
func (*Factory) AlertmanagerServiceMonitor ¶ added in v0.1.0
func (f *Factory) AlertmanagerServiceMonitor() (*monv1.ServiceMonitor, error)
func (*Factory) ClusterMonitoringClusterRole ¶ added in v0.1.1
func (f *Factory) ClusterMonitoringClusterRole() (*rbacv1beta1.ClusterRole, error)
func (*Factory) ClusterMonitoringOperatorService ¶ added in v0.1.1
func (*Factory) ClusterMonitoringOperatorServiceMonitor ¶ added in v0.1.1
func (f *Factory) ClusterMonitoringOperatorServiceMonitor() (*monv1.ServiceMonitor, error)
func (*Factory) GrafanaClusterRole ¶ added in v0.1.0
func (f *Factory) GrafanaClusterRole() (*rbacv1beta1.ClusterRole, error)
func (*Factory) GrafanaClusterRoleBinding ¶ added in v0.1.0
func (f *Factory) GrafanaClusterRoleBinding() (*rbacv1beta1.ClusterRoleBinding, error)
func (*Factory) GrafanaConfig ¶ added in v0.1.0
func (*Factory) GrafanaDashboardDefinitions ¶ added in v0.1.0
func (f *Factory) GrafanaDashboardDefinitions() (*v1.ConfigMapList, error)
func (*Factory) GrafanaDashboardSources ¶ added in v0.1.0
func (*Factory) GrafanaDatasources ¶ added in v0.1.0
func (*Factory) GrafanaDeployment ¶ added in v0.1.0
func (f *Factory) GrafanaDeployment() (*appsv1.Deployment, error)
func (*Factory) GrafanaProxySecret ¶ added in v0.1.0
func (*Factory) GrafanaRoute ¶ added in v0.1.0
func (*Factory) GrafanaService ¶ added in v0.1.0
func (*Factory) GrafanaServiceAccount ¶ added in v0.1.0
func (f *Factory) GrafanaServiceAccount() (*v1.ServiceAccount, error)
func (*Factory) KubeControllersService ¶
func (*Factory) KubeStateMetricsClusterRole ¶
func (f *Factory) KubeStateMetricsClusterRole() (*rbacv1beta1.ClusterRole, error)
func (*Factory) KubeStateMetricsClusterRoleBinding ¶
func (f *Factory) KubeStateMetricsClusterRoleBinding() (*rbacv1beta1.ClusterRoleBinding, error)
func (*Factory) KubeStateMetricsDeployment ¶
func (f *Factory) KubeStateMetricsDeployment() (*appsv1.Deployment, error)
func (*Factory) KubeStateMetricsService ¶
func (*Factory) KubeStateMetricsServiceAccount ¶
func (f *Factory) KubeStateMetricsServiceAccount() (*v1.ServiceAccount, error)
func (*Factory) KubeStateMetricsServiceMonitor ¶ added in v0.1.0
func (f *Factory) KubeStateMetricsServiceMonitor() (*monv1.ServiceMonitor, error)
func (*Factory) NewAlertmanager ¶
func (*Factory) NewClusterRole ¶
func (f *Factory) NewClusterRole(manifest io.Reader) (*rbacv1beta1.ClusterRole, error)
func (*Factory) NewClusterRoleBinding ¶
func (f *Factory) NewClusterRoleBinding(manifest io.Reader) (*rbacv1beta1.ClusterRoleBinding, error)
func (*Factory) NewConfigMap ¶
func (*Factory) NewConfigMapList ¶ added in v0.1.0
func (*Factory) NewDaemonSet ¶
func (*Factory) NewDeployment ¶
func (*Factory) NewEndpoints ¶ added in v0.1.0
func (*Factory) NewIngress ¶
func (*Factory) NewPrometheus ¶
func (*Factory) NewPrometheusRule ¶ added in v0.1.0
func (*Factory) NewRoleBinding ¶
func (f *Factory) NewRoleBinding(manifest io.Reader) (*rbacv1beta1.RoleBinding, error)
func (*Factory) NewRoleBindingList ¶ added in v0.1.1
func (f *Factory) NewRoleBindingList(manifest io.Reader) (*rbacv1beta1.RoleBindingList, error)
func (*Factory) NewRoleList ¶ added in v0.1.1
func (*Factory) NewSecurityContextConstraints ¶
func (f *Factory) NewSecurityContextConstraints(manifest io.Reader) (*securityv1.SecurityContextConstraints, error)
func (*Factory) NewServiceAccount ¶
func (*Factory) NewServiceMonitor ¶
func (*Factory) NodeExporterClusterRole ¶
func (f *Factory) NodeExporterClusterRole() (*rbacv1beta1.ClusterRole, error)
func (*Factory) NodeExporterClusterRoleBinding ¶
func (f *Factory) NodeExporterClusterRoleBinding() (*rbacv1beta1.ClusterRoleBinding, error)
func (*Factory) NodeExporterDaemonSet ¶
func (*Factory) NodeExporterSecurityContextConstraints ¶
func (f *Factory) NodeExporterSecurityContextConstraints() (*securityv1.SecurityContextConstraints, error)
func (*Factory) NodeExporterServiceAccount ¶
func (f *Factory) NodeExporterServiceAccount() (*v1.ServiceAccount, error)
func (*Factory) NodeExporterServiceMonitor ¶ added in v0.1.0
func (f *Factory) NodeExporterServiceMonitor() (*monv1.ServiceMonitor, error)
func (*Factory) PrometheusExternalURL ¶
func (*Factory) PrometheusK8s ¶
func (f *Factory) PrometheusK8s(host string) (*monv1.Prometheus, error)
func (*Factory) PrometheusK8sApiserverServiceMonitor ¶
func (f *Factory) PrometheusK8sApiserverServiceMonitor() (*monv1.ServiceMonitor, error)
func (*Factory) PrometheusK8sClusterRole ¶
func (f *Factory) PrometheusK8sClusterRole() (*rbacv1beta1.ClusterRole, error)
func (*Factory) PrometheusK8sClusterRoleBinding ¶
func (f *Factory) PrometheusK8sClusterRoleBinding() (*rbacv1beta1.ClusterRoleBinding, error)
func (*Factory) PrometheusK8sEtcdCerts ¶ added in v0.1.0
func (*Factory) PrometheusK8sEtcdEndpoints ¶ added in v0.1.0
func (*Factory) PrometheusK8sEtcdService ¶ added in v0.1.0
func (*Factory) PrometheusK8sEtcdServiceMonitor ¶ added in v0.1.0
func (f *Factory) PrometheusK8sEtcdServiceMonitor() (*monv1.ServiceMonitor, error)
func (*Factory) PrometheusK8sHtpasswdSecret ¶ added in v0.1.0
func (*Factory) PrometheusK8sKubeControllersServiceMonitor ¶
func (f *Factory) PrometheusK8sKubeControllersServiceMonitor() (*monv1.ServiceMonitor, error)
func (*Factory) PrometheusK8sKubeletServiceMonitor ¶
func (f *Factory) PrometheusK8sKubeletServiceMonitor() (*monv1.ServiceMonitor, error)
func (*Factory) PrometheusK8sPrometheusServiceMonitor ¶
func (f *Factory) PrometheusK8sPrometheusServiceMonitor() (*monv1.ServiceMonitor, error)
func (*Factory) PrometheusK8sProxySecret ¶
func (*Factory) PrometheusK8sRoleBindingConfig ¶ added in v0.1.0
func (f *Factory) PrometheusK8sRoleBindingConfig() (*rbacv1beta1.RoleBinding, error)
func (*Factory) PrometheusK8sRoleBindingList ¶ added in v0.1.1
func (f *Factory) PrometheusK8sRoleBindingList() (*rbacv1beta1.RoleBindingList, error)
func (*Factory) PrometheusK8sRoleConfig ¶ added in v0.1.0
func (f *Factory) PrometheusK8sRoleConfig() (*rbacv1beta1.Role, error)
func (*Factory) PrometheusK8sRoleList ¶ added in v0.1.1
func (f *Factory) PrometheusK8sRoleList() (*rbacv1beta1.RoleList, error)
func (*Factory) PrometheusK8sRules ¶
func (f *Factory) PrometheusK8sRules() (*monv1.PrometheusRule, error)
func (*Factory) PrometheusK8sService ¶
func (*Factory) PrometheusK8sServiceAccount ¶
func (f *Factory) PrometheusK8sServiceAccount() (*v1.ServiceAccount, error)
func (*Factory) PrometheusOperatorClusterRole ¶
func (f *Factory) PrometheusOperatorClusterRole() (*rbacv1beta1.ClusterRole, error)
func (*Factory) PrometheusOperatorClusterRoleBinding ¶
func (f *Factory) PrometheusOperatorClusterRoleBinding() (*rbacv1beta1.ClusterRoleBinding, error)
func (*Factory) PrometheusOperatorDeployment ¶
func (f *Factory) PrometheusOperatorDeployment() (*appsv1.Deployment, error)
func (*Factory) PrometheusOperatorService ¶
func (*Factory) PrometheusOperatorServiceAccount ¶
func (f *Factory) PrometheusOperatorServiceAccount() (*v1.ServiceAccount, error)
func (*Factory) PrometheusOperatorServiceMonitor ¶ added in v0.1.0
func (f *Factory) PrometheusOperatorServiceMonitor() (*monv1.ServiceMonitor, error)
type GrafanaConfig ¶ added in v0.1.0
type GrafanaDatasource ¶ added in v0.1.0
type GrafanaDatasource struct { Access string `json:"access"` BasicAuth bool `json:"basicAuth"` BasicAuthPassword string `json:"basicAuthPassword"` BasicAuthUser string `json:"basicAuthUser"` Editable bool `json:"editable"` JsonData *GrafanaJsonData `json:"jsonData"` Name string `json:"name"` OrgId int `json:"orgId"` Type string `json:"type"` Url string `json:"url"` Version int `json:"version"` }
type GrafanaDatasources ¶ added in v0.1.0
type GrafanaDatasources struct { ApiVersion int `json:"apiVersion"` Datasources []*GrafanaDatasource `json:"datasources"` }
type GrafanaJsonData ¶ added in v0.1.0
type GrafanaJsonData struct {
TlsSkipVerify bool `json:"tlsSkipVerify"`
}
type HTTPConfig ¶ added in v0.1.1
type KubeRbacProxyConfig ¶
type KubeStateMetricsConfig ¶
type NodeExporterConfig ¶
type PrometheusK8sConfig ¶
type PrometheusK8sConfig struct { Retention string `json:"retention"` BaseImage string `json:"baseImage"` Tag string `json:"-"` NodeSelector map[string]string `json:"nodeSelector"` Resources *v1.ResourceRequirements `json:"resources"` ExternalLabels map[string]string `json:"externalLabels"` VolumeClaimTemplate *v1.PersistentVolumeClaim `json:"volumeClaimTemplate"` Hostport string `json:"hostport"` }
type PrometheusOperatorConfig ¶
type PrometheusOperatorConfig struct { BaseImage string `json:"baseImage"` Tag string `json:"-"` PrometheusConfigReloader string `json:"prometheusConfigReloaderBaseImage"` PrometheusConfigReloaderTag string `json:"-"` ConfigReloaderImage string `json:"configReloaderBaseImage"` ConfigReloaderTag string `json:"-"` NodeSelector map[string]string `json:"nodeSelector"` }