Skip to content

Commit

Permalink
fix(k8s): add missing handler for Secret resource
Browse files Browse the repository at this point in the history
  • Loading branch information
vvagaytsev committed Jul 18, 2023
1 parent 53fdc02 commit cbe6d34
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/plugins/kubernetes/status/status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
V1Pod,
V1ReplicaSet,
V1ReplicationController,
V1Secret,
V1Service,
} from "@kubernetes/client-node"
import { getPods, getResourceKey, hashManifest } from "../util"
Expand Down Expand Up @@ -101,6 +102,12 @@ const objHandlers: { [kind: string]: StatusHandler } = {
return checkWorkloadPodStatus(resource, await getPods(api, namespace, resource.spec!.selector!))
},

Secret: async (params: StatusHandlerParams<V1Secret>) => {
const { api, namespace, resource } = params
// TODO: compare the `resource` against the manifest generated from the action?
return { state: "ready", resource }
},

Service: async ({ resource }: StatusHandlerParams<V1Service>) => {
if (resource.spec.type === "ExternalName") {
return { state: "ready", resource }
Expand Down

0 comments on commit cbe6d34

Please sign in to comment.