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

Add status to DockhandSecret #21

Merged
merged 5 commits into from
Oct 6, 2021
Merged

Add status to DockhandSecret #21

merged 5 commits into from
Oct 6, 2021

Conversation

matthewdevenny
Copy link
Member

@matthewdevenny matthewdevenny commented Sep 10, 2021

Signed-off-by: Matthew DeVenny matt@boxboat.com

Depends on boxboat/dockhand-charts#6

Closes #20

kubectl --namespace default get dhs
NAME                         SECRET              STATUS       AGE
test-dockhand-secret-aws     test-secret-aws     ErrApplied   9m19s
test-dockhand-secret-azure   test-secret-azure   Ready        9m19s
test-dockhand-secret-gcp     test-secret-gcp     Ready        9m19s

Further troubleshooting example

kubectl --namespace default describe dhs test-dockhand-secret-aws
Name:         test-dockhand-secret-aws
Namespace:    default
Labels:       <none>
Annotations:  API Version:  dockhand.boxboat.io/v1alpha1
Data:
  Aws - Alpha:    << (aws "dockcmd-test" "alpha") >>
  Aws - Bravo:    << (aws "dockcmd-test" "bravo") >>
  Aws - Charile:  << (aws "dockcmd-test" "charlie") >>
Kind:             DockhandSecret
Metadata:
  Creation Timestamp:  2021-09-10T20:59:12Z
  Finalizers:
    wrangler.cattle.io/dockhandsecret-onremove
  Generation:  1
  Managed Fields:
    API Version:  dockhand.boxboat.io/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:data:
        .:
        f:aws-alpha:
        f:aws-bravo:
        f:aws-charile:
      f:metadata:
        f:annotations:
          .:
          f:kubectl.kubernetes.io/last-applied-configuration:
      f:profile:
      f:secretSpec:
        .:
        f:annotations:
          .:
          f:alpha:
        f:labels:
          .:
          f:foo:
        f:name:
        f:type:
    Manager:      kubectl
    Operation:    Update
    Time:         2021-09-10T20:59:12Z
    API Version:  dockhand.boxboat.io/v1alpha1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:finalizers:
          .:
          v:"wrangler.cattle.io/dockhandsecret-onremove":
      f:status:
        .:
        f:state:
    Manager:         dockhand-secrets-operator
    Operation:       Update
    Time:            2021-09-10T21:06:35Z
  Resource Version:  31885
  UID:               467d1063-1f97-4703-bcab-c5e7e81667d8
Profile:             test-dockhand-profile
Secret Spec:
  Annotations:
    Alpha:  charlie
  Labels:
    Foo:  bar
  Name:   test-secret-aws
  Type:   Opaque
Status:
  State:  ErrApplied
Events:
  Type     Reason            Age    From                       Message
  ----     ------            ----   ----                       -------
  Warning  ErrParsingSecret  7m32s  dockhand-secrets-operator  Could not parse template template: template:1:4: executing "template" at <aws "dockcmd-test" "charlie">: error calling aws: secret{dockcmd-test[charlie]}: NoCredentialProviders: no valid providers in chain. Deprecated.
           For verbose messaging see aws.Config.CredentialsChainVerboseErrors
  Warning  ErrParsingSecret  4m41s (x5 over 9m2s)  dockhand-secrets-operator  Could not parse template template: template:1:4: executing "template" at <aws "dockcmd-test" "bravo">: error calling aws: secret{dockcmd-test[bravo]}: NoCredentialProviders: no valid providers in chain. Deprecated.
           For verbose messaging see aws.Config.CredentialsChainVerboseErrors
  Warning  ErrParsingSecret  110s (x19 over 9m6s)  dockhand-secrets-operator  Could not parse template template: template:1:4: executing "template" at <aws "dockcmd-test" "alpha">: error calling aws: secret{dockcmd-test[alpha]}: NoCredentialProviders: no valid providers in chain. Deprecated.
           For verbose messaging see aws.Config.CredentialsChainVerboseErrors
  Warning  ErrParsingSecret  94s (x2 over 98s)  dockhand-secrets-operator  Could not parse template template: template:1:4: executing "template" at <aws "dockcmd-test" "bravo">: error calling aws: secret{dockcmd-test[bravo]}: NoCredentialProviders: no valid providers in chain. Deprecated.
           For verbose messaging see aws.Config.CredentialsChainVerboseErrors
  Warning  ErrParsingSecret  48s (x7 over 105s)  dockhand-secrets-operator  Could not parse template template: template:1:4: executing "template" at <aws "dockcmd-test" "alpha">: error calling aws: secret{dockcmd-test[alpha]}: NoCredentialProviders: no valid providers in chain. Deprecated.
           For verbose messaging see aws.Config.CredentialsChainVerboseErrors
  Warning  ErrParsingSecret  16s (x6 over 103s)  dockhand-secrets-operator  Could not parse template template: template:1:4: executing "template" at <aws "dockcmd-test" "charlie">: error calling aws: secret{dockcmd-test[charlie]}: NoCredentialProviders: no valid providers in chain. Deprecated.
           For verbose messaging see aws.Config.CredentialsChainVerboseErrors

Signed-off-by: Matthew DeVenny <matt@boxboat.com>
@netlify
Copy link

netlify bot commented Sep 10, 2021

✔️ Deploy Preview for dockhand-secrets-operator canceled.

🔨 Explore the source changes: e24cfb8

🔍 Inspect the deploy log: https://app.netlify.com/sites/dockhand-secrets-operator/deploys/61420450fbaf5a0008f69b4f

Signed-off-by: Matthew DeVenny <matt@boxboat.com>
Signed-off-by: Matthew DeVenny <matt@boxboat.com>
Signed-off-by: Matthew DeVenny <matt@boxboat.com>
Signed-off-by: Matthew DeVenny <matt@boxboat.com>
@matthewdevenny matthewdevenny merged commit fdc0b6a into master Oct 6, 2021
@matthewdevenny matthewdevenny deleted the feature/add-status branch October 6, 2021 17:36
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.

Add Status
1 participant