Documentation ¶
Index ¶
- Constants
- Variables
- func ExtractServiceAccountProjectID(serviceAccountJSON []byte) (string, error)
- func GetServiceAccountData(ctx context.Context, c client.Client, secretRef corev1.SecretReference) ([]byte, error)
- func ReadServiceAccountSecret(secret *corev1.Secret) ([]byte, error)
- type ServiceAccount
Constants ¶
View Source
const ( // Name is the name of the GCP provider. Name = "provider-gcp" // CloudControllerManagerImageName is the name of the cloud-controller-manager image. CloudControllerManagerImageName = "cloud-controller-manager" // CSIDriverImageName is the name of the csi-driver image. CSIDriverImageName = "csi-driver" // CSIProvisionerImageName is the name of the csi-provisioner image. CSIProvisionerImageName = "csi-provisioner" // CSIAttacherImageName is the name of the csi-attacher image. CSIAttacherImageName = "csi-attacher" // CSISnapshotterImageName is the name of the csi-snapshotter image. CSISnapshotterImageName = "csi-snapshotter" // CSIResizerImageName is the name of the csi-resizer image. CSIResizerImageName = "csi-resizer" // CSISnapshotControllerImageName is the name of the csi-snapshot-controller image. CSISnapshotControllerImageName = "csi-snapshot-controller" // CSINodeDriverRegistrarImageName is the name of the csi-node-driver-registrar image. CSINodeDriverRegistrarImageName = "csi-node-driver-registrar" // CSILivenessProbeImageName is the name of the csi-liveness-probe image. CSILivenessProbeImageName = "csi-liveness-probe" // CSISnapshotValidationWebhookImageName is the name of the csi-snapshot-validation-webhook image. CSISnapshotValidationWebhookImageName = "csi-snapshot-validation-webhook" // MachineControllerManagerImageName is the name of the MachineControllerManager image. MachineControllerManagerImageName = "machine-controller-manager" // MachineControllerManagerProviderGCPImageName is the name of the MachineController GCP image. MachineControllerManagerProviderGCPImageName = "machine-controller-manager-provider-gcp" // ServiceAccountJSONField is the field in a secret where the service account JSON is stored at. ServiceAccountJSONField = "serviceaccount.json" // ServiceAccountJSONMCM is the field in a machine class secret where the service account JSON is stored at. ServiceAccountJSONMCM = "serviceAccountJSON" // CloudControllerManagerName is a constant for the name of the CloudController deployed by the worker controller. CloudControllerManagerName = "cloud-controller-manager" // CSIControllerName is a constant for the name of the CSI controller deployment in the seed. CSIControllerName = "csi-driver-controller" // CSIControllerConfigName is a constant for the name of the CSI controller config in the seed. CSIControllerConfigName = "csi-driver-controller-config" // CSIControllerObservabilityConfigName is the name of the ConfigMap containing monitoring and logging stack configurations for csi-driver. CSIControllerObservabilityConfigName = "csi-driver-controller-observability-config" // CSINodeName is a constant for the name of the CSI node deployment in the shoot. CSINodeName = "csi-driver-node" // CSIDriverName is a constant for the name of the csi-driver component. CSIDriverName = "csi-driver" // CSIProvisionerName is a constant for the name of the csi-provisioner component. CSIProvisionerName = "csi-provisioner" // CSIAttacherName is a constant for the name of the csi-attacher component. CSIAttacherName = "csi-attacher" // CSISnapshotterName is a constant for the name of the csi-snapshotter component. CSISnapshotterName = "csi-snapshotter" // CSIResizerName is a constant for the name of the csi-resizer component. CSIResizerName = "csi-resizer" // CSISnapshotControllerName is a constant for the name of the csi-snapshot-controller component. CSISnapshotControllerName = "csi-snapshot-controller" // CSINodeDriverRegistrarName is a constant for the name of the csi-node-driver-registrar component. CSINodeDriverRegistrarName = "csi-node-driver-registrar" // CSILivenessProbeName is a constant for the name of the csi-liveness-probe component. CSILivenessProbeName = "csi-liveness-probe" // CSISnapshotValidation is the constant for the name of the csi-snapshot-validation-webhook component. CSISnapshotValidation = "csi-snapshot-validation" // MachineControllerManagerName is a constant for the name of the machine-controller-manager. MachineControllerManagerName = "machine-controller-manager" // MachineControllerManagerVpaName is the name of the VerticalPodAutoscaler of the machine-controller-manager deployment. MachineControllerManagerVpaName = "machine-controller-manager-vpa" // MachineControllerManagerMonitoringConfigName is the name of the ConfigMap containing monitoring stack configurations for machine-controller-manager. MachineControllerManagerMonitoringConfigName = "machine-controller-manager-monitoring-config" // CSIMigrationKubernetesVersion is a constant for the Kubernetes version for which the Shoot's CSI migration will be // performed. CSIMigrationKubernetesVersion = "1.18" )
View Source
const DNSType = "google-clouddns"
DNSType is the type of resources managed by the GCP DNS actuator.
View Source
const Type = "gcp"
Type is the type of resources managed by the GCP actuator.
Variables ¶
View Source
var ( // ChartsPath is the path to the charts ChartsPath = filepath.Join("charts") // InternalChartsPath is the path to the internal charts InternalChartsPath = filepath.Join(ChartsPath, "internal") // UsernamePrefix is a constant for the username prefix of components deployed by GCP. UsernamePrefix = extensionsv1alpha1.SchemeGroupVersion.Group + ":" + Name + ":" )
Functions ¶
func ExtractServiceAccountProjectID ¶ added in v1.8.0
ExtractServiceAccountProjectID extracts the project id from the given service account JSON.
func GetServiceAccountData ¶ added in v1.8.0
func GetServiceAccountData(ctx context.Context, c client.Client, secretRef corev1.SecretReference) ([]byte, error)
GetServiceAccountData retrieves the service account specified by the secret reference.
Types ¶
type ServiceAccount ¶ added in v1.8.0
type ServiceAccount struct { // Raw is the raw representation of the GCP service account. Raw []byte // ProjectID is the project id the service account is associated to. ProjectID string }
ServiceAccount represents a GCP service account.
func GetServiceAccount ¶ added in v1.8.0
func GetServiceAccount(ctx context.Context, c client.Client, secretRef corev1.SecretReference) (*ServiceAccount, error)
GetServiceAccount retrieves the ServiceAccount from the secret with the given secret reference.
Click to show internal directories.
Click to hide internal directories.