Skip to content

Commit

Permalink
Events need to be created (#35)
Browse files Browse the repository at this point in the history
* fix: added rbac to create and update events, automated chart upgrade and image pull secrets

* fix:per PR feedback, changing the image pull secrets to global list

* fix: fixed the crd description to quote the template delimiter to avoid yaml confusion

* fix:update the imagePullSecrets to add nil check

Co-authored-by: Sangeetha Madamanchi <smadamanchi@expediagroup.com>
  • Loading branch information
sangdammad and Sangeetha Madamanchi authored Jan 25, 2023
1 parent da2a7dd commit 80d33c5
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha2/application_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type ApplicationSpec struct {
Data map[string]string `json:"data,omitempty"`

// PreRenderer holds custom templating delimiters and a flag.
// By default, standard delimiters {{ and }} will be used to render values within. If specified then the custom delimiters will be used.
// By default, standard delimiters "{{" and "}}" will be used to render values within. If specified then the custom delimiters will be used.
// +optional
PreRenderer PreRenderer `json:"preRenderer,omitempty"`

Expand Down
4 changes: 2 additions & 2 deletions api/v1alpha2/reference_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package v1alpha2

type PreRenderer struct {
// Custom non white-spaced and non alpha-numeric open delimiter used for go templating action to pre-render. For e.g., <%. Default is {{
// Custom non white-spaced and non alpha-numeric open delimiter used for go templating action to pre-render. For e.g., <%. Default is "{{"
// +kubebuilder:validation:MinLength=2
// +kubebuilder:validation:MaxLength=2
// +optional
Expand All @@ -27,7 +27,7 @@ type PreRenderer struct {
// +optional
RightDelimiter string `json:"closeDelimiter,omitempty"`

// Enable to allow Helm Templating to interpolate values within the delimiters {{ }}.
// Enable to allow Helm Templating to interpolate values within the delimiters "{{" "}}".
// Defaults to false allowing the pre-renderer to do interpolation within the default delimiters. If both helm templating
// and pre-rendering are desired, then enable EnableHelmTemplating and specify custom delimiters as LeftDelimiter and RightDelimiter
// +optional
Expand Down
2 changes: 1 addition & 1 deletion charts/overwhelm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: overwhelm
version: 1.2.2
version: 1.2.3
maintainers:
- name: "Expedia Group"
url: "https://github.com/ExpediaGroup/overwhelm"
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ spec:
type: object
preRenderer:
description: PreRenderer holds custom templating delimiters and a
flag. By default, standard delimiters {{ and }} will be used to
render values within. If specified then the custom delimiters will
be used.
flag. By default, standard delimiters "{{" and "}}" will be used
to render values within. If specified then the custom delimiters
will be used.
properties:
closeDelimiter:
description: Custom non white-spaced and non alpha-numeric close
Expand All @@ -74,16 +74,17 @@ spec:
type: string
enableHelmTemplating:
description: Enable to allow Helm Templating to interpolate values
within the delimiters {{ }}. Defaults to false allowing the
pre-renderer to do interpolation within the default delimiters.
within the delimiters "{{" "}}". Defaults to false allowing
the pre-renderer to do interpolation within the default delimiters.
If both helm templating and pre-rendering are desired, then
enable EnableHelmTemplating and specify custom delimiters as
LeftDelimiter and RightDelimiter
type: boolean
openDelimiter:
description: Custom non white-spaced and non alpha-numeric open
delimiter used for go templating action to pre-render. For e.g.,
<%. Default is {{ maxLength: 2
<%. Default is "{{"
maxLength: 2
minLength: 2
type: string
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
labels:
{{ toYaml .Values.deployment.labels | indent 8 }}
spec:
{{- if .Values.global.imagePullSecrets }}
{{- if and .Values.global .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.global.imagePullSecrets }}
- name: {{ . }}
Expand Down
12 changes: 6 additions & 6 deletions config/crd/bases/core.expediagroup.com_applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ spec:
type: object
preRenderer:
description: PreRenderer holds custom templating delimiters and a
flag. By default, standard delimiters {{ and }} will be used to
render values within. If specified then the custom delimiters will
be used.
flag. By default, standard delimiters "{{" and "}}" will be used
to render values within. If specified then the custom delimiters
will be used.
properties:
closeDelimiter:
description: Custom non white-spaced and non alpha-numeric close
Expand All @@ -68,16 +68,16 @@ spec:
type: string
enableHelmTemplating:
description: Enable to allow Helm Templating to interpolate values
within the delimiters {{ }}. Defaults to false allowing the
pre-renderer to do interpolation within the default delimiters.
within the delimiters "{{" "}}". Defaults to false allowing
the pre-renderer to do interpolation within the default delimiters.
If both helm templating and pre-rendering are desired, then
enable EnableHelmTemplating and specify custom delimiters as
LeftDelimiter and RightDelimiter
type: boolean
openDelimiter:
description: Custom non white-spaced and non alpha-numeric open
delimiter used for go templating action to pre-render. For e.g.,
<%. Default is {{
<%. Default is "{{"
maxLength: 2
minLength: 2
type: string
Expand Down
2 changes: 1 addition & 1 deletion config/helm-manifest/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ patchesJson6902:
- op: replace
path: /spec/template/spec/
value: |
{{- if .Values.global.imagePullSecrets }}
{{- if and .Values.global .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.global.imagePullSecrets }}
- name: {{ . }}
Expand Down

0 comments on commit 80d33c5

Please sign in to comment.