Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "container.cnrm.cloud.google.com", Version: "v1beta1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
View Source
var ContainerClusterGVK = GroupVersion.WithKind("ContainerCluster")
Functions ¶
This section is empty.
Types ¶
type ContainerClusterRef ¶
type ContainerClusterRef struct { // The GKE cluster. Valid formats: // `projects/{projectID}/locations/{location}/clusters/{clusterID}` // `projects/{projectID}/zones/{zone}/clusters/{clusterID}` External string `json:"external,omitempty"` // Name of the project resource. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names */ Name string `json:"name,omitempty"` // Namespace of the project resource. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ */ Namespace string `json:"namespace,omitempty"` }
func (*ContainerClusterRef) NormalizedExternal ¶
func (r *ContainerClusterRef) NormalizedExternal(ctx context.Context, reader client.Reader, otherNamespace string) (string, error)
NormalizedExternal provision the "External" value for other resource that depends on ContainerCluster. If the "External" is given in the other resource's spec.ContainerClusterRef, the given value will be used. Otherwise, the "Name" and "Namespace" will be used to query the actual ContainerCluster object from the cluster. NOTE: ContainerCluster is currently a TF-based resource, so we need to rely on "status.selfLink" instead of "status.externalRef".
Click to show internal directories.
Click to hide internal directories.