Documentation
¶
Index ¶
- Constants
- func AivenOpenSearchServiceName(opensearch *v1.OpenSearch) string
- func AivenValkeyServiceName(valkey *v1.Valkey) string
- func CreateAivenOpenSearchSpec(scheme *runtime.Scheme, opensearch *v1.OpenSearch, aiven config.Aiven, ...) (*aiven_v1alpha1.OpenSearch, error)
- func CreateAivenValkeySpec(scheme *runtime.Scheme, valkey *v1.Valkey, aiven config.Aiven, ...) (*aiven_v1alpha1.Valkey, error)
- func CreateClusterSpec(postgres *data_nais_io_v1.Postgres, cfg *config.Config, pgClusterName string, ...) *acid_zalan_do_v1.Postgresql
- func CreateIAMServiceAccount(name, namespace string) *iam_cnrm_cloud_google_com_v1beta1.IAMServiceAccount
- func CreateKubernetesServiceAccount(name, pgNamespace, teamGoogleProjectID, GSAName string) *core_v1.ServiceAccount
- func CreateLogsWriterIAMPolicyMember(name, namespace, teamGoogleProjectID, GSAName string) *iam_cnrm_cloud_google_com_v1beta1.IAMPolicyMember
- func CreateMinimalIAMPolicyMember(name, namespace string) *iam_cnrm_cloud_google_com_v1beta1.IAMPolicyMember
- func CreateObjectMeta(postgres *data_nais_io_v1.Postgres) metav1.ObjectMeta
- func CreateOpenSearchObjectMeta(opensearch *v1.OpenSearch) metav1.ObjectMeta
- func CreateOpenSearchServiceIntegrationSpec(scheme *runtime.Scheme, opensearch *v1.OpenSearch, cfg config.Aiven) (*aiven_v1alpha1.ServiceIntegration, error)
- func CreatePostgresNetworkPolicySpec(postgres *data_nais_io_v1.Postgres, pgClusterName string, pgNamespace string) *networking_v1.NetworkPolicy
- func CreatePrometheusRuleSpec(postgres *data_nais_io_v1.Postgres, pgClusterName string, pgNamespace string) *monitoring_v1.PrometheusRule
- func CreateRoleBinding(name, ksaName, clusterRoleName, namespace string) *v1.RoleBinding
- func CreateServiceIntegrationSpec(scheme *runtime.Scheme, valkey *v1.Valkey, cfg config.Aiven) (*aiven_v1alpha1.ServiceIntegration, error)
- func CreateStorageBucketIAMPolicyMember(name, namespace, teamGoogleProjectID, GSAName, bucketName string) *iam_cnrm_cloud_google_com_v1beta1.IAMPolicyMember
- func CreateValkeyObjectMeta(valkey *v1.Valkey) metav1.ObjectMeta
- func CreateWorkloadIdentityIAMPolicyMember(...) *iam_cnrm_cloud_google_com_v1beta1.IAMPolicyMember
- func MinimalAivenOpenSearch(opensearch *v1.OpenSearch) *aiven_v1alpha1.OpenSearch
- func MinimalAivenValkey(valkey *v1.Valkey) *aiven_v1alpha1.Valkey
- func MinimalCluster(postgres *data_nais_io_v1.Postgres, pgClusterName string, pgNamespace string) *acid_zalan_do_v1.Postgresql
- func MinimalNetpol(postgres *data_nais_io_v1.Postgres, pgClusterName string, pgNamespace string) *networking_v1.NetworkPolicy
- func MinimalOpenSearchServiceIntegration(opensearch *v1.OpenSearch) *aiven_v1alpha1.ServiceIntegration
- func MinimalPrometheusRule(postgres *data_nais_io_v1.Postgres, pgClusterName string) *monitoring_v1.PrometheusRule
- func MinimalServiceIntegration(valkey *v1.Valkey) *aiven_v1alpha1.ServiceIntegration
Constants ¶
const ( WorkloadIdentityRole = "roles/iam.workloadIdentityUser" StorageBucketRole = "roles/storage.objectUser" LogWriterRole = "roles/logging.logWriter" )
Variables ¶
This section is empty.
Functions ¶
func AivenOpenSearchServiceName ¶
func AivenOpenSearchServiceName(opensearch *v1.OpenSearch) string
AivenOpenSearchServiceName returns the namespaced Aiven service name for an OpenSearch instance. Format: opensearch-{teamSlug}-{instanceName}
func AivenValkeyServiceName ¶
AivenValkeyServiceName returns the namespaced Aiven service name for a Valkey instance. Format: valkey-{teamSlug}-{instanceName}
func CreateAivenOpenSearchSpec ¶
func CreateAivenOpenSearchSpec( scheme *runtime.Scheme, opensearch *v1.OpenSearch, aiven config.Aiven, tenant config.Tenant, ) (*aiven_v1alpha1.OpenSearch, error)
CreateAivenOpenSearchSpec creates an Aiven OpenSearch resource from a nais.io OpenSearch spec
func CreateAivenValkeySpec ¶
func CreateAivenValkeySpec( scheme *runtime.Scheme, valkey *v1.Valkey, aiven config.Aiven, tenant config.Tenant, ) (*aiven_v1alpha1.Valkey, error)
CreateAivenValkeySpec creates an Aiven Valkey resource from a nais.io Valkey spec
func CreateClusterSpec ¶
func CreateClusterSpec(postgres *data_nais_io_v1.Postgres, cfg *config.Config, pgClusterName string, pgNamespace string) *acid_zalan_do_v1.Postgresql
func CreateIAMServiceAccount ¶
func CreateIAMServiceAccount(name, namespace string) *iam_cnrm_cloud_google_com_v1beta1.IAMServiceAccount
func CreateKubernetesServiceAccount ¶
func CreateKubernetesServiceAccount(name, pgNamespace, teamGoogleProjectID, GSAName string) *core_v1.ServiceAccount
func CreateLogsWriterIAMPolicyMember ¶
func CreateLogsWriterIAMPolicyMember(name, namespace, teamGoogleProjectID, GSAName string) *iam_cnrm_cloud_google_com_v1beta1.IAMPolicyMember
func CreateMinimalIAMPolicyMember ¶
func CreateMinimalIAMPolicyMember(name, namespace string) *iam_cnrm_cloud_google_com_v1beta1.IAMPolicyMember
func CreateObjectMeta ¶
func CreateObjectMeta(postgres *data_nais_io_v1.Postgres) metav1.ObjectMeta
func CreateOpenSearchObjectMeta ¶
func CreateOpenSearchObjectMeta(opensearch *v1.OpenSearch) metav1.ObjectMeta
CreateOpenSearchObjectMeta creates a standard ObjectMeta for OpenSearch-owned resources
func CreateOpenSearchServiceIntegrationSpec ¶
func CreateOpenSearchServiceIntegrationSpec(scheme *runtime.Scheme, opensearch *v1.OpenSearch, cfg config.Aiven) (*aiven_v1alpha1.ServiceIntegration, error)
CreateOpenSearchServiceIntegrationSpec creates a ServiceIntegration for metrics/logs integration
func CreatePostgresNetworkPolicySpec ¶
func CreatePostgresNetworkPolicySpec(postgres *data_nais_io_v1.Postgres, pgClusterName string, pgNamespace string) *networking_v1.NetworkPolicy
func CreatePrometheusRuleSpec ¶
func CreatePrometheusRuleSpec(postgres *data_nais_io_v1.Postgres, pgClusterName string, pgNamespace string) *monitoring_v1.PrometheusRule
func CreateRoleBinding ¶
func CreateRoleBinding(name, ksaName, clusterRoleName, namespace string) *v1.RoleBinding
func CreateServiceIntegrationSpec ¶
func CreateServiceIntegrationSpec(scheme *runtime.Scheme, valkey *v1.Valkey, cfg config.Aiven) (*aiven_v1alpha1.ServiceIntegration, error)
CreateServiceIntegrationSpec creates a ServiceIntegration for metrics/logs integration
func CreateStorageBucketIAMPolicyMember ¶
func CreateStorageBucketIAMPolicyMember(name, namespace, teamGoogleProjectID, GSAName, bucketName string) *iam_cnrm_cloud_google_com_v1beta1.IAMPolicyMember
func CreateValkeyObjectMeta ¶
func CreateValkeyObjectMeta(valkey *v1.Valkey) metav1.ObjectMeta
CreateValkeyObjectMeta creates a standard ObjectMeta for Valkey-owned resources
func CreateWorkloadIdentityIAMPolicyMember ¶
func CreateWorkloadIdentityIAMPolicyMember(name, teamNamespace, pgNamespace, clusterGoogleProjectID, GSAName, KSAName string) *iam_cnrm_cloud_google_com_v1beta1.IAMPolicyMember
func MinimalAivenOpenSearch ¶
func MinimalAivenOpenSearch(opensearch *v1.OpenSearch) *aiven_v1alpha1.OpenSearch
MinimalAivenOpenSearch creates a minimal Aiven OpenSearch object for use in delete operations
func MinimalAivenValkey ¶
func MinimalAivenValkey(valkey *v1.Valkey) *aiven_v1alpha1.Valkey
MinimalAivenValkey creates a minimal Aiven Valkey object for use in delete operations
func MinimalCluster ¶
func MinimalCluster(postgres *data_nais_io_v1.Postgres, pgClusterName string, pgNamespace string) *acid_zalan_do_v1.Postgresql
func MinimalNetpol ¶
func MinimalNetpol(postgres *data_nais_io_v1.Postgres, pgClusterName string, pgNamespace string) *networking_v1.NetworkPolicy
func MinimalOpenSearchServiceIntegration ¶
func MinimalOpenSearchServiceIntegration(opensearch *v1.OpenSearch) *aiven_v1alpha1.ServiceIntegration
MinimalOpenSearchServiceIntegration creates a minimal ServiceIntegration object for use in delete operations
func MinimalPrometheusRule ¶
func MinimalPrometheusRule(postgres *data_nais_io_v1.Postgres, pgClusterName string) *monitoring_v1.PrometheusRule
func MinimalServiceIntegration ¶
func MinimalServiceIntegration(valkey *v1.Valkey) *aiven_v1alpha1.ServiceIntegration
MinimalServiceIntegration creates a minimal ServiceIntegration object for use in delete operations
Types ¶
This section is empty.