Documentation
¶
Overview ¶
+gotohelm:filename=_chart.go.tpl
+gotohelm:filename=_configmap.go.tpl
+gotohelm:filename=_deployment.go.tpl
+gotohelm:filename=_helpers.go.tpl
+gotohelm:filename=_hpa.go.tpl
+gotohelm:filename=_ingress.go.tpl
+gotohelm:filename=_notes.go.tpl
+gotohelm:filename=_secret.go.tpl
+gotohelm:filename=_service.go.tpl
+gotohelm:filename=_serviceaccount.go.tpl
+gotohelm:ignore=true
+gotohelm:ignore=true
Code generated by genpartial DO NOT EDIT.
Index ¶
- Variables
- func ChartLabel(dot *helmette.Dot) string
- func ConfigMap(dot *helmette.Dot) *corev1.ConfigMap
- func ContainerPort(dot *helmette.Dot) int32
- func Deployment(dot *helmette.Dot) *appsv1.Deployment
- func Fullname(dot *helmette.Dot) string
- func HorizontalPodAutoscaler(dot *helmette.Dot) *autoscalingv2.HorizontalPodAutoscaler
- func Ingress(dot *helmette.Dot) *networkingv1.Ingress
- func Labels(dot *helmette.Dot) map[string]string
- func Name(dot *helmette.Dot) string
- func Notes(dot *helmette.Dot) []string
- func Secret(dot *helmette.Dot) *corev1.Secret
- func SelectorLabels(dot *helmette.Dot) map[string]string
- func Service(dot *helmette.Dot) *corev1.Service
- func ServiceAccount(dot *helmette.Dot) *corev1.ServiceAccount
- func ServiceAccountName(dot *helmette.Dot) string
- type AutoScaling
- type Console
- type Creatable
- type DeploymentConfig
- type Enableable
- type Enterprise
- type EnterpriseSecrets
- type GithubLoginSecrets
- type GoogleLoginSecrets
- type Image
- type IngressConfig
- type IngressHost
- type IngressPath
- type InitContainers
- type KafkaSecrets
- type LoginSecrets
- type OIDCLoginSecrets
- type OktaLoginSecrets
- type PartialAutoScaling
- type PartialConsole
- type PartialCreatable
- type PartialDeploymentConfig
- type PartialEnableable
- type PartialEnterprise
- type PartialEnterpriseSecrets
- type PartialGithubLoginSecrets
- type PartialGoogleLoginSecrets
- type PartialImage
- type PartialIngressConfig
- type PartialIngressHost
- type PartialIngressPath
- type PartialInitContainers
- type PartialKafkaSecrets
- type PartialLoginSecrets
- type PartialOIDCLoginSecrets
- type PartialOktaLoginSecrets
- type PartialRedpandaAdminAPISecrets
- type PartialRedpandaSecrets
- type PartialSecretConfig
- type PartialSecretKeyRef
- type PartialSecretMount
- type PartialServiceAccountConfig
- type PartialServiceConfig
- type PartialValues
- type PossibleEnvVar
- type RedpandaAdminAPISecrets
- type RedpandaSecrets
- type SecretConfig
- type SecretKeyRef
- type SecretMount
- type ServiceAccountConfig
- type ServiceConfig
- 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 ( //go:embed values.yaml DefaultValuesYAML []byte //go:embed values.schema.json ValuesSchemaJSON []byte )
Functions ¶
func ChartLabel ¶
Create chart name and version as used by the chart label.
func ContainerPort ¶
Console's HTTP server Port. The port is defined from the provided config but can be overridden by setting service.targetPort and if that is missing defaults to 8080.
func Deployment ¶
func Deployment(dot *helmette.Dot) *appsv1.Deployment
func Fullname ¶
Create a default fully qualified app name. We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). If release name contains chart name it will be used as a full name.
func HorizontalPodAutoscaler ¶
func HorizontalPodAutoscaler(dot *helmette.Dot) *autoscalingv2.HorizontalPodAutoscaler
func ServiceAccount ¶
func ServiceAccount(dot *helmette.Dot) *corev1.ServiceAccount
func ServiceAccountName ¶
Create the name of the service account to use
Types ¶
type AutoScaling ¶
type AutoScaling struct { Enabled bool `json:"enabled"` MinReplicas int32 `json:"minReplicas"` MaxReplicas int32 `json:"maxReplicas"` TargetCPUUtilizationPercentage *int32 `json:"targetCPUUtilizationPercentage"` TargetMemoryUtilizationPercentage *int32 `json:"targetMemoryUtilizationPercentage,omitempty"` }
type Console ¶
type Console struct { Config map[string]any `json:"config"` Roles []map[string]any `json:"roles,omitempty"` RoleBindings []map[string]any `json:"roleBindings,omitempty"` }
TODO the typing of these values are unclear. All of them get marshalled to YAML and then run through tpl which gives no indication of what they are aside from YAML marshal-able.
type DeploymentConfig ¶
type Enableable ¶
type Enableable struct {
Enabled bool `json:"enabled"`
}
type Enterprise ¶
type Enterprise struct {
LicenseSecretRef SecretKeyRef `json:"licenseSecretRef"`
}
type EnterpriseSecrets ¶
type EnterpriseSecrets struct {
License *string `json:"license,omitempty"`
}
type GithubLoginSecrets ¶
type GoogleLoginSecrets ¶
type Image ¶
type Image struct { Registry string `json:"registry"` Repository string `json:"repository"` PullPolicy corev1.PullPolicy `json:"pullPolicy"` Tag *string `json:"tag"` }
type IngressConfig ¶
type IngressConfig struct { Enabled bool `json:"enabled"` ClassName *string `json:"className"` Annotations map[string]string `json:"annotations"` Hosts []IngressHost `json:"hosts"` TLS []networkingv1.IngressTLS `json:"tls"` }
type IngressHost ¶
type IngressHost struct { Host string `json:"host"` Paths []IngressPath `json:"paths"` }
type IngressPath ¶
type IngressPath struct { Path string `json:"path"` PathType *networkingv1.PathType `json:"pathType"` }
type InitContainers ¶
type InitContainers struct {
ExtraInitContainers *string `json:"extraInitContainers"` // XXX Templated YAML
}
type KafkaSecrets ¶
type KafkaSecrets struct { SASLPassword *string `json:"saslPassword,omitempty"` AWSMSKIAMSecretKey *string `json:"awsMskIamSecretKey,omitempty"` TLSCA *string `json:"tlsCa,omitempty"` TLSCert *string `json:"tlsCert,omitempty"` TLSKey *string `json:"tlsKey,omitempty"` TLSPassphrase *string `json:"tlsPassphrase,omitempty"` SchemaRegistryPassword *string `json:"schemaRegistryPassword,omitempty"` SchemaRegistryTLSCA *string `json:"schemaRegistryTlsCa,omitempty"` SchemaRegistryTLSCert *string `json:"schemaRegistryTlsCert,omitempty"` SchemaRegistryTLSKey *string `json:"schemaRegistryTlsKey,omitempty"` ProtobufGitBasicAuthPassword *string `json:"protobufGitBasicAuthPassword,omitempty"` }
type LoginSecrets ¶
type LoginSecrets struct { JWTSecret string `json:"jwtSecret"` Google GoogleLoginSecrets `json:"google"` Github GithubLoginSecrets `json:"github"` Okta OktaLoginSecrets `json:"okta"` OIDC OIDCLoginSecrets `json:"oidc"` }
type OIDCLoginSecrets ¶
type OIDCLoginSecrets struct {
ClientSecret *string `json:"clientSecret,omitempty"`
}
type OktaLoginSecrets ¶
type PartialAutoScaling ¶
type PartialAutoScaling struct { Enabled *bool "json:\"enabled,omitempty\"" MinReplicas *int32 "json:\"minReplicas,omitempty\"" MaxReplicas *int32 "json:\"maxReplicas,omitempty\"" TargetCPUUtilizationPercentage *int32 "json:\"targetCPUUtilizationPercentage,omitempty\"" TargetMemoryUtilizationPercentage *int32 "json:\"targetMemoryUtilizationPercentage,omitempty\"" }
type PartialConsole ¶
type PartialCreatable ¶
type PartialCreatable struct {
Create *bool "json:\"create,omitempty\""
}
type PartialDeploymentConfig ¶
type PartialEnableable ¶
type PartialEnableable struct {
Enabled *bool "json:\"enabled,omitempty\""
}
type PartialEnterprise ¶
type PartialEnterprise struct {
LicenseSecretRef *PartialSecretKeyRef "json:\"licenseSecretRef,omitempty\""
}
type PartialEnterpriseSecrets ¶
type PartialEnterpriseSecrets struct {
License *string "json:\"license,omitempty\""
}
type PartialImage ¶
type PartialImage struct { Registry *string "json:\"registry,omitempty\"" Repository *string "json:\"repository,omitempty\"" PullPolicy *corev1.PullPolicy "json:\"pullPolicy,omitempty\"" Tag *string "json:\"tag,omitempty\"" }
type PartialIngressConfig ¶
type PartialIngressConfig struct { Enabled *bool "json:\"enabled,omitempty\"" ClassName *string "json:\"className,omitempty\"" Annotations map[string]string "json:\"annotations,omitempty\"" Hosts []PartialIngressHost "json:\"hosts,omitempty\"" TLS []networkingv1.IngressTLS "json:\"tls,omitempty\"" }
type PartialIngressHost ¶
type PartialIngressHost struct { Host *string "json:\"host,omitempty\"" Paths []PartialIngressPath "json:\"paths,omitempty\"" }
type PartialIngressPath ¶
type PartialIngressPath struct { Path *string "json:\"path,omitempty\"" PathType *networkingv1.PathType "json:\"pathType,omitempty\"" }
type PartialInitContainers ¶
type PartialInitContainers struct {
ExtraInitContainers *string "json:\"extraInitContainers,omitempty\""
}
type PartialKafkaSecrets ¶
type PartialKafkaSecrets struct { SASLPassword *string "json:\"saslPassword,omitempty\"" AWSMSKIAMSecretKey *string "json:\"awsMskIamSecretKey,omitempty\"" TLSCA *string "json:\"tlsCa,omitempty\"" TLSCert *string "json:\"tlsCert,omitempty\"" TLSKey *string "json:\"tlsKey,omitempty\"" TLSPassphrase *string "json:\"tlsPassphrase,omitempty\"" SchemaRegistryPassword *string "json:\"schemaRegistryPassword,omitempty\"" SchemaRegistryTLSCA *string "json:\"schemaRegistryTlsCa,omitempty\"" SchemaRegistryTLSCert *string "json:\"schemaRegistryTlsCert,omitempty\"" SchemaRegistryTLSKey *string "json:\"schemaRegistryTlsKey,omitempty\"" ProtobufGitBasicAuthPassword *string "json:\"protobufGitBasicAuthPassword,omitempty\"" }
type PartialLoginSecrets ¶
type PartialLoginSecrets struct { JWTSecret *string "json:\"jwtSecret,omitempty\"" Google *PartialGoogleLoginSecrets "json:\"google,omitempty\"" Github *PartialGithubLoginSecrets "json:\"github,omitempty\"" Okta *PartialOktaLoginSecrets "json:\"okta,omitempty\"" OIDC *PartialOIDCLoginSecrets "json:\"oidc,omitempty\"" }
type PartialOIDCLoginSecrets ¶
type PartialOIDCLoginSecrets struct {
ClientSecret *string "json:\"clientSecret,omitempty\""
}
type PartialOktaLoginSecrets ¶
type PartialRedpandaSecrets ¶
type PartialRedpandaSecrets struct {
AdminAPI *PartialRedpandaAdminAPISecrets "json:\"adminApi,omitempty\""
}
type PartialSecretConfig ¶
type PartialSecretConfig struct { Create *bool "json:\"create,omitempty\"" Kafka *PartialKafkaSecrets "json:\"kafka,omitempty\"" Login *PartialLoginSecrets "json:\"login,omitempty\"" Enterprise *PartialEnterpriseSecrets "json:\"enterprise,omitempty\"" Redpanda *PartialRedpandaSecrets "json:\"redpanda,omitempty\"" }
type PartialSecretKeyRef ¶
type PartialSecretMount ¶
type PartialServiceConfig ¶
type PartialValues ¶
type PartialValues struct { ReplicaCount *int32 "json:\"replicaCount,omitempty\"" Image *PartialImage "json:\"image,omitempty\"" ImagePullSecrets []corev1.LocalObjectReference "json:\"imagePullSecrets,omitempty\"" NameOverride *string "json:\"nameOverride,omitempty\"" FullnameOverride *string "json:\"fullnameOverride,omitempty\"" AutomountServiceAccountToken *bool "json:\"automountServiceAccountToken,omitempty\"" ServiceAccount *PartialServiceAccountConfig "json:\"serviceAccount,omitempty\"" CommonLabels map[string]string "json:\"commonLabels,omitempty\"" Annotations map[string]string "json:\"annotations,omitempty\"" PodAnnotations map[string]string "json:\"podAnnotations,omitempty\"" PodLabels map[string]string "json:\"podLabels,omitempty\"" PodSecurityContext *corev1.PodSecurityContext "json:\"podSecurityContext,omitempty\"" SecurityContext *corev1.SecurityContext "json:\"securityContext,omitempty\"" Service *PartialServiceConfig "json:\"service,omitempty\"" Ingress *PartialIngressConfig "json:\"ingress,omitempty\"" Resources *corev1.ResourceRequirements "json:\"resources,omitempty\"" Autoscaling *PartialAutoScaling "json:\"autoscaling,omitempty\"" NodeSelector map[string]string "json:\"nodeSelector,omitempty\"" Tolerations []corev1.Toleration "json:\"tolerations,omitempty\"" Affinity *corev1.Affinity "json:\"affinity,omitempty\"" TopologySpreadConstraints []corev1.TopologySpreadConstraint "json:\"topologySpreadConstraints,omitempty\"" PriorityClassName *string "json:\"priorityClassName,omitempty\"" Console *PartialConsole "json:\"console,omitempty\"" ExtraEnv []corev1.EnvVar "json:\"extraEnv,omitempty\"" ExtraEnvFrom []corev1.EnvFromSource "json:\"extraEnvFrom,omitempty\"" ExtraVolumes []corev1.Volume "json:\"extraVolumes,omitempty\"" ExtraVolumeMounts []corev1.VolumeMount "json:\"extraVolumeMounts,omitempty\"" ExtraContainers []corev1.Container "json:\"extraContainers,omitempty\"" InitContainers *PartialInitContainers "json:\"initContainers,omitempty\"" SecretMounts []PartialSecretMount "json:\"secretMounts,omitempty\"" Secret *PartialSecretConfig "json:\"secret,omitempty\"" Enterprise *PartialEnterprise "json:\"enterprise,omitempty\"" LivenessProbe *corev1.Probe "json:\"livenessProbe,omitempty\"" ReadinessProbe *corev1.Probe "json:\"readinessProbe,omitempty\"" ConfigMap *PartialCreatable "json:\"configmap,omitempty\"" Deployment *PartialDeploymentConfig "json:\"deployment,omitempty\"" Strategy *appsv1.DeploymentStrategy "json:\"strategy,omitempty\"" Tests *PartialEnableable "json:\"tests,omitempty\"" Enabled *bool "json:\"enabled,omitempty\"" }
type PossibleEnvVar ¶
type RedpandaAdminAPISecrets ¶
type RedpandaSecrets ¶
type RedpandaSecrets struct {
AdminAPI RedpandaAdminAPISecrets `json:"adminApi"`
}
type SecretConfig ¶
type SecretConfig struct { Create bool `json:"create"` Kafka KafkaSecrets `json:"kafka"` Login LoginSecrets `json:"login"` Enterprise EnterpriseSecrets `json:"enterprise"` Redpanda RedpandaSecrets `json:"redpanda"` }
type SecretKeyRef ¶
type SecretMount ¶
type ServiceAccountConfig ¶
type ServiceConfig ¶
type Values ¶
type Values struct { ReplicaCount int32 `json:"replicaCount"` Image Image `json:"image"` ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets"` NameOverride string `json:"nameOverride"` FullnameOverride string `json:"fullnameOverride"` AutomountServiceAccountToken bool `json:"automountServiceAccountToken"` ServiceAccount ServiceAccountConfig `json:"serviceAccount"` CommonLabels map[string]string `json:"commonLabels"` Annotations map[string]string `json:"annotations"` PodAnnotations map[string]string `json:"podAnnotations"` PodLabels map[string]string `json:"podLabels"` PodSecurityContext corev1.PodSecurityContext `json:"podSecurityContext"` SecurityContext corev1.SecurityContext `json:"securityContext"` Service ServiceConfig `json:"service"` Ingress IngressConfig `json:"ingress"` Resources corev1.ResourceRequirements `json:"resources"` Autoscaling AutoScaling `json:"autoscaling"` NodeSelector map[string]string `json:"nodeSelector"` Tolerations []corev1.Toleration `json:"tolerations"` Affinity corev1.Affinity `json:"affinity"` TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topologySpreadConstraints"` PriorityClassName string `json:"priorityClassName"` Console Console `json:"console"` ExtraEnv []corev1.EnvVar `json:"extraEnv"` ExtraEnvFrom []corev1.EnvFromSource `json:"extraEnvFrom"` ExtraVolumes []corev1.Volume `json:"extraVolumes"` ExtraVolumeMounts []corev1.VolumeMount `json:"extraVolumeMounts"` ExtraContainers []corev1.Container `json:"extraContainers"` InitContainers InitContainers `json:"initContainers"` SecretMounts []SecretMount `json:"secretMounts"` Secret SecretConfig `json:"secret"` Enterprise Enterprise `json:"enterprise"` LivenessProbe corev1.Probe `json:"livenessProbe"` ReadinessProbe corev1.Probe `json:"readinessProbe"` ConfigMap Creatable `json:"configmap"` Deployment DeploymentConfig `json:"deployment"` Strategy appsv1.DeploymentStrategy `json:"strategy"` Tests Enableable `json:"tests"` Enabled *bool `json:"enabled,omitempty"` }