Skip to content

[bug] Omni overrides secret objects when included in extraManifests #719

Open
@tman5

Description

@tman5

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When using the extraManifests config object on the omni cluster, to apply secret objects to the cluster, everytime we bootstrap the cluster, the secrets change. Here is an example manifest:

apiVersion: v1
kind: Secret
metadata:
  name: secret
  namespace: "kube-system"
  annotations:
    kubernetes.io/service-account.name: secret
type: kubernetes.io/service-account-token

I've also seen this for certain CNI manifests

Expected Behavior

No changes to the secret tokens. What is happening is that omni sees the secret objects have changes by the cluster, but it wants to override when the cluster changes the manifest

Steps To Reproduce

  1. Create an extraManifest configuration in the cluster config that includes a secret
  2. Apply the cluster config
  3. Notice that Omni will apply it, but then will always mark it as a change in the bootstrap manifest section because the kubernetes cluster has attached a token to that secret and Omni wants to override it

What browsers are you seeing the problem on?

Firefox, Chrome

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions