v1beta1

package
v1.125.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocation added in v1.122.0

func GetLocation(u *unstructured.Unstructured) (string, error)

func GetResourceID added in v1.121.0

func GetResourceID(u *unstructured.Unstructured) (string, error)

func ResolveFolderID added in v1.124.0

func ResolveFolderID(ctx context.Context, reader client.Reader, obj *unstructured.Unstructured) (string, error)

func ResolveOrganizationID added in v1.124.0

func ResolveOrganizationID(ctx context.Context, reader client.Reader, obj *unstructured.Unstructured) (string, error)

func ResolveProjectID added in v1.121.0

func ResolveProjectID(ctx context.Context, reader client.Reader, obj *unstructured.Unstructured) (string, error)

func ResolveSQLInstanceID added in v1.125.0

func ResolveSQLInstanceID(ctx context.Context, reader client.Reader, obj *unstructured.Unstructured) (string, error)

func ResolveSpannerInstanceID added in v1.124.0

func ResolveSpannerInstanceID(ctx context.Context, reader client.Reader, obj *unstructured.Unstructured) (string, error)

Types

type BigQueryDataset added in v1.123.0

type BigQueryDataset struct {
	// contains filtered or unexported fields
}

func ResolveBigQueryDataset added in v1.123.0

func ResolveBigQueryDataset(ctx context.Context, reader client.Reader, src client.Object, ref *BigQueryDatasetRef) (*BigQueryDataset, error)

func (*BigQueryDataset) GetDatasetID added in v1.123.0

func (d *BigQueryDataset) GetDatasetID() string

func (*BigQueryDataset) String added in v1.123.0

func (d *BigQueryDataset) String() string

type BigQueryDatasetRef added in v1.122.0

type BigQueryDatasetRef struct {
	// If provided must be in the format `projects/[project_id]/datasets/[dataset_id]`.
	External string `json:"external,omitempty"`
	// The `metadata.name` field of a `BigQueryDataset` resource.
	Name string `json:"name,omitempty"`
	// The `metadata.namespace` field of a `BigQueryDataset` resource.
	Namespace string `json:"namespace,omitempty"`
}

type ComputeAddressRef added in v1.121.0

type ComputeAddressRef struct {
	/* The ComputeAddress selflink in the form "projects/{{project}}/regions/{{region}}/addresses/{{name}}" when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `ComputeAddress` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `ComputeAddress` resource. */
	Namespace string `json:"namespace,omitempty"`
}

type ComputeBackendServiceRef added in v1.121.0

type ComputeBackendServiceRef struct {
	/* The ComputeBackendService selflink in the form "projects/{{project}}/global/backendServices/{{name}}" or "projects/{{project}}/regions/{{region}}/backendServices/{{name}}" when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `ComputeBackendService` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `ComputeBackendService` resource. */
	Namespace string `json:"namespace,omitempty"`
}

type ComputeFirewallPolicyRef added in v1.124.0

type ComputeFirewallPolicyRef struct {
	// A reference to an externally managed ComputeFirewallPolicy resource.
	// Should be in the format `locations/global/firewallPolicies/<firewallPolicy>`.
	External string `json:"external,omitempty"`
	/* The `name` field of a `ComputeFirewall olicy ` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `ComputeFirewallPolicy ` resource. */
	Namespace string `json:"namespace,omitempty"`
}

func ResolveComputeFirewallPolicy added in v1.125.0

func ResolveComputeFirewallPolicy(ctx context.Context, reader client.Reader, src client.Object, ref *ComputeFirewallPolicyRef) (*ComputeFirewallPolicyRef, error)

type ComputeNetworkID added in v1.125.0

type ComputeNetworkID struct {
	Project string
	Network string
}

func ParseComputeNetworkID added in v1.125.0

func ParseComputeNetworkID(external string) (*ComputeNetworkID, error)

func (*ComputeNetworkID) String added in v1.125.0

func (c *ComputeNetworkID) String() string

type ComputeNetworkRef added in v1.119.0

type ComputeNetworkRef struct {
	// A reference to an externally managed Compute Network resource.
	// Should be in the format `projects/<projectID>/global/networks/<network>`.
	External string `json:"external,omitempty"`
	/* The `name` field of a `ComputeNetwork` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `ComputeNetwork` resource. */
	Namespace string `json:"namespace,omitempty"`
}

