-
Notifications
You must be signed in to change notification settings - Fork 0
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
command crd #27
Conversation
Signed-off-by: Amir Malka <[email protected]>
pkg/command/crds/crd.yaml
Outdated
@@ -0,0 +1,54 @@ | |||
apiVersion: apiextensions.k8s.io/v1 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
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]>
Signed-off-by: Amir Malka <[email protected]>
Signed-off-by: Amir Malka <[email protected]>
Signed-off-by: Amir Malka <[email protected]>
Signed-off-by: Amir Malka <[email protected]>
format: date-time | ||
subresources: | ||
status: {} | ||
conversion: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
pkg/command/types/v1alpha1/types.go
Outdated
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 |
There was a problem hiding this comment.
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
pkg/command/crds/crd.yaml
Outdated
@@ -0,0 +1,54 @@ | |||
apiVersion: apiextensions.k8s.io/v1 |
There was a problem hiding this comment.
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
No description provided.