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

[v1a1->v1a2] unexpected min/maxReplicas #15005

Closed
anoipm opened this issue Aug 4, 2022 · 1 comment
Closed

[v1a1->v1a2] unexpected min/maxReplicas #15005

anoipm opened this issue Aug 4, 2022 · 1 comment
Labels
area/serverless Issues or PRs related to serverless kind/bug Categorizes issue or PR as related to a bug.

Comments

@anoipm
Copy link
Contributor

anoipm commented Aug 4, 2022

When we apply function in version v1alpha2 we get default min/maxReplicas in result. It's different behavior from v1alpha1.

input:

apiVersion: serverless.kyma-project.io/v1alpha2
kind: Function
metadata:
  name: function-001-2
  namespace: default
spec:
  runtime: python39
  source:
    inline:
      dependencies: ""
      source: |-
        def main(event, context):
            return "hello world"

result (default min/maxReplicas):

apiVersion: serverless.kyma-project.io/v1alpha2
kind: Function
metadata:
  name: function-001-2
  [...]
spec:
  maxReplicas: 1
  minReplicas: 1
  [...]
status:
  [...]

The same with v1alpha1
input:

apiVersion: serverless.kyma-project.io/v1alpha1
kind: Function
metadata:
  name: function-001-1
  namespace: default
spec:
  runtime: python39
  source: |-
    def main(event, context):
        return "hello world"

result (without min/maxReplicas):

apiVersion: serverless.kyma-project.io/v1alpha2
kind: Function
metadata:
  name: function-001-1
  [...]
spec:
  resourceConfiguration:
    build:
      resources: {}
    function:
      resources: {}
  runtime: python39
  source:
    inline:
      dependencies: ""
      source: |-
        def main(event, context):
            return "hello world"
  template: {}
status:
  [...]

I am using kyma taken from main on August 2.
For conversion I use command kubectl apply -f input.yaml.

Related issues
#14593

@kwiatekus
Copy link
Contributor

Works now after #15049

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/serverless Issues or PRs related to serverless kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants