Skip to content

Commit

Permalink
Merge pull request #101 from cedricmckinnie/disable_apparmor
Browse files Browse the repository at this point in the history
Disable AppArmor
  • Loading branch information
raffaelespazzoli authored Nov 18, 2022
2 parents b2cf63d + 74036fa commit 5d9f1d2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/v1alpha1/keepalivedgroup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ type KeepalivedGroupSpec struct {
// +optional
UnicastEnabled bool `json:"unicastEnabled,omitempty"`

// +kubebuilder:validation:Optional
// +mapType=granular
DaemonsetPodAnnotations map[string]string `json:"daemonsetPodAnnotations,omitempty"`
}

// PasswordAuth references a Kubernetes secret to extract the password for VRRP authentication
Expand Down
5 changes: 5 additions & 0 deletions config/crd/bases/redhatcop.redhat.io_keepalivedgroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ spec:
type: integer
type: array
x-kubernetes-list-type: set
daemonsetPodAnnotations:
additionalProperties:
type: string
type: object
x-kubernetes-map-type: granular
image:
default: registry.redhat.io/openshift4/ose-keepalived-ipfailover
description: //+kubebuilder:validation:Optional
Expand Down
6 changes: 6 additions & 0 deletions config/templates/keepalived-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
keepalivedGroup: {{ .KeepalivedGroup.ObjectMeta.Name }}
template:
metadata:
{{- with .KeepalivedGroup.Spec.DaemonsetAnnotations }}
annotations:
{{ range $index, $element := . }}
{{ $index }}: {{ $element }}
{{ end }}
{{- end }}
labels:
keepalivedGroup: {{ .KeepalivedGroup.ObjectMeta.Name }}
spec:
Expand Down

0 comments on commit 5d9f1d2

Please sign in to comment.