Open prune998 opened 5 years ago
Can one of the admins verify this patch?
Can one of the admins verify this patch?
Can one of the admins verify this patch?
I am wondering if instead of composing the image name using repository
and version
, it would be simpler to replace it with a key called image
? The CR will look like:
apiVersion: "etcd.database.coreos.com/v1beta2"
kind: "EtcdCluster"
metadata:
name: "example-etcd-cluster"
spec:
size: 3
image: "quay.io/coreos/etcd:v3.1.10"
Maybe doing this will make it harder to manage the upgrade process when only the image version is changed ? That would also imply an API change, while this PR does not.
I could be wrong, but I thought if we can compare the image instead of version here, the upgrade process can be handled.
Agreed, this would mean an API change, and I do not know if we would want it for simplicity or not.
we also have issue with auto-adding v
our Pod Security Policy
restrict images using with version number. we have to sign them and we have to use tag with digest something like this "sha256:4567464gfjfjfgjfjfjfjfjjfjfjfjfj354345534"
if it adds "v" , then it breaks
Is it possible to add digest:
so we can use image@digest
instead image:version
?
When creating an
etcdCluster
resource, you provide anImage
and aVersion.
Version` is a semver version depending on the EtcD image version you wish to use.The default is to use Quay images, which are versioned using a pattern of
v
+semver
, likev3.0.12
.So defining :
Will create a Pod using image
quay.io/coreos/etcd:v3.1.10
.This may be fine with
Quay
images, but when you are working with other Docker Registries, you may not want to add thev
to the version.The Operator should not force you to use a specific version pattern.
This PR removes the
v
addition to the version, allowing to use a real version name in the CRD.