-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
update manifests for dev releases #9754
base: master
Are you sure you want to change the base?
Changes from all commits
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 |
---|---|---|
|
@@ -878,6 +878,12 @@ func (r *CalicoManager) generateManifests() error { | |
env := os.Environ() | ||
env = append(env, fmt.Sprintf("CALICO_VERSION=%s", r.calicoVersion)) | ||
env = append(env, fmt.Sprintf("OPERATOR_VERSION=%s", r.operatorVersion)) | ||
// If not using default registries, update the registry in the manifests. | ||
if !reflect.DeepEqual(r.imageRegistries, defaultRegistries) { | ||
env = append(env, fmt.Sprintf("REGISTRY=%s", r.imageRegistries[0])) | ||
} | ||
env = append(env, fmt.Sprintf("OPERATOR_REGISTRY=%s", r.operatorRegistry)) | ||
env = append(env, fmt.Sprintf("OPERATOR_IMAGE=%s", r.operatorImage)) | ||
if err := r.makeInDirectoryIgnoreOutput(r.repoRoot, "gen-manifests", env...); err != nil { | ||
logrus.WithError(err).Error("Failed to make manifests") | ||
return err | ||
|
@@ -886,7 +892,7 @@ func (r *CalicoManager) generateManifests() error { | |
} | ||
|
||
func (r *CalicoManager) resetManifests() { | ||
if _, err := r.runner.RunInDir(r.repoRoot, "git", []string{"checkout", "manifests"}, nil); err != nil { | ||
if _, err := r.runner.RunInDir(r.repoRoot, "git", []string{"checkout", "manifests", "charts"}, nil); err != nil { | ||
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. What change happens in the charts diretory? I can't see where we're modifying that 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. the images in 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. Ah, right. I need to think about that one for a moment. I think it's a change in scope of the |
||
logrus.WithError(err).Error("Failed to reset manifests") | ||
} | ||
} | ||
|
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.
Seems wrong that
calicoctl.image
is of the form REGISTRY/CTL whereas thetigeraOperator.image
is just of the formtigera/operator
with the registry configured separately - we should be using consistent meanings for image / version / registry.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.
the calicoctl images are pushed as /ctl
sadly we currently do not follow a consistent pattern b/w operator and monorepo images, that will require a bigger overhaul which is beyond the scope of this PR
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.
Surely they must be pushed as
docker.io/calico/ctl
no?Operator has two separate config options -
registry
andimage
Calicoctl has a single option -
image
- that appears to be a merged version of registry and image.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.
For my dev images, it is created as
docker.io/tuticat/ctl
When the default registry is not overwritten, this be set to
calico/ctl
which matches the current state ofimage: calico/ctl:master