Skip to content

Commit ed1ea15

Browse files
authored
update docs (#336)
1 parent 2017cb8 commit ed1ea15

File tree

2 files changed

+156
-5
lines changed

2 files changed

+156
-5
lines changed

pages/deployments/operator/api.md

Lines changed: 121 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ _Appears in:_
5252

5353
| Field | Description | Default | Validation |
5454
| --- | --- | --- | --- |
55-
| `model` _string_ | Model is the LLM model name to use. | | Required: {} <br /> |
55+
| `model` _string_ | Model is the LLM model name to use. | | Optional: {} <br /> |
56+
| `baseUrl` _string_ | A custom base url to use, for reimplementations of the same API scheme (for instance Together.ai uses the OpenAI API spec) | | Optional: {} <br /> |
5657
| `tokenSecretRef` _[SecretKeySelector](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#secretkeyselector-v1-core)_ | TokenSecretRef is a reference to the local secret holding the token to access<br />the configured AI provider. | | Required: {} <br /> |
5758

5859

@@ -70,13 +71,54 @@ _Appears in:_
7071
| Field | Description | Default | Validation |
7172
| --- | --- | --- | --- |
7273
| `enabled` _boolean_ | Enabled defines whether to enable the AI integration or not. | false | Optional: {} <br /> |
73-
| `provider` _[AiProvider](#aiprovider)_ | Provider defines which of the supported LLM providers should be used. | OPENAI | Enum: [OPENAI ANTHROPIC] <br />Optional: {} <br /> |
74+
| `provider` _[AiProvider](#aiprovider)_ | Provider defines which of the supported LLM providers should be used. | OPENAI | Enum: [OPENAI ANTHROPIC OLLAMA AZURE BEDROCK VERTEX] <br />Optional: {} <br /> |
7475
| `openAI` _[AIProviderSettings](#aiprovidersettings)_ | OpenAI holds the OpenAI provider configuration. | | Optional: {} <br /> |
7576
| `anthropic` _[AIProviderSettings](#aiprovidersettings)_ | Anthropic holds the Anthropic provider configuration. | | Optional: {} <br /> |
77+
| `ollama` _[OllamaSettings](#ollamasettings)_ | Ollama holds configuration for a self-hosted Ollama deployment, more details available at https://github.com/ollama/ollama | | Optional: {} <br /> |
78+
| `azure` _[AzureOpenAISettings](#azureopenaisettings)_ | Azure holds configuration for using AzureOpenAI to generate LLM insights | | Optional: {} <br /> |
79+
| `bedrock` _[BedrockSettings](#bedrocksettings)_ | Bedrock holds configuration for using AWS Bedrock to generate LLM insights | | Optional: {} <br /> |
80+
| `vertex` _[VertexSettings](#vertexsettings)_ | Vertex holds configuration for using GCP VertexAI to generate LLM insights | | Optional: {} <br /> |
7681

7782

7883

7984

85+
#### AzureOpenAISettings
86+
87+
88+
89+
90+
91+
92+
93+
_Appears in:_
94+
- [AISettings](#aisettings)
95+
96+
| Field | Description | Default | Validation |
97+
| --- | --- | --- | --- |
98+
| `endpoint` _string_ | Your Azure OpenAI endpoint, should be formatted like: https://{endpoint}/openai/deployments/{deployment-id}" | | Required: {} <br /> |
99+
| `apiVersion` _string_ | The azure openai Data plane - inference api version to use, defaults to 2024-10-01-preview or the latest available | | Optional: {} <br /> |
100+
| `model` _string_ | The OpenAi Model you wish to use. If not specified, Plural will provide a default | | Optional: {} <br /> |
101+
| `tokenSecretRef` _[SecretKeySelector](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#secretkeyselector-v1-core)_ | TokenSecretRef is a reference to the local secret holding the token to access<br />the configured AI provider. | | Required: {} <br /> |
102+
103+
104+
#### BedrockSettings
105+
106+
107+
108+
109+
110+
111+
112+
_Appears in:_
113+
- [AISettings](#aisettings)
114+
115+
| Field | Description | Default | Validation |
116+
| --- | --- | --- | --- |
117+
| `modelId` _string_ | The AWS Bedrock Model ID to use | | Required: {} <br /> |
118+
| `accessKeyId` _string_ | An AWS Access Key ID to use, can also use IRSA to acquire credentials | | Optional: {} <br /> |
119+
| `secretAccessKeyRef` _[SecretKeySelector](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#secretkeyselector-v1-core)_ | An AWS Secret Access Key to use, can also use IRSA to acquire credentials | | Optional: {} <br /> |
120+
121+
80122
#### Binding
81123

82124

@@ -1545,6 +1587,24 @@ _Appears in:_
15451587
| `git` _[ObserverGit](#observergit)_ | | | Optional: {} <br /> |
15461588

15471589

1590+
#### OllamaSettings
1591+
1592+
1593+
1594+
Settings for configuring a self-hosted Ollama LLM, more details at https://github.com/ollama/ollama
1595+
1596+
1597+
1598+
_Appears in:_
1599+
- [AISettings](#aisettings)
1600+
1601+
| Field | Description | Default | Validation |
1602+
| --- | --- | --- | --- |
1603+
| `url` _string_ | URL is the url this model is queryable on | | Required: {} <br /> |
1604+
| `model` _string_ | Model is the Ollama model to use when querying the /chat api | | Required: {} <br /> |
1605+
| `tokenSecretRef` _[SecretKeySelector](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#secretkeyselector-v1-core)_ | TokenSecretRef is a reference to the local secret holding the contents of a HTTP Authorization header<br />to send to your ollama api in case authorization is required (eg for an instance hosted on a public network) | | Optional: {} <br /> |
1606+
1607+
15481608
#### Pipeline
15491609

15501610

@@ -1805,6 +1865,7 @@ _Appears in:_
18051865
| --- | --- | --- | --- |
18061866
| `regex` _string_ | A regex to match string-valued configuration items | | Optional: {} <br /> |
18071867
| `json` _boolean_ | Whether the string value is supposed to be json-encoded | | Optional: {} <br /> |
1868+
| `uniqBy` _[PrAutomationUniqBy](#prautomationuniqby)_ | How to determine uniquenss for this field | | Optional: {} <br /> |
18081869

18091870

18101871
#### PrAutomationConfirmation
@@ -1877,7 +1938,7 @@ _Appears in:_
18771938
| `icon` _string_ | An icon url to annotate this pr automation | | Optional: {} <br /> |
18781939
| `darkIcon` _string_ | An darkmode icon url to annotate this pr automation | | Optional: {} <br /> |
18791940
| `documentation` _string_ | Documentation ... | | Optional: {} <br /> |
1880-
| `identifier` _string_ | Identifier is a string referencing the repository, i.e. for GitHub it would be "<organization>/<repositoryName>" | | Optional: {} <br /> |
1941+
| `identifier` _string_ | Identifier is a string referencing the repository, i.e. for GitHub it would be "organization/repositoryName" | | Optional: {} <br /> |
18811942
| `message` _string_ | Message the commit message this pr will incorporate | | Optional: {} <br /> |
18821943
| `name` _string_ | Name name of the automation in the console api (defaults to metadata.name) | | Optional: {} <br /> |
18831944
| `title` _string_ | Title the title of the generated pr | | Optional: {} <br /> |
@@ -1948,6 +2009,22 @@ _Appears in:_
19482009
| `context` _[RawExtension](https://pkg.go.dev/k8s.io/apimachinery/pkg/runtime#RawExtension)_ | Context is a [PrAutomation] configuration context | | Optional: {} <br /> |
19492010

19502011

2012+
#### PrAutomationUniqBy
2013+
2014+
2015+
2016+
2017+
2018+
2019+
2020+
_Appears in:_
2021+
- [PrAutomationConfigurationValidation](#prautomationconfigurationvalidation)
2022+
2023+
| Field | Description | Default | Validation |
2024+
| --- | --- | --- | --- |
2025+
| `scope` _[ValidationUniqScope](#validationuniqscope)_ | | | Enum: [PROJECT CLUSTER] <br />Required: {} <br /> |
2026+
2027+
19512028
#### PrAutomationUpdateConfiguration
19522029

19532030

@@ -1964,6 +2041,7 @@ _Appears in:_
19642041
| `files` _string array_ | Files to update | | Optional: {} <br /> |
19652042
| `matchStrategy` _[MatchStrategy](#matchstrategy)_ | MatchStrategy, see enum for behavior | | Optional: {} <br /> |
19662043
| `regexReplacements` _[RegexReplacement](#regexreplacement) array_ | Full regex + replacement structs in case there is different behavior per regex | | Optional: {} <br /> |
2044+
| `yamlOverlays` _[YamlOverlay](#yamloverlay) array_ | Replacement via overlaying a yaml structure on an existing yaml file | | Optional: {} <br /> |
19672045
| `regexes` _string array_ | The regexes to apply on each file | | Optional: {} <br /> |
19682046
| `replaceTemplate` _string_ | The template to use when replacing a regex | | Optional: {} <br /> |
19692047
| `yq` _string_ | (Unused so far) | | Optional: {} <br /> |
@@ -2350,6 +2428,7 @@ _Appears in:_
23502428
| `repositoryRef` _[ObjectReference](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#objectreference-v1-core)_ | | | Optional: {} <br /> |
23512429
| `clusterRef` _[ObjectReference](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#objectreference-v1-core)_ | | | Required: {} <br /> |
23522430
| `configurationRef` _[SecretReference](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#secretreference-v1-core)_ | ConfigurationRef is a secret reference which should contain service configuration. | | Optional: {} <br /> |
2431+
| `configuration` _object (keys:string, values:string)_ | Configuration is a set of non-secret configuration to apply for lightweight templating of manifests in this service | | Optional: {} <br /> |
23532432
| `bindings` _[Bindings](#bindings)_ | Bindings contain read and write policies of this cluster | | Optional: {} <br /> |
23542433
| `dependencies` _[ServiceDependency](#servicedependency) array_ | Dependencies contain dependent services | | Optional: {} <br /> |
23552434
| `contexts` _string array_ | Contexts contain dependent service context names | | Optional: {} <br /> |
@@ -2638,3 +2717,42 @@ _Appears in:_
26382717

26392718

26402719

2720+
#### VertexSettings
2721+
2722+
2723+
2724+
2725+
2726+
2727+
2728+
_Appears in:_
2729+
- [AISettings](#aisettings)
2730+
2731+
| Field | Description | Default | Validation |
2732+
| --- | --- | --- | --- |
2733+
| `model` _string_ | The Vertex AI model to use | | Optional: {} <br /> |
2734+
| `project` _string_ | The GCP project you'll be using | | Required: {} <br /> |
2735+
| `location` _string_ | The GCP region Vertex is queried from | | Required: {} <br /> |
2736+
| `endpoint` _string_ | A custom endpoint for self-deployed models | | Optional: {} <br /> |
2737+
| `serviceAccountJsonSecretRef` _[SecretKeySelector](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#secretkeyselector-v1-core)_ | An Service Account json file stored w/in a kubernetes secret to use for authentication to GCP | | Optional: {} <br /> |
2738+
2739+
2740+
#### YamlOverlay
2741+
2742+
2743+
2744+
YamlOverlay ...
2745+
2746+
2747+
2748+
_Appears in:_
2749+
- [PrAutomationUpdateConfiguration](#prautomationupdateconfiguration)
2750+
2751+
| Field | Description | Default | Validation |
2752+
| --- | --- | --- | --- |
2753+
| `file` _string_ | the file to execute the overlay on | | Required: {} <br /> |
2754+
| `yaml` _string_ | the (possibly templated) yaml to use as the overlayed yaml blob written to the file | | Required: {} <br /> |
2755+
| `templated` _boolean_ | Whether you want to apply templating to the yaml blob before overlaying | | Optional: {} <br /> |
2756+
| `listMerge` _[ListMerge](#listmerge)_ | How you want list merge to be performed, defaults to OVERWRITE | | Enum: [OVERWRITE APPEND] <br />Optional: {} <br /> |
2757+
2758+

src/generated/graphql.ts

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,6 +1814,8 @@ export type OidcAttributes = {
18141814
authMethod: OidcAuthMethod;
18151815
/** The users or groups that can login through the OIDC provider. */
18161816
bindings?: InputMaybe<Array<InputMaybe<BindingAttributes>>>;
1817+
description?: InputMaybe<Scalars['String']['input']>;
1818+
name?: InputMaybe<Scalars['String']['input']>;
18171819
/** The redirect URIs for the OIDC provider. */
18181820
redirectUris?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
18191821
};
@@ -1859,9 +1861,12 @@ export type OidcProvider = {
18591861
clientSecret: Scalars['String']['output'];
18601862
configuration?: Maybe<OuathConfiguration>;
18611863
consent?: Maybe<ConsentRequest>;
1864+
description?: Maybe<Scalars['String']['output']>;
18621865
id: Scalars['ID']['output'];
18631866
insertedAt?: Maybe<Scalars['DateTime']['output']>;
18641867
invites?: Maybe<Array<Maybe<Invite>>>;
1868+
name?: Maybe<Scalars['String']['output']>;
1869+
owner?: Maybe<User>;
18651870
redirectUris?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
18661871
updatedAt?: Maybe<Scalars['DateTime']['output']>;
18671872
};
@@ -1875,6 +1880,18 @@ export type OidcProviderBinding = {
18751880
user?: Maybe<User>;
18761881
};
18771882

1883+
export type OidcProviderConnection = {
1884+
__typename?: 'OidcProviderConnection';
1885+
edges?: Maybe<Array<Maybe<OidcProviderEdge>>>;
1886+
pageInfo: PageInfo;
1887+
};
1888+
1889+
export type OidcProviderEdge = {
1890+
__typename?: 'OidcProviderEdge';
1891+
cursor?: Maybe<Scalars['String']['output']>;
1892+
node?: Maybe<OidcProvider>;
1893+
};
1894+
18781895
export type OidcSettings = {
18791896
__typename?: 'OidcSettings';
18801897
authMethod: OidcAuthMethod;
@@ -2857,6 +2874,7 @@ export type RootMutationType = {
28572874
deleteInvite?: Maybe<Invite>;
28582875
deleteKeyBackup?: Maybe<KeyBackup>;
28592876
deleteMessage?: Maybe<IncidentMessage>;
2877+
deleteOidcProvider?: Maybe<OidcProvider>;
28602878
deletePaymentMethod?: Maybe<PaymentMethod>;
28612879
deletePlatformSubscription?: Maybe<Account>;
28622880
deletePublicKey?: Maybe<PublicKey>;
@@ -3073,7 +3091,7 @@ export type RootMutationTypeCreateOauthIntegrationArgs = {
30733091

30743092
export type RootMutationTypeCreateOidcProviderArgs = {
30753093
attributes: OidcAttributes;
3076-
installationId: Scalars['ID']['input'];
3094+
installationId?: InputMaybe<Scalars['ID']['input']>;
30773095
};
30783096

30793097

@@ -3289,6 +3307,11 @@ export type RootMutationTypeDeleteMessageArgs = {
32893307
};
32903308

32913309

3310+
export type RootMutationTypeDeleteOidcProviderArgs = {
3311+
id: Scalars['ID']['input'];
3312+
};
3313+
3314+
32923315
export type RootMutationTypeDeletePaymentMethodArgs = {
32933316
id: Scalars['ID']['input'];
32943317
};
@@ -3625,7 +3648,8 @@ export type RootMutationTypeUpdateMessageArgs = {
36253648

36263649
export type RootMutationTypeUpdateOidcProviderArgs = {
36273650
attributes: OidcAttributes;
3628-
installationId: Scalars['ID']['input'];
3651+
id?: InputMaybe<Scalars['ID']['input']>;
3652+
installationId?: InputMaybe<Scalars['ID']['input']>;
36293653
};
36303654

36313655

@@ -3786,6 +3810,7 @@ export type RootQueryType = {
37863810
oidcConsent?: Maybe<OidcStepResponse>;
37873811
oidcLogin?: Maybe<OidcStepResponse>;
37883812
oidcLogins?: Maybe<OidcLoginConnection>;
3813+
oidcProviders?: Maybe<OidcProviderConnection>;
37893814
oidcToken?: Maybe<Scalars['String']['output']>;
37903815
platformMetrics?: Maybe<PlatformMetrics>;
37913816
platformPlans?: Maybe<Array<Maybe<PlatformPlan>>>;
@@ -4141,6 +4166,14 @@ export type RootQueryTypeOidcLoginsArgs = {
41414166
};
41424167

41434168

4169+
export type RootQueryTypeOidcProvidersArgs = {
4170+
after?: InputMaybe<Scalars['String']['input']>;
4171+
before?: InputMaybe<Scalars['String']['input']>;
4172+
first?: InputMaybe<Scalars['Int']['input']>;
4173+
last?: InputMaybe<Scalars['Int']['input']>;
4174+
};
4175+
4176+
41444177
export type RootQueryTypeOidcTokenArgs = {
41454178
email: Scalars['String']['input'];
41464179
idToken: Scalars['String']['input'];

0 commit comments

Comments
 (0)