Deprecate ske project resource (#309)
* add deprecation message * edit acceptance test * Enable project before creating first cluster // fix typo in function name * add cluster existence check before deleting ske project // add deprecation message to project resource * add region to acceptance test * Update resource error message Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com> * Update resource error message Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com> * Update deprecation message Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com> * Update error message Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com> * remove model id assignment * update error handling for cluster existence check while deleting project * add nil check for clusters during project deletion * add deprecation notice to documentation * Update datasource deprecation message Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com> * improve condition handling --------- Co-authored-by: Vicente Pinto <vicente.pinto@freiheit.com>
This commit is contained in:
parent
d6c677552f
commit
0fc2a28469
6 changed files with 42 additions and 13 deletions
|
|
@ -74,7 +74,8 @@ func (r *projectDataSource) Configure(ctx context.Context, req datasource.Config
|
|||
// Schema defines the schema for the data source.
|
||||
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.",
|
||||
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.",
|
||||
Attributes: map[string]schema.Attribute{
|
||||
"id": schema.StringAttribute{
|
||||
Description: "Terraform's internal data source. ID. It is structured as \"`project_id`\".",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue