Skip to content

Commit

Permalink
Added triggers to kubectl_server_version
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinbunney committed Apr 3, 2020
1 parent c030a40 commit b20efc0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docusaurus/docs/resource_server_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ This is particularily helpful if you need to match specific components with the
resource "kubectl_server_version" "current" { }
```

## Argument Reference

* `triggers` - Optional. Any changes in triggers will force a re-read. Behaves the same as the `null_resource` triggers.

## Attribute Reference

* `version` - Version of the server, e.g. `v1.12.10`.
Expand Down
5 changes: 5 additions & 0 deletions kubernetes/resource_kubectl_server_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ func resourceKubectlServerVersion() *schema.Resource {
Read: dataSourceKubectlServerVersionRead,
Delete: resourceKubectlServerVersionDelete,
Schema: map[string]*schema.Schema{
"triggers": {
Type: schema.TypeMap,
Optional: true,
ForceNew: true,
},
"version": &schema.Schema{
Type: schema.TypeString,
Computed: true,
Expand Down

0 comments on commit b20efc0

Please sign in to comment.