Remove ssl note from redis credentials uri, mark uri as sensitive and update ske project deprecation date (#367)

* Remove ssl note from redis credential

* Mark uri as sensitive, change deprecation note of ske project

* Update date
This commit is contained in:
Vicente Pinto 2024-05-21 10:22:30 +01:00 committed by GitHub
parent a636628c8b
commit e4bbcfd50a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 39 additions and 27 deletions

View file

@ -125,7 +125,8 @@ func (r *credentialDataSource) Schema(_ context.Context, _ datasource.SchemaRequ
Computed: true,
},
"uri": schema.StringAttribute{
Computed: true,
Computed: true,
Sensitive: true,
},
"username": schema.StringAttribute{
Computed: true,

View file

@ -159,7 +159,8 @@ func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest,
Computed: true,
},
"uri": schema.StringAttribute{
Computed: true,
Computed: true,
Sensitive: true,
},
"username": schema.StringAttribute{
Computed: true,

View file

@ -133,7 +133,8 @@ func (r *credentialDataSource) Schema(_ context.Context, _ datasource.SchemaRequ
Computed: true,
},
"uri": schema.StringAttribute{
Computed: true,
Computed: true,
Sensitive: true,
},
"username": schema.StringAttribute{
Computed: true,

View file

@ -169,7 +169,8 @@ func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest,
Computed: true,
},
"uri": schema.StringAttribute{
Computed: true,
Computed: true,
Sensitive: true,
},
"username": schema.StringAttribute{
Computed: true,

View file

@ -133,7 +133,8 @@ func (r *credentialDataSource) Schema(_ context.Context, _ datasource.SchemaRequ
Computed: true,
},
"uri": schema.StringAttribute{
Computed: true,
Computed: true,
Sensitive: true,
},
"username": schema.StringAttribute{
Computed: true,

View file

@ -169,7 +169,8 @@ func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest,
Computed: true,
},
"uri": schema.StringAttribute{
Computed: true,
Computed: true,
Sensitive: true,
},
"username": schema.StringAttribute{
Computed: true,

View file

@ -149,7 +149,8 @@ func (r *credentialDataSource) Schema(_ context.Context, _ datasource.SchemaRequ
Computed: true,
},
"uri": schema.StringAttribute{
Computed: true,
Computed: true,
Sensitive: true,
},
"username": schema.StringAttribute{
Computed: true,

View file

@ -185,7 +185,8 @@ func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest,
Computed: true,
},
"uri": schema.StringAttribute{
Computed: true,
Computed: true,
Sensitive: true,
},
"username": schema.StringAttribute{
Computed: true,

View file

@ -140,7 +140,8 @@ func (r *credentialDataSource) Schema(_ context.Context, _ datasource.SchemaRequ
Computed: true,
},
"uri": schema.StringAttribute{
Computed: true,
Computed: true,
Sensitive: true,
},
"uris": schema.ListAttribute{
ElementType: types.StringType,

View file

@ -179,7 +179,8 @@ func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest,
Computed: true,
},
"uri": schema.StringAttribute{
Computed: true,
Computed: true,
Sensitive: true,
},
"uris": schema.ListAttribute{
ElementType: types.StringType,

View file

@ -82,7 +82,7 @@ func (r *credentialDataSource) Schema(_ context.Context, _ datasource.SchemaRequ
"credential_id": "The credential's ID.",
"instance_id": "ID of the Redis instance.",
"project_id": "STACKIT project ID to which the instance is associated.",
"uri": "Connection URI. Currently the returned uri doesn't support SSL, but you can enable it by using `rediss://` instead of `redis://`. We will provide the SSL connection in a future release",
"uri": "Connection URI.",
}
resp.Schema = schema.Schema{
@ -136,6 +136,7 @@ func (r *credentialDataSource) Schema(_ context.Context, _ datasource.SchemaRequ
"uri": schema.StringAttribute{
Description: descriptions["uri"],
Computed: true,
Sensitive: true,
},
"username": schema.StringAttribute{
Computed: true,

View file

@ -104,7 +104,7 @@ func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest,
"credential_id": "The credential's ID.",
"instance_id": "ID of the Redis instance.",
"project_id": "STACKIT Project ID to which the instance is associated.",
"uri": "Connection URI. Currently the returned uri doesn't support SSL, but you can enable it by using `rediss://` instead of `redis://`. We will provide the SSL connection in a future release",
"uri": "Connection URI.",
}
resp.Schema = schema.Schema{
@ -172,6 +172,7 @@ func (r *credentialResource) Schema(_ context.Context, _ resource.SchemaRequest,
"uri": schema.StringAttribute{
Description: descriptions["uri"],
Computed: true,
Sensitive: true,
},
"username": schema.StringAttribute{
Computed: true,

View file

@ -75,7 +75,7 @@ func (r *projectDataSource) Configure(ctx context.Context, req datasource.Config
func (r *projectDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse) {
resp.Schema = schema.Schema{
Description: "SKE project data source schema. Must have a `region` specified in the provider configuration. Warning: SKE project resource is no longer in use and will be removed with the next release. SKE service enablement is done automatically when a new cluster is created.",
DeprecationMessage: "SKE project datasource is no longer in use and will be removed with the next minor release. SKE service enablement is done automatically when a new cluster is created.",
DeprecationMessage: "SKE project datasource is no longer in use and will be removed after October 10th 2024. SKE service enablement is done automatically when a new cluster is created.",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: "Terraform's internal data source. ID. It is structured as \"`project_id`\".",

View file

@ -88,8 +88,8 @@ func (r *projectResource) Schema(_ context.Context, _ resource.SchemaRequest, re
resp.Schema = schema.Schema{
Description: "SKE project resource schema. Must have a `region` specified in the provider configuration. This resource allows you to enable the SKE service and you can only have one per project. " +
"Before deleting this resource, all SKE clusters associated to the project must be deleted. Otherwise, error would occur due to the existing clusters. In such case, it is highly recommended to remove the SKE project from the state, directly using the \"`terraform state rm`\". " +
"Warning: SKE project resource is no longer in use and will be removed with the next minor release. SKE service enablement is done automatically when a new cluster is created.",
DeprecationMessage: "SKE project resource is no longer in use and will be removed with the next minor release. SKE service enablement is done automatically when a new cluster is created. " +
"Warning: SKE project resource is no longer in use and will be removed after October 10th 2024. SKE service enablement is done automatically when a new cluster is created.",
DeprecationMessage: "SKE project resource is no longer in use and will be removed after October 10th 2024. SKE service enablement is done automatically when a new cluster is created. " +
"For deleting the SKE project resource, it is highly recommended to remove the SKE project from the state, directly using the \"`terraform state rm`\".",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{