Skip to content

Commit

Permalink
Deprecate datasources
Browse files Browse the repository at this point in the history
  • Loading branch information
phillebaba committed Apr 6, 2023
1 parent a1e9392 commit f2502bc
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/guides/customize-flux.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
subcategory: ""
page_title: "Customize Flux"
subcategory: "Deprecated"
description: |-
Customizing Flux past the exposed parameters.
---
Expand Down
1 change: 1 addition & 0 deletions docs/guides/github.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
subcategory: ""
page_title: "Bootstrap a cluster with GitHub"
subcategory: "Deprecated"
description: |-
An example of how to bootstrap a Kubernetes cluster and sync it with a GitHub repository.
---
Expand Down
1 change: 1 addition & 0 deletions docs/guides/gitlab.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
subcategory: ""
page_title: "Bootstrap a cluster with GitLab"
subcategory: "Deprecated"
description: |-
An example of how to bootstrap a Kubernetes cluster and sync it with a GitLab repository.
---
Expand Down
1 change: 1 addition & 0 deletions docs/guides/gke_github.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
subcategory: ""
page_title: "Bootstrap a GKE cluster with GitHub"
subcategory: "Deprecated"
description: |-
An example of how to bootstrap Flux on GKE and sync it with a GitHub repository.
---
Expand Down
1 change: 1 addition & 0 deletions docs/guides/multi-env.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
subcategory: ""
page_title: "Multi Environment Considerations"
subcategory: "Deprecated"
description: |-
Considerations when deploying multiple environments.
---
Expand Down
1 change: 1 addition & 0 deletions internal/provider/data_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func (s *installDataSource) Metadata(ctx context.Context, req datasource.Metadat
func (s *installDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) {
opts := install.MakeDefaultOptions()
resp.Schema = schema.Schema{
DeprecationMessage: "This datasource is deprecated and will be removed in the future. Use flux_bootstrap_git resource instead. https://registry.terraform.io/providers/fluxcd/flux/latest/docs/guides/migrating-to-resource",
MarkdownDescription: "`flux_install` can be used to generate Kubernetes manifests for deploying Flux.",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Expand Down
1 change: 1 addition & 0 deletions internal/provider/data_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func (s *syncDataSource) Metadata(ctx context.Context, req datasource.MetadataRe
func (s *syncDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) {
opts := sync.MakeDefaultOptions()
resp.Schema = schema.Schema{
DeprecationMessage: "This datasource is deprecated and will be removed in the future. Use flux_bootstrap_git resource instead. https://registry.terraform.io/providers/fluxcd/flux/latest/docs/guides/migrating-to-resource",
MarkdownDescription: "`flux_sync` can be used to generate manifests for reconciling the specified repository path on the cluster.",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Expand Down
1 change: 1 addition & 0 deletions templates/guides/customize-flux.md.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
subcategory: ""
page_title: "Customize Flux"
subcategory: "Deprecated"
description: |-
Customizing Flux past the exposed parameters.
---
Expand Down
1 change: 1 addition & 0 deletions templates/guides/github.md.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
subcategory: ""
page_title: "Bootstrap a cluster with GitHub"
subcategory: "Deprecated"
description: |-
An example of how to bootstrap a Kubernetes cluster and sync it with a GitHub repository.
---
Expand Down
1 change: 1 addition & 0 deletions templates/guides/gitlab.md.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
subcategory: ""
page_title: "Bootstrap a cluster with GitLab"
subcategory: "Deprecated"
description: |-
An example of how to bootstrap a Kubernetes cluster and sync it with a GitLab repository.
---
Expand Down
1 change: 1 addition & 0 deletions templates/guides/gke_github.md.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
subcategory: ""
page_title: "Bootstrap a GKE cluster with GitHub"
subcategory: "Deprecated"
description: |-
An example of how to bootstrap Flux on GKE and sync it with a GitHub repository.
---
Expand Down
1 change: 1 addition & 0 deletions templates/guides/multi-env.md.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
subcategory: ""
page_title: "Multi Environment Considerations"
subcategory: "Deprecated"
description: |-
Considerations when deploying multiple environments.
---
Expand Down

0 comments on commit f2502bc

Please sign in to comment.