Skip to content

Commit

Permalink
Merge pull request #65 from anurag-rajawat/follow-up-56-part-2
Browse files Browse the repository at this point in the history
feat(deployments): Update helm charts
  • Loading branch information
seungsoo-lee authored Feb 20, 2024
2 parents cb1af34 + 2f21798 commit e4dee8e
Show file tree
Hide file tree
Showing 12 changed files with 220 additions and 68 deletions.
4 changes: 2 additions & 2 deletions deployments/nimbus-kubearmor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.1.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.1.1"
appVersion: "0.1.2"
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
apiVersion: apps/v1
kind: Deployment
kind: DaemonSet
metadata:
name: {{ include "nimbus-kubearmor.fullname" . }}
labels:
{{- include "nimbus-kubearmor.labels" . | nindent 4 }}
namespace: {{ .Release.Namespace }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "nimbus-kubearmor.selectorLabels" . | nindent 6 }}
Expand Down
9 changes: 9 additions & 0 deletions deployments/nimbus-kubearmor/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ rules:
- get
- list
- watch
- apiGroups:
- intent.security.nimbus.com
resources:
- nimbuspolicies/status
- clusternimbuspolicies/status
verbs:
- get
- patch
- update
- apiGroups:
- security.kubearmor.com
resources:
Expand Down
2 changes: 0 additions & 2 deletions deployments/nimbus-kubearmor/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Default values for nimbus-kubearmor.

replicaCount: 1

image:
repository: 5gsec/nimbus-kubearmor
pullPolicy: Always
Expand Down
4 changes: 2 additions & 2 deletions deployments/nimbus-netpol/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.1.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.1.1"
appVersion: "0.1.2"
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
apiVersion: apps/v1
kind: Deployment
kind: DaemonSet
metadata:
name: {{ include "nimbus-netpol.fullname" . }}
labels:
{{- include "nimbus-netpol.labels" . | nindent 4 }}
namespace: {{ .Release.Namespace }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "nimbus-netpol.selectorLabels" . | nindent 6 }}
Expand Down
9 changes: 9 additions & 0 deletions deployments/nimbus-netpol/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ rules:
- get
- list
- watch
- apiGroups:
- intent.security.nimbus.com
resources:
- nimbuspolicies/status
- clusternimbuspolicies/status
verbs:
- get
- patch
- update
- apiGroups:
- networking.k8s.io
resources:
Expand Down
2 changes: 0 additions & 2 deletions deployments/nimbus-netpol/values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Default values for nimbus-netpol.

replicaCount: 1

image:
repository: 5gsec/nimbus-netpol
pullPolicy: Always
Expand Down
4 changes: 2 additions & 2 deletions deployments/nimbus/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
version: 0.1.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.1.0"
appVersion: "0.1.1"
120 changes: 108 additions & 12 deletions deployments/nimbus/templates/crds.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.13.0
name: clusternimbuspolicies.intent.security.nimbus.com
spec:
group: intent.security.nimbus.com
Expand All @@ -17,6 +19,12 @@ spec:
- jsonPath: .status.status
name: Status
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
- jsonPath: .status.numberOfAdapterPolicies
name: Policies
type: integer
name: v1
schema:
openAPIV3Schema:
Expand Down Expand Up @@ -51,8 +59,6 @@ spec:
properties:
action:
type: string
mode:
type: string
params:
additionalProperties:
items:
Expand All @@ -61,7 +67,6 @@ spec:
type: object
required:
- action
- mode
type: object
type:
type: string
Expand Down Expand Up @@ -102,9 +107,20 @@ spec:
status:
description: ClusterNimbusPolicyStatus defines the observed state of ClusterNimbusPolicy
properties:
adapterPolicies:
items:
type: string
type: array
lastUpdated:
format: date-time
type: string
numberOfAdapterPolicies:
format: int32
type: integer
status:
type: string
required:
- numberOfAdapterPolicies
- status
type: object
type: object
Expand All @@ -116,6 +132,8 @@ spec:
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.13.0
name: clustersecurityintentbindings.intent.security.nimbus.com
spec:
group: intent.security.nimbus.com
Expand All @@ -132,6 +150,15 @@ spec:
- jsonPath: .status.status
name: Status
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
- jsonPath: .status.numberOfBoundIntents
name: Intents
type: integer
- jsonPath: .status.clusterNimbusPolicy
name: ClusterNimbusPolicy
type: string
name: v1
schema:
openAPIV3Schema:
Expand Down Expand Up @@ -198,9 +225,23 @@ spec:
description: ClusterSecurityIntentBindingStatus defines the observed state
of ClusterSecurityIntentBinding
properties:
boundIntents:
items:
type: string
type: array
clusterNimbusPolicy:
type: string
lastUpdated:
format: date-time
type: string
numberOfBoundIntents:
format: int32
type: integer
status:
type: string
required:
- clusterNimbusPolicy
- numberOfBoundIntents
- status
type: object
type: object
Expand All @@ -212,6 +253,8 @@ spec:
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.13.0
name: nimbuspolicies.intent.security.nimbus.com
spec:
group: intent.security.nimbus.com
Expand All @@ -228,6 +271,12 @@ spec:
- jsonPath: .status.status
name: Status
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
- jsonPath: .status.numberOfAdapterPolicies
name: Policies
type: integer
name: v1
schema:
openAPIV3Schema:
Expand Down Expand Up @@ -263,8 +312,6 @@ spec:
properties:
action:
type: string
mode:
type: string
params:
additionalProperties:
items:
Expand All @@ -273,7 +320,6 @@ spec:
type: object
required:
- action
- mode
type: object
type:
type: string
Expand Down Expand Up @@ -302,9 +348,20 @@ spec:
status:
description: NimbusPolicyStatus defines the observed state of NimbusPolicy
properties:
adapterPolicies:
items:
type: string
type: array
lastUpdated:
format: date-time
type: string
numberOfAdapterPolicies:
format: int32
type: integer
status:
type: string
required:
- numberOfAdapterPolicies
- status
type: object
type: object
Expand All @@ -316,6 +373,8 @@ spec:
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.13.0
name: securityintentbindings.intent.security.nimbus.com
spec:
group: intent.security.nimbus.com
Expand All @@ -332,6 +391,15 @@ spec:
- jsonPath: .status.status
name: Status
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
- jsonPath: .status.numberOfBoundIntents
name: Intents
type: integer
- jsonPath: .status.nimbusPolicy
name: NimbusPolicy
type: string
name: v1
schema:
openAPIV3Schema:
Expand Down Expand Up @@ -418,9 +486,23 @@ spec:
description: SecurityIntentBindingStatus defines the observed state of
SecurityIntentBinding
properties:
boundIntents:
items:
type: string
type: array
lastUpdated:
format: date-time
type: string
nimbusPolicy:
type: string
numberOfBoundIntents:
format: int32
type: integer
status:
type: string
required:
- nimbusPolicy
- numberOfBoundIntents
- status
type: object
type: object
Expand All @@ -432,6 +514,8 @@ spec:
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.13.0
name: securityintents.intent.security.nimbus.com
spec:
group: intent.security.nimbus.com
Expand All @@ -448,6 +532,17 @@ spec:
- jsonPath: .status.status
name: Status
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
- jsonPath: .spec.intent.id
name: ID
priority: 1
type: string
- jsonPath: .spec.intent.action
name: Action
priority: 1
type: string
name: v1
schema:
openAPIV3Schema:
Expand Down Expand Up @@ -483,11 +578,6 @@ spec:
engines to generate corresponding security policies.
pattern: ^[a-zA-Z0-9]*$
type: string
mode:
default: best-effort
description: Mode defines the enforcement behavior of the intent.
Defaults to best-effort.
type: string
params:
additionalProperties:
items:
Expand Down Expand Up @@ -518,13 +608,19 @@ spec:
status:
description: SecurityIntentStatus defines the observed state of SecurityIntent
properties:
action:
type: string
id:
type: string
status:
type: string
required:
- action
- id
- status
type: object
type: object
served: true
storage: true
subresources:
status: {}
status: {}
Loading

0 comments on commit e4dee8e

Please sign in to comment.