Documentation ¶
Overview ¶
Copyright (c) 2021 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) 2021 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
- Variables
- func EnumValueValidator(allowedList []string) []tfsdk.AttributeValidator
- func New() tfsdk.Provider
- func ValueCannotBeChangedModifier() tfsdk.AttributePlanModifier
- type AccountRolePolicies
- type AdminCredentials
- type CloudProviderState
- type CloudProvidersDataSource
- type CloudProvidersDataSourceType
- type CloudProvidersState
- type ClusterResource
- func (r *ClusterResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, ...)
- func (r *ClusterResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, ...)
- func (r *ClusterResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, ...)
- func (r *ClusterResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, ...)
- func (r *ClusterResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, ...)
- type ClusterResourceType
- type ClusterRosaClassicResource
- func (r *ClusterRosaClassicResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, ...)
- func (r *ClusterRosaClassicResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, ...)
- func (r *ClusterRosaClassicResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, ...)
- func (r *ClusterRosaClassicResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, ...)
- func (r *ClusterRosaClassicResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, ...)
- type ClusterRosaClassicResourceType
- type ClusterRosaClassicState
- type ClusterState
- type ClusterWaiterResource
- func (r *ClusterWaiterResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, ...)
- func (r *ClusterWaiterResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, ...)
- func (r *ClusterWaiterResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, ...)
- func (r *ClusterWaiterResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, ...)
- func (r *ClusterWaiterResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, ...)
- type ClusterWaiterResourceType
- type ClusterWaiterState
- type Config
- type DNSDomainResource
- func (r *DNSDomainResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, ...)
- func (r *DNSDomainResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, ...)
- func (r *DNSDomainResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, ...)
- func (r *DNSDomainResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, ...)
- func (r *DNSDomainResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, ...)
- type DNSDomainResourceType
- type DNSDomainState
- type DefaultHttpClient
- type GroupMembershipResource
- func (r *GroupMembershipResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, ...)
- func (r *GroupMembershipResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, ...)
- func (r *GroupMembershipResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, ...)
- func (r *GroupMembershipResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, ...)
- func (r *GroupMembershipResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, ...)
- type GroupMembershipResourceType
- type GroupMembershipState
- type GroupState
- type GroupsDataSource
- type GroupsDataSourceType
- type GroupsState
- type HttpClient
- type IdentityProviderResource
- func (r *IdentityProviderResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, ...)
- func (r *IdentityProviderResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, ...)
- func (r *IdentityProviderResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, ...)
- func (r *IdentityProviderResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, ...)
- func (r *IdentityProviderResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, ...)
- type IdentityProviderResourceType
- type IdentityProviderState
- type InstanceIAMRole
- type MachinePoolResource
- func (r *MachinePoolResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, ...)
- func (r *MachinePoolResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, ...)
- func (r *MachinePoolResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, ...)
- func (r *MachinePoolResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, ...)
- func (r *MachinePoolResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, ...)
- type MachinePoolResourceType
- type MachinePoolState
- type MachineTypeState
- type MachineTypesDataSource
- type MachineTypesDataSourceType
- type MachineTypesState
- type OcmPoliciesDataSource
- type OcmPoliciesDataSourceType
- type OcmPoliciesState
- type OperatorIAMRole
- type OperatorRolePolicies
- type Provider
- func (p *Provider) Configure(ctx context.Context, request tfsdk.ConfigureProviderRequest, ...)
- func (p *Provider) GetDataSources(ctx context.Context) (result map[string]tfsdk.DataSourceType, diags diag.Diagnostics)
- func (p *Provider) GetResources(ctx context.Context) (result map[string]tfsdk.ResourceType, diags diag.Diagnostics)
- func (p *Provider) GetSchema(ctx context.Context) (schema tfsdk.Schema, diags diag.Diagnostics)
- type Proxy
- type RosaOidcConfigInputResource
- func (r *RosaOidcConfigInputResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, ...)
- func (r *RosaOidcConfigInputResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, ...)
- func (r *RosaOidcConfigInputResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, ...)
- func (r *RosaOidcConfigInputResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, ...)
- func (r *RosaOidcConfigInputResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, ...)
- type RosaOidcConfigInputResourceType
- type RosaOidcConfigInputState
- type RosaOidcConfigResource
- func (r *RosaOidcConfigResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, ...)
- func (r *RosaOidcConfigResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, ...)
- func (r *RosaOidcConfigResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, ...)
- func (r *RosaOidcConfigResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, ...)
- func (r *RosaOidcConfigResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, ...)
- type RosaOidcConfigResourceType
- type RosaOidcConfigState
- type RosaOperatorRolesDataSource
- type RosaOperatorRolesDataSourceType
- type RosaOperatorRolesState
- type Sts
- type Taints
- type VersionState
- type VersionsDataSource
- type VersionsDataSourceType
- type VersionsState
- type Waiter
Constants ¶
const ( // Policy IDs from type operator roles CloudCred = "openshift_cloud_credential_operator_cloud_credential_operator_iam_ro_creds_policy" CloudNetwork = "openshift_cloud_network_config_controller_cloud_credentials_policy" ClusterCSI = "openshift_cluster_csi_drivers_ebs_cloud_credentials_policy" ImageRegistry = "openshift_image_registry_installer_cloud_credentials_policy" IngressOperator = "openshift_ingress_operator_cloud_credentials_policy" MachineAPI = "openshift_machine_api_aws_cloud_credentials_policy" // Policy IDs from type account roles Installer = "sts_installer_permission_policy" Support = "sts_support_permission_policy" InstanceWorker = "sts_instance_worker_permission_policy" InstanceControlPlane = "sts_instance_controlplane_permission_policy" )
const (
DefaultAccountRolePrefix = "ManagedOpenShift"
)
const (
MinVersion = "4.10.0"
)
Variables ¶
var OCMProperties = map[string]string{ // contains filtered or unexported fields }
Functions ¶
func EnumValueValidator ¶
func EnumValueValidator(allowedList []string) []tfsdk.AttributeValidator
func ValueCannotBeChangedModifier ¶
func ValueCannotBeChangedModifier() tfsdk.AttributePlanModifier
Types ¶
type AccountRolePolicies ¶
type AccountRolePolicies struct { Installer types.String `tfsdk:"sts_installer_permission_policy"` Support types.String `tfsdk:"sts_support_permission_policy"` InstanceWorker types.String `tfsdk:"sts_instance_worker_permission_policy"` InstanceControlPlane types.String `tfsdk:"sts_instance_controlplane_permission_policy"` }
type AdminCredentials ¶ added in v1.2.0
type CloudProviderState ¶
type CloudProvidersDataSource ¶
type CloudProvidersDataSource struct {
// contains filtered or unexported fields
}
func (*CloudProvidersDataSource) Read ¶
func (s *CloudProvidersDataSource) Read(ctx context.Context, request tfsdk.ReadDataSourceRequest, response *tfsdk.ReadDataSourceResponse)
type CloudProvidersDataSourceType ¶
type CloudProvidersDataSourceType struct { }
func (*CloudProvidersDataSourceType) GetSchema ¶
func (t *CloudProvidersDataSourceType) GetSchema(ctx context.Context) (result tfsdk.Schema, diags diag.Diagnostics)
func (*CloudProvidersDataSourceType) NewDataSource ¶
func (t *CloudProvidersDataSourceType) NewDataSource(ctx context.Context, p tfsdk.Provider) (result tfsdk.DataSource, diags diag.Diagnostics)
type CloudProvidersState ¶
type CloudProvidersState struct { Search types.String `tfsdk:"search"` Order types.String `tfsdk:"order"` Item *CloudProviderState `tfsdk:"item"` Items []*CloudProviderState `tfsdk:"items"` }
type ClusterResource ¶
type ClusterResource struct {
// contains filtered or unexported fields
}
func (*ClusterResource) Create ¶
func (r *ClusterResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, response *tfsdk.CreateResourceResponse)
func (*ClusterResource) Delete ¶
func (r *ClusterResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, response *tfsdk.DeleteResourceResponse)
func (*ClusterResource) ImportState ¶
func (r *ClusterResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, response *tfsdk.ImportResourceStateResponse)
func (*ClusterResource) Read ¶
func (r *ClusterResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, response *tfsdk.ReadResourceResponse)
func (*ClusterResource) Update ¶
func (r *ClusterResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, response *tfsdk.UpdateResourceResponse)
type ClusterResourceType ¶
type ClusterResourceType struct { }
func (*ClusterResourceType) GetSchema ¶
func (t *ClusterResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema, diags diag.Diagnostics)
func (*ClusterResourceType) NewResource ¶
func (t *ClusterResourceType) NewResource(ctx context.Context, p tfsdk.Provider) (result tfsdk.Resource, diags diag.Diagnostics)
type ClusterRosaClassicResource ¶
type ClusterRosaClassicResource struct {
// contains filtered or unexported fields
}
func (*ClusterRosaClassicResource) Create ¶
func (r *ClusterRosaClassicResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, response *tfsdk.CreateResourceResponse)
func (*ClusterRosaClassicResource) Delete ¶
func (r *ClusterRosaClassicResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, response *tfsdk.DeleteResourceResponse)
func (*ClusterRosaClassicResource) ImportState ¶
func (r *ClusterRosaClassicResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, response *tfsdk.ImportResourceStateResponse)
func (*ClusterRosaClassicResource) Read ¶
func (r *ClusterRosaClassicResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, response *tfsdk.ReadResourceResponse)
func (*ClusterRosaClassicResource) Update ¶
func (r *ClusterRosaClassicResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, response *tfsdk.UpdateResourceResponse)
type ClusterRosaClassicResourceType ¶
type ClusterRosaClassicResourceType struct { }
func (*ClusterRosaClassicResourceType) GetSchema ¶
func (t *ClusterRosaClassicResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema, diags diag.Diagnostics)
func (*ClusterRosaClassicResourceType) NewResource ¶
func (t *ClusterRosaClassicResourceType) NewResource(ctx context.Context, p tfsdk.Provider) (result tfsdk.Resource, diags diag.Diagnostics)
type ClusterRosaClassicState ¶
type ClusterRosaClassicState struct { APIURL types.String `tfsdk:"api_url"` AWSAccountID types.String `tfsdk:"aws_account_id"` AWSSubnetIDs types.List `tfsdk:"aws_subnet_ids"` AWSPrivateLink types.Bool `tfsdk:"aws_private_link"` Private types.Bool `tfsdk:"private"` Sts *Sts `tfsdk:"sts"` CCSEnabled types.Bool `tfsdk:"ccs_enabled"` EtcdEncryption types.Bool `tfsdk:"etcd_encryption"` AutoScalingEnabled types.Bool `tfsdk:"autoscaling_enabled"` MinReplicas types.Int64 `tfsdk:"min_replicas"` MaxReplicas types.Int64 `tfsdk:"max_replicas"` ChannelGroup types.String `tfsdk:"channel_group"` CloudRegion types.String `tfsdk:"cloud_region"` ComputeMachineType types.String `tfsdk:"compute_machine_type"` DefaultMPLabels types.Map `tfsdk:"default_mp_labels"` Replicas types.Int64 `tfsdk:"replicas"` ConsoleURL types.String `tfsdk:"console_url"` Domain types.String `tfsdk:"domain"` HostPrefix types.Int64 `tfsdk:"host_prefix"` ID types.String `tfsdk:"id"` FIPS types.Bool `tfsdk:"fips"` KMSKeyArn types.String `tfsdk:"kms_key_arn"` ExternalID types.String `tfsdk:"external_id"` MachineCIDR types.String `tfsdk:"machine_cidr"` MultiAZ types.Bool `tfsdk:"multi_az"` DisableWorkloadMonitoring types.Bool `tfsdk:"disable_workload_monitoring"` DisableSCPChecks types.Bool `tfsdk:"disable_scp_checks"` AvailabilityZones types.List `tfsdk:"availability_zones"` Name types.String `tfsdk:"name"` PodCIDR types.String `tfsdk:"pod_cidr"` Properties types.Map `tfsdk:"properties"` OCMProperties types.Map `tfsdk:"ocm_properties"` Tags types.Map `tfsdk:"tags"` ServiceCIDR types.String `tfsdk:"service_cidr"` Proxy *Proxy `tfsdk:"proxy"` State types.String `tfsdk:"state"` Version types.String `tfsdk:"version"` CurrentVersion types.String `tfsdk:"current_version"` DisableWaitingInDestroy types.Bool `tfsdk:"disable_waiting_in_destroy"` DestroyTimeout types.Int64 `tfsdk:"destroy_timeout"` Ec2MetadataHttpTokens types.String `tfsdk:"ec2_metadata_http_tokens"` UpgradeAcksFor types.String `tfsdk:"upgrade_acknowledgements_for"` AdminCredentials *AdminCredentials `tfsdk:"admin_credentials"` }
type ClusterState ¶
type ClusterState struct { APIURL types.String `tfsdk:"api_url"` AWSAccessKeyID types.String `tfsdk:"aws_access_key_id"` AWSAccountID types.String `tfsdk:"aws_account_id"` AWSSecretAccessKey types.String `tfsdk:"aws_secret_access_key"` AWSSubnetIDs types.List `tfsdk:"aws_subnet_ids"` AWSPrivateLink types.Bool `tfsdk:"aws_private_link"` CCSEnabled types.Bool `tfsdk:"ccs_enabled"` CloudProvider types.String `tfsdk:"cloud_provider"` CloudRegion types.String `tfsdk:"cloud_region"` ComputeMachineType types.String `tfsdk:"compute_machine_type"` ComputeNodes types.Int64 `tfsdk:"compute_nodes"` ConsoleURL types.String `tfsdk:"console_url"` HostPrefix types.Int64 `tfsdk:"host_prefix"` ID types.String `tfsdk:"id"` Product types.String `tfsdk:"product"` MachineCIDR types.String `tfsdk:"machine_cidr"` MultiAZ types.Bool `tfsdk:"multi_az"` AvailabilityZones types.List `tfsdk:"availability_zones"` Name types.String `tfsdk:"name"` PodCIDR types.String `tfsdk:"pod_cidr"` Properties types.Map `tfsdk:"properties"` ServiceCIDR types.String `tfsdk:"service_cidr"` Proxy *Proxy `tfsdk:"proxy"` State types.String `tfsdk:"state"` Version types.String `tfsdk:"version"` Wait types.Bool `tfsdk:"wait"` }
type ClusterWaiterResource ¶
type ClusterWaiterResource struct {
// contains filtered or unexported fields
}
func (*ClusterWaiterResource) Create ¶
func (r *ClusterWaiterResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, response *tfsdk.CreateResourceResponse)
func (*ClusterWaiterResource) Delete ¶
func (r *ClusterWaiterResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, response *tfsdk.DeleteResourceResponse)
func (*ClusterWaiterResource) ImportState ¶
func (r *ClusterWaiterResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, response *tfsdk.ImportResourceStateResponse)
func (*ClusterWaiterResource) Read ¶
func (r *ClusterWaiterResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, response *tfsdk.ReadResourceResponse)
func (*ClusterWaiterResource) Update ¶
func (r *ClusterWaiterResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, response *tfsdk.UpdateResourceResponse)
type ClusterWaiterResourceType ¶
type ClusterWaiterResourceType struct { }
func (*ClusterWaiterResourceType) GetSchema ¶
func (t *ClusterWaiterResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema, diags diag.Diagnostics)
func (*ClusterWaiterResourceType) NewResource ¶
func (t *ClusterWaiterResourceType) NewResource(ctx context.Context, p tfsdk.Provider) (result tfsdk.Resource, diags diag.Diagnostics)
type ClusterWaiterState ¶
type Config ¶
type Config struct { URL types.String `tfsdk:"url"` TokenURL types.String `tfsdk:"token_url"` User types.String `tfsdk:"user"` Password types.String `tfsdk:"password"` Token types.String `tfsdk:"token"` ClientID types.String `tfsdk:"client_id"` ClientSecret types.String `tfsdk:"client_secret"` TrustedCAs types.String `tfsdk:"trusted_cas"` Insecure types.Bool `tfsdk:"insecure"` }
Config contains the configuration of the provider.
type DNSDomainResource ¶ added in v1.3.0
type DNSDomainResource struct {
// contains filtered or unexported fields
}
func (*DNSDomainResource) Create ¶ added in v1.3.0
func (r *DNSDomainResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, response *tfsdk.CreateResourceResponse)
func (*DNSDomainResource) Delete ¶ added in v1.3.0
func (r *DNSDomainResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, response *tfsdk.DeleteResourceResponse)
func (*DNSDomainResource) ImportState ¶ added in v1.3.0
func (r *DNSDomainResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, response *tfsdk.ImportResourceStateResponse)
func (*DNSDomainResource) Read ¶ added in v1.3.0
func (r *DNSDomainResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, response *tfsdk.ReadResourceResponse)
func (*DNSDomainResource) Update ¶ added in v1.3.0
func (r *DNSDomainResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, response *tfsdk.UpdateResourceResponse)
type DNSDomainResourceType ¶ added in v1.3.0
type DNSDomainResourceType struct { }
func (*DNSDomainResourceType) GetSchema ¶ added in v1.3.0
func (t *DNSDomainResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema, diags diag.Diagnostics)
func (*DNSDomainResourceType) NewResource ¶ added in v1.3.0
func (t *DNSDomainResourceType) NewResource(ctx context.Context, p tfsdk.Provider) (result tfsdk.Resource, diags diag.Diagnostics)
type DNSDomainState ¶ added in v1.3.0
type DefaultHttpClient ¶
type DefaultHttpClient struct { }
type GroupMembershipResource ¶
type GroupMembershipResource struct {
// contains filtered or unexported fields
}
func (*GroupMembershipResource) Create ¶
func (r *GroupMembershipResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, response *tfsdk.CreateResourceResponse)
func (*GroupMembershipResource) Delete ¶
func (r *GroupMembershipResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, response *tfsdk.DeleteResourceResponse)
func (*GroupMembershipResource) ImportState ¶
func (r *GroupMembershipResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, response *tfsdk.ImportResourceStateResponse)
func (*GroupMembershipResource) Read ¶
func (r *GroupMembershipResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, response *tfsdk.ReadResourceResponse)
func (*GroupMembershipResource) Update ¶
func (r *GroupMembershipResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, response *tfsdk.UpdateResourceResponse)
type GroupMembershipResourceType ¶
type GroupMembershipResourceType struct { }
func (*GroupMembershipResourceType) GetSchema ¶
func (t *GroupMembershipResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema, diags diag.Diagnostics)
func (*GroupMembershipResourceType) NewResource ¶
func (t *GroupMembershipResourceType) NewResource(ctx context.Context, p tfsdk.Provider) (result tfsdk.Resource, diags diag.Diagnostics)
type GroupMembershipState ¶
type GroupState ¶
type GroupsDataSource ¶
type GroupsDataSource struct {
// contains filtered or unexported fields
}
func (*GroupsDataSource) Read ¶
func (s *GroupsDataSource) Read(ctx context.Context, request tfsdk.ReadDataSourceRequest, response *tfsdk.ReadDataSourceResponse)
type GroupsDataSourceType ¶
type GroupsDataSourceType struct { }
func (*GroupsDataSourceType) GetSchema ¶
func (t *GroupsDataSourceType) GetSchema(ctx context.Context) (result tfsdk.Schema, diags diag.Diagnostics)
func (*GroupsDataSourceType) NewDataSource ¶
func (t *GroupsDataSourceType) NewDataSource(ctx context.Context, p tfsdk.Provider) (result tfsdk.DataSource, diags diag.Diagnostics)
type GroupsState ¶
type GroupsState struct { Cluster types.String `tfsdk:"cluster"` Items []*GroupState `tfsdk:"items"` }
type IdentityProviderResource ¶
type IdentityProviderResource struct {
// contains filtered or unexported fields
}
func (*IdentityProviderResource) Create ¶
func (r *IdentityProviderResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, response *tfsdk.CreateResourceResponse)
func (*IdentityProviderResource) Delete ¶
func (r *IdentityProviderResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, response *tfsdk.DeleteResourceResponse)
func (*IdentityProviderResource) ImportState ¶
func (r *IdentityProviderResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, response *tfsdk.ImportResourceStateResponse)
func (*IdentityProviderResource) Read ¶
func (r *IdentityProviderResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, response *tfsdk.ReadResourceResponse)
func (*IdentityProviderResource) Update ¶
func (r *IdentityProviderResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, response *tfsdk.UpdateResourceResponse)
type IdentityProviderResourceType ¶
type IdentityProviderResourceType struct { }
func (*IdentityProviderResourceType) GetSchema ¶
func (t *IdentityProviderResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema, diags diag.Diagnostics)
func (*IdentityProviderResourceType) NewResource ¶
func (t *IdentityProviderResourceType) NewResource(ctx context.Context, p tfsdk.Provider) (result tfsdk.Resource, diags diag.Diagnostics)
type IdentityProviderState ¶
type IdentityProviderState struct { Cluster types.String `tfsdk:"cluster"` ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` MappingMethod types.String `tfsdk:"mapping_method"` HTPasswd *idps.HTPasswdIdentityProvider `tfsdk:"htpasswd"` Gitlab *idps.GitlabIdentityProvider `tfsdk:"gitlab"` Github *idps.GithubIdentityProvider `tfsdk:"github"` Google *idps.GoogleIdentityProvider `tfsdk:"google"` LDAP *idps.LDAPIdentityProvider `tfsdk:"ldap"` OpenID *idps.OpenIDIdentityProvider `tfsdk:"openid"` }
type InstanceIAMRole ¶
type MachinePoolResource ¶
type MachinePoolResource struct {
// contains filtered or unexported fields
}
func (*MachinePoolResource) Create ¶
func (r *MachinePoolResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, response *tfsdk.CreateResourceResponse)
func (*MachinePoolResource) Delete ¶
func (r *MachinePoolResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, response *tfsdk.DeleteResourceResponse)
func (*MachinePoolResource) ImportState ¶
func (r *MachinePoolResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, response *tfsdk.ImportResourceStateResponse)
func (*MachinePoolResource) Read ¶
func (r *MachinePoolResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, response *tfsdk.ReadResourceResponse)
func (*MachinePoolResource) Update ¶
func (r *MachinePoolResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, response *tfsdk.UpdateResourceResponse)
type MachinePoolResourceType ¶
type MachinePoolResourceType struct { }
func (*MachinePoolResourceType) GetSchema ¶
func (t *MachinePoolResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema, diags diag.Diagnostics)
func (*MachinePoolResourceType) NewResource ¶
func (t *MachinePoolResourceType) NewResource(ctx context.Context, p tfsdk.Provider) (result tfsdk.Resource, diags diag.Diagnostics)
type MachinePoolState ¶
type MachinePoolState struct { Cluster types.String `tfsdk:"cluster"` ID types.String `tfsdk:"id"` MachineType types.String `tfsdk:"machine_type"` Name types.String `tfsdk:"name"` Replicas types.Int64 `tfsdk:"replicas"` UseSpotInstances types.Bool `tfsdk:"use_spot_instances"` MaxSpotPrice types.Float64 `tfsdk:"max_spot_price"` AutoScalingEnabled types.Bool `tfsdk:"autoscaling_enabled"` MinReplicas types.Int64 `tfsdk:"min_replicas"` MaxReplicas types.Int64 `tfsdk:"max_replicas"` Taints []Taints `tfsdk:"taints"` Labels types.Map `tfsdk:"labels"` MultiAvailabilityZone types.Bool `tfsdk:"multi_availability_zone"` AvailabilityZone types.String `tfsdk:"availability_zone"` SubnetID types.String `tfsdk:"subnet_id"` }
type MachineTypeState ¶
type MachineTypesDataSource ¶
type MachineTypesDataSource struct {
// contains filtered or unexported fields
}
func (*MachineTypesDataSource) Read ¶
func (s *MachineTypesDataSource) Read(ctx context.Context, request tfsdk.ReadDataSourceRequest, response *tfsdk.ReadDataSourceResponse)
type MachineTypesDataSourceType ¶
type MachineTypesDataSourceType struct { }
func (*MachineTypesDataSourceType) GetSchema ¶
func (t *MachineTypesDataSourceType) GetSchema(ctx context.Context) (result tfsdk.Schema, diags diag.Diagnostics)
func (*MachineTypesDataSourceType) NewDataSource ¶
func (t *MachineTypesDataSourceType) NewDataSource(ctx context.Context, p tfsdk.Provider) (result tfsdk.DataSource, diags diag.Diagnostics)
type MachineTypesState ¶
type MachineTypesState struct {
Items []*MachineTypeState `tfsdk:"items"`
}
type OcmPoliciesDataSource ¶
type OcmPoliciesDataSource struct {
// contains filtered or unexported fields
}
func (*OcmPoliciesDataSource) Read ¶
func (t *OcmPoliciesDataSource) Read(ctx context.Context, request tfsdk.ReadDataSourceRequest, response *tfsdk.ReadDataSourceResponse)
type OcmPoliciesDataSourceType ¶
type OcmPoliciesDataSourceType struct { }
func (*OcmPoliciesDataSourceType) GetSchema ¶
func (t *OcmPoliciesDataSourceType) GetSchema(ctx context.Context) (result tfsdk.Schema, diags diag.Diagnostics)
func (*OcmPoliciesDataSourceType) NewDataSource ¶
func (t *OcmPoliciesDataSourceType) NewDataSource(ctx context.Context, p tfsdk.Provider) (result tfsdk.DataSource, diags diag.Diagnostics)
type OcmPoliciesState ¶
type OcmPoliciesState struct { OperatorRolePolicies *OperatorRolePolicies `tfsdk:"operator_role_policies"` AccountRolePolicies *AccountRolePolicies `tfsdk:"account_role_policies"` }
type OperatorIAMRole ¶
type OperatorRolePolicies ¶
type OperatorRolePolicies struct { CloudCred types.String `tfsdk:"openshift_cloud_credential_operator_cloud_credential_operator_iam_ro_creds_policy"` CloudNetwork types.String `tfsdk:"openshift_cloud_network_config_controller_cloud_credentials_policy"` ClusterCSI types.String `tfsdk:"openshift_cluster_csi_drivers_ebs_cloud_credentials_policy"` ImageRegistry types.String `tfsdk:"openshift_image_registry_installer_cloud_credentials_policy"` IngressOperator types.String `tfsdk:"openshift_ingress_operator_cloud_credentials_policy"` MachineAPI types.String `tfsdk:"openshift_machine_api_aws_cloud_credentials_policy"` }
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is the implementation of the Provider.
func (*Provider) Configure ¶
func (p *Provider) Configure(ctx context.Context, request tfsdk.ConfigureProviderRequest, response *tfsdk.ConfigureProviderResponse)
configure is the configuration function of the provider. It is responsible for checking the connection parameters and creating the connection that will be used by the resources.
func (*Provider) GetDataSources ¶
func (p *Provider) GetDataSources(ctx context.Context) (result map[string]tfsdk.DataSourceType, diags diag.Diagnostics)
GetDataSources returns the data sources supported by the provider.
func (*Provider) GetResources ¶
func (p *Provider) GetResources(ctx context.Context) (result map[string]tfsdk.ResourceType, diags diag.Diagnostics)
GetResources returns the resources supported by the provider.
type RosaOidcConfigInputResource ¶
type RosaOidcConfigInputResource struct { }
func (*RosaOidcConfigInputResource) Create ¶
func (r *RosaOidcConfigInputResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, response *tfsdk.CreateResourceResponse)
func (*RosaOidcConfigInputResource) Delete ¶
func (r *RosaOidcConfigInputResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, response *tfsdk.DeleteResourceResponse)
func (*RosaOidcConfigInputResource) ImportState ¶
func (r *RosaOidcConfigInputResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, response *tfsdk.ImportResourceStateResponse)
func (*RosaOidcConfigInputResource) Read ¶
func (r *RosaOidcConfigInputResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, response *tfsdk.ReadResourceResponse)
func (*RosaOidcConfigInputResource) Update ¶
func (r *RosaOidcConfigInputResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, response *tfsdk.UpdateResourceResponse)
type RosaOidcConfigInputResourceType ¶
type RosaOidcConfigInputResourceType struct { }
func (*RosaOidcConfigInputResourceType) GetSchema ¶
func (t *RosaOidcConfigInputResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema, diags diag.Diagnostics)
func (*RosaOidcConfigInputResourceType) NewResource ¶
func (t *RosaOidcConfigInputResourceType) NewResource(ctx context.Context, p tfsdk.Provider) (result tfsdk.Resource, diags diag.Diagnostics)
type RosaOidcConfigInputState ¶
type RosaOidcConfigInputState struct { Region types.String `tfsdk:"region"` BucketName types.String `tfsdk:"bucket_name"` DiscoveryDoc types.String `tfsdk:"discovery_doc"` Jwks types.String `tfsdk:"jwks"` PrivateKey types.String `tfsdk:"private_key"` PrivateKeyFileName types.String `tfsdk:"private_key_file_name"` PrivateKeySecretName types.String `tfsdk:"private_key_secret_name"` IssuerUrl types.String `tfsdk:"issuer_url"` }
type RosaOidcConfigResource ¶
type RosaOidcConfigResource struct {
// contains filtered or unexported fields
}
func (*RosaOidcConfigResource) Create ¶
func (r *RosaOidcConfigResource) Create(ctx context.Context, request tfsdk.CreateResourceRequest, response *tfsdk.CreateResourceResponse)
func (*RosaOidcConfigResource) Delete ¶
func (r *RosaOidcConfigResource) Delete(ctx context.Context, request tfsdk.DeleteResourceRequest, response *tfsdk.DeleteResourceResponse)
func (*RosaOidcConfigResource) ImportState ¶
func (r *RosaOidcConfigResource) ImportState(ctx context.Context, request tfsdk.ImportResourceStateRequest, response *tfsdk.ImportResourceStateResponse)
func (*RosaOidcConfigResource) Read ¶
func (r *RosaOidcConfigResource) Read(ctx context.Context, request tfsdk.ReadResourceRequest, response *tfsdk.ReadResourceResponse)
func (*RosaOidcConfigResource) Update ¶
func (r *RosaOidcConfigResource) Update(ctx context.Context, request tfsdk.UpdateResourceRequest, response *tfsdk.UpdateResourceResponse)
type RosaOidcConfigResourceType ¶
type RosaOidcConfigResourceType struct { }
func (*RosaOidcConfigResourceType) GetSchema ¶
func (t *RosaOidcConfigResourceType) GetSchema(ctx context.Context) (result tfsdk.Schema, diags diag.Diagnostics)
func (*RosaOidcConfigResourceType) NewResource ¶
func (t *RosaOidcConfigResourceType) NewResource(ctx context.Context, p tfsdk.Provider) (result tfsdk.Resource, diags diag.Diagnostics)
type RosaOidcConfigState ¶
type RosaOidcConfigState struct { Managed types.Bool `tfsdk:"managed"` SecretARN types.String `tfsdk:"secret_arn"` IssuerUrl types.String `tfsdk:"issuer_url"` InstallerRoleARN types.String `tfsdk:"installer_role_arn"` ID types.String `tfsdk:"id"` Thumbprint types.String `tfsdk:"thumbprint"` OIDCEndpointURL types.String `tfsdk:"oidc_endpoint_url"` }
type RosaOperatorRolesDataSource ¶
type RosaOperatorRolesDataSource struct {
// contains filtered or unexported fields
}
func (*RosaOperatorRolesDataSource) Read ¶
func (t *RosaOperatorRolesDataSource) Read(ctx context.Context, request tfsdk.ReadDataSourceRequest, response *tfsdk.ReadDataSourceResponse)
type RosaOperatorRolesDataSourceType ¶
type RosaOperatorRolesDataSourceType struct { }
func (*RosaOperatorRolesDataSourceType) GetSchema ¶
func (t *RosaOperatorRolesDataSourceType) GetSchema(ctx context.Context) (result tfsdk.Schema, diags diag.Diagnostics)
func (*RosaOperatorRolesDataSourceType) NewDataSource ¶
func (t *RosaOperatorRolesDataSourceType) NewDataSource(ctx context.Context, p tfsdk.Provider) (result tfsdk.DataSource, diags diag.Diagnostics)
type RosaOperatorRolesState ¶
type RosaOperatorRolesState struct { OperatorRolePrefix types.String `tfsdk:"operator_role_prefix"` AccountRolePrefix types.String `tfsdk:"account_role_prefix"` OperatorIAMRoles []*OperatorIAMRole `tfsdk:"operator_iam_roles"` }
type Sts ¶
type Sts struct { OIDCEndpointURL types.String `tfsdk:"oidc_endpoint_url"` OIDCConfigID types.String `tfsdk:"oidc_config_id"` Thumbprint types.String `tfsdk:"thumbprint"` RoleARN types.String `tfsdk:"role_arn"` SupportRoleArn types.String `tfsdk:"support_role_arn"` InstanceIAMRoles InstanceIAMRole `tfsdk:"instance_iam_roles"` OperatorRolePrefix types.String `tfsdk:"operator_role_prefix"` }
type VersionState ¶
type VersionsDataSource ¶
type VersionsDataSource struct {
// contains filtered or unexported fields
}
func (*VersionsDataSource) Read ¶
func (s *VersionsDataSource) Read(ctx context.Context, request tfsdk.ReadDataSourceRequest, response *tfsdk.ReadDataSourceResponse)
type VersionsDataSourceType ¶
type VersionsDataSourceType struct { }
func (*VersionsDataSourceType) GetSchema ¶
func (t *VersionsDataSourceType) GetSchema(ctx context.Context) (result tfsdk.Schema, diags diag.Diagnostics)
func (*VersionsDataSourceType) NewDataSource ¶
func (t *VersionsDataSourceType) NewDataSource(ctx context.Context, p tfsdk.Provider) (result tfsdk.DataSource, diags diag.Diagnostics)
type VersionsState ¶
type VersionsState struct { Search types.String `tfsdk:"search"` Order types.String `tfsdk:"order"` Item *VersionState `tfsdk:"item"` Items []*VersionState `tfsdk:"items"` }
Source Files ¶
- cloud_provider_state.go
- cloud_providers_data_source.go
- cloud_providers_state.go
- cluster_resource.go
- cluster_rosa_classic_resource.go
- cluster_rosa_classic_state.go
- cluster_state.go
- cluster_waiter_resource.go
- cluster_waiter_state.go
- dns_domain_resource.go
- dns_domain_state.go
- enum_value_validator.go
- group_membership_resource.go
- group_membership_state.go
- group_state.go
- groups_data_source.go
- groups_state.go
- identity_provider_resource.go
- identity_provider_state.go
- machine_pool_resource.go
- machine_pool_state.go
- machine_type_state.go
- machine_types_data_source.go
- machine_types_state.go
- ocm_policies_data_source.go
- ocm_policies_state.go
- provider.go
- rosa_oidc_config_input_resource.go
- rosa_oidc_config_input_state.go
- rosa_oidc_config_resource.go
- rosa_oidc_config_state.go
- rosa_operator_roles_data_source.go
- rosa_operator_roles_state.go
- sts.go
- value_cannot_be_changed_modifier.go
- version_state.go
- versions_data_source.go
- versions_state.go