Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HCLConfig ¶
type HCLConfig struct { // KubeletReadOnlyPort defines the read only port for the kubelet // (typically 10255). This option is mutally exclusive with // KubeletSecurePort. KubeletReadOnlyPort int `hcl:"kubelet_read_only_port"` // KubeletSecurePort defines the secure port for the kubelet (typically // 10250). This option is mutually exclusive with KubeletReadOnlyPort. KubeletSecurePort int `hcl:"kubelet_secure_port"` // MaxPollAttempts is the maximum number of polling attempts for the // container hosting the workload process. MaxPollAttempts int `hcl:"max_poll_attempts"` // PollRetryInterval is the time in between polling attempts. PollRetryInterval string `hcl:"poll_retry_interval"` // KubeletCAPath is the path to the CA certificate for authenticating the // kubelet over the secure port. Required when using the secure port unless // SkipKubeletVerification is set. Defaults to the cluster trust bundle. KubeletCAPath string `hcl:"kubelet_ca_path"` // SkipKubeletVerification controls whether or not the plugin will // verify the certificate presented by the kubelet. SkipKubeletVerification bool `hcl:"skip_kubelet_verification"` // TokenPath is the path to the bearer token used to authenticate to the // secure port. Defaults to the default service account token path unless // PrivateKeyPath and CertificatePath are specified. TokenPath string `hcl:"token_path"` // CertificatePath is the path to a certificate key used for client // authentication with the kubelet. Must be used with PrivateKeyPath. CertificatePath string `hcl:"certificate_path"` // PrivateKeyPath is the path to a private key used for client // authentication with the kubelet. Must be used with CertificatePath. PrivateKeyPath string `hcl:"private_key_path"` // NodeNameEnv is the environment variable used to determine the node name // for contacting the kubelet. It defaults to "MY_NODE_NAME". If the // environment variable is not set, and NodeName is not specified, the // plugin will default to localhost (which requires host networking). NodeNameEnv string `hcl:"node_name_env"` // NodeName is the node name used when contacting the kubelet. If set, it // takes precedence over NodeNameEnv. NodeName string `hcl:"node_name"` // ReloadInterval controls how often TLS and token configuration is loaded // from the disk. ReloadInterval string `hcl:"reload_interval"` }
HCLConfig holds the configuration parsed from HCL
type Plugin ¶
type Plugin struct { workloadattestorv1.UnsafeWorkloadAttestorServer configv1.UnsafeConfigServer // contains filtered or unexported fields }
func (*Plugin) Attest ¶
func (p *Plugin) Attest(ctx context.Context, req *workloadattestorv1.AttestRequest) (*workloadattestorv1.AttestResponse, error)
func (*Plugin) Configure ¶
func (p *Plugin) Configure(ctx context.Context, req *configv1.ConfigureRequest) (resp *configv1.ConfigureResponse, err error)
Click to show internal directories.
Click to hide internal directories.