Skip to content

Commit

Permalink
feat(gkehub): update the API
Browse files Browse the repository at this point in the history
#### gkehub:v1alpha

The following keys were added:
- schemas.CommonFleetDefaultMemberConfigSpec.description
- schemas.CommonFleetDefaultMemberConfigSpec.id
- schemas.CommonFleetDefaultMemberConfigSpec.properties.identityservice.$ref
- schemas.CommonFleetDefaultMemberConfigSpec.properties.identityservice.description
- schemas.CommonFleetDefaultMemberConfigSpec.type
- schemas.Feature.properties.fleetDefaultMemberConfig.$ref
- schemas.Feature.properties.fleetDefaultMemberConfig.description
- schemas.PolicyControllerBundleInstallSpec.description
- schemas.PolicyControllerBundleInstallSpec.id
- schemas.PolicyControllerBundleInstallSpec.properties.exemptedNamespaces.description
- schemas.PolicyControllerBundleInstallSpec.properties.exemptedNamespaces.items.type
- schemas.PolicyControllerBundleInstallSpec.properties.exemptedNamespaces.type
- schemas.PolicyControllerBundleInstallSpec.properties.management.description
- schemas.PolicyControllerBundleInstallSpec.properties.management.enum
- schemas.PolicyControllerBundleInstallSpec.properties.management.enumDescriptions
- schemas.PolicyControllerBundleInstallSpec.properties.management.type
- schemas.PolicyControllerBundleInstallSpec.type
- schemas.PolicyControllerHubConfig.properties.policyContent.$ref
- schemas.PolicyControllerHubConfig.properties.policyContent.description
- schemas.PolicyControllerMembershipState.properties.contentStates.additionalProperties.$ref
- schemas.PolicyControllerMembershipState.properties.contentStates.description
- schemas.PolicyControllerMembershipState.properties.contentStates.type
- schemas.PolicyControllerPolicyContentSpec.description
- schemas.PolicyControllerPolicyContentSpec.id
- schemas.PolicyControllerPolicyContentSpec.properties.bundles.additionalProperties.$ref
- schemas.PolicyControllerPolicyContentSpec.properties.bundles.description
- schemas.PolicyControllerPolicyContentSpec.properties.bundles.type
- schemas.PolicyControllerPolicyContentSpec.type

The following keys were changed:
- schemas.PolicyControllerMembershipState.properties.componentStates.description
- schemas.PolicyControllerMembershipState.properties.state.enum
- schemas.PolicyControllerOnClusterState.properties.state.enum

#### gkehub:v1beta

The following keys were added:
- schemas.CommonFleetDefaultMemberConfigSpec.description
- schemas.CommonFleetDefaultMemberConfigSpec.id
- schemas.CommonFleetDefaultMemberConfigSpec.properties.identityservice.$ref
- schemas.CommonFleetDefaultMemberConfigSpec.properties.identityservice.description
- schemas.CommonFleetDefaultMemberConfigSpec.type
- schemas.Feature.properties.fleetDefaultMemberConfig.$ref
- schemas.Feature.properties.fleetDefaultMemberConfig.description
- schemas.PolicyControllerBundleInstallSpec.description
- schemas.PolicyControllerBundleInstallSpec.id
- schemas.PolicyControllerBundleInstallSpec.properties.exemptedNamespaces.description
- schemas.PolicyControllerBundleInstallSpec.properties.exemptedNamespaces.items.type
- schemas.PolicyControllerBundleInstallSpec.properties.exemptedNamespaces.type
- schemas.PolicyControllerBundleInstallSpec.properties.management.description
- schemas.PolicyControllerBundleInstallSpec.properties.management.enum
- schemas.PolicyControllerBundleInstallSpec.properties.management.enumDescriptions
- schemas.PolicyControllerBundleInstallSpec.properties.management.type
- schemas.PolicyControllerBundleInstallSpec.type
- schemas.PolicyControllerHubConfig.properties.policyContent.$ref
- schemas.PolicyControllerHubConfig.properties.policyContent.description
- schemas.PolicyControllerMembershipState.properties.contentStates.additionalProperties.$ref
- schemas.PolicyControllerMembershipState.properties.contentStates.description
- schemas.PolicyControllerMembershipState.properties.contentStates.type
- schemas.PolicyControllerPolicyContentSpec.description
- schemas.PolicyControllerPolicyContentSpec.id
- schemas.PolicyControllerPolicyContentSpec.properties.bundles.additionalProperties.$ref
- schemas.PolicyControllerPolicyContentSpec.properties.bundles.description
- schemas.PolicyControllerPolicyContentSpec.properties.bundles.type
- schemas.PolicyControllerPolicyContentSpec.type

The following keys were changed:
- schemas.PolicyControllerMembershipState.properties.componentStates.description
- schemas.PolicyControllerMembershipState.properties.state.enum
- schemas.PolicyControllerOnClusterState.properties.state.enum

#### gkehub:v1

The following keys were added:
- schemas.CommonFleetDefaultMemberConfigSpec.description
- schemas.CommonFleetDefaultMemberConfigSpec.id
- schemas.CommonFleetDefaultMemberConfigSpec.type
- schemas.Feature.properties.fleetDefaultMemberConfig.$ref
- schemas.Feature.properties.fleetDefaultMemberConfig.description
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 2, 2023
1 parent d9f11cf commit 53f583e
Show file tree
Hide file tree
Showing 6 changed files with 260 additions and 11 deletions.
12 changes: 11 additions & 1 deletion discovery/gkehub-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@
}
}
},
"revision": "20221207",
"revision": "20230119",
"rootUrl": "https://gkehub.googleapis.com/",
"schemas": {
"AppDevExperienceFeatureSpec": {
Expand Down Expand Up @@ -1077,6 +1077,12 @@
},
"type": "object"
},
"CommonFleetDefaultMemberConfigSpec": {
"description": "CommonFleetDefaultMemberConfigSpec contains default configuration information for memberships of a fleet",
"id": "CommonFleetDefaultMemberConfigSpec",
"properties": {},
"type": "object"
},
"ConfigManagementConfigSync": {
"description": "Configuration for Config Sync",
"id": "ConfigManagementConfigSync",
Expand Down Expand Up @@ -1878,6 +1884,10 @@
"readOnly": true,
"type": "string"
},
"fleetDefaultMemberConfig": {
"$ref": "CommonFleetDefaultMemberConfigSpec",
"description": "Optional. Feature configuration applicable to all memberships of the fleet."
},
"labels": {
"additionalProperties": {
"type": "string"
Expand Down
74 changes: 70 additions & 4 deletions discovery/gkehub-v1alpha.json
Original file line number Diff line number Diff line change
Expand Up @@ -1179,7 +1179,7 @@
}
}
},
"revision": "20221207",
"revision": "20230119",
"rootUrl": "https://gkehub.googleapis.com/",
"schemas": {
"AnthosObservabilityFeatureSpec": {
Expand Down Expand Up @@ -1436,6 +1436,17 @@
},
"type": "object"
},
"CommonFleetDefaultMemberConfigSpec": {
"description": "CommonFleetDefaultMemberConfigSpec contains default configuration information for memberships of a fleet",
"id": "CommonFleetDefaultMemberConfigSpec",
"properties": {
"identityservice": {
"$ref": "IdentityServiceMembershipSpec",
"description": "Identity Service-specific spec."
}
},
"type": "object"
},
"ConfigManagementBinauthzConfig": {
"description": "Configuration for Binauthz",
"id": "ConfigManagementBinauthzConfig",
Expand Down Expand Up @@ -2294,6 +2305,10 @@
"readOnly": true,
"type": "string"
},
"fleetDefaultMemberConfig": {
"$ref": "CommonFleetDefaultMemberConfigSpec",
"description": "Optional. Feature configuration applicable to all memberships of the fleet."
},
"labels": {
"additionalProperties": {
"type": "string"
Expand Down Expand Up @@ -3444,6 +3459,32 @@
},
"type": "object"
},
"PolicyControllerBundleInstallSpec": {
"description": "BundleInstallSpec is the specification configuration for a single managed bundle.",
"id": "PolicyControllerBundleInstallSpec",
"properties": {
"exemptedNamespaces": {
"description": "the set of namespaces to be exempted from the bundle",
"items": {
"type": "string"
},
"type": "array"
},
"management": {
"description": "Management specifies how the bundle will be managed by the controller.",
"enum": [
"MANAGEMENT_UNSPECIFIED",
"INSTALLED"
],
"enumDescriptions": [
"No Management strategy has been specified.",
"The entity should be insistently reconciled by the Hub controller"
],
"type": "string"
}
},
"type": "object"
},
"PolicyControllerHubConfig": {
"description": "Configuration for Policy Controller",
"id": "PolicyControllerHubConfig",
Expand Down Expand Up @@ -3488,6 +3529,10 @@
"description": "Enables the ability to mutate resources using Policy Controller.",
"type": "boolean"
},
"policyContent": {
"$ref": "PolicyControllerPolicyContentSpec",
"description": "Specifies the desired policy content on the cluster"
},
"referentialRulesEnabled": {
"description": "Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.",
"type": "boolean"
Expand Down Expand Up @@ -3522,7 +3567,14 @@
"additionalProperties": {
"$ref": "PolicyControllerOnClusterState"
},
"description": "Currently these include (also serving as map keys): 1. \"admission\" 2. \"audit\" 3. \"mutation\" 4. \"constraint template library\"",
"description": "Currently these include (also serving as map keys): 1. \"admission\" 2. \"audit\" 3. \"mutation\"",
"type": "object"
},
"contentStates": {
"additionalProperties": {
"$ref": "PolicyControllerOnClusterState"
},
"description": "The state of the template library and any bundles included in the chosen version of the manifest",
"type": "object"
},
"state": {
Expand All @@ -3533,7 +3585,7 @@
"INSTALLING",
"ACTIVE",
"UPDATING",
"DECOMISSIONING",
"DECOMMISSIONING",
"CLUSTER_ERROR",
"HUB_ERROR",
"SUSPENDED"
Expand Down Expand Up @@ -3594,7 +3646,7 @@
"INSTALLING",
"ACTIVE",
"UPDATING",
"DECOMISSIONING",
"DECOMMISSIONING",
"CLUSTER_ERROR",
"HUB_ERROR",
"SUSPENDED"
Expand All @@ -3615,6 +3667,20 @@
},
"type": "object"
},
"PolicyControllerPolicyContentSpec": {
"description": "PolicyContentSpec defines the user's desired content configuration on the cluster.",
"id": "PolicyControllerPolicyContentSpec",
"properties": {
"bundles": {
"additionalProperties": {
"$ref": "PolicyControllerBundleInstallSpec"
},
"description": "map of bundle name to BundleInstallSpec. The bundle name maps to the `bundleName` key in the `policycontroller.gke.io/constraintData` annotation on a constraint.",
"type": "object"
}
},
"type": "object"
},
"PolicyControllerTemplateLibraryConfig": {
"description": "The config specifying which default library templates to install.",
"id": "PolicyControllerTemplateLibraryConfig",
Expand Down
74 changes: 70 additions & 4 deletions discovery/gkehub-v1beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@
}
}
},
"revision": "20221207",
"revision": "20230119",
"rootUrl": "https://gkehub.googleapis.com/",
"schemas": {
"AnthosObservabilityFeatureSpec": {
Expand Down Expand Up @@ -839,6 +839,17 @@
},
"type": "object"
},
"CommonFleetDefaultMemberConfigSpec": {
"description": "CommonFleetDefaultMemberConfigSpec contains default configuration information for memberships of a fleet",
"id": "CommonFleetDefaultMemberConfigSpec",
"properties": {
"identityservice": {
"$ref": "IdentityServiceMembershipSpec",
"description": "Identity Service-specific spec."
}
},
"type": "object"
},
"ConfigManagementBinauthzConfig": {
"description": "Configuration for Binauthz",
"id": "ConfigManagementBinauthzConfig",
Expand Down Expand Up @@ -1671,6 +1682,10 @@
"readOnly": true,
"type": "string"
},
"fleetDefaultMemberConfig": {
"$ref": "CommonFleetDefaultMemberConfigSpec",
"description": "Optional. Feature configuration applicable to all memberships of the fleet."
},
"labels": {
"additionalProperties": {
"type": "string"
Expand Down Expand Up @@ -2368,6 +2383,32 @@
},
"type": "object"
},
"PolicyControllerBundleInstallSpec": {
"description": "BundleInstallSpec is the specification configuration for a single managed bundle.",
"id": "PolicyControllerBundleInstallSpec",
"properties": {
"exemptedNamespaces": {
"description": "the set of namespaces to be exempted from the bundle",
"items": {
"type": "string"
},
"type": "array"
},
"management": {
"description": "Management specifies how the bundle will be managed by the controller.",
"enum": [
"MANAGEMENT_UNSPECIFIED",
"INSTALLED"
],
"enumDescriptions": [
"No Management strategy has been specified.",
"The entity should be insistently reconciled by the Hub controller"
],
"type": "string"
}
},
"type": "object"
},
"PolicyControllerHubConfig": {
"description": "Configuration for Policy Controller",
"id": "PolicyControllerHubConfig",
Expand Down Expand Up @@ -2412,6 +2453,10 @@
"description": "Enables the ability to mutate resources using Policy Controller.",
"type": "boolean"
},
"policyContent": {
"$ref": "PolicyControllerPolicyContentSpec",
"description": "Specifies the desired policy content on the cluster"
},
"referentialRulesEnabled": {
"description": "Enables the ability to use Constraint Templates that reference to objects other than the object currently being evaluated.",
"type": "boolean"
Expand Down Expand Up @@ -2446,7 +2491,14 @@
"additionalProperties": {
"$ref": "PolicyControllerOnClusterState"
},
"description": "Currently these include (also serving as map keys): 1. \"admission\" 2. \"audit\" 3. \"mutation\" 4. \"constraint template library\"",
"description": "Currently these include (also serving as map keys): 1. \"admission\" 2. \"audit\" 3. \"mutation\"",
"type": "object"
},
"contentStates": {
"additionalProperties": {
"$ref": "PolicyControllerOnClusterState"
},
"description": "The state of the template library and any bundles included in the chosen version of the manifest",
"type": "object"
},
"state": {
Expand All @@ -2457,7 +2509,7 @@
"INSTALLING",
"ACTIVE",
"UPDATING",
"DECOMISSIONING",
"DECOMMISSIONING",
"CLUSTER_ERROR",
"HUB_ERROR",
"SUSPENDED"
Expand Down Expand Up @@ -2518,7 +2570,7 @@
"INSTALLING",
"ACTIVE",
"UPDATING",
"DECOMISSIONING",
"DECOMMISSIONING",
"CLUSTER_ERROR",
"HUB_ERROR",
"SUSPENDED"
Expand All @@ -2539,6 +2591,20 @@
},
"type": "object"
},
"PolicyControllerPolicyContentSpec": {
"description": "PolicyContentSpec defines the user's desired content configuration on the cluster.",
"id": "PolicyControllerPolicyContentSpec",
"properties": {
"bundles": {
"additionalProperties": {
"$ref": "PolicyControllerBundleInstallSpec"
},
"description": "map of bundle name to BundleInstallSpec. The bundle name maps to the `bundleName` key in the `policycontroller.gke.io/constraintData` annotation on a constraint.",
"type": "object"
}
},
"type": "object"
},
"PolicyControllerTemplateLibraryConfig": {
"description": "The config specifying which default library templates to install.",
"id": "PolicyControllerTemplateLibraryConfig",
Expand Down
11 changes: 11 additions & 0 deletions src/apis/gkehub/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,10 @@ export namespace gkehub_v1 {
*/
state?: Schema$FeatureState;
}
/**
* CommonFleetDefaultMemberConfigSpec contains default configuration information for memberships of a fleet
*/
export interface Schema$CommonFleetDefaultMemberConfigSpec {}
/**
* Configuration for Config Sync
*/
Expand Down Expand Up @@ -786,6 +790,10 @@ export namespace gkehub_v1 {
* Output only. When the Feature resource was deleted.
*/
deleteTime?: string | null;
/**
* Optional. Feature configuration applicable to all memberships of the fleet.
*/
fleetDefaultMemberConfig?: Schema$CommonFleetDefaultMemberConfigSpec;
/**
* GCP labels for this Feature.
*/
Expand Down Expand Up @@ -1996,6 +2004,7 @@ export namespace gkehub_v1 {
* // {
* // "createTime": "my_createTime",
* // "deleteTime": "my_deleteTime",
* // "fleetDefaultMemberConfig": {},
* // "labels": {},
* // "membershipSpecs": {},
* // "membershipStates": {},
Expand Down Expand Up @@ -2282,6 +2291,7 @@ export namespace gkehub_v1 {
* // {
* // "createTime": "my_createTime",
* // "deleteTime": "my_deleteTime",
* // "fleetDefaultMemberConfig": {},
* // "labels": {},
* // "membershipSpecs": {},
* // "membershipStates": {},
Expand Down Expand Up @@ -2700,6 +2710,7 @@ export namespace gkehub_v1 {
* // {
* // "createTime": "my_createTime",
* // "deleteTime": "my_deleteTime",
* // "fleetDefaultMemberConfig": {},
* // "labels": {},
* // "membershipSpecs": {},
* // "membershipStates": {},
Expand Down

0 comments on commit 53f583e

Please sign in to comment.