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

command crd #27

Merged
merged 10 commits into from
Sep 19, 2024
Merged

command crd #27

merged 10 commits into from
Sep 19, 2024

Conversation

amirmalka
Copy link
Contributor

No description provided.

Signed-off-by: Amir Malka <[email protected]>
@amirmalka amirmalka marked this pull request as draft September 10, 2024 12:23
@@ -0,0 +1,54 @@
apiVersion: apiextensions.k8s.io/v1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apiVersion: kubescape.io/v1alpha1
kind: OperatorCommand
metadata:
  name: example-operator-command
spec:
  guid: "123e4567-e89b-12d3-a456-426614174000"
  commandType: "Scan"
  designators: "cluster"
  args:
    namespace: "default"
    scanProfile: "strict"
status:
  started: true
  startedAt: "2024-09-10T12:34:56Z"
  completed: false
  error:
    reason: ""
    message: ""
    errorCode: 0

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apiVersion: kubescape.io/v1alpha1
kind: OperatorCommand
metadata:
name: new-operatorcommand
spec:
guid: "123e4567-e89b-12d3-a456-426614174000"
commandType: "ExecutePolicy"
commandVersion: "1.0"
designators:
- key: "cluster"
value: "arn-aws-eks-eu-west-1-015253967648-cluster-ca-terraform-eks-dev-stage"
body: "eyJrZXkiOiJ2YWx1ZSJ9"
ttl: "1h"
args:
policyName: "SecurityPolicy"
policyLevel: "high"
commandIndex: 1
commandCount: 5
status:
started: true
startedAt: "2024-04-09T11:03:29Z"
completed: false
executer: "admin"
error:
reason: ""
message: ""
errorCode: 0

jnathangreeg and others added 5 commits September 11, 2024 16:37
Signed-off-by: jnathangreeg <[email protected]>
Signed-off-by: jnathangreeg <[email protected]>
Signed-off-by: Amir Malka <[email protected]>
Signed-off-by: Amir Malka <[email protected]>
Signed-off-by: Amir Malka <[email protected]>
@amirmalka amirmalka marked this pull request as ready for review September 19, 2024 10:01
Signed-off-by: Amir Malka <[email protected]>
format: date-time
subresources:
status: {}
conversion:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

GUID string `json:"guid"` // GUID is a unique identifier for the command
CommandType string `json:"commandType"` // CommandType is the type of the command
CommandVersion string `json:"commandVersion,omitempty"` // CommandVersion is the version of the command
Labels map[string]string `json:"labels,omitempty"` // Labels are the labels for the command
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove its part of the meta

@@ -0,0 +1,54 @@
apiVersion: apiextensions.k8s.io/v1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apiVersion: kubescape.io/v1alpha1
kind: OperatorCommand
metadata:
name: new-operatorcommand
spec:
guid: "123e4567-e89b-12d3-a456-426614174000"
commandType: "ExecutePolicy"
commandVersion: "1.0"
designators:
- key: "cluster"
value: "arn-aws-eks-eu-west-1-015253967648-cluster-ca-terraform-eks-dev-stage"
body: "eyJrZXkiOiJ2YWx1ZSJ9"
ttl: "1h"
args:
policyName: "SecurityPolicy"
policyLevel: "high"
commandIndex: 1
commandCount: 5
status:
started: true
startedAt: "2024-04-09T11:03:29Z"
completed: false
executer: "admin"
error:
reason: ""
message: ""
errorCode: 0

@amirmalka amirmalka merged commit d5decd5 into main Sep 19, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants