Documentation ¶
Overview ¶
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
+gotohelm:filename=_chart.go.tpl
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
+gotohelm:filename=_deployment.go.tpl
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
+gotohelm:filename=_helpers.go.tpl
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
+gotohelm:filename=_pod-monitor.go.tpl
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
+gotohelm:filename=_service.go.tpl
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
+gotohelm:filename=_serviceaccount.go.tpl
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
+gotohelm:filename=_values.go.tpl
+gotohelm:ignore=true
Code generated by genpartial DO NOT EDIT.
Index ¶
- Variables
- func ChartLabels(dot *helmette.Dot) string
- func Deployment(dot *helmette.Dot) *appsv1.Deployment
- func FullLabels(dot *helmette.Dot) map[string]string
- func Fullname(dot *helmette.Dot) string
- func Name(dot *helmette.Dot) string
- func PodLabels(dot *helmette.Dot) map[string]string
- func PodMonitor(dot *helmette.Dot) *monitoringv1.PodMonitor
- func Semver(dot *helmette.Dot) string
- func Service(dot *helmette.Dot) *corev1.Service
- func ServiceAccount(dot *helmette.Dot) *corev1.ServiceAccount
- func ServiceAccountName(dot *helmette.Dot) string
- func ServiceName(dot *helmette.Dot) string
- func Tag(dot *helmette.Dot) string
- type Auth
- type Connectors
- type ConnectorsStorage
- type Container
- type Creatable
- type DeploymentConfig
- type Image
- type Logging
- type MonitoringConfig
- type PartialAuth
- type PartialConnectors
- type PartialConnectorsStorage
- type PartialContainer
- type PartialCreatable
- type PartialDeploymentConfig
- type PartialImage
- type PartialLogging
- type PartialMonitoringConfig
- type PartialSecretManager
- type PartialServiceAccountConfig
- type PartialServiceConfig
- type PartialStorage
- type PartialTLS
- type PartialValues
- type SecretManager
- type ServiceAccountConfig
- type ServiceConfig
- type Storage
- type TLS
- type Values
Constants ¶
This section is empty.
Variables ¶
var ( // Scheme is a [runtime.Scheme] with the appropriate extensions to load all // objects produced by the console chart. Scheme = runtime.NewScheme() // ChartLabel is the go version of the console helm chart. Chart = gotohelm.MustLoad(chartYAML, defaultValuesYAML, render) )
var DefaultValuesYAML []byte
Functions ¶
func ChartLabels ¶
func Deployment ¶
func Deployment(dot *helmette.Dot) *appsv1.Deployment
func PodMonitor ¶
func PodMonitor(dot *helmette.Dot) *monitoringv1.PodMonitor
func ServiceAccount ¶
func ServiceAccount(dot *helmette.Dot) *corev1.ServiceAccount
func ServiceAccountName ¶
func ServiceName ¶
Types ¶
type Auth ¶
type Auth struct { SASL struct { Enabled bool `json:"enabled"` Mechanism string `json:"mechanism"` SecretRef string `json:"secretRef"` UserName string `json:"userName"` } `json:"sasl"` }
func (*Auth) SASLEnabled ¶
type Connectors ¶
type Connectors struct { RestPort int32 `json:"restPort"` BootstrapServers string `json:"bootstrapServers"` SchemaRegistryURL string `json:"schemaRegistryURL"` AdditionalConfiguration string `json:"additionalConfiguration"` SecretManager SecretManager `json:"secretManager"` ProducerBatchSize int32 `json:"producerBatchSize"` ProducerLingerMS int32 `json:"producerLingerMS"` Storage ConnectorsStorage `json:"storage"` GroupID string `json:"groupID"` BrokerTLS TLS `json:"brokerTLS"` }
type ConnectorsStorage ¶
type ConnectorsStorage struct { ReplicationFactor struct { Offset int32 `json:"offset"` Config int32 `json:"config"` Status int32 `json:"status"` } `json:"replicationFactor"` Remote struct { Read struct { Offset bool `json:"offset"` Config bool `json:"config"` Status bool `json:"status"` } `json:"read"` Write struct { Offset bool `json:"offset"` Config bool `json:"config"` Status bool `json:"status"` } `json:"write"` } `json:"remote"` Topic struct { Offset string `json:"offset"` Config string `json:"config"` Status string `json:"status"` } `json:"topic"` }
type Container ¶
type Container struct { SecurityContext corev1.SecurityContext `json:"securityContext"` Resources struct { Request corev1.ResourceList `json:"request"` Limits corev1.ResourceList `json:"limits"` JavaMaxHeapSize *resource.Quantity `json:"javaMaxHeapSize"` } `json:"resources"` JavaGCLogEnabled string `json:"javaGCLogEnabled"` // XXX ugh - it ends up as an env var }
type DeploymentConfig ¶
type DeploymentConfig struct { Replicas *int32 `json:"replicas,omitempty"` Create bool `json:"create"` Command []string `json:"command,omitempty"` Strategy appsv1.DeploymentStrategy `json:"strategy,omitempty"` SchedulerName string `json:"schedulerName"` Budget struct { MaxUnavailable int32 `json:"maxUnavailable"` } `json:"budget"` Annotations map[string]string `json:"annotations"` LivenessProbe *corev1.Probe `json:"livenessProbe,omitempty"` ReadinessProbe *corev1.Probe `json:"readinessProbe,omitempty"` ExtraEnv []corev1.EnvVar `json:"extraEnv"` ExtraEnvFrom []corev1.EnvFromSource `json:"extraEnvFrom"` ProgressDeadlineSeconds int32 `json:"progressDeadlineSeconds"` RevisionHistoryLimit *int32 `json:"revisionHistoryLimit,omitempty"` PodAffinity *corev1.PodAffinity `json:"podAffinity,omitempty"` NodeAffinity *corev1.NodeAffinity `json:"nodeAffinity,omitempty"` PodAntiAffinity *struct { TopologyKey string `json:"topologyKey"` Type string `json:"type"` Weight *int32 `json:"weight,omitempty"` Custom *corev1.PodAntiAffinity `json:"custom,omitempty"` } `json:"podAntiAffinity,omitempty"` NodeSelector map[string]string `json:"nodeSelector"` PriorityClassName *string `json:"priorityClassName,omitempty"` // XXX uused in original template Tolerations []corev1.Toleration `json:"tolerations"` TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty"` SecurityContext *corev1.PodSecurityContext `json:"securityContext,omitempty"` TerminationGracePeriodSeconds *int64 `json:"terminationGracePeriodSeconds,omitempty"` RestartPolicy corev1.RestartPolicy `json:"restartPolicy"` }
type Image ¶
type Image struct { Repository string `json:"repository"` PullPolicy corev1.PullPolicy `json:"pullPolicy"` Tag string `json:"tag"` }
type MonitoringConfig ¶
type MonitoringConfig struct { Enabled bool `json:"enabled"` ScrapeInterval metav1.Duration `json:"scrapeInterval"` Labels map[string]string `json:"labels"` Annotations map[string]string `json:"annotations"` NamespaceSelector monitoringv1.NamespaceSelector `json:"namespaceSelector"` }
type PartialAuth ¶
type PartialConnectors ¶
type PartialConnectors struct { RestPort *int32 "json:\"restPort,omitempty\"" BootstrapServers *string "json:\"bootstrapServers,omitempty\"" SchemaRegistryURL *string "json:\"schemaRegistryURL,omitempty\"" AdditionalConfiguration *string "json:\"additionalConfiguration,omitempty\"" SecretManager *PartialSecretManager "json:\"secretManager,omitempty\"" ProducerBatchSize *int32 "json:\"producerBatchSize,omitempty\"" ProducerLingerMS *int32 "json:\"producerLingerMS,omitempty\"" Storage *PartialConnectorsStorage "json:\"storage,omitempty\"" GroupID *string "json:\"groupID,omitempty\"" BrokerTLS *PartialTLS "json:\"brokerTLS,omitempty\"" }
type PartialConnectorsStorage ¶
type PartialConnectorsStorage struct { ReplicationFactor *struct { Offset *int32 "json:\"offset,omitempty\"" Config *int32 "json:\"config,omitempty\"" Status *int32 "json:\"status,omitempty\"" } "json:\"replicationFactor,omitempty\"" Remote *struct { Read *struct { Offset *bool "json:\"offset,omitempty\"" Config *bool "json:\"config,omitempty\"" Status *bool "json:\"status,omitempty\"" } "json:\"read,omitempty\"" Write *struct { Offset *bool "json:\"offset,omitempty\"" Config *bool "json:\"config,omitempty\"" Status *bool "json:\"status,omitempty\"" } "json:\"write,omitempty\"" } "json:\"remote,omitempty\"" Topic *struct { Offset *string "json:\"offset,omitempty\"" Config *string "json:\"config,omitempty\"" Status *string "json:\"status,omitempty\"" } "json:\"topic,omitempty\"" }
type PartialContainer ¶
type PartialContainer struct { SecurityContext *corev1.SecurityContext "json:\"securityContext,omitempty\"" Resources *struct { Request corev1.ResourceList "json:\"request,omitempty\"" Limits corev1.ResourceList "json:\"limits,omitempty\"" JavaMaxHeapSize *resource.Quantity "json:\"javaMaxHeapSize,omitempty\"" } "json:\"resources,omitempty\"" JavaGCLogEnabled *string "json:\"javaGCLogEnabled,omitempty\"" }
type PartialCreatable ¶
type PartialCreatable struct {
Create *bool "json:\"create,omitempty\""
}
type PartialDeploymentConfig ¶
type PartialDeploymentConfig struct { Replicas *int32 "json:\"replicas,omitempty\"" Create *bool "json:\"create,omitempty\"" Command []string "json:\"command,omitempty\"" Strategy *appsv1.DeploymentStrategy "json:\"strategy,omitempty\"" SchedulerName *string "json:\"schedulerName,omitempty\"" Budget *struct { MaxUnavailable *int32 "json:\"maxUnavailable,omitempty\"" } "json:\"budget,omitempty\"" Annotations map[string]string "json:\"annotations,omitempty\"" LivenessProbe *corev1.Probe "json:\"livenessProbe,omitempty\"" ReadinessProbe *corev1.Probe "json:\"readinessProbe,omitempty\"" ExtraEnv []corev1.EnvVar "json:\"extraEnv,omitempty\"" ExtraEnvFrom []corev1.EnvFromSource "json:\"extraEnvFrom,omitempty\"" ProgressDeadlineSeconds *int32 "json:\"progressDeadlineSeconds,omitempty\"" RevisionHistoryLimit *int32 "json:\"revisionHistoryLimit,omitempty\"" PodAffinity *corev1.PodAffinity "json:\"podAffinity,omitempty\"" NodeAffinity *corev1.NodeAffinity "json:\"nodeAffinity,omitempty\"" PodAntiAffinity *struct { TopologyKey *string "json:\"topologyKey,omitempty\"" Type *string "json:\"type,omitempty\"" Weight *int32 "json:\"weight,omitempty\"" Custom *corev1.PodAntiAffinity "json:\"custom,omitempty\"" } "json:\"podAntiAffinity,omitempty\"" NodeSelector map[string]string "json:\"nodeSelector,omitempty\"" PriorityClassName *string "json:\"priorityClassName,omitempty\"" Tolerations []corev1.Toleration "json:\"tolerations,omitempty\"" TopologySpreadConstraints []corev1.TopologySpreadConstraint "json:\"topologySpreadConstraints,omitempty\"" SecurityContext *corev1.PodSecurityContext "json:\"securityContext,omitempty\"" TerminationGracePeriodSeconds *int64 "json:\"terminationGracePeriodSeconds,omitempty\"" RestartPolicy *corev1.RestartPolicy "json:\"restartPolicy,omitempty\"" }
type PartialImage ¶
type PartialImage struct { Repository *string "json:\"repository,omitempty\"" PullPolicy *corev1.PullPolicy "json:\"pullPolicy,omitempty\"" Tag *string "json:\"tag,omitempty\"" }
type PartialLogging ¶
type PartialLogging struct {
Level *string "json:\"level,omitempty\""
}
type PartialMonitoringConfig ¶
type PartialMonitoringConfig struct { Enabled *bool "json:\"enabled,omitempty\"" ScrapeInterval *metav1.Duration "json:\"scrapeInterval,omitempty\"" Labels map[string]string "json:\"labels,omitempty\"" Annotations map[string]string "json:\"annotations,omitempty\"" NamespaceSelector *monitoringv1.NamespaceSelector "json:\"namespaceSelector,omitempty\"" }
type PartialSecretManager ¶
type PartialServiceConfig ¶
type PartialStorage ¶
type PartialStorage struct { Volume []corev1.Volume "json:\"volume,omitempty\"" VolumeMounts []corev1.VolumeMount "json:\"volumeMounts,omitempty\"" }
type PartialTLS ¶
type PartialTLS struct { Enabled *bool "json:\"enabled,omitempty\"" CA *struct { SecretRef *string "json:\"secretRef,omitempty\"" SecretNameOverwrite *string "json:\"secretNameOverwrite,omitempty\"" } "json:\"ca,omitempty\"" Cert *struct { SecretRef *string "json:\"secretRef,omitempty\"" SecretNameOverwrite *string "json:\"secretNameOverwrite,omitempty\"" } "json:\"cert,omitempty\"" Key *struct { SecretRef *string "json:\"secretRef,omitempty\"" SecretNameOverwrite *string "json:\"secretNameOverwrite,omitempty\"" } "json:\"key,omitempty\"" }
type PartialValues ¶
type PartialValues struct { NameOverride *string "json:\"nameOverride,omitempty\"" FullnameOverride *string "json:\"fullnameOverride,omitempty\"" CommonLabels map[string]string "json:\"commonLabels,omitempty\"" Tolerations []corev1.Toleration "json:\"tolerations,omitempty\"" Image *PartialImage "json:\"image,omitempty\"" ImagePullSecrets []corev1.LocalObjectReference "json:\"imagePullSecrets,omitempty\"" Test *PartialCreatable "json:\"test,omitempty\"" Connectors *PartialConnectors "json:\"connectors,omitempty\"" Auth *PartialAuth "json:\"auth,omitempty\"" Logging *PartialLogging "json:\"logging,omitempty\"" Monitoring *PartialMonitoringConfig "json:\"monitoring,omitempty\"" Container *PartialContainer "json:\"container,omitempty\"" Deployment *PartialDeploymentConfig "json:\"deployment,omitempty\"" Storage *PartialStorage "json:\"storage,omitempty\"" ServiceAccount *PartialServiceAccountConfig "json:\"serviceAccount,omitempty\"" Service *PartialServiceConfig "json:\"service,omitempty\"" }
type SecretManager ¶
type ServiceAccountConfig ¶
type ServiceConfig ¶
type Storage ¶
type Storage struct { Volume []corev1.Volume `json:"volume"` VolumeMounts []corev1.VolumeMount `json:"volumeMounts"` }
type TLS ¶
type TLS struct { Enabled bool `json:"enabled"` CA struct { SecretRef string `json:"secretRef"` SecretNameOverwrite string `json:"secretNameOverwrite"` } `json:"ca"` Cert struct { SecretRef string `json:"secretRef"` SecretNameOverwrite string `json:"secretNameOverwrite"` } `json:"cert"` Key struct { SecretRef string `json:"secretRef"` SecretNameOverwrite string `json:"secretNameOverwrite"` } `json:"key"` }
type Values ¶
type Values struct { NameOverride string `json:"nameOverride"` FullnameOverride string `json:"fullnameOverride"` CommonLabels map[string]string `json:"commonLabels"` Tolerations []corev1.Toleration `json:"tolerations"` Image Image `json:"image"` ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets"` Test Creatable `json:"test"` Connectors Connectors `json:"connectors"` Auth Auth `json:"auth"` Logging Logging `json:"logging"` Monitoring MonitoringConfig `json:"monitoring"` Container Container `json:"container"` Deployment DeploymentConfig `json:"deployment"` Storage Storage `json:"storage"` ServiceAccount ServiceAccountConfig `json:"serviceAccount"` Service ServiceConfig `json:"service"` }