orange-cloudfoundry / orange-cf-bosh-cli

docker file for CF operations clients
12 stars 8 forks source link

Add kubectl-blame #156

Closed gberche-orange closed 1 month ago

gberche-orange commented 3 months ago

Expected behavior

asciicast

Workaround

proxy -i
kubectl krew install blame
curl -s https://raw.githubusercontent.com/derailed/k9s/master/plugins/blame.yaml  > blame.yaml
cp ~/.k9s/plugins.yaml ~/.k9s/plugins.yaml.backup
#From https://mikefarah.gitbook.io/yq/operators/multiply-merge#merging-all-files
yq eval-all '. as $item ireduce ({}; . * $item )' blame.yaml ~/.k9s/plugins.yaml.backup > ~/.k9s/plugins.yaml
diff ~/.k9s/plugins.yaml.backup ~/.k9s/plugins.yaml

k9s

Press B to a paas-k8s-gitops-kustomization outputs history of changes

                                                 apiVersion: kustomize.toolkit.fluxcd.io/v1
                                                 kind: Kustomization
                                                 metadata:
flux                      (Update 10 months ago)   annotations:
flux                      (Update  42 hours ago)     reconcile.fluxcd.io/requestedAt: "2024-07-09T16:29:46.276208049Z"
                                                   creationTimestamp: "2021-09-23T15:31:01Z"
gotk-kustomize-controller (Update   2 years ago)   finalizers:
gotk-kustomize-controller (Update   2 years ago)   - finalizers.fluxcd.io
                                                   generation: 11
                                                   labels:
kustomize-controller      (Apply  17 months ago)     kustomize.toolkit.fluxcd.io/name: paas-k8s-gitops-bridge-kustomizations
kustomize-controller      (Apply  17 months ago)     kustomize.toolkit.fluxcd.io/namespace: fluxcd
kustomize-controller      (Apply  17 months ago)     paas-templates.orange.com/protected: "true"
                                                   name: paas-k8s-gitops-kustomization
                                                   namespace: fluxcd
                                                   resourceVersion: "1408214150"
                                                   uid: 2f898089-188f-4208-9c49-ae3fa287b3da
                                                 spec:
                                                   force: false
kustomize-controller      (Apply  17 months ago)   interval: 4m0s
kustomize-controller      (Apply  17 months ago)   path: ../micro-depls/00-core-connectivity-k8s/k8s-config/manifests//00-flux-kustomizations
                                                   postBuild:
kustomize-controller      (Apply  17 months ago)     substituteFrom:
kustomize-controller      (Apply  17 months ago)     - kind: ConfigMap
kustomize-controller      (Apply  17 months ago)       name: coa-metadata
kustomize-controller      (Apply  17 months ago)       optional: false
kustomize-controller      (Apply  17 months ago)     - kind: ConfigMap
kustomize-controller      (Apply  17 months ago)       name: credhub-secrets
kustomize-controller      (Apply  17 months ago)       optional: false
kustomize-controller      (Apply  17 months ago)   prune: false
                                                   sourceRef:
kustomize-controller      (Apply  17 months ago)     kind: GitRepository
kustomize-controller      (Apply  17 months ago)     name: paas-k8s-gitops-repo
kustomize-controller      (Apply  17 months ago)   targetNamespace: fluxcd
kustomize-controller      (Apply  17 months ago)   wait: false
                                                 status:
gotk-kustomize-controller (Update 3 minutes ago)   conditions:
gotk-kustomize-controller (Update 3 minutes ago)   - lastTransitionTime: "2024-07-11T10:16:00Z"
gotk-kustomize-controller (Update 3 minutes ago)     message: Building manifests for revision master@sha1:406d72c823953c15531e4a6e0a70f8e87f623957
  with a timeout of 3m30s
gotk-kustomize-controller (Update 3 minutes ago)     observedGeneration: 11
gotk-kustomize-controller (Update 3 minutes ago)     reason: ProgressingWithRetry
gotk-kustomize-controller (Update 3 minutes ago)     status: "True"
gotk-kustomize-controller (Update 3 minutes ago)     type: Reconciling
gotk-kustomize-controller (Update 3 minutes ago)   - lastTransitionTime: "2024-07-11T10:16:00Z"
gotk-kustomize-controller (Update 3 minutes ago)     message: 'kustomize build failed: accumulating resources: accumulation err=''merging resources
ogrand commented 1 month ago

Done with latest version