Skip to content

APIRoot path wrong formatted - has a new line after /pulp/ #1456

@catalinpan

Description

@catalinpan

Version
1.0.0 and 1.0.1

Describe the bug
API enters in crashloop after deployment, pulp config looks like below

is_nginx_ingress: true
web:
    replicas: 0

To Reproduce
API Deployment looks like below after is deployed by the operator.

          livenessProbe:
            failureThreshold: 10
            httpGet:
              path: |-
                /pulp/
                api/v3/status/
              port: 24817
              scheme: HTTP
            initialDelaySeconds: 3
            periodSeconds: 20
            successThreshold: 1
            timeoutSeconds: 10
          name: api
          ports:
            - containerPort: 24817
              protocol: TCP
          readinessProbe:
            exec:
              command:
                - /usr/bin/readyz.py
                - |-
                  /pulp/
                  api/v3/status/
            failureThreshold: 1
            initialDelaySeconds: 3
            periodSeconds: 10
            successThreshold: 1
            timeoutSeconds: 10

Ingress path looks like below after is deployed by the operator.

          - backend:
              service:
                name: pulp-api-svc
                port:
                  name: api-24817
            path: |-
              /pulp/
              api/v3/

API pod crashloop error

"GET /pulp/%0Aapi/v3/status/ HTTP/1.1" 404 9370

Expected behavior
Path should not have a new line, should look like below.

path:  /pulp/api/v3/

Additional context

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions