const ( // DataSyncSecretName is the name of the secret for data sync DataSyncSecretName = "gcp-auth-token" //nolint // DataSyncNamespace is the namespace of the secret for data sync DataSyncNamespace = "data-sync-connector" // DataSyncKey is the key for the data sync secret data containing the service account DataSyncKey = "auth-token" )
func CleanUpKustomizations(ctx context.Context, path string, bucketName, clusterVersion string, log logr.Logger, cl client.Client) error
type ConnectionSecret struct {
// contains filtered or unexported fields
}
func CreateRegionConnectionSecret() *ConnectionSecret
func (c *ConnectionSecret) Build(stringData bool) *corev1.Secret
func (c *ConnectionSecret) ClusterCA(ca string) *ConnectionSecret
func (c *ConnectionSecret) ClusterType(ct string) *ConnectionSecret
func (c *ConnectionSecret) Endpoint(endpoint string) *ConnectionSecret
func (c *ConnectionSecret) Joined(joined string) *ConnectionSecret
func (c *ConnectionSecret) Namespace(ns string) *ConnectionSecret
func (c *ConnectionSecret) ObjectMetaName(name string) *ConnectionSecret
func (c *ConnectionSecret) ObjectMetaNamespace(ns string) *ConnectionSecret
func (c *ConnectionSecret) ProjectID(pid string) *ConnectionSecret
func (c *ConnectionSecret) StoreNamespace(sns string) *ConnectionSecret
func (c *ConnectionSecret) TypeMetaAPIVersion(apiVersion string) *ConnectionSecret
func (c *ConnectionSecret) TypeMetaKind(kind string) *ConnectionSecret
DataSyncSecret is the struct used to create the data sync secret
type DataSyncSecret struct {
// contains filtered or unexported fields
}
func CreateDataSyncSecret() *DataSyncSecret
CreateDataSyncSecret creates a new data sync secret struct
func (d *DataSyncSecret) Build(stringData bool) *corev1.Secret
Build creates the data sync secret and returns it.
func (d *DataSyncSecret) ObjectMetaName(name string) *DataSyncSecret
ObjectMetaName sets the objectMetaName for the data sync secret
func (d *DataSyncSecret) ObjectMetaNamespace(ns string) *DataSyncSecret
ObjectMetaNamespace sets the objectMetaNamespace for the data sync secret
func (d *DataSyncSecret) ServiceAccount(sa string) *DataSyncSecret
ServiceAccount sets the serviceAccount for the data sync secret
func (d *DataSyncSecret) TypeMetaAPIVersion(apiVersion string) *DataSyncSecret
TypeMetaAPIVersion sets the typeMetaAPIVersion for the data sync secret
func (d *DataSyncSecret) TypeMetaKind(kind string) *DataSyncSecret
TypeMetaKind sets the typeMetaKind for the data sync secret