func (*ComputeNetworkRef) ConvertToProjectNumber added in v1.125.0

func (ref *ComputeNetworkRef) ConvertToProjectNumber(ctx context.Context, projectsClient *resourcemanager.ProjectsClient) error

ConvertToProjectNumber converts the external reference to use a project number.

func (*ComputeNetworkRef) Normalize added in v1.125.0

func (ref *ComputeNetworkRef) Normalize(ctx context.Context, reader client.Reader, src client.Object) error

type ComputeServiceAttachmentRef added in v1.121.0

type ComputeServiceAttachmentRef struct {
	/* The ComputeServiceAttachment selflink in the form "projects/{{project}}/regions/{{region}}/serviceAttachments/{{name}}" when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `ComputeServiceAttachment` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `ComputeServiceAttachment` resource. */
	Namespace string `json:"namespace,omitempty"`
}

type ComputeSubnetworkRef added in v1.121.0

type ComputeSubnetworkRef struct {
	/* The ComputeSubnetwork selflink of form "projects/{{project}}/regions/{{region}}/subnetworks/{{name}}", when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `ComputeSubnetwork` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `ComputeSubnetwork` resource. */
	Namespace string `json:"namespace,omitempty"`
}

func ResolveComputeSubnetwork added in v1.122.0

func ResolveComputeSubnetwork(ctx context.Context, reader client.Reader, src client.Object, ref *ComputeSubnetworkRef) (*ComputeSubnetworkRef, error)

type ComputeTargetGrpcProxyRef added in v1.121.0

type ComputeTargetGrpcProxyRef struct {
	/* The ComputeTargetGrpcProxy selflink in the form "projects/{{project}}/global/targetGrpcProxies/{{name}}" when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `ComputeTargetGrpcProxy` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `ComputeTargetGrpcProxy` resource. */
	Namespace string `json:"namespace,omitempty"`
}

type ComputeTargetHTTPProxyRef added in v1.121.0

type ComputeTargetHTTPProxyRef struct {
	/* The ComputeTargetHTTPProxy selflink in the form "projects/{{project}}/global/targetHttpProxies/{{name}}" or "projects/{{project}}/regions/{{region}}/targetHttpProxies/{{name}}" when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `ComputeTargetHTTPProxy` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `ComputeTargetHTTPProxy` resource. */
	Namespace string `json:"namespace,omitempty"`
}

type ComputeTargetHTTPSProxyRef added in v1.121.0

type ComputeTargetHTTPSProxyRef struct {
	/* The ComputeTargetHTTPSProxy selflink in the form "projects/{{project}}/global/targetHttpProxies/{{name}}" or "projects/{{project}}/regions/{{region}}/targetHttpProxies/{{name}}" when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `ComputeTargetHTTPSProxy` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `ComputeTargetHTTPSProxy` resource. */
	Namespace string `json:"namespace,omitempty"`
}

type ComputeTargetSSLProxyRef added in v1.121.0

type ComputeTargetSSLProxyRef struct {
	/* The ComputeTargetSSLProxy selflink in the form "projects/{{project}}/global/targetSslProxies/{{name}}" when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `ComputeTargetSSLProxy` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `ComputeTargetSSLProxy` resource. */
	Namespace string `json:"namespace,omitempty"`
}

type ComputeTargetTCPProxyRef added in v1.121.0

type ComputeTargetTCPProxyRef struct {
	/* The ComputeTargetTCPProxy selflink in the form "projects/{{project}}/global/targetTcpProxies/{{name}}" or "projects/{{project}}/regions/{{region}}/targetTcpProxies/{{name}}" when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `ComputeTargetTCPProxy` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `ComputeTargetTCPProxy` resource. */
	Namespace string `json:"namespace,omitempty"`
}

type ComputeTargetVPNGatewayRef added in v1.121.0

type ComputeTargetVPNGatewayRef struct {
	/* The ComputeTargetVPNGateway selflink in the form "projects/{{project}}/regions/{{region}}/targetVpnGateways/{{name}}" when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `ComputeTargetVPNGateway` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `ComputeTargetVPNGateway` resource. */
	Namespace string `json:"namespace,omitempty"`
}

type DataExchange added in v1.125.0

type DataExchange struct {
	ProjectID      string
	Location       string
	DataExchangeID string
}

func ResolveDataExchangeRef added in v1.125.0

func ResolveDataExchangeRef(ctx context.Context, reader client.Reader, obj client.Object, ref *DataExchangeRef) (*DataExchange, error)

func (*DataExchange) String added in v1.125.0

func (s *DataExchange) String() string

type DataExchangeRef added in v1.125.0

type DataExchangeRef struct {
	/* The DataExchange selfLink, when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `DataExchange` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `DataExchange` resource. */
	Namespace string `json:"namespace,omitempty"`
}

type DataprocCluster added in v1.124.0

type DataprocCluster struct {
	ProjectID string
	Region    string
	ClusterID string
}

func ResolveDataprocClusterRef added in v1.124.0

func ResolveDataprocClusterRef(ctx context.Context, reader client.Reader, obj client.Object, ref *DataprocClusterRef) (*DataprocCluster, error)

func (*DataprocCluster) String added in v1.124.0

func (s *DataprocCluster) String() string

type DataprocClusterRef added in v1.124.0

type DataprocClusterRef struct {
	/* The self-link of an existing Dataproc Cluster to act as a Spark History Server for the connection , when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a Dataproc Cluster. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a Dataproc Cluster. */
	Namespace string `json:"namespace,omitempty"`
}

type ExternalNormalizer added in v1.123.0

type ExternalNormalizer interface {
	// NormalizedExternal expects the implemented struct has a "External" field, and this function
	// assigns a value to the "External" field if it is empty.
	// In general, it retrieves the corresponding ConfigConnector object from the cluster, using
	// the `status.externalRef` or other field as the "External" value
	NormalizedExternal(ctx context.Context, reader client.Reader, otherNamespace string) (string, error)
}

type Folder added in v1.124.0

type Folder struct {
	FolderID string
}

func ResolveFolder added in v1.124.0

func ResolveFolder(ctx context.Context, reader client.Reader, src client.Object, ref *FolderRef) (*Folder, error)

ResolveFolder will resolve a FolderRef to a Folder, with the FolderID.

func ResolveFolderFromAnnotation added in v1.124.0

func ResolveFolderFromAnnotation(ctx context.Context, reader client.Reader, src client.Object) (*Folder, error)

ResolveFolderFromAnnotation resolves the FolderID to use for a resource, it should be used for resources which do not have 'spec.folderRef'.

type FolderRef added in v1.124.0

type FolderRef struct {
	// The 'name' field of a folder, when not managed by Config Connector.
	// This field must be set when 'name' field is not set.
	// +optional
	External string `json:"external,omitempty"`
	// The 'name' field of a 'Folder' resource.
	// This field must be set when 'external' field is not set.
	// +optional
	Name string `json:"name,omitempty"`
	// The 'namespace' field of a 'Folder' resource.
	// If unset, the namespace is defaulted to the namespace of the referencer
	// resource.
	// +optional
	Namespace string `json:"namespace,omitempty"`
}

FolderRef represents the Folder that this resource belongs to.

func AsFolderRef added in v1.124.0

func AsFolderRef(in *v1alpha1.ResourceRef) *FolderRef

AsFolderRef converts a generic ResourceRef into a FolderRef.

type IAMServiceAccountRef added in v1.120.0

type IAMServiceAccountRef struct {
	/* The `email` field of an `IAMServiceAccount` resource. */
	External string `json:"external,omitempty"`
	/* Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */
	Name string `json:"name,omitempty"`
	/* Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */
	Namespace string `json:"namespace,omitempty"`
}

func (*IAMServiceAccountRef) Resolve added in v1.120.0

func (r *IAMServiceAccountRef) Resolve(ctx context.Context, reader client.Reader, src client.Object) error

type KMSCryptoKey added in v1.122.0

type KMSCryptoKey struct {
	Ref        *KMSCryptoKeyRef
	ResourceID string
}

type KMSCryptoKeyRef added in v1.121.0

