Skip to content

Commit

Permalink
(fix) set k8s sa token to computed + add plan modifier to handle null…
Browse files Browse the repository at this point in the history
… case.
  • Loading branch information
wrmedford committed Oct 30, 2024
1 parent 816c706 commit 8830821
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/provider/route_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,12 @@ func (r *RouteResource) Schema(_ context.Context, _ resource.SchemaRequest, resp
// Kubernetes service account token, optional field
"kubernetes_service_account_token": schema.StringAttribute{
Optional: true,
Computed: true,
MarkdownDescription: "The Kubernetes service account token to use for authentication.",
Sensitive: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
},
},
},
}
Expand Down

0 comments on commit 8830821

Please sign in to comment.