Skip to content

Commit

Permalink
try pushing current changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cnwaldron committed Nov 15, 2023
1 parent 67fd0ff commit d9ebdde
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,16 @@ spec:
os:
description: OS is the Operating System of the Artifact
properties:
eosl:
description: Eosl is true if OS version has reached end of service
life
type: boolean
family:
description: Operating System Family
type: string
name:
description: Name or version of the OS
description: Name or version of the OS
type: string
eosl:
description: Eosl is the End of Service Life and is true if the OS version being used has reached it's end of service life
type: boolean
type: object
registry:
description: Registry is the registry the Artifact was pulled from.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,16 @@ spec:
os:
description: OS is the Operating System of the Artifact
properties:
eosl:
description: Eosl is true if OS version has reached end of service
life
type: boolean
family:
description: Operating System Family
type: string
name:
description: Name or version of the OS
type: string
eosl:
description: Eosl is the End of Service Life and is true if the OS version being used has reached it's end of service life
type: boolean
type: object
registry:
description: Registry is the registry the Artifact was pulled from.
Expand Down
78 changes: 41 additions & 37 deletions deploy/static/trivy-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1374,15 +1374,16 @@ spec:
os:
description: OS is the Operating System of the Artifact
properties:
eosl:
description: Eosl is true if OS version has reached end of service
life
type: boolean
family:
description: Operating System Family
type: string
name:
description: Name or version of the OS
type: string
eosl:
description: Eosl is the End of Service Life and is true if the OS version being used has reached it's end of service life
type: boolean
type: object
registry:
description: Registry is the registry the Artifact was pulled from.
Expand Down Expand Up @@ -1481,6 +1482,7 @@ spec:
type: string
required:
- artifact
- os
- scanner
- secrets
- summary
Expand Down Expand Up @@ -2270,17 +2272,18 @@ spec:
type: string
type: object
os:
description: OS information of the Artifact
description: OS is the Operating System of the Artifact
properties:
eosl:
description: Eosl is true if OS version has reached end of service
life
type: boolean
family:
description: OS family
description: Operating System Family
type: string
name:
description: Name of OS
description: Name or version of the OS
type: string
eosl:
description: End of Service Life
type: boolean
type: object
registry:
description: Registry is the registry the Artifact was pulled from.
Expand Down Expand Up @@ -2437,6 +2440,7 @@ spec:
type: array
required:
- artifact
- os
- scanner
- summary
- updateTimestamp
Expand Down Expand Up @@ -2721,6 +2725,25 @@ spec:
app.kubernetes.io/name: trivy-operator
app.kubernetes.io/instance: trivy-operator
---
# Source: trivy-operator/templates/rbac/clusterrolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: trivy-operator
labels:
app.kubernetes.io/name: trivy-operator
app.kubernetes.io/instance: trivy-operator
app.kubernetes.io/version: "0.16.4"
app.kubernetes.io/managed-by: kubectl
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: trivy-operator
subjects:
- kind: ServiceAccount
name: trivy-operator
namespace: trivy-system
---
# Source: trivy-operator/templates/rbac/clusterrole.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
Expand Down Expand Up @@ -3072,20 +3095,21 @@ rules:
verbs:
- get
---
# Source: trivy-operator/templates/rbac/clusterrolebinding.yaml
# Source: trivy-operator/templates/rbac/leader-election-rolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
kind: RoleBinding
metadata:
name: trivy-operator
name: trivy-operator-leader-election
namespace: trivy-system
labels:
app.kubernetes.io/name: trivy-operator
app.kubernetes.io/instance: trivy-operator
app.kubernetes.io/version: "0.16.4"
app.kubernetes.io/managed-by: kubectl
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: trivy-operator
kind: Role
name: trivy-operator-leader-election
subjects:
- kind: ServiceAccount
name: trivy-operator
Expand Down Expand Up @@ -3119,11 +3143,11 @@ rules:
verbs:
- create
---
# Source: trivy-operator/templates/rbac/leader-election-rolebinding.yaml
# Source: trivy-operator/templates/rbac/rolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: trivy-operator-leader-election
name: trivy-operator
namespace: trivy-system
labels:
app.kubernetes.io/name: trivy-operator
Expand All @@ -3133,7 +3157,7 @@ metadata:
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: trivy-operator-leader-election
name: trivy-operator
subjects:
- kind: ServiceAccount
name: trivy-operator
Expand Down Expand Up @@ -3169,26 +3193,6 @@ rules:
- get
- delete
---
# Source: trivy-operator/templates/rbac/rolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: trivy-operator
namespace: trivy-system
labels:
app.kubernetes.io/name: trivy-operator
app.kubernetes.io/instance: trivy-operator
app.kubernetes.io/version: "0.16.4"
app.kubernetes.io/managed-by: kubectl
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: trivy-operator
subjects:
- kind: ServiceAccount
name: trivy-operator
namespace: trivy-system
---
# Source: trivy-operator/templates/rbac/view-configauditreports-clusterrole.yaml
# permissions for end users to view configauditreports
apiVersion: rbac.authorization.k8s.io/v1
Expand Down
12 changes: 6 additions & 6 deletions pkg/apis/aquasecurity/v1alpha1/vulnerability_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,17 @@ type Artifact struct {

// OS is the Operating System of the Artifact
type OS struct {
// Family is the Operating System Family
// Eosl is true if OS version has reached end of service life
// +optional
Family ostype.OSType `json:"family"`
Eosl bool `json:"eosl,omitempty"`

// Name is the generally the version of the OS
// Operating System Family
// +optional
Name string `json:"name,omitempty"`
Family ostype.OSType `json:"family"`

// Eosl is the End of Service Life and is true if the OS version being used has reached it's end of service life
// Name or version of the OS
// +optional
Eosl bool `json:"eosl,omitempty"`
Name string `json:"name,omitempty"`
}

// Vulnerability is the spec for a vulnerability record.
Expand Down
17 changes: 17 additions & 0 deletions pkg/apis/aquasecurity/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d9ebdde

Please sign in to comment.