Skip to content

ensure core package customizations are processed#307

Merged
nimakaviani merged 1 commit intocnoe-io:mainfrom
nabuskey:fix/package-custom
Jun 17, 2024
Merged

ensure core package customizations are processed#307
nimakaviani merged 1 commit intocnoe-io:mainfrom
nabuskey:fix/package-custom

Conversation

@nabuskey
Copy link
Copy Markdown
Collaborator

@nabuskey nabuskey commented Jun 17, 2024

fixes: #298

One thing to note when overwriting argocd CMs is that you need to have the labels on the CM. Otherwise, ArgoCD will complain about not finding argocd-cm CM.

apiVersion: v1
kind: ConfigMap
metadata:
  name: argocd-cm
  labels: # these labels need to be present.
    app.kubernetes.io/name: argocd-cm 
    app.kubernetes.io/part-of: argocd
data:
  application.resourceTrackingMethod: annotation
  resource.exclusions: |
    - kinds:
        - ProviderConfigUsage
      apiGroups:
        - "*"
  timeout.reconciliation: 10s

@csantanapr ^^

Signed-off-by: Manabu McCloskey <manabu.mccloskey@gmail.com>
@nabuskey nabuskey force-pushed the fix/package-custom branch from ffa6c94 to 65f561d Compare June 17, 2024 18:08
@nimakaviani nimakaviani self-requested a review June 17, 2024 18:12
Copy link
Copy Markdown
Contributor

@blakeromano blakeromano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also don't really see much documentation around how this feature is supposed to be invoked/used...

Is this a CLI argument to idpbuilder create?

description: FilePath is the absolute file path to a YAML
file that contains Kubernetes manifests.
type: string
name:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make this an enum?

description: PackageCustomization defines how packages are customized
properties:
filePath:
description: FilePath is the absolute file path to a YAML
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the plan to not support helm or kustomize?

@csantanapr
Copy link
Copy Markdown
Contributor

Good catch on the labels @nabuskey

Copy link
Copy Markdown
Contributor

@csantanapr csantanapr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@nimakaviani nimakaviani merged commit e62c997 into cnoe-io:main Jun 17, 2024
@nabuskey
Copy link
Copy Markdown
Collaborator Author

I also don't really see much documentation around how this feature is supposed to be invoked/used...

Is this a CLI argument to idpbuilder create?

We do need to do a better job of documenting these.
See: #180

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: can't override argocd config settings with idpbuilder create -c argocd:argocd-cm.yaml

4 participants