type KMSCryptoKeyRef struct {
	// A reference to an externally managed KMSCryptoKey.
	// Should be in the format `projects/[kms_project_id]/locations/[region]/keyRings/[key_ring_id]/cryptoKeys/[key]`.
	External string `json:"external,omitempty"`

	// The `name` of a `KMSCryptoKey` resource.
	Name string `json:"name,omitempty"`
	// The `namespace` of a `KMSCryptoKey` resource.
	Namespace string `json:"namespace,omitempty"`
}

func ResolveKMSCryptoKeyRef added in v1.122.0

func ResolveKMSCryptoKeyRef(ctx context.Context, reader client.Reader, src client.Object, ref *KMSCryptoKeyRef) (*KMSCryptoKeyRef, error)

ResolveKMSCryptoKeyRef will resolve a KMSCryptoKeyRef to a KMSCryptoKey.

type KMSKeyRing added in v1.122.0

type KMSKeyRing struct {
	Ref        *KMSKeyRingRef
	ResourceID string
	Location   string
}

func ResolveKMSKeyRingRef added in v1.122.0

func ResolveKMSKeyRingRef(ctx context.Context, reader client.Reader, src client.Object, ref *KMSKeyRingRef) (*KMSKeyRing, error)

ResolveKMSKeyRingRef will resolve a KMSKeyRingRef to a KMSKeyRing.

func ResolveKeyRingForObject added in v1.122.0

func ResolveKeyRingForObject(ctx context.Context, reader client.Reader, obj *unstructured.Unstructured) (*KMSKeyRing, error)

type KMSKeyRingRef added in v1.122.0

type KMSKeyRingRef struct {
	//  If provided must be in the format `projects/[kms_project_id]/locations/[region]/keyRings/[key_ring_id]`.
	External string `json:"external,omitempty"`
	// The `name` field of a `KMSKeyRing` resource.
	Name string `json:"name,omitempty"`
	// The `metadata.namespace` field of a `KMSKeyRing` resource.
	Namespace string `json:"namespace,omitempty"`
}

type MetastoreService added in v1.124.0

type MetastoreService struct {
	ProjectID string
	Location  string
	ServiceID string
}

func ResolveMetastoreServiceRef added in v1.124.0

func ResolveMetastoreServiceRef(ctx context.Context, reader client.Reader, obj client.Object, ref *MetastoreServiceRef) (*MetastoreService, error)

func (*MetastoreService) String added in v1.124.0

func (s *MetastoreService) String() string

type MetastoreServiceRef added in v1.124.0

type MetastoreServiceRef struct {
	// +required
	/* The self-link of an existing Dataproc Metastore service , when not managed by Config Connector. */
	External string `json:"external,omitempty"`
}

type MetricsGcpServiceAccountRef added in v1.119.0

type MetricsGcpServiceAccountRef struct {
	/* The Email of the Google Cloud Service Account (GSA) used for exporting Config Sync metrics to Cloud Monitoring. The GSA should have the Monitoring Metric Writer(roles/monitoring.metricWriter) IAM role. The Kubernetes ServiceAccount `default` in the namespace `config-management-monitoring` should be bound to the GSA. Allowed value: The `email` field of an `IAMServiceAccount` resource. */
	External string `json:"external,omitempty"`
	/* Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */
	Name string `json:"name,omitempty"`
	/* Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */
	Namespace string `json:"namespace,omitempty"`
}

func (*MetricsGcpServiceAccountRef) Resolve added in v1.120.0

type MonitoringAlertPolicyRef added in v1.120.0

type MonitoringAlertPolicyRef struct {
	/* The MonitoringAlertPolicy link in the form "projects/[PROJECT_ID_OR_NUMBER]/alertPolicies/[ALERT_POLICY_ID]", when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `MonitoringAlertPolicy` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `MonitoringAlertPolicy` resource. */
	Namespace string `json:"namespace,omitempty"`
}

type Organization added in v1.124.0

type Organization struct {
	OrganizationID string
}

func ResolveOrganization added in v1.124.0

func ResolveOrganization(ctx context.Context, reader client.Reader, src client.Object, ref *OrganizationRef) (*Organization, error)

ResolveOrganization will resolve an OrganizationRef to an Organization, with the OrganizationID.

func ResolveOrganizationFromAnnotation added in v1.124.0

func ResolveOrganizationFromAnnotation(ctx context.Context, reader client.Reader, src client.Object) (*Organization, error)

ResolveOrganizationFromAnnotation resolves the OrganizationID to use for a resource, it should be used for resources which do not have 'spec.organizationRef'.

type OrganizationRef added in v1.124.0

type OrganizationRef struct {
	// The 'name' field of an organization, when not managed by Config Connector.
	// +required
	External string `json:"external,omitempty"`
}

OrganizationRef represents the Organization that this resource belongs to.

func AsOrganizationRef added in v1.124.0

func AsOrganizationRef(in *v1alpha1.ResourceRef) *OrganizationRef

AsOrganizationRef converts a generic ResourceRef into a OrganizationRef.

type Project added in v1.121.0

type Project struct {
	ProjectID string
}

func ResolveProject added in v1.121.0

func ResolveProject(ctx context.Context, reader client.Reader, src client.Object, ref *ProjectRef) (*Project, error)

ResolveProject will resolve a ProjectRef to a Project, with the ProjectID.

func ResolveProjectFromAnnotation added in v1.122.0

func ResolveProjectFromAnnotation(ctx context.Context, reader client.Reader, src client.Object) (*Project, error)

ResolveProjectFromAnnotation resolves the projectID to use for a resource, it should be used for resources which do not have a projectRef

type ProjectRef

type ProjectRef struct {
	/* The `projectID` field of a project, when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `Project` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `Project` resource. */
	Namespace string `json:"namespace,omitempty"`
	// The kind of the Project resource; optional but must be `Project` if provided.
	// +optional
	Kind string `json:"kind,omitempty"`
}

The Project that this resource belongs to.

func AsProjectRef added in v1.121.0

func AsProjectRef(in *v1alpha1.ResourceRef) *ProjectRef

AsProjectRef converts a generic ResourceRef into a ProjectRef

type PubSubTopic added in v1.123.0

type PubSubTopic struct {
	// contains filtered or unexported fields
}

func ResolvePubSubTopic added in v1.123.0

func ResolvePubSubTopic(ctx context.Context, reader client.Reader, src client.Object, ref *PubSubTopicRef) (*PubSubTopic, error)

func (*PubSubTopic) String added in v1.123.0

func (t *PubSubTopic) String() string

type PubSubTopicRef added in v1.122.0

type PubSubTopicRef struct {
	// If provided must be in the format `projects/[project_id]/topics/[topic_id]`.
	External string `json:"external,omitempty"`
	// The `metadata.name` field of a `PubSubTopic` resource.
	Name string `json:"name,omitempty"`
	// The `metadata.namespace` field of a `PubSubTopic` resource.
	Namespace string `json:"namespace,omitempty"`
}

type SQLDatabase added in v1.125.0

type SQLDatabase struct {
	ProjectID  string
	InstanceID string
	DatabaseID string
}

func ResolveSQLDatabaseRef added in v1.125.0

func ResolveSQLDatabaseRef(ctx context.Context, reader client.Reader, obj client.Object, ref *SQLDatabaseRef) (*SQLDatabase, error)

func (*SQLDatabase) Name added in v1.125.0

func (s *SQLDatabase) Name() string

func (*SQLDatabase) String added in v1.125.0

func (s *SQLDatabase) String() string

type SQLDatabaseRef added in v1.125.0

type SQLDatabaseRef struct {
	/* The SQL Database name, when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `SQLDatabase` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `SQLDatabase` resource. */
	Namespace string `json:"namespace,omitempty"`
}

type SQLInstance added in v1.124.0

type SQLInstance struct {
	ProjectID       string
	Location        string
	SQLInstanceName string
}

func ResolveSQLInstanceRef added in v1.124.0

func ResolveSQLInstanceRef(ctx context.Context, reader client.Reader, obj client.Object, ref *SQLInstanceRef) (*SQLInstance, error)

func (*SQLInstance) ConnectionName added in v1.124.0

func (s *SQLInstance) ConnectionName() string

