Documentation
¶
Index ¶
- Constants
- func GetServicesForProjectId(ctx context.Context, r *DatabaseReconciler, projectId string) ([]string, error)
- func UpdateClusterNodeIps(ctx context.Context, r *DatabaseReconciler, projectId string, serviceId string, ...) error
- type Cluster
- type ClusterUpdate
- type DatabaseReconciler
- func (r *DatabaseReconciler) ProcessIpAuthorizationForOneService(ctx context.Context, crd v1alpha1.Database, nodes corev1.NodeList, ...) error
- func (r *DatabaseReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *DatabaseReconciler) SetupWithManager(mgr ctrl.Manager) error
- type IpRestriction
Constants ¶
View Source
const ( PrefixEndpoint = "/cloud/project" GetServiceEndpoint = "database/service" Mask = "/32" )
Variables ¶
This section is empty.
Functions ¶
func GetServicesForProjectId ¶
func UpdateClusterNodeIps ¶
func UpdateClusterNodeIps(ctx context.Context, r *DatabaseReconciler, projectId string, serviceId string, engine string, ips []IpRestriction) error
Types ¶
type Cluster ¶
type Cluster struct { ID string `json:"id"` Engine string `json:"engine"` Ips []IpRestriction `json:"ipRestrictions"` NetworkType string `json:"networkType"` }
func GetCluster ¶
type ClusterUpdate ¶
type ClusterUpdate struct {
Ips []IpRestriction `json:"ipRestrictions"`
}
type DatabaseReconciler ¶
DatabaseReconciler reconciles a Database object
func (*DatabaseReconciler) ProcessIpAuthorizationForOneService ¶
func (*DatabaseReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Database object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile
func (*DatabaseReconciler) SetupWithManager ¶
func (r *DatabaseReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type IpRestriction ¶
Click to show internal directories.
Click to hide internal directories.