Documentation ¶
Overview ¶
Copyright (c) 2024 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright (c) 2024 Red Hat, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func New() resource.Resource
- func NewDataSource() datasource.DataSource
- type ClusterRosaHcpDatasource
- func (r *ClusterRosaHcpDatasource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *ClusterRosaHcpDatasource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *ClusterRosaHcpDatasource) Read(ctx context.Context, request datasource.ReadRequest, ...)
- func (r *ClusterRosaHcpDatasource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type ClusterRosaHcpResource
- func (r *ClusterRosaHcpResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *ClusterRosaHcpResource) Create(ctx context.Context, request resource.CreateRequest, ...)
- func (r *ClusterRosaHcpResource) Delete(ctx context.Context, request resource.DeleteRequest, ...)
- func (r *ClusterRosaHcpResource) ImportState(ctx context.Context, request resource.ImportStateRequest, ...)
- func (r *ClusterRosaHcpResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *ClusterRosaHcpResource) Read(ctx context.Context, request resource.ReadRequest, ...)
- func (r *ClusterRosaHcpResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ClusterRosaHcpResource) Update(ctx context.Context, request resource.UpdateRequest, ...)
- type ClusterRosaHcpState
Constants ¶
const (
// FIXME: This should be coming from the API or only validate at the API level
MinVersion = "4.12.0"
)
Variables ¶
This section is empty.
Functions ¶
func NewDataSource ¶
func NewDataSource() datasource.DataSource
Types ¶
type ClusterRosaHcpDatasource ¶
type ClusterRosaHcpDatasource struct {
// contains filtered or unexported fields
}
func (*ClusterRosaHcpDatasource) Configure ¶
func (r *ClusterRosaHcpDatasource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ClusterRosaHcpDatasource) Metadata ¶
func (r *ClusterRosaHcpDatasource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ClusterRosaHcpDatasource) Read ¶
func (r *ClusterRosaHcpDatasource) Read(ctx context.Context, request datasource.ReadRequest, response *datasource.ReadResponse)
func (*ClusterRosaHcpDatasource) Schema ¶
func (r *ClusterRosaHcpDatasource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ClusterRosaHcpResource ¶
type ClusterRosaHcpResource struct {
rosaTypes.BaseCluster
}
func (*ClusterRosaHcpResource) Configure ¶
func (r *ClusterRosaHcpResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ClusterRosaHcpResource) Create ¶
func (r *ClusterRosaHcpResource) Create(ctx context.Context, request resource.CreateRequest, response *resource.CreateResponse)
func (*ClusterRosaHcpResource) Delete ¶
func (r *ClusterRosaHcpResource) Delete(ctx context.Context, request resource.DeleteRequest, response *resource.DeleteResponse)
func (*ClusterRosaHcpResource) ImportState ¶
func (r *ClusterRosaHcpResource) ImportState(ctx context.Context, request resource.ImportStateRequest, response *resource.ImportStateResponse)
func (*ClusterRosaHcpResource) Metadata ¶
func (r *ClusterRosaHcpResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ClusterRosaHcpResource) Read ¶
func (r *ClusterRosaHcpResource) Read(ctx context.Context, request resource.ReadRequest, response *resource.ReadResponse)
func (*ClusterRosaHcpResource) Schema ¶
func (r *ClusterRosaHcpResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ClusterRosaHcpResource) Update ¶
func (r *ClusterRosaHcpResource) Update(ctx context.Context, request resource.UpdateRequest, response *resource.UpdateResponse)
type ClusterRosaHcpState ¶
type ClusterRosaHcpState struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` DomainPrefix types.String `tfsdk:"domain_prefix"` ExternalID types.String `tfsdk:"external_id"` Private types.Bool `tfsdk:"private"` APIURL types.String `tfsdk:"api_url"` ConsoleURL types.String `tfsdk:"console_url"` ChannelGroup types.String `tfsdk:"channel_group"` EtcdEncryption types.Bool `tfsdk:"etcd_encryption"` Properties types.Map `tfsdk:"properties"` OCMProperties types.Map `tfsdk:"ocm_properties"` State types.String `tfsdk:"state"` // AWS fields AWSAccountID types.String `tfsdk:"aws_account_id"` AWSBillingAccountID types.String `tfsdk:"aws_billing_account_id"` AWSSubnetIDs types.List `tfsdk:"aws_subnet_ids"` Sts *sts.HcpSts `tfsdk:"sts"` CloudRegion types.String `tfsdk:"cloud_region"` KMSKeyArn types.String `tfsdk:"kms_key_arn"` EtcdKmsKeyArn types.String `tfsdk:"etcd_kms_key_arn"` Tags types.Map `tfsdk:"tags"` AWSAdditionalComputeSecurityGroupIds types.List `tfsdk:"aws_additional_compute_security_group_ids"` AWSAdditionalAllowedPrincipals types.List `tfsdk:"aws_additional_allowed_principals"` // Network fields Domain types.String `tfsdk:"domain"` PodCIDR types.String `tfsdk:"pod_cidr"` MachineCIDR types.String `tfsdk:"machine_cidr"` ServiceCIDR types.String `tfsdk:"service_cidr"` HostPrefix types.Int64 `tfsdk:"host_prefix"` Proxy *proxy.Proxy `tfsdk:"proxy"` // Standard machine pools fields ComputeMachineType types.String `tfsdk:"compute_machine_type"` Replicas types.Int64 `tfsdk:"replicas"` AvailabilityZones types.List `tfsdk:"availability_zones"` Ec2MetadataHttpTokens types.String `tfsdk:"ec2_metadata_http_tokens"` WorkerDiskSize types.Int64 `tfsdk:"worker_disk_size"` // Version/Upgrade fields Version types.String `tfsdk:"version"` CurrentVersion types.String `tfsdk:"current_version"` UpgradeAcksFor types.String `tfsdk:"upgrade_acknowledgements_for"` // Meta fields - not related to cluster spec DisableWaitingInDestroy types.Bool `tfsdk:"disable_waiting_in_destroy"` DestroyTimeout types.Int64 `tfsdk:"destroy_timeout"` WaitForCreateComplete types.Bool `tfsdk:"wait_for_create_complete"` WaitForStdComputeNodesComplete types.Bool `tfsdk:"wait_for_std_compute_nodes_complete"` MaxHCPClusterWaitTimeoutInMinutes types.Int64 `tfsdk:"max_hcp_cluster_wait_timeout_in_minutes"` MaxMachinePoolWaitTimeoutInMinutes types.Int64 `tfsdk:"max_machinepool_wait_timeout_in_minutes"` // Admin user fields CreateAdminUser types.Bool `tfsdk:"create_admin_user"` AdminCredentials types.Object `tfsdk:"admin_credentials"` // Registry config fields RegistryConfig *registry_config.RegistryConfig `tfsdk:"registry_config"` // DNS reservation fields BaseDNSDomain types.String `tfsdk:"base_dns_domain"` SharedVpc *sharedvpc.SharedVpc `tfsdk:"shared_vpc"` }