mirror of
https://github.com/rancher/types.git
synced 2025-09-17 15:29:10 +00:00
Generated code
This commit is contained in:
@@ -11,6 +11,7 @@ const (
|
||||
AlertmanagerFieldAnnotations = "annotations"
|
||||
AlertmanagerFieldBaseImage = "baseImage"
|
||||
AlertmanagerFieldConfigMaps = "configMaps"
|
||||
AlertmanagerFieldConfigSecret = "configSecret"
|
||||
AlertmanagerFieldContainers = "containers"
|
||||
AlertmanagerFieldCreated = "created"
|
||||
AlertmanagerFieldCreatorID = "creatorId"
|
||||
@@ -59,6 +60,7 @@ type Alertmanager struct {
|
||||
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
|
||||
BaseImage string `json:"baseImage,omitempty" yaml:"baseImage,omitempty"`
|
||||
ConfigMaps []string `json:"configMaps,omitempty" yaml:"configMaps,omitempty"`
|
||||
ConfigSecret string `json:"configSecret,omitempty" yaml:"configSecret,omitempty"`
|
||||
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
|
||||
Created string `json:"created,omitempty" yaml:"created,omitempty"`
|
||||
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
|
||||
|
@@ -4,6 +4,7 @@ import "k8s.io/apimachinery/pkg/util/intstr"
|
||||
|
||||
const (
|
||||
AlertmanagerEndpointsType = "alertmanagerEndpoints"
|
||||
AlertmanagerEndpointsFieldAPIVersion = "apiVersion"
|
||||
AlertmanagerEndpointsFieldBearerTokenFile = "bearerTokenFile"
|
||||
AlertmanagerEndpointsFieldName = "name"
|
||||
AlertmanagerEndpointsFieldNamespace = "namespace"
|
||||
@@ -14,6 +15,7 @@ const (
|
||||
)
|
||||
|
||||
type AlertmanagerEndpoints struct {
|
||||
APIVersion string `json:"apiVersion,omitempty" yaml:"apiVersion,omitempty"`
|
||||
BearerTokenFile string `json:"bearerTokenFile,omitempty" yaml:"bearerTokenFile,omitempty"`
|
||||
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
|
||||
|
@@ -6,6 +6,7 @@ const (
|
||||
AlertmanagerSpecFieldAffinity = "affinity"
|
||||
AlertmanagerSpecFieldBaseImage = "baseImage"
|
||||
AlertmanagerSpecFieldConfigMaps = "configMaps"
|
||||
AlertmanagerSpecFieldConfigSecret = "configSecret"
|
||||
AlertmanagerSpecFieldContainers = "containers"
|
||||
AlertmanagerSpecFieldExternalURL = "externalUrl"
|
||||
AlertmanagerSpecFieldImage = "image"
|
||||
@@ -40,6 +41,7 @@ type AlertmanagerSpec struct {
|
||||
Affinity *Affinity `json:"affinity,omitempty" yaml:"affinity,omitempty"`
|
||||
BaseImage string `json:"baseImage,omitempty" yaml:"baseImage,omitempty"`
|
||||
ConfigMaps []string `json:"configMaps,omitempty" yaml:"configMaps,omitempty"`
|
||||
ConfigSecret string `json:"configSecret,omitempty" yaml:"configSecret,omitempty"`
|
||||
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
|
||||
ExternalURL string `json:"externalUrl,omitempty" yaml:"externalUrl,omitempty"`
|
||||
Image string `json:"image,omitempty" yaml:"image,omitempty"`
|
||||
|
@@ -0,0 +1,10 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
ArbitraryFSAccessThroughSMsConfigType = "arbitraryFSAccessThroughSMsConfig"
|
||||
ArbitraryFSAccessThroughSMsConfigFieldDeny = "deny"
|
||||
)
|
||||
|
||||
type ArbitraryFSAccessThroughSMsConfig struct {
|
||||
Deny bool `json:"deny,omitempty" yaml:"deny,omitempty"`
|
||||
}
|
@@ -3,22 +3,26 @@ package client
|
||||
import "k8s.io/apimachinery/pkg/util/intstr"
|
||||
|
||||
const (
|
||||
EndpointType = "endpoint"
|
||||
EndpointFieldInterval = "interval"
|
||||
EndpointFieldParams = "params"
|
||||
EndpointFieldPath = "path"
|
||||
EndpointFieldRelabelConfigs = "relabelings"
|
||||
EndpointFieldScheme = "scheme"
|
||||
EndpointFieldScrapeTimeout = "scrapeTimeout"
|
||||
EndpointFieldTargetPort = "targetPort"
|
||||
EndpointType = "endpoint"
|
||||
EndpointFieldBearerTokenSecret = "bearerTokenSecret"
|
||||
EndpointFieldHonorTimestamps = "honorTimestamps"
|
||||
EndpointFieldInterval = "interval"
|
||||
EndpointFieldParams = "params"
|
||||
EndpointFieldPath = "path"
|
||||
EndpointFieldRelabelConfigs = "relabelings"
|
||||
EndpointFieldScheme = "scheme"
|
||||
EndpointFieldScrapeTimeout = "scrapeTimeout"
|
||||
EndpointFieldTargetPort = "targetPort"
|
||||
)
|
||||
|
||||
type Endpoint struct {
|
||||
Interval string `json:"interval,omitempty" yaml:"interval,omitempty"`
|
||||
Params map[string][]string `json:"params,omitempty" yaml:"params,omitempty"`
|
||||
Path string `json:"path,omitempty" yaml:"path,omitempty"`
|
||||
RelabelConfigs []RelabelConfig `json:"relabelings,omitempty" yaml:"relabelings,omitempty"`
|
||||
Scheme string `json:"scheme,omitempty" yaml:"scheme,omitempty"`
|
||||
ScrapeTimeout string `json:"scrapeTimeout,omitempty" yaml:"scrapeTimeout,omitempty"`
|
||||
TargetPort intstr.IntOrString `json:"targetPort,omitempty" yaml:"targetPort,omitempty"`
|
||||
BearerTokenSecret *SecretKeySelector `json:"bearerTokenSecret,omitempty" yaml:"bearerTokenSecret,omitempty"`
|
||||
HonorTimestamps *bool `json:"honorTimestamps,omitempty" yaml:"honorTimestamps,omitempty"`
|
||||
Interval string `json:"interval,omitempty" yaml:"interval,omitempty"`
|
||||
Params map[string][]string `json:"params,omitempty" yaml:"params,omitempty"`
|
||||
Path string `json:"path,omitempty" yaml:"path,omitempty"`
|
||||
RelabelConfigs []RelabelConfig `json:"relabelings,omitempty" yaml:"relabelings,omitempty"`
|
||||
Scheme string `json:"scheme,omitempty" yaml:"scheme,omitempty"`
|
||||
ScrapeTimeout string `json:"scrapeTimeout,omitempty" yaml:"scrapeTimeout,omitempty"`
|
||||
TargetPort intstr.IntOrString `json:"targetPort,omitempty" yaml:"targetPort,omitempty"`
|
||||
}
|
||||
|
@@ -12,16 +12,20 @@ const (
|
||||
PrometheusFieldAffinity = "affinity"
|
||||
PrometheusFieldAlerting = "alerting"
|
||||
PrometheusFieldAnnotations = "annotations"
|
||||
PrometheusFieldArbitraryFSAccessThroughSMs = "arbitraryFSAccessThroughSMs"
|
||||
PrometheusFieldBaseImage = "baseImage"
|
||||
PrometheusFieldConfigMaps = "configMaps"
|
||||
PrometheusFieldContainers = "containers"
|
||||
PrometheusFieldCreated = "created"
|
||||
PrometheusFieldCreatorID = "creatorId"
|
||||
PrometheusFieldDescription = "description"
|
||||
PrometheusFieldDisableCompaction = "disableCompaction"
|
||||
PrometheusFieldEnableAdminAPI = "enableAdminAPI"
|
||||
PrometheusFieldEnforcedNamespaceLabel = "enforcedNamespaceLabel"
|
||||
PrometheusFieldEvaluationInterval = "evaluationInterval"
|
||||
PrometheusFieldExternalLabels = "externalLabels"
|
||||
PrometheusFieldExternalURL = "externalUrl"
|
||||
PrometheusFieldIgnoreNamespaceSelectors = "ignoreNamespaceSelectors"
|
||||
PrometheusFieldImage = "image"
|
||||
PrometheusFieldImagePullSecrets = "imagePullSecrets"
|
||||
PrometheusFieldInitContainers = "initContainers"
|
||||
@@ -32,6 +36,8 @@ const (
|
||||
PrometheusFieldName = "name"
|
||||
PrometheusFieldNamespaceId = "namespaceId"
|
||||
PrometheusFieldNodeSelector = "nodeSelector"
|
||||
PrometheusFieldOverrideHonorLabels = "overrideHonorLabels"
|
||||
PrometheusFieldOverrideHonorTimestamps = "overrideHonorTimestamps"
|
||||
PrometheusFieldOwnerReferences = "ownerReferences"
|
||||
PrometheusFieldPodMetadata = "podMetadata"
|
||||
PrometheusFieldPodMonitorNamespaceSelector = "podMonitorNamespaceSelector"
|
||||
@@ -72,68 +78,74 @@ const (
|
||||
|
||||
type Prometheus struct {
|
||||
types.Resource
|
||||
AdditionalAlertManagerConfigs *SecretKeySelector `json:"additionalAlertManagerConfigs,omitempty" yaml:"additionalAlertManagerConfigs,omitempty"`
|
||||
AdditionalAlertRelabelConfigs *SecretKeySelector `json:"additionalAlertRelabelConfigs,omitempty" yaml:"additionalAlertRelabelConfigs,omitempty"`
|
||||
AdditionalScrapeConfigs *SecretKeySelector `json:"additionalScrapeConfigs,omitempty" yaml:"additionalScrapeConfigs,omitempty"`
|
||||
Affinity *Affinity `json:"affinity,omitempty" yaml:"affinity,omitempty"`
|
||||
Alerting *AlertingSpec `json:"alerting,omitempty" yaml:"alerting,omitempty"`
|
||||
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
|
||||
BaseImage string `json:"baseImage,omitempty" yaml:"baseImage,omitempty"`
|
||||
ConfigMaps []string `json:"configMaps,omitempty" yaml:"configMaps,omitempty"`
|
||||
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
|
||||
Created string `json:"created,omitempty" yaml:"created,omitempty"`
|
||||
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
|
||||
Description string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||
EnableAdminAPI bool `json:"enableAdminAPI,omitempty" yaml:"enableAdminAPI,omitempty"`
|
||||
EvaluationInterval string `json:"evaluationInterval,omitempty" yaml:"evaluationInterval,omitempty"`
|
||||
ExternalLabels map[string]string `json:"externalLabels,omitempty" yaml:"externalLabels,omitempty"`
|
||||
ExternalURL string `json:"externalUrl,omitempty" yaml:"externalUrl,omitempty"`
|
||||
Image string `json:"image,omitempty" yaml:"image,omitempty"`
|
||||
ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty" yaml:"imagePullSecrets,omitempty"`
|
||||
InitContainers []Container `json:"initContainers,omitempty" yaml:"initContainers,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||
ListenLocal bool `json:"listenLocal,omitempty" yaml:"listenLocal,omitempty"`
|
||||
LogFormat string `json:"logFormat,omitempty" yaml:"logFormat,omitempty"`
|
||||
LogLevel string `json:"logLevel,omitempty" yaml:"logLevel,omitempty"`
|
||||
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
NamespaceId string `json:"namespaceId,omitempty" yaml:"namespaceId,omitempty"`
|
||||
NodeSelector map[string]string `json:"nodeSelector,omitempty" yaml:"nodeSelector,omitempty"`
|
||||
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"`
|
||||
PodMetadata *ObjectMeta `json:"podMetadata,omitempty" yaml:"podMetadata,omitempty"`
|
||||
PodMonitorNamespaceSelector *LabelSelector `json:"podMonitorNamespaceSelector,omitempty" yaml:"podMonitorNamespaceSelector,omitempty"`
|
||||
PodMonitorSelector *LabelSelector `json:"podMonitorSelector,omitempty" yaml:"podMonitorSelector,omitempty"`
|
||||
PortName string `json:"portName,omitempty" yaml:"portName,omitempty"`
|
||||
PriorityClassName string `json:"priorityClassName,omitempty" yaml:"priorityClassName,omitempty"`
|
||||
ProjectID string `json:"projectId,omitempty" yaml:"projectId,omitempty"`
|
||||
PrometheusExternalLabelName string `json:"prometheusExternalLabelName,omitempty" yaml:"prometheusExternalLabelName,omitempty"`
|
||||
Query *QuerySpec `json:"query,omitempty" yaml:"query,omitempty"`
|
||||
RemoteRead []RemoteReadSpec `json:"remoteRead,omitempty" yaml:"remoteRead,omitempty"`
|
||||
RemoteWrite []RemoteWriteSpec `json:"remoteWrite,omitempty" yaml:"remoteWrite,omitempty"`
|
||||
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
|
||||
ReplicaExternalLabelName string `json:"replicaExternalLabelName,omitempty" yaml:"replicaExternalLabelName,omitempty"`
|
||||
Replicas *int64 `json:"replicas,omitempty" yaml:"replicas,omitempty"`
|
||||
Resources *ResourceRequirements `json:"resources,omitempty" yaml:"resources,omitempty"`
|
||||
Retention string `json:"retention,omitempty" yaml:"retention,omitempty"`
|
||||
RetentionSize string `json:"retentionSize,omitempty" yaml:"retentionSize,omitempty"`
|
||||
RoutePrefix string `json:"routePrefix,omitempty" yaml:"routePrefix,omitempty"`
|
||||
RuleSelector *LabelSelector `json:"ruleSelector,omitempty" yaml:"ruleSelector,omitempty"`
|
||||
Rules *Rules `json:"rules,omitempty" yaml:"rules,omitempty"`
|
||||
SHA string `json:"sha,omitempty" yaml:"sha,omitempty"`
|
||||
ScrapeInterval string `json:"scrapeInterval,omitempty" yaml:"scrapeInterval,omitempty"`
|
||||
Secrets []string `json:"secrets,omitempty" yaml:"secrets,omitempty"`
|
||||
SecurityContext *PodSecurityContext `json:"securityContext,omitempty" yaml:"securityContext,omitempty"`
|
||||
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
|
||||
ServiceMonitorSelector *LabelSelector `json:"serviceMonitorSelector,omitempty" yaml:"serviceMonitorSelector,omitempty"`
|
||||
State string `json:"state,omitempty" yaml:"state,omitempty"`
|
||||
Storage *StorageSpec `json:"storage,omitempty" yaml:"storage,omitempty"`
|
||||
Tag string `json:"tag,omitempty" yaml:"tag,omitempty"`
|
||||
Tolerations []Toleration `json:"tolerations,omitempty" yaml:"tolerations,omitempty"`
|
||||
Transitioning string `json:"transitioning,omitempty" yaml:"transitioning,omitempty"`
|
||||
TransitioningMessage string `json:"transitioningMessage,omitempty" yaml:"transitioningMessage,omitempty"`
|
||||
UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
|
||||
Version string `json:"version,omitempty" yaml:"version,omitempty"`
|
||||
Volumes []Volume `json:"volumes,omitempty" yaml:"volumes,omitempty"`
|
||||
WALCompression *bool `json:"walCompression,omitempty" yaml:"walCompression,omitempty"`
|
||||
AdditionalAlertManagerConfigs *SecretKeySelector `json:"additionalAlertManagerConfigs,omitempty" yaml:"additionalAlertManagerConfigs,omitempty"`
|
||||
AdditionalAlertRelabelConfigs *SecretKeySelector `json:"additionalAlertRelabelConfigs,omitempty" yaml:"additionalAlertRelabelConfigs,omitempty"`
|
||||
AdditionalScrapeConfigs *SecretKeySelector `json:"additionalScrapeConfigs,omitempty" yaml:"additionalScrapeConfigs,omitempty"`
|
||||
Affinity *Affinity `json:"affinity,omitempty" yaml:"affinity,omitempty"`
|
||||
Alerting *AlertingSpec `json:"alerting,omitempty" yaml:"alerting,omitempty"`
|
||||
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
|
||||
ArbitraryFSAccessThroughSMs *ArbitraryFSAccessThroughSMsConfig `json:"arbitraryFSAccessThroughSMs,omitempty" yaml:"arbitraryFSAccessThroughSMs,omitempty"`
|
||||
BaseImage string `json:"baseImage,omitempty" yaml:"baseImage,omitempty"`
|
||||
ConfigMaps []string `json:"configMaps,omitempty" yaml:"configMaps,omitempty"`
|
||||
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
|
||||
Created string `json:"created,omitempty" yaml:"created,omitempty"`
|
||||
CreatorID string `json:"creatorId,omitempty" yaml:"creatorId,omitempty"`
|
||||
Description string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||
DisableCompaction bool `json:"disableCompaction,omitempty" yaml:"disableCompaction,omitempty"`
|
||||
EnableAdminAPI bool `json:"enableAdminAPI,omitempty" yaml:"enableAdminAPI,omitempty"`
|
||||
EnforcedNamespaceLabel string `json:"enforcedNamespaceLabel,omitempty" yaml:"enforcedNamespaceLabel,omitempty"`
|
||||
EvaluationInterval string `json:"evaluationInterval,omitempty" yaml:"evaluationInterval,omitempty"`
|
||||
ExternalLabels map[string]string `json:"externalLabels,omitempty" yaml:"externalLabels,omitempty"`
|
||||
ExternalURL string `json:"externalUrl,omitempty" yaml:"externalUrl,omitempty"`
|
||||
IgnoreNamespaceSelectors bool `json:"ignoreNamespaceSelectors,omitempty" yaml:"ignoreNamespaceSelectors,omitempty"`
|
||||
Image string `json:"image,omitempty" yaml:"image,omitempty"`
|
||||
ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty" yaml:"imagePullSecrets,omitempty"`
|
||||
InitContainers []Container `json:"initContainers,omitempty" yaml:"initContainers,omitempty"`
|
||||
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"`
|
||||
ListenLocal bool `json:"listenLocal,omitempty" yaml:"listenLocal,omitempty"`
|
||||
LogFormat string `json:"logFormat,omitempty" yaml:"logFormat,omitempty"`
|
||||
LogLevel string `json:"logLevel,omitempty" yaml:"logLevel,omitempty"`
|
||||
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
NamespaceId string `json:"namespaceId,omitempty" yaml:"namespaceId,omitempty"`
|
||||
NodeSelector map[string]string `json:"nodeSelector,omitempty" yaml:"nodeSelector,omitempty"`
|
||||
OverrideHonorLabels bool `json:"overrideHonorLabels,omitempty" yaml:"overrideHonorLabels,omitempty"`
|
||||
OverrideHonorTimestamps bool `json:"overrideHonorTimestamps,omitempty" yaml:"overrideHonorTimestamps,omitempty"`
|
||||
OwnerReferences []OwnerReference `json:"ownerReferences,omitempty" yaml:"ownerReferences,omitempty"`
|
||||
PodMetadata *ObjectMeta `json:"podMetadata,omitempty" yaml:"podMetadata,omitempty"`
|
||||
PodMonitorNamespaceSelector *LabelSelector `json:"podMonitorNamespaceSelector,omitempty" yaml:"podMonitorNamespaceSelector,omitempty"`
|
||||
PodMonitorSelector *LabelSelector `json:"podMonitorSelector,omitempty" yaml:"podMonitorSelector,omitempty"`
|
||||
PortName string `json:"portName,omitempty" yaml:"portName,omitempty"`
|
||||
PriorityClassName string `json:"priorityClassName,omitempty" yaml:"priorityClassName,omitempty"`
|
||||
ProjectID string `json:"projectId,omitempty" yaml:"projectId,omitempty"`
|
||||
PrometheusExternalLabelName string `json:"prometheusExternalLabelName,omitempty" yaml:"prometheusExternalLabelName,omitempty"`
|
||||
Query *QuerySpec `json:"query,omitempty" yaml:"query,omitempty"`
|
||||
RemoteRead []RemoteReadSpec `json:"remoteRead,omitempty" yaml:"remoteRead,omitempty"`
|
||||
RemoteWrite []RemoteWriteSpec `json:"remoteWrite,omitempty" yaml:"remoteWrite,omitempty"`
|
||||
Removed string `json:"removed,omitempty" yaml:"removed,omitempty"`
|
||||
ReplicaExternalLabelName string `json:"replicaExternalLabelName,omitempty" yaml:"replicaExternalLabelName,omitempty"`
|
||||
Replicas *int64 `json:"replicas,omitempty" yaml:"replicas,omitempty"`
|
||||
Resources *ResourceRequirements `json:"resources,omitempty" yaml:"resources,omitempty"`
|
||||
Retention string `json:"retention,omitempty" yaml:"retention,omitempty"`
|
||||
RetentionSize string `json:"retentionSize,omitempty" yaml:"retentionSize,omitempty"`
|
||||
RoutePrefix string `json:"routePrefix,omitempty" yaml:"routePrefix,omitempty"`
|
||||
RuleSelector *LabelSelector `json:"ruleSelector,omitempty" yaml:"ruleSelector,omitempty"`
|
||||
Rules *Rules `json:"rules,omitempty" yaml:"rules,omitempty"`
|
||||
SHA string `json:"sha,omitempty" yaml:"sha,omitempty"`
|
||||
ScrapeInterval string `json:"scrapeInterval,omitempty" yaml:"scrapeInterval,omitempty"`
|
||||
Secrets []string `json:"secrets,omitempty" yaml:"secrets,omitempty"`
|
||||
SecurityContext *PodSecurityContext `json:"securityContext,omitempty" yaml:"securityContext,omitempty"`
|
||||
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
|
||||
ServiceMonitorSelector *LabelSelector `json:"serviceMonitorSelector,omitempty" yaml:"serviceMonitorSelector,omitempty"`
|
||||
State string `json:"state,omitempty" yaml:"state,omitempty"`
|
||||
Storage *StorageSpec `json:"storage,omitempty" yaml:"storage,omitempty"`
|
||||
Tag string `json:"tag,omitempty" yaml:"tag,omitempty"`
|
||||
Tolerations []Toleration `json:"tolerations,omitempty" yaml:"tolerations,omitempty"`
|
||||
Transitioning string `json:"transitioning,omitempty" yaml:"transitioning,omitempty"`
|
||||
TransitioningMessage string `json:"transitioningMessage,omitempty" yaml:"transitioningMessage,omitempty"`
|
||||
UUID string `json:"uuid,omitempty" yaml:"uuid,omitempty"`
|
||||
Version string `json:"version,omitempty" yaml:"version,omitempty"`
|
||||
Volumes []Volume `json:"volumes,omitempty" yaml:"volumes,omitempty"`
|
||||
WALCompression *bool `json:"walCompression,omitempty" yaml:"walCompression,omitempty"`
|
||||
}
|
||||
|
||||
type PrometheusCollection struct {
|
||||
|
@@ -7,13 +7,17 @@ const (
|
||||
PrometheusSpecFieldAdditionalScrapeConfigs = "additionalScrapeConfigs"
|
||||
PrometheusSpecFieldAffinity = "affinity"
|
||||
PrometheusSpecFieldAlerting = "alerting"
|
||||
PrometheusSpecFieldArbitraryFSAccessThroughSMs = "arbitraryFSAccessThroughSMs"
|
||||
PrometheusSpecFieldBaseImage = "baseImage"
|
||||
PrometheusSpecFieldConfigMaps = "configMaps"
|
||||
PrometheusSpecFieldContainers = "containers"
|
||||
PrometheusSpecFieldDisableCompaction = "disableCompaction"
|
||||
PrometheusSpecFieldEnableAdminAPI = "enableAdminAPI"
|
||||
PrometheusSpecFieldEnforcedNamespaceLabel = "enforcedNamespaceLabel"
|
||||
PrometheusSpecFieldEvaluationInterval = "evaluationInterval"
|
||||
PrometheusSpecFieldExternalLabels = "externalLabels"
|
||||
PrometheusSpecFieldExternalURL = "externalUrl"
|
||||
PrometheusSpecFieldIgnoreNamespaceSelectors = "ignoreNamespaceSelectors"
|
||||
PrometheusSpecFieldImage = "image"
|
||||
PrometheusSpecFieldImagePullSecrets = "imagePullSecrets"
|
||||
PrometheusSpecFieldInitContainers = "initContainers"
|
||||
@@ -21,6 +25,8 @@ const (
|
||||
PrometheusSpecFieldLogFormat = "logFormat"
|
||||
PrometheusSpecFieldLogLevel = "logLevel"
|
||||
PrometheusSpecFieldNodeSelector = "nodeSelector"
|
||||
PrometheusSpecFieldOverrideHonorLabels = "overrideHonorLabels"
|
||||
PrometheusSpecFieldOverrideHonorTimestamps = "overrideHonorTimestamps"
|
||||
PrometheusSpecFieldPodMetadata = "podMetadata"
|
||||
PrometheusSpecFieldPodMonitorNamespaceSelector = "podMonitorNamespaceSelector"
|
||||
PrometheusSpecFieldPodMonitorSelector = "podMonitorSelector"
|
||||
@@ -53,52 +59,58 @@ const (
|
||||
)
|
||||
|
||||
type PrometheusSpec struct {
|
||||
AdditionalAlertManagerConfigs *SecretKeySelector `json:"additionalAlertManagerConfigs,omitempty" yaml:"additionalAlertManagerConfigs,omitempty"`
|
||||
AdditionalAlertRelabelConfigs *SecretKeySelector `json:"additionalAlertRelabelConfigs,omitempty" yaml:"additionalAlertRelabelConfigs,omitempty"`
|
||||
AdditionalScrapeConfigs *SecretKeySelector `json:"additionalScrapeConfigs,omitempty" yaml:"additionalScrapeConfigs,omitempty"`
|
||||
Affinity *Affinity `json:"affinity,omitempty" yaml:"affinity,omitempty"`
|
||||
Alerting *AlertingSpec `json:"alerting,omitempty" yaml:"alerting,omitempty"`
|
||||
BaseImage string `json:"baseImage,omitempty" yaml:"baseImage,omitempty"`
|
||||
ConfigMaps []string `json:"configMaps,omitempty" yaml:"configMaps,omitempty"`
|
||||
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
|
||||
EnableAdminAPI bool `json:"enableAdminAPI,omitempty" yaml:"enableAdminAPI,omitempty"`
|
||||
EvaluationInterval string `json:"evaluationInterval,omitempty" yaml:"evaluationInterval,omitempty"`
|
||||
ExternalLabels map[string]string `json:"externalLabels,omitempty" yaml:"externalLabels,omitempty"`
|
||||
ExternalURL string `json:"externalUrl,omitempty" yaml:"externalUrl,omitempty"`
|
||||
Image string `json:"image,omitempty" yaml:"image,omitempty"`
|
||||
ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty" yaml:"imagePullSecrets,omitempty"`
|
||||
InitContainers []Container `json:"initContainers,omitempty" yaml:"initContainers,omitempty"`
|
||||
ListenLocal bool `json:"listenLocal,omitempty" yaml:"listenLocal,omitempty"`
|
||||
LogFormat string `json:"logFormat,omitempty" yaml:"logFormat,omitempty"`
|
||||
LogLevel string `json:"logLevel,omitempty" yaml:"logLevel,omitempty"`
|
||||
NodeSelector map[string]string `json:"nodeSelector,omitempty" yaml:"nodeSelector,omitempty"`
|
||||
PodMetadata *ObjectMeta `json:"podMetadata,omitempty" yaml:"podMetadata,omitempty"`
|
||||
PodMonitorNamespaceSelector *LabelSelector `json:"podMonitorNamespaceSelector,omitempty" yaml:"podMonitorNamespaceSelector,omitempty"`
|
||||
PodMonitorSelector *LabelSelector `json:"podMonitorSelector,omitempty" yaml:"podMonitorSelector,omitempty"`
|
||||
PortName string `json:"portName,omitempty" yaml:"portName,omitempty"`
|
||||
PriorityClassName string `json:"priorityClassName,omitempty" yaml:"priorityClassName,omitempty"`
|
||||
PrometheusExternalLabelName string `json:"prometheusExternalLabelName,omitempty" yaml:"prometheusExternalLabelName,omitempty"`
|
||||
Query *QuerySpec `json:"query,omitempty" yaml:"query,omitempty"`
|
||||
RemoteRead []RemoteReadSpec `json:"remoteRead,omitempty" yaml:"remoteRead,omitempty"`
|
||||
RemoteWrite []RemoteWriteSpec `json:"remoteWrite,omitempty" yaml:"remoteWrite,omitempty"`
|
||||
ReplicaExternalLabelName string `json:"replicaExternalLabelName,omitempty" yaml:"replicaExternalLabelName,omitempty"`
|
||||
Replicas *int64 `json:"replicas,omitempty" yaml:"replicas,omitempty"`
|
||||
Resources *ResourceRequirements `json:"resources,omitempty" yaml:"resources,omitempty"`
|
||||
Retention string `json:"retention,omitempty" yaml:"retention,omitempty"`
|
||||
RetentionSize string `json:"retentionSize,omitempty" yaml:"retentionSize,omitempty"`
|
||||
RoutePrefix string `json:"routePrefix,omitempty" yaml:"routePrefix,omitempty"`
|
||||
RuleSelector *LabelSelector `json:"ruleSelector,omitempty" yaml:"ruleSelector,omitempty"`
|
||||
Rules *Rules `json:"rules,omitempty" yaml:"rules,omitempty"`
|
||||
SHA string `json:"sha,omitempty" yaml:"sha,omitempty"`
|
||||
ScrapeInterval string `json:"scrapeInterval,omitempty" yaml:"scrapeInterval,omitempty"`
|
||||
Secrets []string `json:"secrets,omitempty" yaml:"secrets,omitempty"`
|
||||
SecurityContext *PodSecurityContext `json:"securityContext,omitempty" yaml:"securityContext,omitempty"`
|
||||
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
|
||||
ServiceMonitorSelector *LabelSelector `json:"serviceMonitorSelector,omitempty" yaml:"serviceMonitorSelector,omitempty"`
|
||||
Storage *StorageSpec `json:"storage,omitempty" yaml:"storage,omitempty"`
|
||||
Tag string `json:"tag,omitempty" yaml:"tag,omitempty"`
|
||||
Tolerations []Toleration `json:"tolerations,omitempty" yaml:"tolerations,omitempty"`
|
||||
Version string `json:"version,omitempty" yaml:"version,omitempty"`
|
||||
Volumes []Volume `json:"volumes,omitempty" yaml:"volumes,omitempty"`
|
||||
WALCompression *bool `json:"walCompression,omitempty" yaml:"walCompression,omitempty"`
|
||||
AdditionalAlertManagerConfigs *SecretKeySelector `json:"additionalAlertManagerConfigs,omitempty" yaml:"additionalAlertManagerConfigs,omitempty"`
|
||||
AdditionalAlertRelabelConfigs *SecretKeySelector `json:"additionalAlertRelabelConfigs,omitempty" yaml:"additionalAlertRelabelConfigs,omitempty"`
|
||||
AdditionalScrapeConfigs *SecretKeySelector `json:"additionalScrapeConfigs,omitempty" yaml:"additionalScrapeConfigs,omitempty"`
|
||||
Affinity *Affinity `json:"affinity,omitempty" yaml:"affinity,omitempty"`
|
||||
Alerting *AlertingSpec `json:"alerting,omitempty" yaml:"alerting,omitempty"`
|
||||
ArbitraryFSAccessThroughSMs *ArbitraryFSAccessThroughSMsConfig `json:"arbitraryFSAccessThroughSMs,omitempty" yaml:"arbitraryFSAccessThroughSMs,omitempty"`
|
||||
BaseImage string `json:"baseImage,omitempty" yaml:"baseImage,omitempty"`
|
||||
ConfigMaps []string `json:"configMaps,omitempty" yaml:"configMaps,omitempty"`
|
||||
Containers []Container `json:"containers,omitempty" yaml:"containers,omitempty"`
|
||||
DisableCompaction bool `json:"disableCompaction,omitempty" yaml:"disableCompaction,omitempty"`
|
||||
EnableAdminAPI bool `json:"enableAdminAPI,omitempty" yaml:"enableAdminAPI,omitempty"`
|
||||
EnforcedNamespaceLabel string `json:"enforcedNamespaceLabel,omitempty" yaml:"enforcedNamespaceLabel,omitempty"`
|
||||
EvaluationInterval string `json:"evaluationInterval,omitempty" yaml:"evaluationInterval,omitempty"`
|
||||
ExternalLabels map[string]string `json:"externalLabels,omitempty" yaml:"externalLabels,omitempty"`
|
||||
ExternalURL string `json:"externalUrl,omitempty" yaml:"externalUrl,omitempty"`
|
||||
IgnoreNamespaceSelectors bool `json:"ignoreNamespaceSelectors,omitempty" yaml:"ignoreNamespaceSelectors,omitempty"`
|
||||
Image string `json:"image,omitempty" yaml:"image,omitempty"`
|
||||
ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty" yaml:"imagePullSecrets,omitempty"`
|
||||
InitContainers []Container `json:"initContainers,omitempty" yaml:"initContainers,omitempty"`
|
||||
ListenLocal bool `json:"listenLocal,omitempty" yaml:"listenLocal,omitempty"`
|
||||
LogFormat string `json:"logFormat,omitempty" yaml:"logFormat,omitempty"`
|
||||
LogLevel string `json:"logLevel,omitempty" yaml:"logLevel,omitempty"`
|
||||
NodeSelector map[string]string `json:"nodeSelector,omitempty" yaml:"nodeSelector,omitempty"`
|
||||
OverrideHonorLabels bool `json:"overrideHonorLabels,omitempty" yaml:"overrideHonorLabels,omitempty"`
|
||||
OverrideHonorTimestamps bool `json:"overrideHonorTimestamps,omitempty" yaml:"overrideHonorTimestamps,omitempty"`
|
||||
PodMetadata *ObjectMeta `json:"podMetadata,omitempty" yaml:"podMetadata,omitempty"`
|
||||
PodMonitorNamespaceSelector *LabelSelector `json:"podMonitorNamespaceSelector,omitempty" yaml:"podMonitorNamespaceSelector,omitempty"`
|
||||
PodMonitorSelector *LabelSelector `json:"podMonitorSelector,omitempty" yaml:"podMonitorSelector,omitempty"`
|
||||
PortName string `json:"portName,omitempty" yaml:"portName,omitempty"`
|
||||
PriorityClassName string `json:"priorityClassName,omitempty" yaml:"priorityClassName,omitempty"`
|
||||
PrometheusExternalLabelName string `json:"prometheusExternalLabelName,omitempty" yaml:"prometheusExternalLabelName,omitempty"`
|
||||
Query *QuerySpec `json:"query,omitempty" yaml:"query,omitempty"`
|
||||
RemoteRead []RemoteReadSpec `json:"remoteRead,omitempty" yaml:"remoteRead,omitempty"`
|
||||
RemoteWrite []RemoteWriteSpec `json:"remoteWrite,omitempty" yaml:"remoteWrite,omitempty"`
|
||||
ReplicaExternalLabelName string `json:"replicaExternalLabelName,omitempty" yaml:"replicaExternalLabelName,omitempty"`
|
||||
Replicas *int64 `json:"replicas,omitempty" yaml:"replicas,omitempty"`
|
||||
Resources *ResourceRequirements `json:"resources,omitempty" yaml:"resources,omitempty"`
|
||||
Retention string `json:"retention,omitempty" yaml:"retention,omitempty"`
|
||||
RetentionSize string `json:"retentionSize,omitempty" yaml:"retentionSize,omitempty"`
|
||||
RoutePrefix string `json:"routePrefix,omitempty" yaml:"routePrefix,omitempty"`
|
||||
RuleSelector *LabelSelector `json:"ruleSelector,omitempty" yaml:"ruleSelector,omitempty"`
|
||||
Rules *Rules `json:"rules,omitempty" yaml:"rules,omitempty"`
|
||||
SHA string `json:"sha,omitempty" yaml:"sha,omitempty"`
|
||||
ScrapeInterval string `json:"scrapeInterval,omitempty" yaml:"scrapeInterval,omitempty"`
|
||||
Secrets []string `json:"secrets,omitempty" yaml:"secrets,omitempty"`
|
||||
SecurityContext *PodSecurityContext `json:"securityContext,omitempty" yaml:"securityContext,omitempty"`
|
||||
ServiceAccountName string `json:"serviceAccountName,omitempty" yaml:"serviceAccountName,omitempty"`
|
||||
ServiceMonitorSelector *LabelSelector `json:"serviceMonitorSelector,omitempty" yaml:"serviceMonitorSelector,omitempty"`
|
||||
Storage *StorageSpec `json:"storage,omitempty" yaml:"storage,omitempty"`
|
||||
Tag string `json:"tag,omitempty" yaml:"tag,omitempty"`
|
||||
Tolerations []Toleration `json:"tolerations,omitempty" yaml:"tolerations,omitempty"`
|
||||
Version string `json:"version,omitempty" yaml:"version,omitempty"`
|
||||
Volumes []Volume `json:"volumes,omitempty" yaml:"volumes,omitempty"`
|
||||
WALCompression *bool `json:"walCompression,omitempty" yaml:"walCompression,omitempty"`
|
||||
}
|
||||
|
@@ -1,14 +1,16 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
RuleGroupType = "ruleGroup"
|
||||
RuleGroupFieldInterval = "interval"
|
||||
RuleGroupFieldName = "name"
|
||||
RuleGroupFieldRules = "rules"
|
||||
RuleGroupType = "ruleGroup"
|
||||
RuleGroupFieldInterval = "interval"
|
||||
RuleGroupFieldName = "name"
|
||||
RuleGroupFieldPartialResponseStrategy = "partial_response_strategy"
|
||||
RuleGroupFieldRules = "rules"
|
||||
)
|
||||
|
||||
type RuleGroup struct {
|
||||
Interval string `json:"interval,omitempty" yaml:"interval,omitempty"`
|
||||
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
Rules []Rule `json:"rules,omitempty" yaml:"rules,omitempty"`
|
||||
Interval string `json:"interval,omitempty" yaml:"interval,omitempty"`
|
||||
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
PartialResponseStrategy string `json:"partial_response_strategy,omitempty" yaml:"partial_response_strategy,omitempty"`
|
||||
Rules []Rule `json:"rules,omitempty" yaml:"rules,omitempty"`
|
||||
}
|
||||
|
12
client/project/v3/zz_generated_secret_or_config_map.go
Normal file
12
client/project/v3/zz_generated_secret_or_config_map.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package client
|
||||
|
||||
const (
|
||||
SecretOrConfigMapType = "secretOrConfigMap"
|
||||
SecretOrConfigMapFieldConfigMap = "configMap"
|
||||
SecretOrConfigMapFieldSecret = "secret"
|
||||
)
|
||||
|
||||
type SecretOrConfigMap struct {
|
||||
ConfigMap *ConfigMapKeySelector `json:"configMap,omitempty" yaml:"configMap,omitempty"`
|
||||
Secret *SecretKeySelector `json:"secret,omitempty" yaml:"secret,omitempty"`
|
||||
}
|
@@ -4,19 +4,23 @@ const (
|
||||
ThanosSpecType = "thanosSpec"
|
||||
ThanosSpecFieldBaseImage = "baseImage"
|
||||
ThanosSpecFieldImage = "image"
|
||||
ThanosSpecFieldListenLocal = "listenLocal"
|
||||
ThanosSpecFieldObjectStorageConfig = "objectStorageConfig"
|
||||
ThanosSpecFieldResources = "resources"
|
||||
ThanosSpecFieldSHA = "sha"
|
||||
ThanosSpecFieldTag = "tag"
|
||||
ThanosSpecFieldTracingConfig = "tracingConfig"
|
||||
ThanosSpecFieldVersion = "version"
|
||||
)
|
||||
|
||||
type ThanosSpec struct {
|
||||
BaseImage string `json:"baseImage,omitempty" yaml:"baseImage,omitempty"`
|
||||
Image string `json:"image,omitempty" yaml:"image,omitempty"`
|
||||
ListenLocal bool `json:"listenLocal,omitempty" yaml:"listenLocal,omitempty"`
|
||||
ObjectStorageConfig *SecretKeySelector `json:"objectStorageConfig,omitempty" yaml:"objectStorageConfig,omitempty"`
|
||||
Resources *ResourceRequirements `json:"resources,omitempty" yaml:"resources,omitempty"`
|
||||
SHA string `json:"sha,omitempty" yaml:"sha,omitempty"`
|
||||
Tag string `json:"tag,omitempty" yaml:"tag,omitempty"`
|
||||
TracingConfig *SecretKeySelector `json:"tracingConfig,omitempty" yaml:"tracingConfig,omitempty"`
|
||||
Version string `json:"version,omitempty" yaml:"version,omitempty"`
|
||||
}
|
||||
|
@@ -2,17 +2,23 @@ package client
|
||||
|
||||
const (
|
||||
TLSConfigType = "tlsConfig"
|
||||
TLSConfigFieldCA = "ca"
|
||||
TLSConfigFieldCAFile = "caFile"
|
||||
TLSConfigFieldCert = "cert"
|
||||
TLSConfigFieldCertFile = "certFile"
|
||||
TLSConfigFieldInsecureSkipVerify = "insecureSkipVerify"
|
||||
TLSConfigFieldKeyFile = "keyFile"
|
||||
TLSConfigFieldKeySecret = "keySecret"
|
||||
TLSConfigFieldServerName = "serverName"
|
||||
)
|
||||
|
||||
type TLSConfig struct {
|
||||
CAFile string `json:"caFile,omitempty" yaml:"caFile,omitempty"`
|
||||
CertFile string `json:"certFile,omitempty" yaml:"certFile,omitempty"`
|
||||
InsecureSkipVerify bool `json:"insecureSkipVerify,omitempty" yaml:"insecureSkipVerify,omitempty"`
|
||||
KeyFile string `json:"keyFile,omitempty" yaml:"keyFile,omitempty"`
|
||||
ServerName string `json:"serverName,omitempty" yaml:"serverName,omitempty"`
|
||||
CA *SecretOrConfigMap `json:"ca,omitempty" yaml:"ca,omitempty"`
|
||||
CAFile string `json:"caFile,omitempty" yaml:"caFile,omitempty"`
|
||||
Cert *SecretOrConfigMap `json:"cert,omitempty" yaml:"cert,omitempty"`
|
||||
CertFile string `json:"certFile,omitempty" yaml:"certFile,omitempty"`
|
||||
InsecureSkipVerify bool `json:"insecureSkipVerify,omitempty" yaml:"insecureSkipVerify,omitempty"`
|
||||
KeyFile string `json:"keyFile,omitempty" yaml:"keyFile,omitempty"`
|
||||
KeySecret *SecretKeySelector `json:"keySecret,omitempty" yaml:"keySecret,omitempty"`
|
||||
ServerName string `json:"serverName,omitempty" yaml:"serverName,omitempty"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user