func (*SQLInstance) String added in v1.124.0

func (s *SQLInstance) String() string

type SQLInstanceRef added in v1.122.0

type SQLInstanceRef struct {
	/* The SQLInstance selfLink, when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `SQLInstance` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `SQLInstance` resource. */
	Namespace string `json:"namespace,omitempty"`
}

type SecretManagerSecret added in v1.122.0

type SecretManagerSecret struct {
	Ref        *SecretManagerSecretRef
	ResourceID string
}

func ResolveSecretIDForObject added in v1.122.0

func ResolveSecretIDForObject(ctx context.Context, reader client.Reader, obj *unstructured.Unstructured) (*SecretManagerSecret, error)

func ResolveSecretManagerSecretRef added in v1.122.0

func ResolveSecretManagerSecretRef(ctx context.Context, reader client.Reader, src client.Object, ref *SecretManagerSecretRef) (*SecretManagerSecret, error)

ResolveSecretManagerSecretRef will resolve a partial SecretManagerSecretRef to a SecretManagerSecret.

type SecretManagerSecretRef added in v1.122.0

type SecretManagerSecretRef struct {
	//  If provided must be in the format `projects/*/secrets/*`.
	External string `json:"external,omitempty"`
	// The `name` field of a `SecretManagerSecret` resource.
	Name string `json:"name,omitempty"`
	// The `metadata.namespace` field of a `SecretManagerSecret` resource.
	Namespace string `json:"namespace,omitempty"`
}

type SecretManagerSecretVersionRef added in v1.122.0

type SecretManagerSecretVersionRef struct {
	//  If provided must be in the format `projects/*/secrets/*/versions/*`.
	External string `json:"external,omitempty"`
	// The `name` field of a `SecretManagerSecretVersion` resource.
	Name string `json:"name,omitempty"`
	// The `metadata.namespace` field of a `SecretManagerSecretVersion` resource.
	Namespace string `json:"namespace,omitempty"`
}

func ResolveSecretManagerSecretVersionRef added in v1.122.0

func ResolveSecretManagerSecretVersionRef(ctx context.Context, reader client.Reader, src client.Object, ref *SecretManagerSecretVersionRef) (*SecretManagerSecretVersionRef, error)

ResolveSecretManagerSecretVersionRef will resolve a SecretManagerSecretVersionRef to a SecretManagerSecretVersion.

type SpannerDatabase added in v1.124.0

type SpannerDatabase struct {
	ProjectID  string
	InstanceID string
	DatabaseID string
}

func ResolveSpannerDatabaseRef added in v1.124.0

func ResolveSpannerDatabaseRef(ctx context.Context, reader client.Reader, obj client.Object, ref *SpannerDatabaseRef) (*SpannerDatabase, error)

func (*SpannerDatabase) String added in v1.124.0

func (s *SpannerDatabase) String() string

type SpannerDatabaseRef added in v1.124.0

type SpannerDatabaseRef struct {
	/* The Spanner Database selfLink, when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `SpannerDatabase` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `SpannerDatabase` resource. */
	Namespace string `json:"namespace,omitempty"`
}

type SpannerInstance added in v1.124.0

type SpannerInstance struct {
	ProjectID    string
	InstanceName string
}

func ResolveSpannerInstanceRef added in v1.124.0

func ResolveSpannerInstanceRef(ctx context.Context, reader client.Reader, obj client.Object, ref *SpannerInstanceRef) (*SpannerInstance, error)

func (*SpannerInstance) String added in v1.124.0

func (s *SpannerInstance) String() string

type SpannerInstanceRef added in v1.124.0

type SpannerInstanceRef struct {
	/* The SpannerInstance selfLink, when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `SpannerInstance` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `SpannerInstance` resource. */
	Namespace string `json:"namespace,omitempty"`
}

type StorageBucketRef added in v1.122.0

type StorageBucketRef struct {
	/* The StorageBucket selfLink, when not managed by Config Connector. */
	External string `json:"external,omitempty"`
	/* The `name` field of a `StorageBucket` resource. */
	Name string `json:"name,omitempty"`
	/* The `namespace` field of a `StorageBucket` resource. */
	Namespace string `json:"namespace,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL