You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DIGITALOCEAN: self-documenting Cannot()s for unsupported features (#4029)
#3958 updated the digitalocean provider to make all of the feature flags
explicit.
Later I noticed that `Cannot()` can take an argument so that the reason
for it can
be seen by the end user. So now I have moved the reason into the
argument instead
of leaving it as a code-level comment.
- `dnscontrol` rebuilt fine
- `bin/generate-all.sh` picked up an unrelated file
* * `keytype` (string, optional): Key algorithm type. Maps to the `k=` tag. Default: `rsa`. Supported values:
979
979
* * `rsa`
980
980
* * `ed25519`
981
-
* * `notes` (string, optional): Human-readable notes intended for administrators. Pass normal text here; DKIM-Quoted-Printable encoding will be applied automatically. Maps to the `n=` tag.
981
+
* * `note` (string, optional): Human-readable notes intended for administrators. Pass normal text here; DKIM-Quoted-Printable encoding will be applied automatically. Maps to the `n=` tag.
982
982
* * `servicetypes` (array, optional): Service types using this key. Maps to the `s=` tag. Supported values:
Copy file name to clipboardExpand all lines: providers/digitalocean/digitaloceanProvider.go
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -73,25 +73,25 @@ retry:
73
73
varfeatures= providers.DocumentationNotes{
74
74
// The default for unlisted capabilities is 'Cannot'.
75
75
// See providers/capabilities.go for the entire list of capabilities.
76
-
providers.CanAutoDNSSEC: providers.Cannot(), // per docs
76
+
providers.CanAutoDNSSEC: providers.Cannot("Digital Ocean documents that this is not supported."),
77
77
providers.CanConcur: providers.Can(),
78
78
providers.CanGetZones: providers.Can(),
79
-
providers.CanUseAlias: providers.Cannot(), // per docs
79
+
providers.CanUseAlias: providers.Cannot("Digital Ocean documents that this is not supported."),
80
80
providers.CanUseCAA: providers.Can(),
81
-
providers.CanUseDHCID: providers.Cannot(), // per docs
82
-
providers.CanUseDNAME: providers.Cannot(), // per docs
83
-
providers.CanUseDNSKEY: providers.Cannot(), // per docs
84
-
providers.CanUseDS: providers.Cannot(), // per docs
85
-
providers.CanUseHTTPS: providers.Cannot(), // per docs
81
+
providers.CanUseDHCID: providers.Cannot("Digital Ocean documents that this is not supported."),
82
+
providers.CanUseDNAME: providers.Cannot("Digital Ocean documents that this is not supported."),
83
+
providers.CanUseDNSKEY: providers.Cannot("Digital Ocean documents that this is not supported."),
84
+
providers.CanUseDS: providers.Cannot("Digital Ocean documents that this is not supported."),
85
+
providers.CanUseHTTPS: providers.Cannot("Digital Ocean documents that this is not supported."),
86
86
providers.CanUseLOC: providers.Cannot(),
87
-
providers.CanUseNAPTR: providers.Cannot(), // per docs
88
-
providers.CanUsePTR: providers.Cannot(), // per docs
87
+
providers.CanUseNAPTR: providers.Cannot("Digital Ocean documents that this is not supported."),
88
+
providers.CanUsePTR: providers.Cannot("Digital Ocean documents that this is not supported."),
89
89
providers.CanUseSOA: providers.Cannot("Technically SOA is supported but in reality the API only permits updates to the TTL. That is insufficient for DNSControl to claim 'support'"),
90
90
providers.CanUseSRV: providers.Can(),
91
-
providers.CanUseSSHFP: providers.Cannot(), // per docs
92
-
providers.CanUseSMIMEA: providers.Cannot(), // per docs
93
-
providers.CanUseSVCB: providers.Cannot(), // per docs
94
-
providers.CanUseTLSA: providers.Cannot(), // per docs
91
+
providers.CanUseSSHFP: providers.Cannot("Digital Ocean documents that this is not supported."),
92
+
providers.CanUseSMIMEA: providers.Cannot("Digital Ocean documents that this is not supported."),
93
+
providers.CanUseSVCB: providers.Cannot("Digital Ocean documents that this is not supported."),
94
+
providers.CanUseTLSA: providers.Cannot("Digital Ocean documents that this is not supported."),
0 commit comments