Skip to content

Commit

Permalink
fix: enable alpha release channel (#316)
Browse files Browse the repository at this point in the history
## Motivation

Allow to set `alpha` as a release channel for Splunk Observability
Direct.

## Summary

- add `alpha` release channel to validation
- bump nobl9-go

## Testing

- example resource definition
```
resource "nobl9_direct_splunk_observability" "test-splunkobservability" {
  name = "test-splunkobservability"
  project = "terraform"
  description = "desc"
  realm = "eu"
  access_token = "secret"
  release_channel = "alpha"
  query_delay {
    unit = "Minute"
    value = 6
  }
}
```

## Release Notes
  • Loading branch information
mkaras-nobl9 authored Sep 25, 2024
1 parent 2e621b8 commit 2589bb1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/hashicorp/go-cty v1.4.1-0.20200723130312-85980079f637
github.com/hashicorp/terraform-plugin-docs v0.19.4
github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0
github.com/nobl9/nobl9-go v0.84.1-rc6
github.com/nobl9/nobl9-go v0.85.1-rc2
github.com/stretchr/testify v1.9.0
github.com/teambition/rrule-go v1.8.2
)
Expand All @@ -18,8 +18,8 @@ require (
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.2.0 // indirect
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
github.com/MicahParks/jwkset v0.5.18 // indirect
github.com/MicahParks/keyfunc/v3 v3.3.3 // indirect
github.com/MicahParks/jwkset v0.5.20 // indirect
github.com/MicahParks/keyfunc/v3 v3.3.5 // indirect
github.com/ProtonMail/go-crypto v1.1.0-alpha.2 // indirect
github.com/agext/levenshtein v1.2.3 // indirect
github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect
Expand Down Expand Up @@ -66,7 +66,7 @@ require (
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/nobl9/go-yaml v1.0.1 // indirect
github.com/nobl9/govy v0.1.1 // indirect
github.com/nobl9/govy v0.2.0 // indirect
github.com/oklog/run v1.1.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
Expand Down
16 changes: 8 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7Y
github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ=
github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA=
github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM=
github.com/MicahParks/jwkset v0.5.18 h1:WLdyMngF7rCrnstQxA7mpRoxeaWqGzPM/0z40PJUK4w=
github.com/MicahParks/jwkset v0.5.18/go.mod h1:q8ptTGn/Z9c4MwbcfeCDssADeVQb3Pk7PnVxrvi+2QY=
github.com/MicahParks/keyfunc/v3 v3.3.3 h1:c6j9oSu1YUo0k//KwF1miIQlEMtqNlj7XBFLB8jtEmY=
github.com/MicahParks/keyfunc/v3 v3.3.3/go.mod h1:f/UMyXdKfkZzmBeBFUeYk+zu066J1Fcl48f7Wnl5Z48=
github.com/MicahParks/jwkset v0.5.20 h1:gTIKx9AofTqQJ0srd8AL7ty9NeadP5WUXSPOZadTpOI=
github.com/MicahParks/jwkset v0.5.20/go.mod h1:q8ptTGn/Z9c4MwbcfeCDssADeVQb3Pk7PnVxrvi+2QY=
github.com/MicahParks/keyfunc/v3 v3.3.5 h1:7ceAJLUAldnoueHDNzF8Bx06oVcQ5CfJnYwNt1U3YYo=
github.com/MicahParks/keyfunc/v3 v3.3.5/go.mod h1:SdCCyMJn/bYqWDvARspC6nCT8Sk74MjuAY22C7dCST8=
github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow=
github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM=
github.com/ProtonMail/go-crypto v1.1.0-alpha.2 h1:bkyFVUP+ROOARdgCiJzNQo2V2kiB97LyUpzH9P6Hrlg=
Expand Down Expand Up @@ -178,10 +178,10 @@ github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zx
github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw=
github.com/nobl9/go-yaml v1.0.1 h1:Aj1kSaYdRQTKlvS6ihvXzQJhCpoHhtf9nfA95zqWH4Q=
github.com/nobl9/go-yaml v1.0.1/go.mod h1:t7vCO8ctYdBweZxU5lUgxzAw31+ZcqJYeqRtrv+5RHI=
github.com/nobl9/govy v0.1.1 h1:l5UVwLuYhDhDFdmofH+SpE63Ta9IMTusFwY2MeJlCx4=
github.com/nobl9/govy v0.1.1/go.mod h1:MIhQelE3P6Ty7oqXef5ObzsxAo50+RiXmrywNy9ZRRw=
github.com/nobl9/nobl9-go v0.84.1-rc6 h1:19Z5yE5uR3aY9+u0pJTR4PvM9YaZWrbFn89wVwAKtC8=
github.com/nobl9/nobl9-go v0.84.1-rc6/go.mod h1:prAsgIuSyMUYbtQTh+o5prg8gykeEU3tfaU3gouOJBs=
github.com/nobl9/govy v0.2.0 h1:KXZRzHte3uJSpB2i0wBD+3fUoON5ptvlfMrkvtRO8Sc=
github.com/nobl9/govy v0.2.0/go.mod h1:O+xSiKwZ6gs/orRvH5qLkfkgyT7CkuXprRIq3C5uNXQ=
github.com/nobl9/nobl9-go v0.85.1-rc2 h1:A27vVPqV4aH3OdTzU0u7T1aUubLY0MMI64uPoWSHEvM=
github.com/nobl9/nobl9-go v0.85.1-rc2/go.mod h1:DPGLjkUkf2BHDj72BbKFuJzD/gxO/qTLtgFU9wKtqzE=
github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA=
github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU=
github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4=
Expand Down
1 change: 1 addition & 0 deletions nobl9/release_channel_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func schemaReleaseChannel() *schema.Schema {
validation.StringInSlice([]string{
v1alpha.ReleaseChannelStable.String(),
v1alpha.ReleaseChannelBeta.String(),
v1alpha.ReleaseChannelAlpha.String(),
}, false),
),
}
Expand Down
2 changes: 1 addition & 1 deletion nobl9/resource_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ resource "nobl9_agent" "%s" {
splunk_observability_config {
realm = "eu"
}
release_channel = "alpha"
release_channel = "beta"
query_delay {
unit = "Minute"
value = 6
Expand Down
2 changes: 1 addition & 1 deletion nobl9/resource_direct_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ resource "nobl9_direct_%s" "%s" {
description = "desc"
realm = "eu"
access_token = "secret"
release_channel = "stable"
release_channel = "alpha"
query_delay {
unit = "Minute"
value = 6
Expand Down

0 comments on commit 2589bb1

Please sign in to comment.