openstack-k8s-operators / openstack-operator

Meta Operator for OpenStack
https://openstack-k8s-operators.github.io/openstack-operator/
Apache License 2.0
24 stars 67 forks source link

[question] how to change container image url? #878

Open angry-tony opened 1 week ago

angry-tony commented 1 week ago

hello, guys..

Is there a way to configure it in a disconnected environment?

Do I need to manually find the value that refers to the image in each operator and change the existing value to an internal registry that is not connected to the Internet? FROM containerImage: quay.io/podified-antelope-centos9/openstack-ovn-nb-db-server:current-podified TO containerImage: local.registry/CUSTOM_NAMESPACE/openstack-ovn-nb-db-server:CUSTOM_TAG

Is there any easy way or document I can refer to?

abays commented 6 days ago

You can pre-create an OpenStackVersion CR to change OSP service images. See [1] for an example and [2] for reference.

[1] https://github.com/openstack-k8s-operators/openstack-operator/blob/main/config/samples/core_v1beta1_openstackversion.yaml [2] https://github.com/openstack-k8s-operators/openstack-operator/blob/d23dd170dd2a93298bd6283bb20aade1817e8d50/apis/core/v1beta1/openstackversion_types.go#L69-L148

angry-tony commented 6 days ago

@abays, wow.. thank you!! i will try it.