Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
6bf1742
fix(crd-upgrade-safety): Safely handle changes to description fields …
anik120 Jun 13, 2025
5812c74
OPRUN-3873: Add e2e tests for NetworkPolicies (#2013)
anik120 Jun 16, 2025
d18883d
:seedling: Bump markdown from 3.8 to 3.8.2 (#2033)
dependabot[bot] Jun 23, 2025
c8d7c1e
(e2e) fix namespaces network-policy test searches in (#2034)
anik120 Jun 23, 2025
c38733f
:seedling: Bump pygments from 2.19.1 to 2.19.2 (#2035)
dependabot[bot] Jun 23, 2025
db8af31
:seedling: Bump certifi from 2025.4.26 to 2025.6.15 (#2028)
dependabot[bot] Jun 23, 2025
0ae24f9
:seedling: Bump github.com/cert-manager/cert-manager (#2030)
dependabot[bot] Jun 23, 2025
dffa0f6
:seedling: Bump urllib3 from 2.4.0 to 2.5.0 (#2031)
dependabot[bot] Jun 23, 2025
d844c45
(e2e) fix default-deny-all in list of allowed policies for test (#2039)
anik120 Jun 23, 2025
2928296
:seedling: Bump pymdown-extensions from 10.15 to 10.16 (#2036)
dependabot[bot] Jun 23, 2025
ed3a6ef
Merge branch 'main' into synchronize
Jun 24, 2025
c4a3768
UPSTREAM: <carry>: Add OpenShift specific files
dtfranz Oct 26, 2023
deaeaaf
UPSTREAM: <carry>: Fix catalogd.Dockerfile to use new paths
tmshort Feb 26, 2025
eddd8df
UPSTREAM: <carry>: Update DOWNSTREAM_OWNERS_ALIASES
tmshort Mar 6, 2025
f3880c2
UPSTREAM: <carry>: Add openshift node selector annotation
oceanc80 Mar 26, 2025
1561df8
UPSTREAM: <carry>: Add caalogd-cas-dir option to op-con
tmshort Apr 15, 2025
ce1ea83
UPSTREAM: <carry>: set the SElinux type
jianzhangbjz Apr 27, 2025
71086a0
UPSTREAM: <carry>: Add initial stack to run tests to validate the cat…
camilamacedo86 Apr 17, 2025
c38aac2
UPSTREAM: <carry>: Add vendor files for the catalog-sync tests
camilamacedo86 Apr 17, 2025
0b49222
UPSTREAM: <carry>: Bump catalog versions to 4.19
tmshort Apr 24, 2025
fbd244e
UPSTREAM: <carry>: revert "Bump catalog versions to 4.19"
tmshort May 15, 2025
8e57f66
UPSTREAM: <carry>: Update HOWTO-origin-tests
tmshort May 14, 2025
ca3bbba
UPSTREAM: <carry>: [DefaultCatalogTests]: Allow to pass auth path for…
camilamacedo86 May 16, 2025
8f24ae4
UPSTREAM: <carry>: fix: set NoLchown=true to allow image unpack on OCPci
camilamacedo86 May 19, 2025
ecd40cd
UPSTREAM: <carry>: [DefaultCatalogTests]: Moving parse of ENVVAR to t…
camilamacedo86 May 17, 2025
2519f42
UPSTREAM: <carry>: [Default Catalog]: Create tmp dir to extract layer…
camilamacedo86 May 20, 2025
10cc3b6
UPSTREAM: <carry>: [Default Catalog](cleanp) Remove hack directory wh…
camilamacedo86 May 19, 2025
96f05ba
UPSTREAM: <carry>: Change code implementation to extract layers in OC…
camilamacedo86 May 21, 2025
5f4dac7
UPSTREAM: <carry>: Add vendor files for change in the extract code im…
camilamacedo86 May 21, 2025
19ee341
UPSTREAM: <carry>: [Default Catalog Tests]: Final cleanups and enhanc…
camilamacedo86 May 22, 2025
d6f8c08
UPSTREAM: <carry>: SELinux type for operator-controller
jianzhangbjz May 22, 2025
db64fc6
UPSTREAM: <carry>: Bump catalog versions to 4.19
tmshort Apr 24, 2025
38a4d89
UPSTREAM: <carry>: [Default Catalog Consistency Test] (feat) add chec…
camilamacedo86 May 28, 2025
5e6f946
UPSTREAM: <carry>: [Default Catalog Consistency Test]: fix junit outp…
camilamacedo86 Jun 2, 2025
63d1965
UPSTREAM: <carry>: [Default Catalog Consistency Test] (feat) add chec…
camilamacedo86 May 29, 2025
06fb6e2
UPSTREAM: <carry>: [Default Catalog Consistency Test]: Enable Catalog…
camilamacedo86 Jun 4, 2025
7b2909b
UPSTREAM: <carry>: [Default Catalog Consistency Test]: Rename Tests s…
camilamacedo86 Jun 4, 2025
7689f88
UPSTREAM: <carry>: Updating ose-olm-operator-controller-container ima…
Jun 18, 2025
2891463
UPSTREAM: <carry>: Updating ose-olm-catalogd-container image to be co…
Jun 18, 2025
1af117b
UPSTREAM: <drop>: go mod vendor
Jun 24, 2025
0067990
UPSTREAM: <drop>: remove upstream GitHub configuration
Jun 24, 2025
c6456a9
UPSTREAM: <drop>: configure the commit-checker
Jun 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion commitchecker.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
expectedMergeBase: efc6657e23a9f03ed370e73562c89b72d13ec605
expectedMergeBase: 29282969fc3d137a9bc8a93befc014acb66b12aa
upstreamBranch: main
upstreamOrg: operator-framework
upstreamRepo: operator-controller
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/BurntSushi/toml v1.5.0
github.com/Masterminds/semver/v3 v3.3.1
github.com/blang/semver/v4 v4.0.0
github.com/cert-manager/cert-manager v1.18.0
github.com/cert-manager/cert-manager v1.18.1
github.com/containerd/containerd v1.7.27
github.com/containers/image/v5 v5.35.0
github.com/fsnotify/fsnotify v1.9.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ github.com/bshuster-repo/logrus-logstash-hook v1.0.0/go.mod h1:zsTqEiSzDgAa/8GZR
github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8=
github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cert-manager/cert-manager v1.18.0 h1:v7vxC1Mx5tkDz1oGOAktB88zA6TbGKcmpLM92+AIXRc=
github.com/cert-manager/cert-manager v1.18.0/go.mod h1:icDJx4kG9BCNpGjBvrmsFd99d+lXUvWdkkcrSSQdIiw=
github.com/cert-manager/cert-manager v1.18.1 h1:5qa3UNrgkNc5Zpn0CyAVMyRIchfF3/RHji4JrazYmWw=
github.com/cert-manager/cert-manager v1.18.1/go.mod h1:icDJx4kG9BCNpGjBvrmsFd99d+lXUvWdkkcrSSQdIiw=
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/chai2010/gettext-go v1.0.2 h1:1Lwwip6Q2QGsAdl/ZKPCwTe9fe0CjlUbqj5bFNSjIRk=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,3 +242,13 @@ func Type(diff FieldDiff) (bool, error) {

return isHandled(diff, reset), err
}

// Description changes are considered safe and non-breaking.
func Description(diff FieldDiff) (bool, error) {
reset := func(diff FieldDiff) FieldDiff {
diff.Old.Description = ""
diff.New.Description = ""
return diff
}
return isHandled(diff, reset), nil
}
Original file line number Diff line number Diff line change
Expand Up @@ -904,3 +904,105 @@ func TestType(t *testing.T) {
})
}
}

func TestDescription(t *testing.T) {
for _, tc := range []testcase{
{
name: "no diff, no error, handled",
diff: FieldDiff{
Old: &apiextensionsv1.JSONSchemaProps{
Description: "some field",
},
New: &apiextensionsv1.JSONSchemaProps{
Description: "some field",
},
},
err: nil,
handled: true,
},
{
name: "description changed, no error, handled",
diff: FieldDiff{
Old: &apiextensionsv1.JSONSchemaProps{
Description: "old description",
},
New: &apiextensionsv1.JSONSchemaProps{
Description: "new description",
},
},
err: nil,
handled: true,
},
{
name: "description added, no error, handled",
diff: FieldDiff{
Old: &apiextensionsv1.JSONSchemaProps{},
New: &apiextensionsv1.JSONSchemaProps{
Description: "a new description was added",
},
},
err: nil,
handled: true,
},
{
name: "description removed, no error, handled",
diff: FieldDiff{
Old: &apiextensionsv1.JSONSchemaProps{
Description: "this description will be removed",
},
New: &apiextensionsv1.JSONSchemaProps{},
},
err: nil,
handled: true,
},
{
name: "different field changed, no error, not handled",
diff: FieldDiff{
Old: &apiextensionsv1.JSONSchemaProps{
ID: "foo",
},
New: &apiextensionsv1.JSONSchemaProps{
ID: "bar",
},
},
err: nil,
handled: false,
},
{
name: "different field changed with description, no error, not handled",
diff: FieldDiff{
Old: &apiextensionsv1.JSONSchemaProps{
ID: "foo",
Description: "description",
},
New: &apiextensionsv1.JSONSchemaProps{
ID: "bar",
Description: "description",
},
},
err: nil,
handled: false,
},
{
name: "description and ID changed, no error, not handled",
diff: FieldDiff{
Old: &apiextensionsv1.JSONSchemaProps{
ID: "foo",
Description: "old description",
},
New: &apiextensionsv1.JSONSchemaProps{
ID: "bar",
Description: "new description",
},
},
err: nil,
handled: false,
},
} {
t.Run(tc.name, func(t *testing.T) {
handled, err := Description(tc.diff)
require.Equal(t, tc.err, err)
require.Equal(t, tc.handled, handled)
})
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type Preflight struct {

func NewPreflight(crdCli apiextensionsv1client.CustomResourceDefinitionInterface, opts ...Option) *Preflight {
changeValidations := []ChangeValidation{
Description,
Enum,
Required,
Maximum,
Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Babel==2.17.0
beautifulsoup4==4.13.4
certifi==2025.4.26
certifi==2025.6.15
charset-normalizer==3.4.2
click==8.1.8
colorama==0.4.6
Expand All @@ -9,7 +9,7 @@ ghp-import==2.1.0
idna==3.10
Jinja2==3.1.6
lxml==5.4.0
Markdown==3.8
Markdown==3.8.2
markdown2==2.5.3
MarkupSafe==3.0.2
mergedeep==1.3.4
Expand All @@ -20,8 +20,8 @@ packaging==25.0
paginate==0.5.7
pathspec==0.12.1
platformdirs==4.3.8
Pygments==2.19.1
pymdown-extensions==10.15
Pygments==2.19.2
pymdown-extensions==10.16
pyquery==2.0.1
python-dateutil==2.9.0.post0
PyYAML==6.0.2
Expand All @@ -31,5 +31,5 @@ regex==2024.11.6
requests==2.32.4
six==1.17.0
soupsieve==2.7
urllib3==2.4.0
urllib3==2.5.0
watchdog==6.0.0
Loading