@@ -31,12 +31,12 @@ Starting with the current `PlanResourceURL` struct:
31
31
32
32
``` go
33
33
type PlanResourceURL struct {
34
- // URL is the URL of a downloadable resource.
35
- URL string ` json:"url"`
34
+ // URL is the URL of a downloadable resource.
35
+ URL string ` json:"url"`
36
36
37
- // Sha256 provides an optional SHA256 hash of the URL's content for
38
- // verification.
39
- Sha256 string ` json:"sha256,omitempty"`
37
+ // Sha256 provides an optional SHA256 hash of the URL's content for
38
+ // verification.
39
+ Sha256 string ` json:"sha256,omitempty"`
40
40
}
41
41
```
42
42
@@ -45,22 +45,22 @@ pulls. This will be achieved by adjusting the struct as follows:
45
45
46
46
``` go
47
47
type PlanResourceURL struct {
48
- // URL is the URL of a downloadable resource.
49
- URL string ` json:"url"`
50
-
51
- // Sha256 provides an optional SHA256 hash of the URL's content for
52
- // verification.
53
- Sha256 string ` json:"sha256,omitempty"`
54
-
55
- // SecretRef holds a reference to a secret where the credentials are
56
- // stored. We use these credentials when pulling the artifacts from the
57
- // provided URL using
58
- // any of the supported protocols (http, https, and oci).
59
- SecretRef *corev1.SecretReference ` json:"secretRef,omitempty"`
60
-
61
- // InsecureSkipTLSVerify indicates whether certificates in the remote
62
- // URL (if using TLS) can be ignored.
63
- InsecureSkipTLSVerify bool ` json:"insecureSkipTLSVerify,omitempty"`
48
+ // URL is the URL of a downloadable resource.
49
+ URL string ` json:"url"`
50
+
51
+ // Sha256 provides an optional SHA256 hash of the URL's content for
52
+ // verification.
53
+ Sha256 string ` json:"sha256,omitempty"`
54
+
55
+ // SecretRef holds a reference to a secret where the credentials are
56
+ // stored. We use these credentials when pulling the artifacts from the
57
+ // provided URL using
58
+ // any of the supported protocols (http, https, and oci).
59
+ SecretRef *corev1.SecretReference ` json:"secretRef,omitempty"`
60
+
61
+ // InsecureSkipTLSVerify indicates whether certificates in the remote
62
+ // URL (if using TLS) can be ignored.
63
+ InsecureSkipTLSVerify bool ` json:"insecureSkipTLSVerify,omitempty"`
64
64
}
65
65
```
66
66
0 commit comments