Skip to content

Commit

Permalink
update status cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimss committed Dec 24, 2023
1 parent c36d5b9 commit ae39b53
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 14 deletions.
20 changes: 20 additions & 0 deletions charts/cnvrg-all-in-one/templates/operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,26 @@ spec:
imagePullSecrets:
- name: operator-pull-secret
containers:
- command:
- /bin/bash
- -c
- |
/opt/app-root/copctl \
create \
status \
--name={{ .Release.Name }}
--namespace={{ .Release.Namespace }}
--interval=5
image: "docker.io/cnvrg/copctl:latest"
imagePullPolicy: Always
name: service-instance-status-reporter
resources:
limits:
cpu: 1000m
memory: 1000Mi
requests:
cpu: 400m
memory: 200Mi
- command:
- /opt/app-root/cnvrg-operator
- start
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package get
package create

import (
"context"
Expand Down
11 changes: 0 additions & 11 deletions cmd/copctl/cmd/get/get.go

This file was deleted.

2 changes: 0 additions & 2 deletions cmd/copctl/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cmd

import (
"github.com/AccessibleAI/cnvrg-operator/cmd/copctl/cmd/create"
"github.com/AccessibleAI/cnvrg-operator/cmd/copctl/cmd/get"
"github.com/AccessibleAI/cnvrg-operator/cmd/copctl/cmd/start"
"github.com/spf13/cobra"
"github.com/spf13/viper"
Expand Down Expand Up @@ -30,7 +29,6 @@ func init() {
cobra.OnInitialize(initConfig)
RootCmd.AddCommand(start.Cmd)
RootCmd.AddCommand(create.Cmd)
RootCmd.AddCommand(get.Cmd)
}

func initConfig() {
Expand Down

0 comments on commit ae39b53

Please sign in to comment.