Skip to content

Commit

Permalink
delete deprecated registries config
Browse files Browse the repository at this point in the history
Signed-off-by: Ayato Tokubi <atokubi@redhat.com>
  • Loading branch information
bitoku committed May 10, 2024
1 parent 9712c53 commit fab5195
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion completions/fish/crio.fish
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ complete -c crio -n '__fish_crio_no_subcommand' -f -l profile-mem -r -d 'Write a
complete -c crio -n '__fish_crio_no_subcommand' -f -l profile-port -r -d 'Port for the pprof profiler.'
complete -c crio -n '__fish_crio_no_subcommand' -f -l rdt-config-file -r -d 'Path to the RDT configuration file for configuring the resctrl pseudo-filesystem.'
complete -c crio -n '__fish_crio_no_subcommand' -f -l read-only -d 'Setup all unprivileged containers to run as read-only. Automatically mounts the containers\' tmpfs on \'/run\', \'/tmp\' and \'/var/tmp\'.'
complete -c crio -n '__fish_crio_no_subcommand' -f -l registry -r -d 'Registry to be prepended when pulling unqualified images. Can be specified multiple times.'
complete -c crio -n '__fish_crio_no_subcommand' -f -l registry -r -d 'Registry to be prepended when pulling unqualified images. Can be specified multiple times. This option is deprecated, and it has no effect.'
complete -c crio -n '__fish_crio_no_subcommand' -l root -s r -r -d 'The CRI-O root directory.'
complete -c crio -n '__fish_crio_no_subcommand' -l runroot -r -d 'The CRI-O state directory.'
complete -c crio -n '__fish_crio_no_subcommand' -f -l runtimes -r -d 'OCI runtimes, format is \'runtime_name:runtime_path:runtime_root:runtime_type:privileged_without_host_devices:runtime_config_path:container_min_memory\'.'
Expand Down
7 changes: 0 additions & 7 deletions contrib/test/ci/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,5 @@
[crio]
storage_driver = "overlay"
- name: add quay.io and docker.io as default registries
copy:
dest: /etc/crio/crio.conf.d/01-registries.conf
content: |
[crio.image]
registries = [ "quay.io", "docker.io" ]
- name: build parallel
include_tasks: "build/parallel.yml"
6 changes: 3 additions & 3 deletions docs/crio.8.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,11 +387,11 @@ crio [GLOBAL OPTIONS] command [COMMAND OPTIONS] [ARGUMENTS...]

**--read-only**: Setup all unprivileged containers to run as read-only. Automatically mounts the containers' tmpfs on '/run', '/tmp' and '/var/tmp'.

**--registry**="": Registry to be prepended when pulling unqualified images. Can be specified multiple times.
**--registry**="": Registry to be prepended when pulling unqualified images. Can be specified multiple times. This option is deprecated, and it has no effect.

**--root, -r**="": The CRI-O root directory. (default: "/var/lib/containers/storage")
**--root, -r**="": The CRI-O root directory. (default: "/home/atokubi/.local/share/containers/storage")

**--runroot**="": The CRI-O state directory. (default: "/run/containers/storage")
**--runroot**="": The CRI-O state directory. (default: "/run/user/1000/containers")

**--runtimes**="": OCI runtimes, format is 'runtime_name:runtime_path:runtime_root:runtime_type:privileged_without_host_devices:runtime_config_path:container_min_memory'.

Expand Down
2 changes: 1 addition & 1 deletion internal/criocli/criocli.go
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ func getCrioFlags(defConf *libconfig.Config) []cli.Flag {
&cli.StringSliceFlag{
Name: "registry",
Value: cli.NewStringSlice(defConf.Registries...),
Usage: "Registry to be prepended when pulling unqualified images. Can be specified multiple times.",
Usage: "Registry to be prepended when pulling unqualified images. Can be specified multiple times. This option is deprecated, and it has no effect.",
EnvVars: []string{"CONTAINER_REGISTRY"},
},
&cli.StringFlag{
Expand Down
2 changes: 2 additions & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,8 @@ type ImageConfig struct {
// ImageVolumes controls how volumes specified in image config are handled
ImageVolumes ImageVolumesType `toml:"image_volumes"`
// Registries holds a list of registries used to pull unqualified images
// Deprecated: Support for this option has been dropped, and it has no effect.
// Please refer to containers-registries.conf(5) for configuring unqualified-search registries.
Registries []string `toml:"registries"`
// Temporary directory for big files
BigFilesTemporaryDir string `toml:"big_files_temporary_dir"`
Expand Down

0 comments on commit fab5195

Please sign in to comment.