Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACM Certificate - Tags flapping #1930

Closed
jlpedrosa opened this issue Oct 24, 2023 · 2 comments
Closed

ACM Certificate - Tags flapping #1930

jlpedrosa opened this issue Oct 24, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@jlpedrosa
Copy link

What happened?

Resource acm.Certificate is constantly reconciling, Tags are being set and removed.

goes from tags to without tags constantly:

 "spec": {
      
        "forProvider": {
          ...
            "region": "us-east-1",            
            "tags": [],
            "validationMethod": "EMAIL"
        },
        "providerConfigRef": {
            "name": "aws"
        }
    },

to:

 "forProvider": {
       ...
            "tags": [
                {
                    "key": "crossplane-kind",
                    "value": "certificate.acm.aws.crossplane.io"
                },
                {
                    "key": "crossplane-name",
                    "value": "private-ingress"
                },
                {
                    "key": "crossplane-providerconfig",
                    "value": "aws"
                }
            ],
            "validationMethod": "EMAIL"
        },     

How can we reproduce it?

Creating a Private CA, and linking it to an object similar to:

 &acmv1alpha.Certificate{
		ObjectMeta: metav1.ObjectMeta{
			// TODO:
			Name: a.Component.GetName(),
		},
		Spec: acmv1alpha.CertificateSpec{
			ResourceSpec: xpv1.ResourceSpec{
				ProviderConfigReference: &xpv1.Reference{Name: awsEnv.Spec.XPProviderConfigName},
			},
			ForProvider: acmv1alpha.CertificateParameters{
				Region:                  awsEnv.Spec.Region,
				CertificateAuthorityARN: &CAArn,
				DomainName:              certificateCommonName,
				DomainValidationOptions: []*acmv1alpha.DomainValidationOption{
					{
						DomainName:       certificateCommonName,
						ValidationDomain: certificateCommonName,
					},
				},
				Options: &acmv1alpha.CertificateOptions{
					CertificateTransparencyLoggingPreference: "ENABLED",
				},
				SubjectAlternativeNames: []*string{&certificateCommonName},
				Tags:                    []acmv1alpha.Tag{
					//{Key: "cluster", Value: string(cluster.GetClusterID())},
					//{Key: "component", Value: "ingress-controller"},
					//{Key: "ingress", Value: a.Component.GetName()},
				},
				ValidationMethod: "EMAIL",
			},
		},
	}

What environment did it happen in?

0.38, but there are not significant changes in ACM since then.

@jlpedrosa jlpedrosa added the bug Something isn't working label Oct 24, 2023
@MisterMX
Copy link
Collaborator

Duplicate of #1498. See #1498 (comment) for an explanation of the current behaviour and how it could be solved.

@MisterMX
Copy link
Collaborator

Fixed in #1938 by removing the standard tags all together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants