Skip to content
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

[POP-404] Deprecation check failed #181

Closed
alimoezzi opened this issue Jul 8, 2021 · 4 comments
Closed

[POP-404] Deprecation check failed #181

alimoezzi opened this issue Jul 8, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@alimoezzi
Copy link

Hi
I'm getting [POP-404] Deprecation check failed. Unable to assert resource version on ingresses on GKE.
What is the problem?

@survivant
Copy link

I have the same question. Here a Ingress that I have that return a POP-404 message.

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    meta.helm.sh/release-name: acquisition-service-singleton
    meta.helm.sh/release-namespace: dev
    nginx.ingress.kubernetes.io/rewrite-target: /$2
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
  creationTimestamp: "2021-07-07T14:33:12Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
  managedFields:
  - apiVersion: networking.k8s.io/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:meta.helm.sh/release-name: {}
          f:meta.helm.sh/release-namespace: {}
          f:nginx.ingress.kubernetes.io/rewrite-target: {}
          f:nginx.ingress.kubernetes.io/ssl-redirect: {}
        f:labels:
          .: {}
          f:app.kubernetes.io/managed-by: {}
      f:spec:
        f:rules: {}
    manager: Go-http-client
    operation: Update
    time: "2021-07-07T14:33:12Z"
  - apiVersion: networking.k8s.io/v1beta1
    fieldsType: FieldsV1
    fieldsV1:
      f:status:
        f:loadBalancer:
          f:ingress: {}
    manager: nginx-ingress-controller
    operation: Update
    time: "2021-07-07T14:33:46Z"
  name: acquisition-service
  namespace: dev
  resourceVersion: "55331969"
  uid: fed728c9-ed64-42be-8345-dd4cf3b218f1
spec:
  rules:
  - host: dev.dynamic.cluster109.local
    http:
      paths:
      - backend:
          service:
            name: acquisition-service
            port:
              number: 8080
        path: /acquisition(/|$)(.*)
        pathType: Prefix
status:
  loadBalancer:
    ingress:
    - ip: 10.1.34.54

@aljoshare
Copy link

aljoshare commented Jul 15, 2021

I get the same error on almost all resources with K8s version v1.21.2. I think its related to the K8s version in combination with the following method:

func revFromLink(link string) string {

The SelfLink field is deprecated with v1.21.0:

	// SelfLink is a URL representing this object.
	// Populated by the system.
	// Read-only.
	//
	// DEPRECATED
	// Kubernetes will stop propagating this field in 1.20 release and the field is planned
	// to be removed in 1.21 release.
	// +optional
	SelfLink string `json:"selfLink,omitempty" protobuf:"bytes,4,opt,name=selfLink"`

https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#ObjectMeta

@derailed derailed added the bug Something isn't working label Jul 15, 2021
derailed added a commit that referenced this issue Jul 15, 2021
derailed added a commit that referenced this issue Jul 15, 2021
@derailed
Copy link
Owner

Fixed v0.9.4!

@aljoshare
Copy link

Looks good but container push for v0.9.5 failed I think 🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants