Skip to content

Commit a7d3527

Browse files
Merge pull request openshift#453 from openshift-bot/synchronize-upstream
NO-ISSUE: Synchronize From Upstream Repositories
2 parents f9bf348 + d93f9d1 commit a7d3527

File tree

10 files changed

+60
-12
lines changed

10 files changed

+60
-12
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ quickstart: manifests #EXHELP Generate the unified installation release manifest
470470
##@ Docs
471471

472472
.PHONY: crd-ref-docs
473-
API_REFERENCE_FILENAME := operator-controller-api-reference.md
473+
API_REFERENCE_FILENAME := olmv1-api-reference.md
474474
API_REFERENCE_DIR := $(ROOT_DIR)/docs/api-reference
475475
crd-ref-docs: $(CRD_REF_DOCS) #EXHELP Generate the API Reference Documents.
476476
rm -f $(API_REFERENCE_DIR)/$(API_REFERENCE_FILENAME)

commitchecker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
expectedMergeBase: 35bcd7a822a74e1236f1c3f30699e56b76d6b77c
1+
expectedMergeBase: 07bd008eaadcebf79415cb360205c73b420666e1
22
upstreamBranch: main
33
upstreamOrg: operator-framework
44
upstreamRepo: operator-controller
File renamed without changes.

docs/project/public-api.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
The public API of OLM v1 is as follows:
33

44
- Kubernetes APIs. For more information on these APIs, see:
5-
- [operator-controller API reference](../api-reference/operator-controller-api-reference.md)
6-
- [catalogd API reference](../api-reference/catalogd-api-reference.md)
5+
- [OLMv1 API reference](../api-reference/olmv1-api-reference.md)
76
- `Catalogd` web server. For more information on what this includes, see the [catalogd web server documentation](../api-reference/catalogd-webserver.md)
87

98
!!! warning

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ require (
3131
golang.org/x/sync v0.16.0
3232
golang.org/x/tools v0.36.0
3333
gopkg.in/yaml.v2 v2.4.0
34-
helm.sh/helm/v3 v3.18.5
34+
helm.sh/helm/v3 v3.18.6
3535
k8s.io/api v0.33.3
3636
k8s.io/apiextensions-apiserver v0.33.3
3737
k8s.io/apimachinery v0.33.3

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,8 +725,8 @@ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
725725
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
726726
gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q=
727727
gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA=
728-
helm.sh/helm/v3 v3.18.5 h1:Cc3Z5vd6kDrZq9wO9KxKLNEickiTho6/H/dBNRVSos4=
729-
helm.sh/helm/v3 v3.18.5/go.mod h1:L/dXDR2r539oPlFP1PJqKAC1CUgqHJDLkxKpDGrWnyg=
728+
helm.sh/helm/v3 v3.18.6 h1:S/2CqcYnNfLckkHLI0VgQbxgcDaU3N4A/46E3n9wSNY=
729+
helm.sh/helm/v3 v3.18.6/go.mod h1:L/dXDR2r539oPlFP1PJqKAC1CUgqHJDLkxKpDGrWnyg=
730730
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
731731
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
732732
k8s.io/api v0.33.2 h1:YgwIS5jKfA+BZg//OQhkJNIfie/kmRsO0BmNaVSimvY=

mkdocs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ nav:
4949
- Content Resolution: concepts/controlling-catalog-selection.md
5050
- Version Ranges: concepts/version-ranges.md
5151
- API Reference:
52-
- Operator Controller API reference: api-reference/operator-controller-api-reference.md
53-
- CatalogD API reference: api-reference/catalogd-api-reference.md
52+
- OLMv1 API reference: api-reference/olmv1-api-reference.md
5453
- CatalogD Web Server reference: api-reference/catalogd-webserver.md
5554
- Contribute:
5655
- Contributing: contribute/contributing.md

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ markdown2==2.5.4
1414
MarkupSafe==3.0.2
1515
mergedeep==1.3.4
1616
mkdocs==1.6.1
17-
mkdocs-material==9.6.16
17+
mkdocs-material==9.6.17
1818
mkdocs-material-extensions==1.3.1
1919
packaging==25.0
2020
paginate==0.5.7
@@ -28,7 +28,7 @@ PyYAML==6.0.2
2828
pyyaml_env_tag==1.1
2929
readtime==3.0.0
3030
regex==2025.7.34
31-
requests==2.32.4
31+
requests==2.32.5
3232
six==1.17.0
3333
soupsieve==2.7
3434
urllib3==2.5.0

vendor/helm.sh/helm/v3/pkg/chartutil/jsonschema.go

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,57 @@ package chartutil
1818

1919
import (
2020
"bytes"
21+
"crypto/tls"
2122
"errors"
2223
"fmt"
2324
"strings"
25+
"time"
2426

2527
"github.com/santhosh-tekuri/jsonschema/v6"
2628

29+
"net/http"
30+
31+
"helm.sh/helm/v3/internal/version"
2732
"helm.sh/helm/v3/pkg/chart"
2833
)
2934

35+
// HTTPURLLoader implements a loader for HTTP/HTTPS URLs
36+
type HTTPURLLoader http.Client
37+
38+
func (l *HTTPURLLoader) Load(urlStr string) (any, error) {
39+
client := (*http.Client)(l)
40+
41+
req, err := http.NewRequest(http.MethodGet, urlStr, nil)
42+
if err != nil {
43+
return nil, fmt.Errorf("failed to create HTTP request for %s: %w", urlStr, err)
44+
}
45+
req.Header.Set("User-Agent", version.GetUserAgent())
46+
47+
resp, err := client.Do(req)
48+
if err != nil {
49+
return nil, fmt.Errorf("HTTP request failed for %s: %w", urlStr, err)
50+
}
51+
defer resp.Body.Close()
52+
53+
if resp.StatusCode != http.StatusOK {
54+
return nil, fmt.Errorf("HTTP request to %s returned status %d (%s)", urlStr, resp.StatusCode, http.StatusText(resp.StatusCode))
55+
}
56+
57+
return jsonschema.UnmarshalJSON(resp.Body)
58+
}
59+
60+
// newHTTPURLLoader creates a HTTP URL loader with proxy support.
61+
func newHTTPURLLoader() *HTTPURLLoader {
62+
httpLoader := HTTPURLLoader(http.Client{
63+
Timeout: 15 * time.Second,
64+
Transport: &http.Transport{
65+
Proxy: http.ProxyFromEnvironment,
66+
TLSClientConfig: &tls.Config{},
67+
},
68+
})
69+
return &httpLoader
70+
}
71+
3072
// ValidateAgainstSchema checks that values does not violate the structure laid out in schema
3173
func ValidateAgainstSchema(chrt *chart.Chart, values map[string]interface{}) error {
3274
var sb strings.Builder
@@ -68,7 +110,15 @@ func ValidateAgainstSingleSchema(values Values, schemaJSON []byte) (reterr error
68110
return err
69111
}
70112

113+
// Configure compiler with loaders for different URL schemes
114+
loader := jsonschema.SchemeURLLoader{
115+
"file": jsonschema.FileLoader{},
116+
"http": newHTTPURLLoader(),
117+
"https": newHTTPURLLoader(),
118+
}
119+
71120
compiler := jsonschema.NewCompiler()
121+
compiler.UseLoader(loader)
72122
err = compiler.AddResource("file:///values.schema.json", schema)
73123
if err != nil {
74124
return err

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1204,7 +1204,7 @@ gopkg.in/yaml.v2
12041204
# gopkg.in/yaml.v3 v3.0.1
12051205
## explicit
12061206
gopkg.in/yaml.v3
1207-
# helm.sh/helm/v3 v3.18.5
1207+
# helm.sh/helm/v3 v3.18.6
12081208
## explicit; go 1.24.0
12091209
helm.sh/helm/v3/internal/fileutil
12101210
helm.sh/helm/v3/internal/resolver

0 commit comments

Comments
 (0)