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

CustomPolicy reconcilliation issue #709

Open
eguzki opened this issue Jan 20, 2022 · 0 comments
Open

CustomPolicy reconcilliation issue #709

eguzki opened this issue Jan 20, 2022 · 0 comments

Comments

@eguzki
Copy link
Member

eguzki commented Jan 20, 2022

Steps to reproduce

  1. Create APIManager CR with custom policy
spec:
  apicast:
    stagingSpec:
       customPolicies:
           - name: Example
             version: "0.1"
             secretRef:
                name: policy
  1. Edit APIMamanger CR: just update the letter case of the custom policy name
spec:
  apicast:
    stagingSpec:
       customPolicies:
           - name: example
             version: "0.1"
             secretRef:
                name: policy

Then, the deploymnent config has two volumemounts. It is expected to have only one.

Initially, with the original CR, the deployment config looked like this:

apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
  annotations:
    apps.3scale.net/apicast-policy-volume-550ce71bf15f7ab80906b5e066d2fc30: policy-01-example

spec:
  template:
     spec:
        volumes:
          - name: policy-01-example
            secret:
               defaultMode: 420
               secretName: policy
         containers:
            - volumeMounts:
                 - mountPath: /opt/app-root/src/policies/Example/0.1
                   name: policy-01-example
                   readOnly: true

After the CR change, it looks like this:

apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
  annotations:
    apps.3scale.net/apicast-policy-volume-550ce71bf15f7ab80906b5e066d2fc30: policy-01-example

spec:
  template:
     spec:
        volumes:
          - name: policy-01-example
            secret:
               defaultMode: 420
               secretName: policy
         containers:
            - volumeMounts:
                 - mountPath: /opt/app-root/src/policies/Example/0.1
                   name: policy-01-example
                   readOnly: true
            - volumeMounts:
                 - mountPath: /opt/app-root/src/policies/example/0.1
                   name: policy-01-example
                   readOnly: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant