-
Notifications
You must be signed in to change notification settings - Fork 212
OCPSTRAT-2485: Introduce feature gate based inclusion/exclusion of manifests #1273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
9004329
8163e7d
dad68ce
ed06ae4
d206d70
cc44477
714d49f
309f0be
f46468a
0f4973f
4becfc9
f723c0d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ import ( | |
| "time" | ||
|
|
||
| "github.com/spf13/cobra" | ||
| "k8s.io/apimachinery/pkg/util/sets" | ||
|
|
||
| "github.com/openshift/cluster-version-operator/pkg/payload" | ||
| ) | ||
|
|
@@ -30,7 +31,7 @@ func newTaskGraphCmd() *cobra.Command { | |
|
|
||
| func runTaskGraphCmd(cmd *cobra.Command, args []string) error { | ||
| manifestDir := args[0] | ||
| release, err := payload.LoadUpdate(manifestDir, "", "", "", payload.DefaultClusterProfile, nil) | ||
| release, err := payload.LoadUpdate(manifestDir, "", "", "", payload.DefaultClusterProfile, nil, sets.Set[string]{}) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't handle feature sets today, does it need to handle feature gates? |
||
| if err != nil { | ||
| return err | ||
| } | ||
|
|
||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: This file is not to be merged, this is just for testing purposes |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: dev-preview-created | ||
| namespace: openshift-cluster-version | ||
| annotations: | ||
| include.release.openshift.io/self-managed-high-availability: "true" | ||
| release.openshift.io/feature-gates: "Example,Example2" | ||
| data: | ||
| example: "this should be created on dev-preview-only as it's annotated with Example and Example2" | ||
| --- | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: tech-preview-created | ||
| namespace: openshift-cluster-version | ||
| annotations: | ||
| include.release.openshift.io/self-managed-high-availability: "true" | ||
| release.openshift.io/feature-gates: "Example,-Example2" | ||
| data: | ||
| example: "this should be created on tech-preview-only as it's annotated with Example and not Example2" | ||
| --- | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: default-created | ||
| namespace: openshift-cluster-version | ||
| annotations: | ||
| include.release.openshift.io/self-managed-high-availability: "true" | ||
| release.openshift.io/feature-gates: "-Example,-Example2" | ||
| data: | ||
| example: "this should be created on default-only as it's annotated with negation for Example and Example2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
# Check the full go.mod file to understand context cat go.modRepository: openshift/cluster-version-operator
Length of output: 4437
🏁 Script executed:
# Look for any git history or PR context about this change git log --oneline -n 20 -- go.modRepository: openshift/cluster-version-operator
Length of output: 142
🏁 Script executed:
Repository: openshift/cluster-version-operator
Length of output: 60
Replace to personal library-go fork must be reverted before merge
The
replace github.com/openshift/library-go => github.com/JoelSpeed/library-go v0.0.0-20251217102247-bcd739ac7ffadirective must not land on main. Personal fork replacements create maintenance and security risks. Before merging, revert to the upstreamgithub.com/openshift/library-goversion that includes the necessary feature-gate changes (once the upstream PR is merged).🤖 Prompt for AI Agents