We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, if a composition creates a job, the object is immutable, but provider-kubernetes will attempt to modify it.
A management policy that only does create and delete would be nice here.
Type Reason Age From Message ---- ------ ---- ---- ------- Normal CreatedExternalResource 20m managed/object.kubernetes.crossplane.io Successfully requested creation Warning CannotUpdateExternalResource 8m39s managed/object.kubernetes.crossplane.io cannot apply object: cannot patc Warning CannotUpdateExternalResource 8m39s managed/object.kubernetes.crossplane.io cannot apply object: cannot patc Warning CannotUpdateExternalResource 8m39s managed/object.kubernetes.crossplane.io cannot apply object: cannot patc Warning CannotUpdateExternalResource 8m39s managed/object.kubernetes.crossplane.io cannot apply object: cannot patc Warning CannotUpdateExternalResource 8m39s managed/object.kubernetes.crossplane.io cannot apply object: cannot patc Warning CannotUpdateExternalResource 8m39s managed/object.kubernetes.crossplane.io cannot apply object: cannot patc Warning CannotUpdateExternalResource 8m39s managed/object.kubernetes.crossplane.io cannot apply object: cannot patc Warning CannotUpdateExternalResource 8m39s managed/object.kubernetes.crossplane.io cannot apply object: cannot patc Warning CannotUpdateExternalResource 8m39s managed/object.kubernetes.crossplane.io cannot apply object: cannot patc Warning CannotUpdateExternalResource 3m38s (x849 over 8m39s) managed/object.kubernetes.crossplane.io (combined from similar events):
full event (example):
Warning CannotUpdateExternalResource 4m38s (x849 over 9m39s) managed/object.kubernetes.crossplane.io (combined from similar events): cannot apply object: cannot patch object: Job.batch "pi-1" is invalid: spec.template: Invalid value: core.PodTemplateSpec{ObjectMeta:v1.ObjectMeta{Name:"", GenerateName:"", Namespace:"", SelfLink:"", UID:"", ResourceVersion:"", Generation:0, CreationTimestamp:time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), DeletionTimestamp:<nil>, DeletionGracePeriodSeconds:(*int64)(nil), Labels:map[string]string{"controller-uid":"030305ca-7ab7-4d05-8c7c-e3cb92e7588f", "job-name":"pi-1"}, Annotations:map[string]string(nil), OwnerReferences:[]v1.OwnerReference(nil), Finalizers:[]string(nil), ManagedFields:[]v1.ManagedFieldsEntry(nil)}, Spec:core.PodSpec{Volumes:[]core.Volume(nil), InitContainers:[]core.Container(nil), Containers:[]core.Container{core.Container{Name:"pi", Image:"perl:5.34.0", Command:[]string{"perl", "-Mbignum=bpi", "-wle", "print bpi(1) second2"}, Args:[]string(nil), WorkingDir:"", Ports:[]core.ContainerPort(nil), EnvFrom:[]core.EnvFromSource(nil), Env:[]core.EnvVar(nil), Resources:core.ResourceRequirements{Limits:core.ResourceList(nil), Requests:core.ResourceList(nil), Claims:[]core.ResourceClaim(nil)}, VolumeMounts:[]core.VolumeMount(nil), VolumeDevices:[]core.VolumeDevice(nil), LivenessProbe:(*core.Probe)(nil), ReadinessProbe:(*core.Probe)(nil), StartupProbe:(*core.Probe)(nil), Lifecycle:(*core.Lifecycle)(nil), TerminationMessagePath:"/dev/termination-log", TerminationMessagePolicy:"File", ImagePullPolicy:"IfNotPresent", SecurityContext:(*core.SecurityContext)(nil), Stdin:false, StdinOnce:false, TTY:false}}, EphemeralContainers:[]core.EphemeralContainer(nil), RestartPolicy:"Never", TerminationGracePeriodSeconds:(*int64)(0x4012805d98), ActiveDeadlineSeconds:(*int64)(nil), DNSPolicy:"ClusterFirst", NodeSelector:map[string]string(nil), ServiceAccountName:"", AutomountServiceAccountToken:(*bool)(nil), NodeName:"", SecurityContext:(*core.PodSecurityContext)(0x4017a80750), ImagePullSecrets:[]core.LocalObjectReference(nil), Hostname:"", Subdomain:"", SetHostnameAsFQDN:(*bool)(nil), Affinity:(*core.Affinity)(nil), SchedulerName:"default-scheduler", Tolerations:[]core.Toleration(nil), HostAliases:[]core.HostAlias(nil), PriorityClassName:"", Priority:(*int32)(nil), PreemptionPolicy:(*core.PreemptionPolicy)(nil), DNSConfig:(*core.PodDNSConfig)(nil), ReadinessGates:[]core.PodReadinessGate(nil), RuntimeClassName:(*string)(nil), Overhead:core.ResourceList(nil), EnableServiceLinks:(*bool)(nil), TopologySpreadConstraints:[]core.TopologySpreadConstraint(nil), OS:(*core.PodOS)(nil), SchedulingGates:[]core.PodSchedulingGate(nil), ResourceClaims:[]core.PodResourceClaim(nil)}}: field is immutable
Originally posted by @chlunde in #110 (comment)
The text was updated successfully, but these errors were encountered:
crossplane/crossplane#3516 - I think I just created a duplicate, closing :)
Sorry, something went wrong.
No branches or pull requests
Hi, if a composition creates a job, the object is immutable, but provider-kubernetes will attempt to modify it.
A management policy that only does create and delete would be nice here.
full event (example):
Originally posted by @chlunde in #110 (comment)
The text was updated successfully, but these errors were encountered: