Skip to content

Conversation

@pPrecel
Copy link
Contributor

@pPrecel pPrecel commented Jan 22, 2025

Description

Changes proposed in this pull request:

  • make the get template command

How to run it

  1. add the following configmap to the cluster:
apiVersion: v1
data:
  rootCommand: |
    name: function
    description: Set of commands for managing Functions
    descriptionLong: Use this command manage Functions
  resource: |
    scope: namespace
    kind: Function
    version: v1alpha2
    group: serverless.kyma-project.io
  templateCommands: |
    get:
      description: "get functions"
      descriptionLong: "use this command to get functions from a cluster"
      parameters:
      - path: '.status.conditions[] | select(.type=="ConfigurationReady") | .status'
        name: "configured"
      - path: '.status.conditions[] | select(.type=="BuildReady") | .status'
        name: "built"
      - path: '.status.conditions[] | select(.type=="Running") | .status'
        name: "running"
      - path: ".spec.runtime"
        name: "runtime"
      - path: ".metadata.generation"
        name: "generation"
kind: ConfigMap
metadata:
  labels:
    kyma-cli/extension: resource
    kyma-project.io/module: function
  name: serverless.function.cli
  namespace: kyma-system
  1. build the cli from this PR:
go build --output kyma-dev main.go
  1. use command
./kyma-dev alpha --help

Related issue(s)

@pPrecel pPrecel added kind/feature Categorizes issue or PR as related to a new feature. area/cli Related to all activities around CLI labels Jan 22, 2025
@pPrecel pPrecel requested a review from a team as a code owner January 22, 2025 23:06
@kyma-bot kyma-bot added cla: yes Indicates the PR's author has signed the CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jan 22, 2025
@kyma-bot kyma-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jan 22, 2025
@pPrecel pPrecel enabled auto-merge (squash) January 23, 2025 08:17
@pPrecel pPrecel merged commit 4a65ea2 into kyma-project:main Jan 23, 2025
4 checks passed
@kyma-bot kyma-bot added the lgtm Looks good to me! label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli Related to all activities around CLI cla: yes Indicates the PR's author has signed the CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm Looks good to me! size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants