tektoncd/operator

ignore struct data type in "AddConfigMapValues" transformer

jkandasa opened this issue · 0 comments

kind: ConfigMap
apiVersion: v1
metadata:
  name: feature-flags
  namespace: openshift-pipelines
data:
  running-in-environment-with-injected-sidecars: 'true'
  results-from: termination-message
  await-sidecar-readiness: 'true'
  coschedule: workspaces
  enforce-nonfalsifiablity: none
  require-git-ssh-secret-known-hosts: 'false'
  set-security-context: 'false'
  enable-tekton-oci-bundles: 'false'
  performance: <v1alpha1.PipelinePerformanceProperties Value>
  send-cloudevents-for-runs: 'false'
  trusted-resources-verification-no-match-policy: ignore
  enable-api-fields: beta
  enable-provenance-in-status: 'true'
  enable-custom-tasks: 'true'
  disable-creds-init: 'false'
  disable-affinity-assistant: 'true'

NOTE: performance: <v1alpha1.PipelinePerformanceProperties Value>

PipelinePerformanceProperties is a struct and it is added as string by

if value := values.Field(i).String(); value != "" {

Fix: add only valid fields in to the configMap. ignore struct, map, etc.,